Skip to contentSkip to conversation

rtc: pcf8563: add CLKOUT to common clock framework

PATCH Applied Heiko Schocher 2 participants 2 messages Oct 16, 2015 – Oct 18, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 rtc: pcf8563: add CLKOUT to common clock framework

Add the clkout output clk to the common clock framework. Disable the CLKOUT of the RTC after power-up.
After power-up/reset of the RTC, CLKOUT is enabled by default, with CLKOUT enabled the RTC chip has 2-3 times higher power consumption.

---

Changes in v4:
- add comments from Alexandre Belloni
- use devm_clk_register() instead of clk_register()
- rework Documentation

Changes in v3:
- use CONFIG_COMMON_CLK for common clk framework
changes

Changes in v2:
- add comments from Alexandre Belloni
- remove the DT property, instead register for the CLKOUT a clk in the common clk framework. The clk is disabled by default.

 Documentation/devicetree/bindings/rtc/pcf8563.txt |  25 ++++
 drivers/rtc/rtc-pcf8563.c                         | 170 +++++++++++++++++++++-
 2 files changed, 194 insertions(+), 1 deletion(-)
 create mode 100644 Documentation/devicetree/bindings/rtc/pcf8563.txt
Documentation/devicetree/bindings/rtc/pcf8563.txt new file +25 -0
new file mode 100644
index 0000000..72f6d2c
@@ -0,0 +1,25 @@
+* Philips PCF8563/Epson RTC8564 Real Time Clock
+
+Philips PCF8563/Epson RTC8564 Real Time Clock
+
+Required properties:
+see: Documentation/devicetree/bindings/i2c/trivial-devices.txt
+
+Optional property:
+- #clock-cells: Should be 0.
+- clock-output-names:
+  overwrite the default clock name "pcf8563-clkout"
+
+Example:
+
+pcf8563: pcf8563@51 {
+	compatible = "nxp,pcf8563";
+	reg = <0x51>;
+	#clock-cells = <0>;
+};
+
+device {
+...
+	clocks = <&pcf8563>;
+...
+};
drivers/rtc/rtc-pcf8563.c +169 -1

200 lines not on this page · raw message

Signature · 1 line
2.1.0
#1 lore raw
Quoted 24 lines · Heiko Schocher

Add the clkout output clk to the common clock framework. Disable the CLKOUT of the RTC after power-up.
After power-up/reset of the RTC, CLKOUT is enabled by default, with CLKOUT enabled the RTC chip has 2-3 times higher power consumption.

---

Changes in v4:
- add comments from Alexandre Belloni
- use devm_clk_register() instead of clk_register()
- rework Documentation

Changes in v3:
- use CONFIG_COMMON_CLK for common clk framework
changes

Changes in v2:
- add comments from Alexandre Belloni
- remove the DT property, instead register for the CLKOUT a clk in the common clk framework. The clk is disabled by default.

Quoted 5 lines
 Documentation/devicetree/bindings/rtc/pcf8563.txt |  25 ++++
 drivers/rtc/rtc-pcf8563.c                         | 170 +++++++++++++++++++++-
 2 files changed, 194 insertions(+), 1 deletion(-)
 create mode 100644 Documentation/devicetree/bindings/rtc/pcf8563.txt

Applied, thanks.

Signature · 7 lines
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html