Skip to content

Commit f7a98e2

Browse files
John Madieugeertu
authored andcommitted
arm64: dts: renesas: rzg3e-smarc-som: Add I2C2 device pincontrol
Add a device node for I2C2 pincontrol. Also enable the I2C2 device node with 1MHz clock frequency as it is connected to the RAA215300 PMIC on the RZ/G3E SoM. Signed-off-by: John Madieu <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Geert Uytterhoeven <[email protected]>
1 parent 03a45e1 commit f7a98e2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

arch/arm64/boot/dts/renesas/rzg3e-smarc-som.dtsi

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
compatible = "renesas,rzg3e-smarcm", "renesas,r9a09g047e57", "renesas,r9a09g047";
1919

2020
aliases {
21+
i2c2 = &i2c2;
2122
mmc0 = &sdhi0;
2223
mmc2 = &sdhi2;
2324
};
@@ -51,7 +52,19 @@
5152
clock-frequency = <48000000>;
5253
};
5354

55+
&i2c2 {
56+
pinctrl-0 = <&i2c2_pins>;
57+
pinctrl-names = "default";
58+
clock-frequency = <1000000>;
59+
status = "okay";
60+
};
61+
5462
&pinctrl {
63+
i2c2_pins: i2c {
64+
pinmux = <RZG3E_PORT_PINMUX(3, 4, 1)>, /* SCL2 */
65+
<RZG3E_PORT_PINMUX(3, 5, 1)>; /* SDA2 */
66+
};
67+
5568
sdhi0_emmc_pins: sd0-emmc {
5669
sd0-ctrl {
5770
pins = "SD0CLK", "SD0CMD";

0 commit comments

Comments
 (0)