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: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
68edf341c2
commit
f331cc5c09
5 changed files with 33 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
#include <arm/armv7-m.dtsi>
|
#include <arm/armv7-m.dtsi>
|
||||||
#include <dt-bindings/i2c/i2c.h>
|
#include <dt-bindings/i2c/i2c.h>
|
||||||
|
#include <dt-bindings/gpio/gpio.h>
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
cpus {
|
cpus {
|
||||||
|
@ -92,6 +93,8 @@
|
||||||
interrupts = <11 1>;
|
interrupts = <11 1>;
|
||||||
peripheral-id = <11>;
|
peripheral-id = <11>;
|
||||||
label = "PORTA";
|
label = "PORTA";
|
||||||
|
gpio-controller;
|
||||||
|
#gpio-cells = <2>;
|
||||||
};
|
};
|
||||||
|
|
||||||
portb: gpio@400E1000 {
|
portb: gpio@400E1000 {
|
||||||
|
@ -100,6 +103,8 @@
|
||||||
interrupts = <12 1>;
|
interrupts = <12 1>;
|
||||||
peripheral-id = <12>;
|
peripheral-id = <12>;
|
||||||
label = "PORTB";
|
label = "PORTB";
|
||||||
|
gpio-controller;
|
||||||
|
#gpio-cells = <2>;
|
||||||
};
|
};
|
||||||
|
|
||||||
portc: gpio@400E1200 {
|
portc: gpio@400E1200 {
|
||||||
|
@ -108,6 +113,8 @@
|
||||||
interrupts = <13 1>;
|
interrupts = <13 1>;
|
||||||
peripheral-id = <13>;
|
peripheral-id = <13>;
|
||||||
label = "PORTC";
|
label = "PORTC";
|
||||||
|
gpio-controller;
|
||||||
|
#gpio-cells = <2>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <arm/armv6-m.dtsi>
|
#include <arm/armv6-m.dtsi>
|
||||||
|
#include <dt-bindings/gpio/gpio.h>
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
cpus {
|
cpus {
|
||||||
|
@ -113,12 +114,16 @@
|
||||||
compatible = "atmel,sam0-gpio";
|
compatible = "atmel,sam0-gpio";
|
||||||
reg = <0x41004400 0x80>;
|
reg = <0x41004400 0x80>;
|
||||||
label = "PORTA";
|
label = "PORTA";
|
||||||
|
gpio-controller;
|
||||||
|
#gpio-cells = <2>;
|
||||||
};
|
};
|
||||||
|
|
||||||
portb: gpio@41004480 {
|
portb: gpio@41004480 {
|
||||||
compatible = "atmel,sam0-gpio";
|
compatible = "atmel,sam0-gpio";
|
||||||
reg = <0x41004480 0x80>;
|
reg = <0x41004480 0x80>;
|
||||||
label = "PORTB";
|
label = "PORTB";
|
||||||
|
gpio-controller;
|
||||||
|
#gpio-cells = <2>;
|
||||||
};
|
};
|
||||||
|
|
||||||
usb0: usb@41005000 {
|
usb0: usb@41005000 {
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
#include <arm/armv7-m.dtsi>
|
#include <arm/armv7-m.dtsi>
|
||||||
#include <dt-bindings/i2c/i2c.h>
|
#include <dt-bindings/i2c/i2c.h>
|
||||||
|
#include <dt-bindings/gpio/gpio.h>
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
cpus {
|
cpus {
|
||||||
|
@ -163,6 +164,8 @@
|
||||||
interrupts = <10 1>;
|
interrupts = <10 1>;
|
||||||
peripheral-id = <10>;
|
peripheral-id = <10>;
|
||||||
label = "PORTA";
|
label = "PORTA";
|
||||||
|
gpio-controller;
|
||||||
|
#gpio-cells = <2>;
|
||||||
};
|
};
|
||||||
|
|
||||||
portb: gpio@400E1000 {
|
portb: gpio@400E1000 {
|
||||||
|
@ -171,6 +174,8 @@
|
||||||
interrupts = <11 1>;
|
interrupts = <11 1>;
|
||||||
peripheral-id = <11>;
|
peripheral-id = <11>;
|
||||||
label = "PORTB";
|
label = "PORTB";
|
||||||
|
gpio-controller;
|
||||||
|
#gpio-cells = <2>;
|
||||||
};
|
};
|
||||||
|
|
||||||
portc: gpio@400E1200 {
|
portc: gpio@400E1200 {
|
||||||
|
@ -179,6 +184,8 @@
|
||||||
interrupts = <12 1>;
|
interrupts = <12 1>;
|
||||||
peripheral-id = <12>;
|
peripheral-id = <12>;
|
||||||
label = "PORTC";
|
label = "PORTC";
|
||||||
|
gpio-controller;
|
||||||
|
#gpio-cells = <2>;
|
||||||
};
|
};
|
||||||
|
|
||||||
portd: gpio@400E1400 {
|
portd: gpio@400E1400 {
|
||||||
|
@ -187,6 +194,8 @@
|
||||||
interrupts = <16 1>;
|
interrupts = <16 1>;
|
||||||
peripheral-id = <16>;
|
peripheral-id = <16>;
|
||||||
label = "PORTD";
|
label = "PORTD";
|
||||||
|
gpio-controller;
|
||||||
|
#gpio-cells = <2>;
|
||||||
};
|
};
|
||||||
|
|
||||||
porte: gpio@400E1600 {
|
porte: gpio@400E1600 {
|
||||||
|
@ -195,6 +204,8 @@
|
||||||
interrupts = <17 1>;
|
interrupts = <17 1>;
|
||||||
peripheral-id = <17>;
|
peripheral-id = <17>;
|
||||||
label = "PORTE";
|
label = "PORTE";
|
||||||
|
gpio-controller;
|
||||||
|
#gpio-cells = <2>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -37,3 +37,8 @@ properties:
|
||||||
description: peripheral ID
|
description: peripheral ID
|
||||||
generation: define
|
generation: define
|
||||||
category: required
|
category: required
|
||||||
|
|
||||||
|
"#cells":
|
||||||
|
- pin
|
||||||
|
- flags
|
||||||
|
...
|
||||||
|
|
|
@ -25,3 +25,8 @@ properties:
|
||||||
category: required
|
category: required
|
||||||
description: Human readable string describing the device (used by Zephyr for API name)
|
description: Human readable string describing the device (used by Zephyr for API name)
|
||||||
generation: define
|
generation: define
|
||||||
|
|
||||||
|
"#cells":
|
||||||
|
- pin
|
||||||
|
- flags
|
||||||
|
...
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue