mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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. Signed-off-by: Heiko Schocher <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]>
This commit is contained in:
parent
dbb812b141
commit
a39a6405d5
2 changed files with 194 additions and 1 deletions
25
Documentation/devicetree/bindings/rtc/pcf8563.txt
Normal file
25
Documentation/devicetree/bindings/rtc/pcf8563.txt
Normal file
|
|
@ -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>;
|
||||
...
|
||||
};
|
||||
Loading…
Reference in a new issue