dts: arm: nxp: Add port property to nxp,lpc-gpio nodes

Add a port property to describe which hardware port a GPIO device node
is describing since we can't tell from the registers (as the registers
are interleaved in the same MMIO space).

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2021-05-28 10:24:59 -05:00 committed by Carles Cufí
parent 1d0de7afc1
commit 5fcbe5e099
6 changed files with 18 additions and 0 deletions

View File

@ -102,6 +102,7 @@
label = "GPIO_0";
gpio-controller;
#gpio-cells = <2>;
port = <0>;
};
gpio1: gpio@1 {
@ -111,6 +112,7 @@
label = "GPIO_1";
gpio-controller;
#gpio-cells = <2>;
port = <1>;
};
mailbox0:mailbox@4008b000 {

View File

@ -122,6 +122,7 @@
label = "GPIO_0";
gpio-controller;
#gpio-cells = <2>;
port = <0>;
};
gpio1: gpio@1 {
@ -131,6 +132,7 @@
label = "GPIO_1";
gpio-controller;
#gpio-cells = <2>;
port = <1>;
};
flexcomm0: flexcomm@86000 {

View File

@ -123,6 +123,7 @@
label = "GPIO_0";
gpio-controller;
#gpio-cells = <2>;
port = <0>;
};
gpio1: gpio@1 {
@ -132,6 +133,7 @@
label = "GPIO_1";
gpio-controller;
#gpio-cells = <2>;
port = <1>;
};
dma0: dma-controller@82000 {

View File

@ -137,6 +137,7 @@
label = "GPIO_0";
gpio-controller;
#gpio-cells = <2>;
port = <0>;
};
gpio1: gpio@1 {
@ -146,6 +147,7 @@
label = "GPIO_1";
gpio-controller;
#gpio-cells = <2>;
port = <1>;
};
dma0: dma-controller@82000 {

View File

@ -73,6 +73,7 @@
label = "GPIO_0";
gpio-controller;
#gpio-cells = <2>;
port = <0>;
};
gpio1: gpio@1 {
@ -82,6 +83,7 @@
label = "GPIO_1";
gpio-controller;
#gpio-cells = <2>;
port = <1>;
};
flexspi: spi@134000 {

View File

@ -17,6 +17,14 @@ properties:
"#gpio-cells":
const: 2
port:
type: int
required: true
description: The GPIO port this node describes
enum:
- 0
- 1
gpio-cells:
- pin
- flags