From 5f17a16ef480936ab2c6f66d86fde81cead1087d Mon Sep 17 00:00:00 2001 From: TOKITA Hiroshi Date: Fri, 8 Sep 2023 20:20:13 +0900 Subject: [PATCH] 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 --- dts/arm/rpi_pico/rp2040.dtsi | 6 ++++-- dts/bindings/i2c/raspberrypi,pico-i2c.yaml | 5 +++++ 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 dts/bindings/i2c/raspberrypi,pico-i2c.yaml diff --git a/dts/arm/rpi_pico/rp2040.dtsi b/dts/arm/rpi_pico/rp2040.dtsi index 24c0a3e7bae017..131c59a1b1b0c2 100644 --- a/dts/arm/rpi_pico/rp2040.dtsi +++ b/dts/arm/rpi_pico/rp2040.dtsi @@ -138,10 +138,11 @@ }; 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"; @@ -149,10 +150,11 @@ }; 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"; diff --git a/dts/bindings/i2c/raspberrypi,pico-i2c.yaml b/dts/bindings/i2c/raspberrypi,pico-i2c.yaml new file mode 100644 index 00000000000000..ac055dcfd591d1 --- /dev/null +++ b/dts/bindings/i2c/raspberrypi,pico-i2c.yaml @@ -0,0 +1,5 @@ +description: Raspberry Pi Pico I2C + +compatible: "raspberrypi,pico-i2c" + +include: ["snps,designware-i2c.yaml", "reset-device.yaml"]