ARM: shmobile: silk: add I2C1 DT support
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Wed, 19 Aug 2015 22:05:02 +0000 (01:05 +0300)
committerSimon Horman <horms+renesas@verge.net.au>
Mon, 14 Sep 2015 01:16:39 +0000 (10:16 +0900)
Define the SILK board dependent part of the I2C1 device node.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/boot/dts/r8a7794-silk.dts

index f49bc00738a3af93b427eb78222bcbb73eba745a..3f808724106ed0b08d699b5fa17ce72836db678e 100644 (file)
                renesas,function = "intc";
        };
 
+       i2c1_pins: i2c1 {
+               renesas,groups = "i2c1";
+               renesas,function = "i2c1";
+       };
+
        mmcif0_pins: mmcif0 {
                renesas,groups = "mmc_data8", "mmc_ctrl";
                renesas,function = "mmc";
        };
 };
 
+&i2c1 {
+       pinctrl-0 = <&i2c1_pins>;
+       pinctrl-names = "default";
+
+       status = "okay";
+       clock-frequency = <400000>;
+};
+
 &mmcif0 {
        pinctrl-0 = <&mmcif0_pins>;
        pinctrl-names = "default";