ARM: dts: gose: add i2c2 bus to device tree
authorSimon Horman <horms+renesas@verge.net.au>
Mon, 4 Jan 2016 22:16:20 +0000 (09:16 +1100)
committerSimon Horman <horms+renesas@verge.net.au>
Sun, 24 Jan 2016 23:55:00 +0000 (08:55 +0900)
Activate i2c2 bus in r8a7793/gose device tree.

Based on similar work for the r8a7791/koelsch by Wolfram Sang.

Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/boot/dts/r8a7793-gose.dts

index 90b587c3c73687282582590e0986eb3e58b8790d..987ed03b1e0211dc1b59b21dc32d682a0d1318c1 100644 (file)
 };
 
 &pfc {
+       i2c2_pins: i2c2 {
+               renesas,groups = "i2c2";
+               renesas,function = "i2c2";
+       };
+
        scif0_pins: serial0 {
                renesas,groups = "scif0_data_d";
                renesas,function = "scif0";
                };
        };
 };
+
+&i2c2 {
+       pinctrl-0 = <&i2c2_pins>;
+       pinctrl-names = "default";
+
+       status = "okay";
+       clock-frequency = <100000>;
+
+       eeprom@50 {
+               compatible = "renesas,r1ex24002", "atmel,24c02";
+               reg = <0x50>;
+               pagesize = <16>;
+       };
+};