Skip to content

Commit 56407fd

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

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

boards/renesas/fpb_rx261/fpb_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_5, 0xC, 0x2)>; /* 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/fpb_rx261/fpb_rx261.dts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,10 @@
8484
status = "okay";
8585
};
8686
};
87+
88+
&i2c0 {
89+
pinctrl-0 = <&i2c0_default>;
90+
pinctrl-names = "default";
91+
clock-frequency = <DT_FREQ_K(400)>;
92+
status = "okay";
93+
};

0 commit comments

Comments
 (0)