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>
This commit is contained in:
parent
b40307d986
commit
8e18d23eb2
12 changed files with 88 additions and 0 deletions
|
|
@ -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`
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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…
Reference in a new issue