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:
parent
110c81f2f7
commit
c8938737c0
35 changed files with 223 additions and 0 deletions
|
@ -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.
|
||||
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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>;
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
|
|
|
@ -55,6 +55,13 @@
|
|||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
iic2: iic2@40053200 {
|
||||
compatible = "renesas,ra-iic";
|
||||
channel = <2>;
|
||||
reg = <0x40053200 0x100>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
clocks: clocks {
|
||||
|
|
|
@ -95,6 +95,13 @@
|
|||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
iic2: iic2@40053200 {
|
||||
compatible = "renesas,ra-iic";
|
||||
channel = <2>;
|
||||
reg = <0x40053200 0x100>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
clocks: clocks {
|
||||
|
|
|
@ -185,6 +185,13 @@
|
|||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
iic2: iic2@4009f200 {
|
||||
compatible = "renesas,ra-iic";
|
||||
channel = <2>;
|
||||
reg = <0x4009f200 0x100>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
clocks: clocks {
|
||||
|
|
|
@ -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>;
|
||||
|
|
|
@ -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>;
|
||||
|
|
1
tests/drivers/i2c/i2c_api/boards/ek_ra6m1.conf
Normal file
1
tests/drivers/i2c/i2c_api/boards/ek_ra6m1.conf
Normal file
|
@ -0,0 +1 @@
|
|||
CONFIG_SENSOR_GY271_QMC=y
|
6
tests/drivers/i2c/i2c_api/boards/ek_ra6m1.overlay
Normal file
6
tests/drivers/i2c/i2c_api/boards/ek_ra6m1.overlay
Normal file
|
@ -0,0 +1,6 @@
|
|||
/ {
|
||||
aliases {
|
||||
i2c-0 = &iic0;
|
||||
gy271 = &iic0;
|
||||
};
|
||||
};
|
1
tests/drivers/i2c/i2c_api/boards/ek_ra6m2.conf
Normal file
1
tests/drivers/i2c/i2c_api/boards/ek_ra6m2.conf
Normal file
|
@ -0,0 +1 @@
|
|||
CONFIG_SENSOR_GY271_QMC=y
|
6
tests/drivers/i2c/i2c_api/boards/ek_ra6m2.overlay
Normal file
6
tests/drivers/i2c/i2c_api/boards/ek_ra6m2.overlay
Normal file
|
@ -0,0 +1,6 @@
|
|||
/ {
|
||||
aliases {
|
||||
i2c-0 = &iic2;
|
||||
gy271 = &iic2;
|
||||
};
|
||||
};
|
1
tests/drivers/i2c/i2c_api/boards/ek_ra6m3.conf
Normal file
1
tests/drivers/i2c/i2c_api/boards/ek_ra6m3.conf
Normal file
|
@ -0,0 +1 @@
|
|||
CONFIG_SENSOR_GY271_QMC=y
|
6
tests/drivers/i2c/i2c_api/boards/ek_ra6m3.overlay
Normal file
6
tests/drivers/i2c/i2c_api/boards/ek_ra6m3.overlay
Normal file
|
@ -0,0 +1,6 @@
|
|||
/ {
|
||||
aliases {
|
||||
i2c-0 = &iic2;
|
||||
gy271 = &iic2;
|
||||
};
|
||||
};
|
1
tests/drivers/i2c/i2c_api/boards/ek_ra6m4.conf
Normal file
1
tests/drivers/i2c/i2c_api/boards/ek_ra6m4.conf
Normal file
|
@ -0,0 +1 @@
|
|||
CONFIG_SENSOR_GY271_QMC=y
|
6
tests/drivers/i2c/i2c_api/boards/ek_ra6m4.overlay
Normal file
6
tests/drivers/i2c/i2c_api/boards/ek_ra6m4.overlay
Normal file
|
@ -0,0 +1,6 @@
|
|||
/ {
|
||||
aliases {
|
||||
i2c-0 = &iic1;
|
||||
gy271 = &iic1;
|
||||
};
|
||||
};
|
1
tests/drivers/i2c/i2c_api/boards/ek_ra6m5.conf
Normal file
1
tests/drivers/i2c/i2c_api/boards/ek_ra6m5.conf
Normal file
|
@ -0,0 +1 @@
|
|||
CONFIG_SENSOR_GY271_QMC=y
|
6
tests/drivers/i2c/i2c_api/boards/ek_ra6m5.overlay
Normal file
6
tests/drivers/i2c/i2c_api/boards/ek_ra6m5.overlay
Normal file
|
@ -0,0 +1,6 @@
|
|||
/ {
|
||||
aliases {
|
||||
i2c-0 = &iic1;
|
||||
gy271 = &iic1;
|
||||
};
|
||||
};
|
1
tests/drivers/i2c/i2c_api/boards/fpb_ra6e1.conf
Normal file
1
tests/drivers/i2c/i2c_api/boards/fpb_ra6e1.conf
Normal file
|
@ -0,0 +1 @@
|
|||
CONFIG_SENSOR_GY271_QMC=y
|
6
tests/drivers/i2c/i2c_api/boards/fpb_ra6e1.overlay
Normal file
6
tests/drivers/i2c/i2c_api/boards/fpb_ra6e1.overlay
Normal file
|
@ -0,0 +1,6 @@
|
|||
/ {
|
||||
aliases {
|
||||
i2c-0 = &iic0;
|
||||
gy271 = &iic0;
|
||||
};
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue