Skip to content

Commit c893873

Browse files
Tri Nguyennashif
authored andcommitted
drivers: i2c: Support for RA6 devices
Add devices node that support I2C for RA6 boards Signed-off-by: Tri Nguyen <[email protected]>
1 parent 110c81f commit c893873

35 files changed

+223
-0
lines changed

boards/renesas/ek_ra6m1/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ The below features are currently supported on Zephyr OS for EK-RA6M1 board:
9494
+-----------+------------+----------------------+
9595
| CLOCK | on-chip | clock control |
9696
+-----------+------------+----------------------+
97+
| I2C | on-chip | i2c |
98+
+-----------+------------+----------------------+
9799

98100
Other hardware features are currently not supported by the port.
99101

boards/renesas/ek_ra6m1/ek_ra6m1-pinctrl.dtsi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,13 @@
1111
<RA_PSEL(RA_PSEL_SCI_8, 1, 4)>;
1212
};
1313
};
14+
15+
iic0_default: iic0_default {
16+
group1 {
17+
/* SCL0 SDA0 */
18+
psels = <RA_PSEL(RA_PSEL_I2C, 4, 0)>,
19+
<RA_PSEL(RA_PSEL_I2C, 4, 1)>;
20+
drive-strength = "medium";
21+
};
22+
};
1423
};

boards/renesas/ek_ra6m1/ek_ra6m1.dts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,17 @@
4444
};
4545
};
4646

47+
&iic0 {
48+
status = "okay";
49+
#address-cells = <1>;
50+
#size-cells = <0>;
51+
interrupts = <91 1>, <92 1>, <93 1>, <94 1>;
52+
interrupt-names = "rxi", "txi", "tei", "eri";
53+
clock-frequency = <DT_FREQ_M(1)>;
54+
pinctrl-0 = <&iic0_default>;
55+
pinctrl-names = "default";
56+
};
57+
4758
&ioport1 {
4859
status = "okay";
4960
};

boards/renesas/ek_ra6m2/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ The below features are currently supported on Zephyr OS for EK-RA6M2 board:
8888
+-----------+------------+----------------------+
8989
| CLOCK | on-chip | clock control |
9090
+-----------+------------+----------------------+
91+
| I2C | on-chip | i2c |
92+
+-----------+------------+----------------------+
9193

9294
Other hardware features are currently not supported by the port.
9395

boards/renesas/ek_ra6m2/ek_ra6m2-pinctrl.dtsi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,13 @@
1111
<RA_PSEL(RA_PSEL_SCI_7, 4, 2)>;
1212
};
1313
};
14+
15+
iic2_default: iic2_default {
16+
group1 {
17+
/* SCL2 SDA2 */
18+
psels = <RA_PSEL(RA_PSEL_I2C, 5, 12)>,
19+
<RA_PSEL(RA_PSEL_I2C, 5, 11)>;
20+
drive-strength = "medium";
21+
};
22+
};
1423
};

boards/renesas/ek_ra6m2/ek_ra6m2.dts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,17 @@
4444
};
4545
};
4646

47+
&iic2 {
48+
status = "okay";
49+
#address-cells = <1>;
50+
#size-cells = <0>;
51+
interrupts = <91 1>, <92 1>, <93 1>, <94 1>;
52+
interrupt-names = "rxi", "txi", "tei", "eri";
53+
clock-frequency = <DT_FREQ_M(1)>;
54+
pinctrl-0 = <&iic2_default>;
55+
pinctrl-names = "default";
56+
};
57+
4758
&ioport1 {
4859
status = "okay";
4960
};

boards/renesas/ek_ra6m3/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ The below features are currently supported on Zephyr OS for EK-RA6M3 board:
9696
+-----------+------------+----------------------+
9797
| CLOCK | on-chip | clock control |
9898
+-----------+------------+----------------------+
99+
| I2C | on-chip | i2c |
100+
+-----------+------------+----------------------+
99101

100102
Other hardware features are currently not supported by the port.
101103

boards/renesas/ek_ra6m3/ek_ra6m3-pinctrl.dtsi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,13 @@
1111
<RA_PSEL(RA_PSEL_SCI_8, 1, 4)>;
1212
};
1313
};
14+
15+
iic2_default: iic2_default {
16+
group1 {
17+
/* SCL2 SDA2 */
18+
psels = <RA_PSEL(RA_PSEL_I2C, 5, 12)>,
19+
<RA_PSEL(RA_PSEL_I2C, 5, 11)>;
20+
drive-strength = "medium";
21+
};
22+
};
1423
};

boards/renesas/ek_ra6m3/ek_ra6m3.dts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,17 @@
6060
};
6161
};
6262

63+
&iic2 {
64+
status = "okay";
65+
#address-cells = <1>;
66+
#size-cells = <0>;
67+
interrupts = <91 1>, <92 1>, <93 1>, <94 1>;
68+
interrupt-names = "rxi", "txi", "tei", "eri";
69+
clock-frequency = <DT_FREQ_M(1)>;
70+
pinctrl-0 = <&iic2_default>;
71+
pinctrl-names = "default";
72+
};
73+
6374
&xtal {
6475
clock-frequency = <DT_FREQ_M(24)>;
6576
mosel = <0>;

boards/renesas/ek_ra6m4/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ The below features are currently supported on Zephyr OS for EK-RA6M4 board:
101101
+-----------+------------+----------------------+
102102
| CLOCK | on-chip | clock control |
103103
+-----------+------------+----------------------+
104+
| I2C | on-chip | i2c |
105+
+-----------+------------+----------------------+
104106

105107
Other hardware features are currently not supported by the port.
106108

0 commit comments

Comments
 (0)