Skip to contentSkip to conversation

ARM: dts: enable GPIO-a for Broadcom NSP

PATCH Applied Yendapally Reddy Dhananjaya Reddy 4 participants 4 messages Dec 4, 2015 – Feb 11, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 3/3 ARM: dts: enable GPIO-a for Broadcom NSP

This enables the GPIO-a support for Broadcom NSP SoC

---
 arch/arm/boot/dts/bcm-nsp.dtsi | 12 ++++++++++++
 1 file changed, 12 insertions(+)
arch/arm/boot/dts/bcm-nsp.dtsi +12 -0
index 58aca27..148d79e 100644
@@ -116,4 +116,16 @@
 			status = "disabled";
 		};
 	};
+
+	gpioa: gpio at 18000020 {
+		compatible = "brcm,nsp-gpio-a";
+		reg = <0x18000020 0x70>,
+		      <0x1803f1c4 0x1c>;
+		#gpio-cells = <2>;
+		gpio-controller;
+		ngpios = <32>;
+		interrupt-controller;
+		interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
+		gpio-ranges = <&pinctrl 0 0 32>;
+	};
 };
Signature · 1 line
2.1.0
#3 lore raw
In reply to Yendapally Reddy Dhananjaya Reddy
Quoted 3 lines · Yendapally Reddy Dhananjaya Reddy

This enables the GPIO-a support for Broadcom NSP SoC

Finally applied to devicetree/next, since there was a bit of restructuring with the addition of the ranges, please verify the results look correct here:

https://github.com/Broadcom/stblinux/commit/018e4feb7584971b3dbda6daa6a8fef310cafbcb

Quoted 26 lines
---
 arch/arm/boot/dts/bcm-nsp.dtsi | 12 ++++++++++++
 1 file changed, 12 insertions(+)
arch/arm/boot/dts/bcm-nsp.dtsi +12 -0
index 58aca27..148d79e 100644
@@ -116,4 +116,16 @@
 			status = "disabled";
 		};
 	};
+
+	gpioa: gpio at 18000020 {
+		compatible = "brcm,nsp-gpio-a";
+		reg = <0x18000020 0x70>,
+		      <0x1803f1c4 0x1c>;
+		#gpio-cells = <2>;
+		gpio-controller;
+		ngpios = <32>;
+		interrupt-controller;
+		interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
+		gpio-ranges = <&pinctrl 0 0 32>;
+	};
 };
Signature · 1 line
Florian