diff --git a/dts/arm/atmel/samd.dtsi b/dts/arm/atmel/samd.dtsi index 8b537304bc4541..52dfe33e70bdfb 100644 --- a/dts/arm/atmel/samd.dtsi +++ b/dts/arm/atmel/samd.dtsi @@ -149,6 +149,7 @@ porta: gpio@41004400 { compatible = "atmel,sam0-gpio"; + id = <0>; reg = <0x41004400 0x80>; label = "PORTA"; gpio-controller; @@ -158,6 +159,7 @@ portb: gpio@41004480 { compatible = "atmel,sam0-gpio"; reg = <0x41004480 0x80>; + id = <1>; label = "PORTB"; gpio-controller; #gpio-cells = <2>; diff --git a/dts/arm/atmel/samd5x.dtsi b/dts/arm/atmel/samd5x.dtsi index d1d67bb1b60362..892faa79fe25b8 100644 --- a/dts/arm/atmel/samd5x.dtsi +++ b/dts/arm/atmel/samd5x.dtsi @@ -199,6 +199,7 @@ porta: gpio@41008000 { compatible = "atmel,sam0-gpio"; + id = <0>; reg = <0x41008000 0x80>; label = "PORTA"; gpio-controller; @@ -207,6 +208,7 @@ portb: gpio@41008080 { compatible = "atmel,sam0-gpio"; + id = <1>; reg = <0x41008080 0x80>; label = "PORTB"; gpio-controller; @@ -215,6 +217,7 @@ portc: gpio@41008100 { compatible = "atmel,sam0-gpio"; + id = <2>; reg = <0x41008100 0x80>; label = "PORTC"; gpio-controller; @@ -223,6 +226,7 @@ portd: gpio@41008180 { compatible = "atmel,sam0-gpio"; + id = <3>; reg = <0x41008180 0x80>; label = "PORTD"; gpio-controller; diff --git a/dts/arm/atmel/samr21.dtsi b/dts/arm/atmel/samr21.dtsi index 49c1b4239b929e..e55ab6fcdf33d0 100644 --- a/dts/arm/atmel/samr21.dtsi +++ b/dts/arm/atmel/samr21.dtsi @@ -31,6 +31,7 @@ portc: gpio@41004500 { compatible = "atmel,sam0-gpio"; + id = <2>; reg = <0x41004500 0x80>; label = "PORTC"; gpio-controller; diff --git a/dts/bindings/gpio/atmel,sam0-gpio.yaml b/dts/bindings/gpio/atmel,sam0-gpio.yaml index 6365f367241841..7ef92cce0de8c1 100644 --- a/dts/bindings/gpio/atmel,sam0-gpio.yaml +++ b/dts/bindings/gpio/atmel,sam0-gpio.yaml @@ -5,6 +5,9 @@ compatible: "atmel,sam0-gpio" include: [gpio-controller.yaml, base.yaml] properties: + id: + required: true + reg: required: true