diff --git a/dts/arm/st/stm32f103Xb.dtsi b/dts/arm/st/stm32f103Xb.dtsi index 9471bafe75..740ca88f22 100644 --- a/dts/arm/st/stm32f103Xb.dtsi +++ b/dts/arm/st/stm32f103Xb.dtsi @@ -46,6 +46,8 @@ i2c1: i2c@40005400 { compatible = "st,stm32-i2c-v1"; + #address-cells = <1>; + #size-cells = <0>; reg = <0x40005400 0x400>; interrupts = <31 0>, <32 0>; interrupt-names = "event", "error"; @@ -55,6 +57,8 @@ i2c2: i2c@40005800 { compatible = "st,stm32-i2c-v1"; + #address-cells = <1>; + #size-cells = <0>; reg = <0x40005800 0x400>; interrupts = <33 0>, <34 0>; interrupt-names = "event", "error"; diff --git a/dts/arm/st/stm32f4.dtsi b/dts/arm/st/stm32f4.dtsi index d269a481c9..1988a4825c 100644 --- a/dts/arm/st/stm32f4.dtsi +++ b/dts/arm/st/stm32f4.dtsi @@ -43,6 +43,8 @@ i2c1: i2c@40005400 { compatible = "st,stm32-i2c-v1"; + #address-cells = <1>; + #size-cells = <0>; reg = <0x40005400 0x400>; interrupts = <31 0>, <32 0>; interrupt-names = "event", "error"; @@ -52,6 +54,8 @@ i2c2: i2c@40005800 { compatible = "st,stm32-i2c-v1"; + #address-cells = <1>; + #size-cells = <0>; reg = <0x40005800 0x400>; interrupts = <33 0>, <34 0>; interrupt-names = "event", "error"; @@ -61,6 +65,8 @@ i2c3: i2c@40005C00 { compatible = "st,stm32-i2c-v1"; + #address-cells = <1>; + #size-cells = <0>; reg = <0x40005C00 0x400>; interrupts = <72 0>, <73 0>; interrupt-names = "event", "error"; diff --git a/dts/arm/st/stm32l475.dtsi b/dts/arm/st/stm32l475.dtsi index de9eb75401..49a1cb92b8 100644 --- a/dts/arm/st/stm32l475.dtsi +++ b/dts/arm/st/stm32l475.dtsi @@ -59,6 +59,8 @@ i2c1: i2c@40005400 { compatible = "st,stm32-i2c-v2"; + #address-cells = <1>; + #size-cells = <0>; reg = <0x40005400 0x400>; interrupts = <31 0>, <32 0>; interrupt-names = "event", "error"; @@ -68,6 +70,8 @@ i2c2: i2c@40005800 { compatible = "st,stm32-i2c-v2"; + #address-cells = <1>; + #size-cells = <0>; reg = <0x40005800 0x400>; interrupts = <33 0>, <34 0>; interrupt-names = "event", "error"; @@ -77,6 +81,8 @@ i2c3: i2c@40005C00 { compatible = "st,stm32-i2c-v2"; + #address-cells = <1>; + #size-cells = <0>; reg = <0x40005C00 0x400>; interrupts = <72 0>, <73 0>; interrupt-names = "event", "error"; diff --git a/dts/common/yaml/i2c.yaml b/dts/common/yaml/i2c.yaml index 8f6ae26a38..480631338a 100644 --- a/dts/common/yaml/i2c.yaml +++ b/dts/common/yaml/i2c.yaml @@ -7,6 +7,14 @@ description: > This binding gives the base structures for all I2C devices properties: + - #address-cells: + type: int + category: required + description: should be 1. + - #size-cells: + type: int + category: required + description: should be 0. - clock-frequency : type: int category: optional