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:
Khoa Nguyen 2024-08-26 14:56:13 +07:00 committed by Anas Nashif
commit 8e46d26106
10 changed files with 68 additions and 0 deletions

View file

@ -110,6 +110,8 @@ The below features are currently supported on Zephyr OS for EK-RA8D1 board:
+--------------+------------+------------------+
| CAN | on-chip | canfd |
+--------------+------------+------------------+
| I2C | on-chip | i2c |
+--------------+------------+------------------+
Other hardware features are currently not supported by the port.

View file

@ -45,4 +45,12 @@
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";
};
};
};

View file

@ -152,3 +152,11 @@
status = "okay";
};
};
&iic1 {
#address-cells = <1>;
#size-cells = <0>;
clock-frequency = <DT_FREQ_M(1)>;
pinctrl-0 = <&iic1_default>;
pinctrl-names = "default";
};

View file

@ -108,6 +108,8 @@ The below features are currently supported on Zephyr OS for MCB-RA8T1 board:
+--------------+------------+----------------------+
| CAN | on-chip | canfd |
+--------------+------------+----------------------+
| I2C | on-chip | i2c |
+--------------+------------+----------------------+
Other hardware features are currently not supported by the port.

View file

@ -45,4 +45,12 @@
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";
};
};
};

View file

@ -145,3 +145,11 @@
status = "okay";
};
};
&iic1 {
#address-cells = <1>;
#size-cells = <0>;
clock-frequency = <DT_FREQ_M(1)>;
pinctrl-0 = <&iic1_default>;
pinctrl-names = "default";
};

View file

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

View 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";
};

View file

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

View 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";
};