Skip to content

Commit

Permalink
dts: bindings: gpio: atmel,sam0-gpio: Add hw id prop
Browse files Browse the repository at this point in the history
Add DT HW ID for Atmel SAM0 GPIO driver.

Signed-off-by: Gerson Fernando Budke <[email protected]>
  • Loading branch information
nandojve committed Mar 9, 2020
1 parent 7d7da18 commit b36c80c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dts/arm/atmel/samd.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@

porta: gpio@41004400 {
compatible = "atmel,sam0-gpio";
id = <0>;
reg = <0x41004400 0x80>;
label = "PORTA";
gpio-controller;
Expand All @@ -158,6 +159,7 @@
portb: gpio@41004480 {
compatible = "atmel,sam0-gpio";
reg = <0x41004480 0x80>;
id = <1>;
label = "PORTB";
gpio-controller;
#gpio-cells = <2>;
Expand Down
4 changes: 4 additions & 0 deletions dts/arm/atmel/samd5x.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@

porta: gpio@41008000 {
compatible = "atmel,sam0-gpio";
id = <0>;
reg = <0x41008000 0x80>;
label = "PORTA";
gpio-controller;
Expand All @@ -207,6 +208,7 @@

portb: gpio@41008080 {
compatible = "atmel,sam0-gpio";
id = <1>;
reg = <0x41008080 0x80>;
label = "PORTB";
gpio-controller;
Expand All @@ -215,6 +217,7 @@

portc: gpio@41008100 {
compatible = "atmel,sam0-gpio";
id = <2>;
reg = <0x41008100 0x80>;
label = "PORTC";
gpio-controller;
Expand All @@ -223,6 +226,7 @@

portd: gpio@41008180 {
compatible = "atmel,sam0-gpio";
id = <3>;
reg = <0x41008180 0x80>;
label = "PORTD";
gpio-controller;
Expand Down
1 change: 1 addition & 0 deletions dts/arm/atmel/samr21.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

portc: gpio@41004500 {
compatible = "atmel,sam0-gpio";
id = <2>;
reg = <0x41004500 0x80>;
label = "PORTC";
gpio-controller;
Expand Down
3 changes: 3 additions & 0 deletions dts/bindings/gpio/atmel,sam0-gpio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ compatible: "atmel,sam0-gpio"
include: [gpio-controller.yaml, base.yaml]

properties:
id:
required: true

reg:
required: true

Expand Down

0 comments on commit b36c80c

Please sign in to comment.