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
7 changes: 7 additions & 0 deletions boards/renesas/ek_rx261/ek_rx261-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,11 @@
<RX_PSEL(RX_PSEL_SCI_6, 11, 0)>; /* RX */
};
};

i2c0_default: i2c0_default {
group1 {
psels = <RX_PSEL(RX_PSEL_P1nPFS_SDA, 1, 3)>, /* SDA P13*/
<RX_PSEL(RX_PSEL_P1nPFS_SCL, 1, 2)>; /* SCL P12*/
};
};
};
7 changes: 7 additions & 0 deletions boards/renesas/ek_rx261/ek_rx261.dts
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,10 @@
status = "okay";
};
};

&i2c0 {
pinctrl-0 = <&i2c0_default>;
pinctrl-names = "default";
clock-frequency = <DT_FREQ_K(400)>;
status = "okay";
};
7 changes: 7 additions & 0 deletions boards/renesas/fpb_rx261/fpb_rx261-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,11 @@
<RX_PSEL(RX_PSEL_SCI_5, 0xC, 0x2)>; /* RX */
};
};

i2c0_default: i2c0_default {
group1 {
psels = <RX_PSEL(RX_PSEL_P1nPFS_SDA, 1, 3)>, /* SDA P13*/
<RX_PSEL(RX_PSEL_P1nPFS_SCL, 1, 2)>; /* SCL P12*/
};
};
};
7 changes: 7 additions & 0 deletions boards/renesas/fpb_rx261/fpb_rx261.dts
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,10 @@
status = "okay";
};
};

&i2c0 {
pinctrl-0 = <&i2c0_default>;
pinctrl-names = "default";
clock-frequency = <DT_FREQ_K(400)>;
status = "okay";
};
12 changes: 12 additions & 0 deletions dts/rx/renesas/rx261-common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,18 @@
};
};

i2c0: i2c@88300 {
compatible = "renesas,rx-i2c";
#address-cells = <0x1>;
#size-cells = <0x0>;
reg = <0x88300 0x20>;
clocks = <&pclkb MSTPB 21>;
channel = <0>;
interrupts = <246 1>, <247 1>, <248 1>, <249 1>;
interrupt-names = "eei", "rxi", "txi", "tei";
status = "disabled";
};

cmt: timer@88000 {
compatible = "renesas,rx-timer-cmt-start-control";
#address-cells = <1>;
Expand Down
1 change: 1 addition & 0 deletions tests/drivers/i2c/i2c_api/boards/ek_rx261.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_SENSOR_GY271_QMC=y
11 changes: 11 additions & 0 deletions tests/drivers/i2c/i2c_api/boards/ek_rx261.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* Copyright (c) 2025 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/

/ {
aliases {
i2c-0 = &i2c0;
gy271 = &i2c0;
};
};
1 change: 1 addition & 0 deletions tests/drivers/i2c/i2c_api/boards/fpb_rx261.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_SENSOR_GY271_QMC=y
11 changes: 11 additions & 0 deletions tests/drivers/i2c/i2c_api/boards/fpb_rx261.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* Copyright (c) 2025 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/

/ {
aliases {
i2c-0 = &i2c0;
gy271 = &i2c0;
};
};
2 changes: 1 addition & 1 deletion west.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ manifest:
- hal
- name: hal_renesas
path: modules/hal/renesas
revision: a279c14e196cb0904593035888a334dcd2c720bd
revision: pull/170/head
groups:
- hal
- name: hal_rpi_pico
Expand Down
Loading