drivers: i2c: Add config I2C for EK-RA8D1 and MCK-RA8T1
Add config support I2C for EK-RA8D1 and MCK-RA8T1. Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
This commit is contained in:
parent
c8938737c0
commit
8e46d26106
10 changed files with 68 additions and 0 deletions
|
@ -110,6 +110,8 @@ The below features are currently supported on Zephyr OS for EK-RA8D1 board:
|
||||||
+--------------+------------+------------------+
|
+--------------+------------+------------------+
|
||||||
| CAN | on-chip | canfd |
|
| CAN | on-chip | canfd |
|
||||||
+--------------+------------+------------------+
|
+--------------+------------+------------------+
|
||||||
|
| I2C | on-chip | i2c |
|
||||||
|
+--------------+------------+------------------+
|
||||||
|
|
||||||
Other hardware features are currently not supported by the port.
|
Other hardware features are currently not supported by the port.
|
||||||
|
|
||||||
|
|
|
@ -45,4 +45,12 @@
|
||||||
drive-strength = "high";
|
drive-strength = "high";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
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";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -152,3 +152,11 @@
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&iic1 {
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <0>;
|
||||||
|
clock-frequency = <DT_FREQ_M(1)>;
|
||||||
|
pinctrl-0 = <&iic1_default>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
};
|
||||||
|
|
|
@ -108,6 +108,8 @@ The below features are currently supported on Zephyr OS for MCB-RA8T1 board:
|
||||||
+--------------+------------+----------------------+
|
+--------------+------------+----------------------+
|
||||||
| CAN | on-chip | canfd |
|
| CAN | on-chip | canfd |
|
||||||
+--------------+------------+----------------------+
|
+--------------+------------+----------------------+
|
||||||
|
| I2C | on-chip | i2c |
|
||||||
|
+--------------+------------+----------------------+
|
||||||
|
|
||||||
Other hardware features are currently not supported by the port.
|
Other hardware features are currently not supported by the port.
|
||||||
|
|
||||||
|
|
|
@ -45,4 +45,12 @@
|
||||||
drive-strength = "high";
|
drive-strength = "high";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
iic1_default: iic1_default {
|
||||||
|
group1 {
|
||||||
|
/* SCL1 SDA1*/
|
||||||
|
psels = <RA_PSEL(RA_PSEL_I2C, 2, 5)>,<RA_PSEL(RA_PSEL_I2C, 2, 6)>;
|
||||||
|
drive-strength = "medium";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -145,3 +145,11 @@
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&iic1 {
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <0>;
|
||||||
|
clock-frequency = <DT_FREQ_M(1)>;
|
||||||
|
pinctrl-0 = <&iic1_default>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
};
|
||||||
|
|
1
tests/drivers/i2c/i2c_api/boards/ek_ra8d1.conf
Normal file
1
tests/drivers/i2c/i2c_api/boards/ek_ra8d1.conf
Normal file
|
@ -0,0 +1 @@
|
||||||
|
CONFIG_SENSOR_GY271_QMC=y
|
15
tests/drivers/i2c/i2c_api/boards/ek_ra8d1.overlay
Normal file
15
tests/drivers/i2c/i2c_api/boards/ek_ra8d1.overlay
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2024 Renesas Electronics Corporation
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/ {
|
||||||
|
aliases {
|
||||||
|
i2c-0 = &iic1;
|
||||||
|
gy271 = &iic1;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&iic1 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
1
tests/drivers/i2c/i2c_api/boards/mck_ra8t1.conf
Normal file
1
tests/drivers/i2c/i2c_api/boards/mck_ra8t1.conf
Normal file
|
@ -0,0 +1 @@
|
||||||
|
CONFIG_SENSOR_GY271_QMC=y
|
15
tests/drivers/i2c/i2c_api/boards/mck_ra8t1.overlay
Normal file
15
tests/drivers/i2c/i2c_api/boards/mck_ra8t1.overlay
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2024 Renesas Electronics Corporation
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/ {
|
||||||
|
aliases {
|
||||||
|
i2c-0 = &iic1;
|
||||||
|
gy271 = &iic1;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&iic1 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
Loading…
Add table
Add a link
Reference in a new issue