Skip to content

Commit 010f6b4

Browse files
duynguyenxaquytranpzz
authored andcommitted
boards: renesas: Add support for I2C node on board RSK-RX130
This commit add support for I2C node on RSK-RX130 board Signed-off-by: Duy Nguyen <[email protected]>
1 parent 8daf28c commit 010f6b4

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

boards/renesas/rsk_rx130/rsk_rx130.dts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,10 @@
8181
status = "okay";
8282
};
8383
};
84+
85+
&i2c0 {
86+
pinctrl-0 = <&i2c0_default>;
87+
pinctrl-names = "default";
88+
clock-frequency = <DT_FREQ_K(400)>;
89+
status = "okay";
90+
};

boards/renesas/rsk_rx130/rsk_rx130_512kb-pinctrl.dtsi

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,16 @@
55
*/
66

77
&pinctrl {
8-
sci1_default: sci1_default {
8+
sci1_default: sci1_default {
99
group1 {
1010
psels = <RX_PSEL(RX_PSEL_SCI_1, 2, 6)>, /* TX */
1111
<RX_PSEL(RX_PSEL_SCI_1, 3, 0)>; /* RX */
1212
};
1313
};
14+
i2c0_default: i2c0_default {
15+
group1 {
16+
psels = <RX_PSEL(RX_PSEL_P1nPFS_SDA, 1, 3)>, /* SDA P13*/
17+
<RX_PSEL(RX_PSEL_P1nPFS_SCL, 1, 2)>; /* SCL P12*/
18+
};
19+
};
1420
};

boards/renesas/rsk_rx130/rsk_rx130_512kb.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ supported:
1111
- gpio
1212
- serial
1313
- timer
14+
- i2c
1415
ram: 48
1516
flash: 512

0 commit comments

Comments
 (0)