Skip to content

Commit 2c2da3f

Browse files
Hau Hoquytranpzz
authored andcommitted
boards: renesas: Add I2C support for EK-RX261 board
Add I2C support for EK-RX261 board Signed-off-by: Hau Ho <[email protected]>
1 parent a3c0ca0 commit 2c2da3f

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

boards/renesas/ek_rx261/ek_rx261-pinctrl.dtsi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,11 @@
1111
<RX_PSEL(RX_PSEL_SCI_6, 11, 0)>; /* RX */
1212
};
1313
};
14+
15+
i2c0_default: i2c0_default {
16+
group1 {
17+
psels = <RX_PSEL(RX_PSEL_P1nPFS_SDA, 1, 3)>, /* SDA P13*/
18+
<RX_PSEL(RX_PSEL_P1nPFS_SCL, 1, 2)>; /* SCL P12*/
19+
};
20+
};
1421
};

boards/renesas/ek_rx261/ek_rx261.dts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,10 @@
9595
status = "okay";
9696
};
9797
};
98+
99+
&i2c0 {
100+
pinctrl-0 = <&i2c0_default>;
101+
pinctrl-names = "default";
102+
clock-frequency = <DT_FREQ_K(400)>;
103+
status = "okay";
104+
};

0 commit comments

Comments
 (0)