diff mbox series

[v1,04/15] arm: dts: ns3: add gpio node

Message ID 20200517081945.21282-5-rayagonda.kokatanur@broadcom.com
State New
Headers show
Series add basic driver support for broadcom NS3 soc | expand

Commit Message

Rayagonda Kokatanur May 17, 2020, 8:19 a.m. UTC
Add IPROC GPIO node for NS3.

Signed-off-by: Rayagonda Kokatanur <rayagonda.kokatanur at broadcom.com>
---
 arch/arm/dts/ns3-board.dts |  1 +
 arch/arm/dts/ns3.dtsi      | 23 +++++++++++++++++++++++
 2 files changed, 24 insertions(+)

Comments

Simon Glass May 25, 2020, 2:14 a.m. UTC | #1
Hi Rayagonda,

On Sun, 17 May 2020 at 02:20, Rayagonda Kokatanur
<rayagonda.kokatanur at broadcom.com> wrote:
>
> Add IPROC GPIO node for NS3.
>
> Signed-off-by: Rayagonda Kokatanur <rayagonda.kokatanur at broadcom.com>
> ---
>  arch/arm/dts/ns3-board.dts |  1 +
>  arch/arm/dts/ns3.dtsi      | 23 +++++++++++++++++++++++
>  2 files changed, 24 insertions(+)

Reviewed-by: Simon Glass <sjg at chromium.org>

If you are adding the device tree, just bring in the file all at once.

Regards,
Simon
diff mbox series

Patch

diff --git a/arch/arm/dts/ns3-board.dts b/arch/arm/dts/ns3-board.dts
index c660e74dc8..5926123379 100644
--- a/arch/arm/dts/ns3-board.dts
+++ b/arch/arm/dts/ns3-board.dts
@@ -35,6 +35,7 @@ 
 
 	aliases {
 		serial0 = &uart1;
+		gpio0 = &gpio_hsls;
 	};
 
 	chosen {
diff --git a/arch/arm/dts/ns3.dtsi b/arch/arm/dts/ns3.dtsi
index a21455515d..84464add9a 100644
--- a/arch/arm/dts/ns3.dtsi
+++ b/arch/arm/dts/ns3.dtsi
@@ -32,5 +32,28 @@ 
 			clock-frequency = <25000000>;
 			status = "disabled";
 		};
+
+		gpio_hsls: gpio at d0000 {
+			compatible = "brcm,iproc-gpio";
+			reg = <0x000d0000 0x864>;
+			ngpios = <151>;
+			#gpio-cells = <2>;
+			gpio-controller;
+			gpio-ranges = <&pinmux 0 0 16>,
+					<&pinmux 16 71 2>,
+					<&pinmux 18 131 8>,
+					<&pinmux 26 83 6>,
+					<&pinmux 32 123 4>,
+					<&pinmux 36 43 24>,
+					<&pinmux 60 89 2>,
+					<&pinmux 62 73 4>,
+					<&pinmux 66 95 28>,
+					<&pinmux 94 127 4>,
+					<&pinmux 98 139 10>,
+					<&pinmux 108 16 27>,
+					<&pinmux 135 77 6>,
+					<&pinmux 141 67 4>,
+					<&pinmux 145 149 6>;
+		};
 	};
 };