]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: r7s72100: add rtc clock to device tree
authorChris Brandt <chris.brandt@renesas.com>
Wed, 29 Mar 2017 17:30:31 +0000 (10:30 -0700)
committerSimon Horman <horms+renesas@verge.net.au>
Tue, 4 Apr 2017 16:57:24 +0000 (12:57 -0400)
Add the realtime clock functional clock source.

Signed-off-by: Chris Brandt <chris.brandt@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/boot/dts/r7s72100.dtsi
include/dt-bindings/clock/r7s72100-clock.h

index 47ef53a4c8bf6a0235f6624a646da5d728913d8c..9eace892fec700b816463483da2dea1fb91a9253 100644 (file)
@@ -117,6 +117,15 @@ mstp5_clks: mstp5_clks@fcfe0428 {
                        clock-output-names = "ostm0", "ostm1";
                };
 
+               mstp6_clks: mstp6_clks@fcfe042c {
+                       #clock-cells = <1>;
+                       compatible = "renesas,r7s72100-mstp-clocks", "renesas,cpg-mstp-clocks";
+                       reg = <0xfcfe042c 4>;
+                       clocks = <&p0_clk>;
+                       clock-indices = <R7S72100_CLK_RTC>;
+                       clock-output-names = "rtc";
+               };
+
                mstp7_clks: mstp7_clks@fcfe0430 {
                        #clock-cells = <1>;
                        compatible = "renesas,r7s72100-mstp-clocks", "renesas,cpg-mstp-clocks";
index cd2ed5194255fd7e3598dafc39425c27a506356f..bc256d31099a6eafa64f73078e87ca99b10ec0fa 100644 (file)
@@ -29,6 +29,9 @@
 #define R7S72100_CLK_OSTM0     1
 #define R7S72100_CLK_OSTM1     0
 
+/* MSTP6 */
+#define R7S72100_CLK_RTC       0
+
 /* MSTP7 */
 #define R7S72100_CLK_ETHER     4