Skip to content

Commit 00b83e6

Browse files
Phuc Phamnhutnguyenkc
authored andcommitted
boards: renesas: Add I2C support for Renesas RZ/A3UL, T2M, N2L, V2L
Add I2C support for board Renesas RZ/A3UL-SMARC, RZ/T2M-RSK, RZ/N2L-RSK, RZ/V2L-SMARC Signed-off-by: Phuc Pham <[email protected]> Signed-off-by: Nhut Nguyen <[email protected]>
1 parent f9b2738 commit 00b83e6

12 files changed

+56
-0
lines changed

boards/renesas/rza3ul_smarc/rza3ul_smarc-pinctrl.dtsi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,11 @@
2727
pinmux = <RZA_PINMUX(PORT_04, 2, 4)>; /* MTIOCA */
2828
};
2929
};
30+
31+
/omit-if-no-ref/ i2c1_pins: i2c1 {
32+
i2c1-spins {
33+
pins = <BSP_IO_RIIC1_SDA>, <BSP_IO_RIIC1_SCL>;
34+
input-enable;
35+
};
36+
};
3037
};

boards/renesas/rza3ul_smarc/rza3ul_smarc.dts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,9 @@
7171
&adc {
7272
status = "okay";
7373
};
74+
75+
&i2c1 {
76+
pinctrl-0 = <&i2c1_pins>;
77+
pinctrl-names = "default";
78+
status = "okay";
79+
};

boards/renesas/rza3ul_smarc/rza3ul_smarc.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ supported:
1010
- gpio
1111
- pwm
1212
- adc
13+
- i2c
1314
testing:
1415
ignore_tags:
1516
- bluetooth

boards/renesas/rzn2l_rsk/rzn2l_rsk-pinctrl.dtsi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,11 @@
4141
<RZN_PINMUX(PORT_04, 0, 3)>; /* GTIOCB */
4242
};
4343
};
44+
45+
/omit-if-no-ref/ i2c1_default: i2c1_default {
46+
i2c1-pinmux {
47+
pinmux = <RZN_PINMUX(PORT_05, 2, 8)>, /* SCL */
48+
<RZN_PINMUX(PORT_05, 3, 9)>; /* SDA */
49+
};
50+
};
4451
};

boards/renesas/rzn2l_rsk/rzn2l_rsk.dts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,9 @@
117117
&adc1 {
118118
status = "okay";
119119
};
120+
121+
&i2c1 {
122+
pinctrl-0 = <&i2c1_default>;
123+
pinctrl-names = "default";
124+
status = "okay";
125+
};

boards/renesas/rzn2l_rsk/rzn2l_rsk.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ supported:
99
- gpio
1010
- pwm
1111
- adc
12+
- i2c
1213
vendor: renesas

boards/renesas/rzt2m_rsk/rzt2m_rsk-pinctrl.dtsi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,11 @@
3333
<RZT_PINMUX(PORT_03, 6, 5)>; /* GTIOCB */
3434
};
3535
};
36+
37+
/omit-if-no-ref/ i2c1_default: i2c1_default {
38+
i2c1-pinmux {
39+
pinmux = <RZT_PINMUX(PORT_22, 6, 2)>, /* SCL */
40+
<RZT_PINMUX(PORT_22, 7, 2)>; /* SDA */
41+
};
42+
};
3643
};

boards/renesas/rzt2m_rsk/rzt2m_rsk_r9a07g075m24gbg_cr520.dts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@
8686
status = "okay";
8787
};
8888

89+
&i2c1 {
90+
pinctrl-0 = <&i2c1_default>;
91+
pinctrl-names = "default";
92+
status = "okay";
93+
};
94+
8995
&gpio10 {
9096
irqs = <5 2>;
9197
status = "okay";

boards/renesas/rzt2m_rsk/rzt2m_rsk_r9a07g075m24gbg_cr520.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ supported:
1414
- gpio
1515
- pwm
1616
- adc
17+
- i2c
1718
vendor: renesas

boards/renesas/rzv2l_smarc/rzv2l_smarc-pinctrl.dtsi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,11 @@
2525
pinmux = <RZV_PINMUX(PORT_41, 0, 2)>; /* GTIOCA */
2626
};
2727
};
28+
29+
/omit-if-no-ref/ i2c3_pins: i2c3 {
30+
i2c3-pinmux {
31+
pinmux = <RZV_PINMUX(PORT_18, 0, 3)>, /* SDA */
32+
<RZV_PINMUX(PORT_18, 1, 3)>; /* SCL */
33+
};
34+
};
2835
};

0 commit comments

Comments
 (0)