]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: shmobile: henninger: add I2C2 DT support
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Tue, 10 Jun 2014 22:45:21 +0000 (02:45 +0400)
committerSimon Horman <horms+renesas@verge.net.au>
Tue, 17 Jun 2014 10:58:25 +0000 (19:58 +0900)
Define the Henninger board dependent part of the I2C2 device node.

Based on the Koelsch I2C2 device tree patch by Wolfram Sang.

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

index cc6d992e8db219e3502b2265f01d1d6a0620a608..c0c58ce7746e1480d0422ca08ece38b8312537dc 100644 (file)
                renesas,function = "sdhi2";
        };
 
+       i2c2_pins: i2c2 {
+               renesas,groups = "i2c2";
+               renesas,function = "i2c2";
+       };
+
        qspi_pins: spi0 {
                renesas,groups = "qspi_ctrl", "qspi_data4";
                renesas,function = "qspi";
        status = "okay";
 };
 
+&i2c2 {
+       pinctrl-0 = <&i2c2_pins>;
+       pinctrl-names = "default";
+
+       status = "okay";
+       clock-frequency = <400000>;
+};
+
 &qspi {
        pinctrl-0 = <&qspi_pins>;
        pinctrl-names = "default";