arm64: dts: renesas: white-hawk: Add I2C0 and EEPROMs
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 9 Sep 2022 09:53:53 +0000 (11:53 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Sun, 18 Sep 2022 12:53:34 +0000 (14:53 +0200)
Enable the I2C0 bus on the White Hawk CPU board, and describe the I2C
EEPROMs present on the White Hawk CPU and BreakOut boards.

Based on a larger patch in the BSP by Takeshi Kihara.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/d01cada6f2d3e44dd6cb26cfa8e4ce6382f1fbff.1662715538.git.geert+renesas@glider.be
arch/arm64/boot/dts/renesas/r8a779g0-white-hawk-cpu.dtsi
arch/arm64/boot/dts/renesas/r8a779g0-white-hawk.dts

index ba8cc16..27daba9 100644 (file)
        status = "okay";
 };
 
+&i2c0 {
+       pinctrl-0 = <&i2c0_pins>;
+       pinctrl-names = "default";
+
+       status = "okay";
+       clock-frequency = <400000>;
+
+       eeprom@50 {
+               compatible = "rohm,br24g01", "atmel,24c01";
+               label = "cpu-board";
+               reg = <0x50>;
+               pagesize = <8>;
+       };
+};
+
 &pfc {
        pinctrl-0 = <&scif_clk_pins>;
        pinctrl-names = "default";
                function = "hscif0";
        };
 
+       i2c0_pins: i2c0 {
+               groups = "i2c0";
+               function = "i2c0";
+       };
+
        scif_clk_pins: scif_clk {
                groups = "scif_clk";
                function = "scif_clk";
index bc0ac10..afa807e 100644 (file)
                stdout-path = "serial0:921600n8";
        };
 };
+
+&i2c0 {
+       eeprom@51 {
+               compatible = "rohm,br24g01", "atmel,24c01";
+               label = "breakout-board";
+               reg = <0x51>;
+               pagesize = <8>;
+       };
+};