Skip to content

Commit

Permalink
dts: bindings: i2c: Add RasbperryPi Pico I2C
Browse files Browse the repository at this point in the history
Add Raspberry Pi Pico I2C that inheriting both DesignWare I2C
device and reset device.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
  • Loading branch information
soburi authored and fabiobaltieri committed Sep 11, 2023
1 parent fe1c341 commit 5f17a16
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dts/arm/rpi_pico/rp2040.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -138,21 +138,23 @@
};

i2c0: i2c@40044000 {
compatible = "snps,designware-i2c";
compatible = "raspberrypi,pico-i2c", "snps,designware-i2c";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x40044000 DT_SIZE_K(4)>;
resets = <&reset RPI_PICO_RESETS_RESET_I2C0>;
clocks = <&system_clk>;
interrupts = <23 RPI_PICO_DEFAULT_IRQ_PRIORITY>;
interrupt-names = "i2c0";
status = "disabled";
};

i2c1: i2c@40048000 {
compatible = "snps,designware-i2c";
compatible = "raspberrypi,pico-i2c", "snps,designware-i2c";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x40048000 DT_SIZE_K(4)>;
resets = <&reset RPI_PICO_RESETS_RESET_I2C0>;
clocks = <&system_clk>;
interrupts = <24 RPI_PICO_DEFAULT_IRQ_PRIORITY>;
interrupt-names = "i2c1";
Expand Down
5 changes: 5 additions & 0 deletions dts/bindings/i2c/raspberrypi,pico-i2c.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
description: Raspberry Pi Pico I2C

compatible: "raspberrypi,pico-i2c"

include: ["snps,designware-i2c.yaml", "reset-device.yaml"]

0 comments on commit 5f17a16

Please sign in to comment.