Commit f331cc5c authored by Kumar Gala's avatar Kumar Gala Committed by Kumar Gala
Browse files

dts: atmel: Add missing GPIO properties



The gpio controllers on SAM4S, SAME70, and SAMD were missing properties
related to GPIO pin generation.  Add the missing details into the yaml
and dts files to allow boards to specific gpio pins.

Signed-off-by: default avatarKumar Gala <kumar.gala@linaro.org>
parent 68edf341
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@

#include <arm/armv7-m.dtsi>
#include <dt-bindings/i2c/i2c.h>
#include <dt-bindings/gpio/gpio.h>

/ {
	cpus {
@@ -92,6 +93,8 @@
			interrupts = <11 1>;
			peripheral-id = <11>;
			label = "PORTA";
			gpio-controller;
			#gpio-cells = <2>;
		};

		portb: gpio@400E1000 {
@@ -100,6 +103,8 @@
			interrupts = <12 1>;
			peripheral-id = <12>;
			label = "PORTB";
			gpio-controller;
			#gpio-cells = <2>;
		};

		portc: gpio@400E1200 {
@@ -108,6 +113,8 @@
			interrupts = <13 1>;
			peripheral-id = <13>;
			label = "PORTC";
			gpio-controller;
			#gpio-cells = <2>;
		};
	};
};
+5 −0
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@
 */

#include <arm/armv6-m.dtsi>
#include <dt-bindings/gpio/gpio.h>

/ {
	cpus {
@@ -113,12 +114,16 @@
			compatible = "atmel,sam0-gpio";
			reg = <0x41004400 0x80>;
			label = "PORTA";
			gpio-controller;
			#gpio-cells = <2>;
		};

		portb: gpio@41004480 {
			compatible = "atmel,sam0-gpio";
			reg = <0x41004480 0x80>;
			label = "PORTB";
			gpio-controller;
			#gpio-cells = <2>;
		};

		usb0: usb@41005000 {
+11 −0
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@

#include <arm/armv7-m.dtsi>
#include <dt-bindings/i2c/i2c.h>
#include <dt-bindings/gpio/gpio.h>

/ {
	cpus {
@@ -163,6 +164,8 @@
			interrupts = <10 1>;
			peripheral-id = <10>;
			label = "PORTA";
			gpio-controller;
			#gpio-cells = <2>;
		};

		portb: gpio@400E1000 {
@@ -171,6 +174,8 @@
			interrupts = <11 1>;
			peripheral-id = <11>;
			label = "PORTB";
			gpio-controller;
			#gpio-cells = <2>;
		};

		portc: gpio@400E1200 {
@@ -179,6 +184,8 @@
			interrupts = <12 1>;
			peripheral-id = <12>;
			label = "PORTC";
			gpio-controller;
			#gpio-cells = <2>;
		};

		portd: gpio@400E1400 {
@@ -187,6 +194,8 @@
			interrupts = <16 1>;
			peripheral-id = <16>;
			label = "PORTD";
			gpio-controller;
			#gpio-cells = <2>;
		};

		porte: gpio@400E1600 {
@@ -195,6 +204,8 @@
			interrupts = <17 1>;
			peripheral-id = <17>;
			label = "PORTE";
			gpio-controller;
			#gpio-cells = <2>;
		};
	};
};
+5 −0
Original line number Diff line number Diff line
@@ -37,3 +37,8 @@ properties:
      description: peripheral ID
      generation: define
      category: required

"#cells":
  - pin
  - flags
...
+5 −0
Original line number Diff line number Diff line
@@ -25,3 +25,8 @@ properties:
      category: required
      description: Human readable string describing the device (used by Zephyr for API name)
      generation: define

"#cells":
  - pin
  - flags
...