Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions boards/renesas/ek_ra6m4/ek_ra6m4-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@
};
};

sci2_default: sci2_default {
group1 {
/* sda scl */
psels = <RA_PSEL(RA_PSEL_SCI_2, 1, 12)>,
<RA_PSEL(RA_PSEL_SCI_2, 1, 13)>;
drive-strength = "medium";
drive-open-drain;
};
};

sci7_default: sci7_default {
group1 {
/* tx rx */
Expand Down
11 changes: 11 additions & 0 deletions boards/renesas/ek_ra6m4/ek_ra6m4.dts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,17 @@
};
};

&sci2 {
pinctrl-0 = <&sci2_default>;
pinctrl-names = "default";

i2c2: i2c {
sda-output-delay = <300>;
noise-filter-clock-select = <1>;
bit-rate-modulation;
};
};

&sci7 {
pinctrl-0 = <&sci7_default>;
pinctrl-names = "default";
Expand Down
10 changes: 10 additions & 0 deletions boards/renesas/ek_ra6m5/ek_ra6m5-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@
};
};

sci2_default: sci2_default {
group1 {
/* sda scl */
psels = <RA_PSEL(RA_PSEL_SCI_2, 1, 12)>,
<RA_PSEL(RA_PSEL_SCI_2, 1, 13)>;
drive-strength = "medium";
drive-open-drain;
};
};

sci7_default: sci7_default {
group1 {
/* tx rx */
Expand Down
11 changes: 11 additions & 0 deletions boards/renesas/ek_ra6m5/ek_ra6m5.dts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,17 @@
};
};

&sci2 {
pinctrl-0 = <&sci2_default>;
pinctrl-names = "default";

i2c2: i2c {
sda-output-delay = <300>;
noise-filter-clock-select = <1>;
bit-rate-modulation;
};
};

&sci7 {
pinctrl-0 = <&sci7_default>;
pinctrl-names = "default";
Expand Down
1 change: 1 addition & 0 deletions drivers/i2c/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ zephyr_library_sources_ifdef(CONFIG_I2C_NXP_II2C i2c_nxp_ii2c.c)
zephyr_library_sources_ifdef(CONFIG_I2C_OMAP i2c_omap.c)
zephyr_library_sources_ifdef(CONFIG_I2C_RCAR i2c_rcar.c)
zephyr_library_sources_ifdef(CONFIG_I2C_RENESAS_RA_IIC i2c_renesas_ra_iic.c)
zephyr_library_sources_ifdef(CONFIG_I2C_RENESAS_RA_SCI i2c_renesas_ra_sci.c)
zephyr_library_sources_ifdef(CONFIG_I2C_RENESAS_RA_SCI_B i2c_renesas_ra_sci_b.c)
zephyr_library_sources_ifdef(CONFIG_I2C_RENESAS_RX_RIIC i2c_renesas_rx_riic.c)
zephyr_library_sources_ifdef(CONFIG_I2C_RENESAS_RZ_IIC i2c_renesas_rz_riic.c)
Expand Down
19 changes: 19 additions & 0 deletions drivers/i2c/Kconfig.renesas_ra
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,25 @@ config I2C_RENESAS_RA_IIC
help
Enable Renesas RA I2C IIC Driver.

config I2C_RENESAS_RA_SCI
bool "Renesas RA SCI I2C"
default y
depends on DT_HAS_RENESAS_RA_I2C_SCI_ENABLED
select USE_RA_FSP_SCI_I2C
select PINCTRL
help
Enable Renesas RA SCI I2C Driver.

if I2C_RENESAS_RA_SCI
config I2C_RENESAS_RA_SCI_DTC
Comment on lines +24 to +25
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better to add a blank line between if * and the following code

bool "DTC on Transmission and Reception"
default y
select USE_RA_FSP_DTC
help
Enable DTC on transmission and reception

endif

config I2C_RENESAS_RA_SCI_B
bool "Renesas RA SCI-B I2C"
default y
Expand Down
Loading