]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: shmobile: armadillo-reference dts: enable RTC
authorUlrich Hecht <ulrich.hecht@gmail.com>
Mon, 31 Mar 2014 15:38:20 +0000 (17:38 +0200)
committerSimon Horman <horms+renesas@verge.net.au>
Mon, 14 Apr 2014 02:31:17 +0000 (11:31 +0900)
This enables the Seiko real-time clock that is attached to a couple of
GPIO pins.

Signed-off-by: Ulrich Hecht <ulrich.hecht@gmail.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/boot/dts/r8a7740-armadillo800eva-reference.dts

index 97342a4820cf81a4e6b4c0e1fc27e44318ff8a97..0cb235a450b98ade60926831da0c412db51bf1bc 100644 (file)
@@ -118,6 +118,16 @@ led4 {
                };
        };
 
+       i2c2: i2c@2 {
+               #address-cells = <1>;
+               #size-cells = <0>;
+               compatible = "i2c-gpio";
+               gpios = <&pfc 208 GPIO_ACTIVE_HIGH /* sda */
+                        &pfc 91 GPIO_ACTIVE_HIGH /* scl */
+                       >;
+               i2c-gpio,delay-us = <5>;
+       };
+
        backlight {
                compatible = "pwm-backlight";
                pwms = <&tpu 2 33333 PWM_POLARITY_INVERTED>;
@@ -167,6 +177,14 @@ wm8978: wm8978@1a {
        };
 };
 
+&i2c2 {
+       status = "okay";
+       rtc@30 {
+               compatible = "seiko,s35390a";
+               reg = <0x30>;
+       };
+};
+
 &pfc {
        pinctrl-0 = <&scifa1_pins>;
        pinctrl-names = "default";