dts: i2c: Add missing #address-cell & #size-cell properties

The I2C controller nodes are the root of the I2C bus for that controller
and thus may have children nodes that represent the I2C devices on that
controller.  Thus we need to specify the #address-cell & #size-cell
properties.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2017-07-13 12:51:32 -05:00 committed by Kumar Gala
parent 92dacb2a62
commit a9c92ffd9a
4 changed files with 24 additions and 0 deletions

View file

@ -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";

View file

@ -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";

View file

@ -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";

View file

@ -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