Browse Source

boards: renesas: Add I2C support for Renesas RA4, RA2 boards

Add I2C support for: ek_ra4w1, ek_ra4m2, ek_ra4m3, ek_ra2a1

Signed-off-by: Tri Nguyen <tri.nguyen.wj@bp.renesas.com>
Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
pull/83405/head
Khoa Nguyen 7 months ago committed by Benjamin Cabé
parent
commit
8e18d23eb2
  1. 2
      boards/renesas/ek_ra2a1/doc/index.rst
  2. 9
      boards/renesas/ek_ra2a1/ek_ra2a1-pinctrl.dtsi
  3. 11
      boards/renesas/ek_ra2a1/ek_ra2a1.dts
  4. 2
      boards/renesas/ek_ra4m2/doc/index.rst
  5. 9
      boards/renesas/ek_ra4m2/ek_ra4m2-pinctrl.dtsi
  6. 11
      boards/renesas/ek_ra4m2/ek_ra4m2.dts
  7. 2
      boards/renesas/ek_ra4m3/doc/index.rst
  8. 9
      boards/renesas/ek_ra4m3/ek_ra4m3-pinctrl.dtsi
  9. 11
      boards/renesas/ek_ra4m3/ek_ra4m3.dts
  10. 2
      boards/renesas/ek_ra4w1/doc/index.rst
  11. 9
      boards/renesas/ek_ra4w1/ek_ra4w1-pinctrl.dtsi
  12. 11
      boards/renesas/ek_ra4w1/ek_ra4w1.dts

2
boards/renesas/ek_ra2a1/doc/index.rst

@ -86,6 +86,8 @@ hardware features: @@ -86,6 +86,8 @@ hardware features:
+-----------+------------+-------------------------------+
| ENTROPY | on-chip | entropy |
+-----------+------------+-------------------------------+
| I2C | on-chip | i2c |
+-----------+------------+-------------------------------+
The default configuration can be found in
:zephyr_file:`boards/renesas/ek_ra2a1/ek_ra2a1_defconfig`

9
boards/renesas/ek_ra2a1/ek_ra2a1-pinctrl.dtsi

@ -34,4 +34,13 @@ @@ -34,4 +34,13 @@
<RA_PSEL(RA_PSEL_GPT1, 4, 7)>;
};
};
iic0_default: iic0_default {
group1 {
/* SCL0 SDA0 */
psels = <RA_PSEL(RA_PSEL_I2C, 0, 0)>,
<RA_PSEL(RA_PSEL_I2C, 4, 1)>;
drive-strength = "medium";
};
};
};

11
boards/renesas/ek_ra2a1/ek_ra2a1.dts

@ -98,3 +98,14 @@ @@ -98,3 +98,14 @@
&trng {
status = "okay";
};
&iic0 {
pinctrl-0 = <&iic0_default>;
pinctrl-names = "default";
#address-cells = <1>;
#size-cells = <0>;
clock-frequency = <DT_FREQ_M(1)>;
interrupts = <0 1>, <1 1>, <2 1>, <3 1>;
interrupt-names = "rxi", "txi", "tei", "eri";
status = "okay";
};

2
boards/renesas/ek_ra4m2/doc/index.rst

@ -106,6 +106,8 @@ The below features are currently supported on Zephyr OS for EK-RA4M2 board: @@ -106,6 +106,8 @@ The below features are currently supported on Zephyr OS for EK-RA4M2 board:
+-----------+------------+----------------------+
| PWM | on-chip | pwm |
+-----------+------------+----------------------+
| I2C | on-chip | i2c |
+-----------+------------+----------------------+
Other hardware features are currently not supported by the port.

9
boards/renesas/ek_ra4m2/ek_ra4m2-pinctrl.dtsi

@ -37,4 +37,13 @@ @@ -37,4 +37,13 @@
<RA_PSEL(RA_PSEL_GPT1, 1, 4)>;
};
};
iic0_default: iic0_default {
group1 {
/* SCL0 SDA0 */
psels = <RA_PSEL(RA_PSEL_I2C, 4, 0)>,
<RA_PSEL(RA_PSEL_I2C, 4, 1)>;
drive-strength = "medium";
};
};
};

