Skip to content

Commit 5f17a16

Browse files
soburifabiobaltieri
authored andcommitted
dts: bindings: i2c: Add RasbperryPi Pico I2C
Add Raspberry Pi Pico I2C that inheriting both DesignWare I2C device and reset device. Signed-off-by: TOKITA Hiroshi <[email protected]>
1 parent fe1c341 commit 5f17a16

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

dts/arm/rpi_pico/rp2040.dtsi

+4-2
Original file line numberDiff line numberDiff line change
@@ -138,21 +138,23 @@
138138
};
139139

140140
i2c0: i2c@40044000 {
141-
compatible = "snps,designware-i2c";
141+
compatible = "raspberrypi,pico-i2c", "snps,designware-i2c";
142142
#address-cells = <1>;
143143
#size-cells = <0>;
144144
reg = <0x40044000 DT_SIZE_K(4)>;
145+
resets = <&reset RPI_PICO_RESETS_RESET_I2C0>;
145146
clocks = <&system_clk>;
146147
interrupts = <23 RPI_PICO_DEFAULT_IRQ_PRIORITY>;
147148
interrupt-names = "i2c0";
148149
status = "disabled";
149150
};
150151

151152
i2c1: i2c@40048000 {
152-
compatible = "snps,designware-i2c";
153+
compatible = "raspberrypi,pico-i2c", "snps,designware-i2c";
153154
#address-cells = <1>;
154155
#size-cells = <0>;
155156
reg = <0x40048000 DT_SIZE_K(4)>;
157+
resets = <&reset RPI_PICO_RESETS_RESET_I2C0>;
156158
clocks = <&system_clk>;
157159
interrupts = <24 RPI_PICO_DEFAULT_IRQ_PRIORITY>;
158160
interrupt-names = "i2c1";
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
description: Raspberry Pi Pico I2C
2+
3+
compatible: "raspberrypi,pico-i2c"
4+
5+
include: ["snps,designware-i2c.yaml", "reset-device.yaml"]

0 commit comments

Comments
 (0)