drivers: i2c: Support for RA6 devices

Add devices node that support I2C for RA6 boards

Signed-off-by: Tri Nguyen <tri.nguyen.wj@bp.renesas.com>
This commit is contained in:
Tri Nguyen 2024-10-18 09:42:43 +07:00 committed by Anas Nashif
commit c8938737c0
35 changed files with 223 additions and 0 deletions

View file

@ -94,6 +94,8 @@ The below features are currently supported on Zephyr OS for EK-RA6M1 board:
+-----------+------------+----------------------+
| CLOCK | on-chip | clock control |
+-----------+------------+----------------------+
| I2C | on-chip | i2c |
+-----------+------------+----------------------+
Other hardware features are currently not supported by the port.

View file

@ -11,4 +11,13 @@
<RA_PSEL(RA_PSEL_SCI_8, 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";
};
};
};

View file

@ -44,6 +44,17 @@
};
};
&iic0 {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
interrupts = <91 1>, <92 1>, <93 1>, <94 1>;
interrupt-names = "rxi", "txi", "tei", "eri";
clock-frequency = <DT_FREQ_M(1)>;
pinctrl-0 = <&iic0_default>;
pinctrl-names = "default";
};
&ioport1 {
status = "okay";
};

View file

@ -88,6 +88,8 @@ The below features are currently supported on Zephyr OS for EK-RA6M2 board:
+-----------+------------+----------------------+
| CLOCK | on-chip | clock control |
+-----------+------------+----------------------+
| I2C | on-chip | i2c |
+-----------+------------+----------------------+
Other hardware features are currently not supported by the port.

View file

@ -11,4 +11,13 @@
<RA_PSEL(RA_PSEL_SCI_7, 4, 2)>;
};
};
iic2_default: iic2_default {
group1 {
/* SCL2 SDA2 */
psels = <RA_PSEL(RA_PSEL_I2C, 5, 12)>,
<RA_PSEL(RA_PSEL_I2C, 5, 11)>;
drive-strength = "medium";
};
};
};

View file

@ -44,6 +44,17 @@
};
};
&iic2 {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
interrupts = <91 1>, <92 1>, <93 1>, <94 1>;
interrupt-names = "rxi", "txi", "tei", "eri";
clock-frequency = <DT_FREQ_M(1)>;
pinctrl-0 = <&iic2_default>;
pinctrl-names = "default";
};
&ioport1 {
status = "okay";
};

View file

@ -96,6 +96,8 @@ The below features are currently supported on Zephyr OS for EK-RA6M3 board:
+-----------+------------+----------------------+
| CLOCK | on-chip | clock control |
+-----------+------------+----------------------+
| I2C | on-chip | i2c |
+-----------+------------+----------------------+
Other hardware features are currently not supported by the port.

View file

@ -11,4 +11,13 @@
<RA_PSEL(RA_PSEL_SCI_8, 1, 4)>;
};
};
iic2_default: iic2_default {
group1 {
/* SCL2 SDA2 */
psels = <RA_PSEL(RA_PSEL_I2C, 5, 12)>,
<RA_PSEL(RA_PSEL_I2C, 5, 11)>;
drive-strength = "medium";
};
};
};

View file

@ -60,6 +60,17 @@
};
};
&iic2 {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
interrupts = <91 1>, <92 1>, <93 1>, <94 1>;
interrupt-names = "rxi", "txi", "tei", "eri";
clock-frequency = <DT_FREQ_M(1)>;
pinctrl-0 = <&iic2_default>;
pinctrl-names = "default";
};
&xtal {
clock-frequency = <DT_FREQ_M(24)>;
mosel = <0>;

View file

@ -101,6 +101,8 @@ The below features are currently supported on Zephyr OS for EK-RA6M4 board:
+-----------+------------+----------------------+
| CLOCK | on-chip | clock control |
+-----------+------------+----------------------+
| I2C | on-chip | i2c |
+-----------+------------+----------------------+
Other hardware features are currently not supported by the port.

View file

@ -11,4 +11,13 @@
<RA_PSEL(RA_PSEL_SCI_0, 4, 10)>;
};
};
iic1_default: iic1_default {
group1 {
/* SCL1 SDA1 */
psels = <RA_PSEL(RA_PSEL_I2C, 5, 12)>,
<RA_PSEL(RA_PSEL_I2C, 5, 11)>;
drive-strength = "medium";
};
};
};

View file

@ -52,6 +52,17 @@
};
};
&iic1 {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
interrupts = <91 1>, <92 1>, <93 1>, <94 1>;
interrupt-names = "rxi", "txi", "tei", "eri";
clock-frequency = <DT_FREQ_M(1)>;
pinctrl-0 = <&iic1_default>;
pinctrl-names = "default";
};
&ioport4 {
status = "okay";
};

View file

@ -99,6 +99,8 @@ The below features are currently supported on Zephyr OS for EK-RA6M5 board:
+-----------+------------+----------------------+
| CLOCK | on-chip | clock control |
+-----------+------------+----------------------+
| I2C | on-chip | i2c |
+-----------+------------+----------------------+
Other hardware features are currently not supported by the port.