11
boards/renesas/ek_ra4m2/ek_ra4m2.dts

@ -124,3 +124,14 @@ @@ -124,3 +124,14 @@
interrupt-names = "gtioca", "overflow";
status = "okay";
};
&iic0 {
pinctrl-0 = <&iic0_default>;
pinctrl-names = "default";
#address-cells = <1>;
#size-cells = <0>;
clock-frequency = <DT_FREQ_M(1)>;
interrupts = <87 1>, <88 1>, <89 1>, <90 1>;
interrupt-names = "rxi", "txi", "tei", "eri";
status = "okay";
};

2
boards/renesas/ek_ra4m3/doc/index.rst

@ -108,6 +108,8 @@ The below features are currently supported on Zephyr OS for EK-RA4M3 board: @@ -108,6 +108,8 @@ The below features are currently supported on Zephyr OS for EK-RA4M3 board:
+-----------+------------+----------------------+
| PWM | on-chip | pwm |
+-----------+------------+----------------------+
| I2C | on-chip | i2c |
+-----------+------------+----------------------+
Other hardware features are currently not supported by the port.

9
boards/renesas/ek_ra4m3/ek_ra4m3-pinctrl.dtsi

@ -37,4 +37,13 @@ @@ -37,4 +37,13 @@
<RA_PSEL(RA_PSEL_GPT1, 1, 10)>;
};
};
iic0_default: iic0_default {
group1 {
/* SCL0 SDA0 */
psels = <RA_PSEL(RA_PSEL_I2C, 4, 0)>,
<RA_PSEL(RA_PSEL_I2C, 4, 1)>;
drive-strength = "medium";
};
};
};

11
boards/renesas/ek_ra4m3/ek_ra4m3.dts

@ -124,3 +124,14 @@ @@ -124,3 +124,14 @@
interrupt-names = "gtioca", "overflow";
status = "okay";
};
&iic0 {
pinctrl-0 = <&iic0_default>;
pinctrl-names = "default";
#address-cells = <1>;
#size-cells = <0>;
clock-frequency = <DT_FREQ_M(1)>;
interrupts = <87 1>, <88 1>, <89 1>, <90 1>;
interrupt-names = "rxi", "txi", "tei", "eri";
status = "okay";
};

2
boards/renesas/ek_ra4w1/doc/index.rst

@ -100,6 +100,8 @@ The below features are currently supported on Zephyr OS for EK-RA4W1 board: @@ -100,6 +100,8 @@ The below features are currently supported on Zephyr OS for EK-RA4W1 board:
+-----------+------------+----------------------+
| PWM | on-chip | pwm |
+-----------+------------+----------------------+
| I2C | on-chip | i2c |
+-----------+------------+----------------------+
Other hardware features are currently not supported by the port.

9
boards/renesas/ek_ra4w1/ek_ra4w1-pinctrl.dtsi

@ -37,4 +37,13 @@ @@ -37,4 +37,13 @@
<RA_PSEL(RA_PSEL_GPT1, 1, 4)>;
};
};
iic0_default: iic0_default {
group1 {
/* SCL0 SDA0 */
psels = <RA_PSEL(RA_PSEL_I2C, 4, 7)>,
<RA_PSEL(RA_PSEL_I2C, 2, 4)>;
drive-strength = "medium";
};
};
};

11
boards/renesas/ek_ra4w1/ek_ra4w1.dts

@ -101,3 +101,14 @@ @@ -101,3 +101,14 @@
interrupt-names = "gtioca", "overflow";
status = "okay";
};
&iic0 {
pinctrl-0 = <&iic0_default>;
pinctrl-names = "default";
#address-cells = <1>;
#size-cells = <0>;
clock-frequency = <DT_FREQ_M(1)>;
interrupts = <10 1>, <11 1>, <12 1>, <13 1>;
interrupt-names = "rxi", "txi", "tei", "eri";
status = "okay";
};

Loading…
Cancel
Save