diff --git a/dts/arm/nxp/nxp_lpc54xxx.dtsi b/dts/arm/nxp/nxp_lpc54xxx.dtsi index 8ebdc66173a..42dd7a2fb29 100644 --- a/dts/arm/nxp/nxp_lpc54xxx.dtsi +++ b/dts/arm/nxp/nxp_lpc54xxx.dtsi @@ -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 { diff --git a/dts/arm/nxp/nxp_lpc55S1x_common.dtsi b/dts/arm/nxp/nxp_lpc55S1x_common.dtsi index 66a8eedb21d..678559ffad5 100644 --- a/dts/arm/nxp/nxp_lpc55S1x_common.dtsi +++ b/dts/arm/nxp/nxp_lpc55S1x_common.dtsi @@ -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 { diff --git a/dts/arm/nxp/nxp_lpc55S2x_common.dtsi b/dts/arm/nxp/nxp_lpc55S2x_common.dtsi index c81d4ca4371..6911bca0a84 100644 --- a/dts/arm/nxp/nxp_lpc55S2x_common.dtsi +++ b/dts/arm/nxp/nxp_lpc55S2x_common.dtsi @@ -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 { diff --git a/dts/arm/nxp/nxp_lpc55S6x_common.dtsi b/dts/arm/nxp/nxp_lpc55S6x_common.dtsi index e9059a6e499..a88d1ef274f 100644 --- a/dts/arm/nxp/nxp_lpc55S6x_common.dtsi +++ b/dts/arm/nxp/nxp_lpc55S6x_common.dtsi @@ -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 { diff --git a/dts/arm/nxp/nxp_rt6xx_common.dtsi b/dts/arm/nxp/nxp_rt6xx_common.dtsi index 307814c7c64..3a374d896ca 100644 --- a/dts/arm/nxp/nxp_rt6xx_common.dtsi +++ b/dts/arm/nxp/nxp_rt6xx_common.dtsi @@ -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 { diff --git a/dts/bindings/gpio/nxp,lpc-gpio.yaml b/dts/bindings/gpio/nxp,lpc-gpio.yaml index 9bef11acc6d..e7f17fb09e5 100644 --- a/dts/bindings/gpio/nxp,lpc-gpio.yaml +++ b/dts/bindings/gpio/nxp,lpc-gpio.yaml @@ -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