ARM: dts: Enable S3C RTC on exynos4412-trats2 and exynos5420-arndale-octa
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Sat, 2 May 2015 05:40:08 +0000 (14:40 +0900)
committerKukjin Kim <kgene@kernel.org>
Sun, 17 May 2015 01:51:59 +0000 (10:51 +0900)
Extend the S3C RTC node with rtc_src clock so it could be operational.
The rtc_src clock is provided by MAX77686 (Trats2) or S2MPS11 (Arndale
Octa).

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Reviewed-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Signed-off-by: Kukjin Kim <kgene@kernel.org>
arch/arm/boot/dts/exynos4.dtsi
arch/arm/boot/dts/exynos4412-trats2.dts
arch/arm/boot/dts/exynos5420-arndale-octa.dts

index e20cdc24c3bbd5f71d5f21db7187d0a101324609..76929d3905e4d7d90bbfde5e3c8e38abd3cf41fb 100644 (file)
                status = "disabled";
        };
 
-       rtc@10070000 {
+       rtc: rtc@10070000 {
                compatible = "samsung,s3c6410-rtc";
                reg = <0x10070000 0x100>;
                interrupt-parent = <&pmu_system_controller>;
index 173ffa479ad3cb03eb6e6742663fafaccacf9d53..c032cde11d5c298a4f2ab616c2f090d7327f19d2 100644 (file)
@@ -16,6 +16,7 @@
 #include "exynos4412.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/clock/maxim,max77686.h>
 
 / {
        model = "Samsung Trats 2 based on Exynos4412";
                pinctrl-names = "default";
                status = "okay";
 
-               max77686_pmic@09 {
+               max77686: max77686_pmic@09 {
                        compatible = "maxim,max77686";
                        interrupt-parent = <&gpx0>;
                        interrupts = <7 0>;
                PIN_SLP(gpv4-0, INPUT, DOWN);
        };
 };
+
+&rtc {
+       status = "okay";
+       clocks = <&clock CLK_RTC>, <&max77686 MAX77686_CLK_AP>;
+       clock-names = "rtc", "rtc_src";
+};
index 4efcf7c8f609c03d1e558375217a705b79b4cb93..9924b870423f7b3e65f265f734acbabfdaff583f 100644 (file)
@@ -13,6 +13,7 @@
 #include "exynos5420.dtsi"
 #include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/clock/samsung,s2mps11.h>
 
 / {
        model = "Insignal Arndale Octa evaluation board based on EXYNOS5420";
                };
        };
 
-       rtc@101E0000 {
-               status = "okay";
-       };
-
        codec@11000000 {
                samsung,mfc-r = <0x43000000 0x800000>;
                samsung,mfc-l = <0x51000000 0x800000>;
                samsung,pin-drv = <0>;
        };
 };
+
+&rtc {
+       status = "okay";
+       clocks = <&clock CLK_RTC>, <&s2mps11_osc S2MPS11_CLK_AP>;
+       clock-names = "rtc", "rtc_src";
+};