Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1466230

[PATCH v6 1/4] rtc: ac100: support clock-output-names in device tree binding

Path csiph.com!weretis.net!feeder4.news.weretis.net!news.unit0.net!news.panservice.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod
From Chen-Yu Tsai <wens@csie.org>
Newsgroups linux.kernel
Subject [PATCH v6 1/4] rtc: ac100: support clock-output-names in device tree binding
Date Fri, 19 Aug 2016 10:50:02 +0200
Message-ID <s7NF0-3kM-3@gated-at.bofh.it> (permalink)
References <s7Nvj-3hy-15@gated-at.bofh.it>
X-Mailer git-send-email 2.9.3
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 34
Organization linux.* mail to news gateway
X-Original-Cc Chen-Yu Tsai <wens@csie.org>, rtc-linux@googlegroups.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org
X-Original-Date Fri, 19 Aug 2016 15:42:23 +0800
X-Original-Message-ID <20160819074226.16636-2-wens@csie.org>
X-Original-References <20160819074226.16636-1-wens@csie.org>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1466230

Show key headers only | View raw


The ac100 device tree binding specifies the usage of clock-output-names
to specify the names of its 3 clock outputs. This is needed for orphan
clock resolution, when the ac100 is probed much later than any clocks
that consume any of its outputs. This wasn't supported by the driver.

Add support for this.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
---
Changes since v5:

  - New patch, based on mfd-rtc immutable branch given in

     http://www.spinics.net/lists/devicetree/msg137991.html

---
 drivers/rtc/rtc-ac100.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/rtc/rtc-ac100.c b/drivers/rtc/rtc-ac100.c
index 70b4fd0f6122..2d0bb02a25d9 100644
--- a/drivers/rtc/rtc-ac100.c
+++ b/drivers/rtc/rtc-ac100.c
@@ -327,6 +327,8 @@ static int ac100_rtc_register_clks(struct ac100_rtc_dev *chip)
 			.flags = 0,
 		};
 
+		of_property_read_string_index(np, "clock-output-names",
+					      i, &init.name);
 		clk->regmap = chip->regmap;
 		clk->offset = AC100_CLKOUT_CTRL1 + i;
 		clk->hw.init = &init;
-- 
2.9.3

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v6 0/4] ARM: dts: sun9i: Enable X-Powers AC100 RTC Chen-Yu Tsai <wens@csie.org> - 2016-08-19 10:40 +0200
  [PATCH v6 1/4] rtc: ac100: support clock-output-names in device tree binding Chen-Yu Tsai <wens@csie.org> - 2016-08-19 10:50 +0200
  [PATCH v6 3/4] ARM: dts: sun9i: cubieboard4: Add device node for AC100 Chen-Yu Tsai <wens@csie.org> - 2016-08-19 10:50 +0200
  [PATCH v6 2/4] ARM: dts: sun9i: a80-optimus: Add device node for AC100 Chen-Yu Tsai <wens@csie.org> - 2016-08-19 10:50 +0200
  Re: [PATCH v6 0/4] ARM: dts: sun9i: Enable X-Powers AC100 RTC Maxime Ripard <maxime.ripard@free-electrons.com> - 2016-08-22 20:50 +0200

csiph-web