rtc: pcf8563: add CLKOUT to common clock framework
Subsystems (2)
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
@@ -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
Alexandre Belloni
AppliedQuoted 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.Signed-off-by Heiko Schocher <[email protected]>---
Changes in v4:
- add comments from Alexandre Belloni
- usedevm_clk_register()instead ofclk_register()
- rework DocumentationChanges in v3:
- useCONFIG_COMMON_CLKfor common clk framework
changesChanges 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