Skip to content

Commit f874253

Browse files
maass-hamburgkartben
authored andcommitted
boards: litex: vexriscv: add litei2c controller
add litei2c controller. Signed-off-by: Fin Maaß <[email protected]>
1 parent f7a0a54 commit f874253

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

boards/enjoydigital/litex_vexriscv/litex_vexriscv.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@
7272
status = "okay";
7373
};
7474

75+
&i2c1 {
76+
status = "okay";
77+
};
78+
7579
&pwm0 {
7680
status = "okay";
7781
};

dts/riscv/riscv32-litex-vexriscv.dtsi

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,25 @@
236236
#size-cells = <0>;
237237
status = "disabled";
238238
};
239+
i2c1: i2c@e000d800 {
240+
compatible = "litex,litei2c";
241+
reg = <0xe000d800 0x4>,
242+
<0xe000d804 0x4>,
243+
<0xe000d808 0x4>,
244+
<0xe000d80c 0x4>,
245+
<0xe000d810 0x4>,
246+
<0xe000d814 0x4>;
247+
reg-names = "phy_speed_mode",
248+
"master_active",
249+
"master_settings",
250+
"master_addr",
251+
"master_rxtx",
252+
"master_status";
253+
clock-frequency = <I2C_BITRATE_STANDARD>;
254+
#address-cells = <1>;
255+
#size-cells = <0>;
256+
status = "disabled";
257+
};
239258
gpio_out: gpio@e0005800 {
240259
compatible = "litex,gpio";
241260
reg = <0xe0005800 0x4>;

0 commit comments

Comments
 (0)