From: Simon Horman Date: Mon, 4 Jan 2016 22:16:20 +0000 (+1100) Subject: ARM: dts: gose: add i2c2 bus to device tree X-Git-Tag: v4.6-rc1~74^2~25^2~58 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=f6890af3ad2b6440d287c8ee97b3f38e18b0674e;p=linux.git ARM: dts: gose: add i2c2 bus to device tree Activate i2c2 bus in r8a7793/gose device tree. Based on similar work for the r8a7791/koelsch by Wolfram Sang. Acked-by: Geert Uytterhoeven Acked-by: Wolfram Sang Signed-off-by: Simon Horman --- diff --git a/arch/arm/boot/dts/r8a7793-gose.dts b/arch/arm/boot/dts/r8a7793-gose.dts index 90b587c3c736..987ed03b1e02 100644 --- a/arch/arm/boot/dts/r8a7793-gose.dts +++ b/arch/arm/boot/dts/r8a7793-gose.dts @@ -136,6 +136,11 @@ &extal_clk { }; &pfc { + i2c2_pins: i2c2 { + renesas,groups = "i2c2"; + renesas,function = "i2c2"; + }; + scif0_pins: serial0 { renesas,groups = "scif0_data_d"; renesas,function = "scif0"; @@ -234,3 +239,17 @@ partition@440000 { }; }; }; + +&i2c2 { + pinctrl-0 = <&i2c2_pins>; + pinctrl-names = "default"; + + status = "okay"; + clock-frequency = <100000>; + + eeprom@50 { + compatible = "renesas,r1ex24002", "atmel,24c02"; + reg = <0x50>; + pagesize = <16>; + }; +};