View file

@ -11,4 +11,13 @@
<RA_PSEL(RA_PSEL_SCI_0, 4, 10)>;
};
};
iic1_default: iic1_default {
group1 {
/* SCL1 SDA1 */
psels = <RA_PSEL(RA_PSEL_I2C, 5, 12)>,
<RA_PSEL(RA_PSEL_I2C, 5, 11)>;
drive-strength = "medium";
};
};
};

View file

@ -52,6 +52,17 @@
};
};
&iic1 {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
interrupts = <91 1>, <92 1>, <93 1>, <94 1>;
interrupt-names = "rxi", "txi", "tei", "eri";
clock-frequency = <DT_FREQ_M(1)>;
pinctrl-0 = <&iic1_default>;
pinctrl-names = "default";
};
&ioport0 {
status = "okay";
};

View file

@ -83,6 +83,8 @@ The below features are currently supported on Zephyr OS for FPB-RA6E1 board:
+-----------+------------+----------------------+
| FLASH | on-chip | flash |
+-----------+------------+----------------------+
| I2C | on-chip | i2c |
+-----------+------------+----------------------+
Other hardware features are currently not supported by the port.

View file

@ -11,4 +11,13 @@
<RA_PSEL(RA_PSEL_SCI_0, 1, 0)>;
};
};
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";
};
};
};

View file

@ -48,6 +48,17 @@
};
};
&iic0 {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
interrupts = <91 1>, <92 1>, <93 1>, <94 1>;
interrupt-names = "rxi", "txi", "tei", "eri";
clock-frequency = <DT_FREQ_M(1)>;
pinctrl-0 = <&iic0_default>;
pinctrl-names = "default";
};
&ioport4 {
status = "okay";
};

View file

@ -55,6 +55,13 @@
status = "disabled";
};
};
iic2: iic2@40053200 {
compatible = "renesas,ra-iic";
channel = <2>;
reg = <0x40053200 0x100>;
status = "disabled";
};
};
clocks: clocks {

View file

@ -95,6 +95,13 @@
status = "disabled";
};
};
iic2: iic2@40053200 {
compatible = "renesas,ra-iic";
channel = <2>;
reg = <0x40053200 0x100>;
status = "disabled";
};
};
clocks: clocks {

View file

@ -185,6 +185,13 @@
status = "disabled";
};
};
iic2: iic2@4009f200 {
compatible = "renesas,ra-iic";
channel = <2>;
reg = <0x4009f200 0x100>;
status = "disabled";
};
};
clocks: clocks {

View file

@ -132,6 +132,20 @@
};
};
iic0: iic0@4009f000 {
compatible = "renesas,ra-iic";
channel = <0>;
reg = <0x4009f000 0x100>;
status = "disabled";
};
iic1: iic1@4009f100 {
compatible = "renesas,ra-iic";
channel = <1>;
reg = <0x4009f100 0x100>;
status = "disabled";
};
option_setting_ofs: option_setting_ofs@100a100 {
compatible = "zephyr,memory-region";
reg = <0x0100a100 0x18>;

View file

@ -221,6 +221,20 @@
};
};
iic0: iic0@40053000 {
compatible = "renesas,ra-iic";
channel = <0>;
reg = <0x40053000 0x100>;
status = "disabled";
};
iic1: iic1@40053100 {
compatible = "renesas,ra-iic";
channel = <1>;
reg = <0x40053100 0x100>;
status = "disabled";
};
id_code: id_code@100a150 {
compatible = "zephyr,memory-region";
reg = <0x0100a150 0x10>;

View file

@ -0,0 +1 @@
CONFIG_SENSOR_GY271_QMC=y

View file

@ -0,0 +1,6 @@
/ {
aliases {
i2c-0 = &iic0;
gy271 = &iic0;
};
};

View file

@ -0,0 +1 @@
CONFIG_SENSOR_GY271_QMC=y

View file

@ -0,0 +1,6 @@
/ {
aliases {
i2c-0 = &iic2;
gy271 = &iic2;
};
};

View file

@ -0,0 +1 @@
CONFIG_SENSOR_GY271_QMC=y

View file

@ -0,0 +1,6 @@
/ {
aliases {
i2c-0 = &iic2;
gy271 = &iic2;
};
};

View file

@ -0,0 +1 @@
CONFIG_SENSOR_GY271_QMC=y

View file

@ -0,0 +1,6 @@
/ {
aliases {
i2c-0 = &iic1;
gy271 = &iic1;
};
};

View file

@ -0,0 +1 @@
CONFIG_SENSOR_GY271_QMC=y

View file

@ -0,0 +1,6 @@
/ {
aliases {
i2c-0 = &iic1;
gy271 = &iic1;
};
};

View file

@ -0,0 +1 @@
CONFIG_SENSOR_GY271_QMC=y

View file

@ -0,0 +1,6 @@
/ {
aliases {
i2c-0 = &iic0;
gy271 = &iic0;
};
};