ARM: shmobile: porter: add I2C2 DT support
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Thu, 8 Oct 2015 21:44:18 +0000 (00:44 +0300)
committerSimon Horman <horms+renesas@verge.net.au>
Fri, 9 Oct 2015 03:12:12 +0000 (12:12 +0900)
Define the Porter board dependent part of the I2C2 device node.

This patch is  analogous to the commit 29a647c396a0 ("ARM: shmobile:
henninger: add I2C2 DT support") as there are no differences between
the boards in this respect.

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

index 7f46980ffd12833870ab8af33be036582a6dedc6..03edb8424ef5602ba353a38bbb7432d53975f71d 100644 (file)
                renesas,groups = "sdhi2_data4", "sdhi2_ctrl";
                renesas,function = "sdhi2";
        };
+
+       i2c2_pins: i2c2 {
+               renesas,groups = "i2c2";
+               renesas,function = "i2c2";
+       };
 };
 
 &scif0 {
        status = "okay";
 };
 
+&i2c2 {
+       pinctrl-0 = <&i2c2_pins>;
+       pinctrl-names = "default";
+
+       status = "okay";
+       clock-frequency = <400000>;
+};
+
 &sata0 {
        status = "okay";
 };