[PATCH 2/2] Documentation: gpio: Update description for X-Gene standby GPIO controller DTS binding

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Signed-off-by: Y Vo <yvo@xxxxxxx>
---
 .../devicetree/bindings/gpio/gpio-xgene-sb.txt     |   26 ++++++++++++++-----
 1 files changed, 19 insertions(+), 7 deletions(-)

diff --git a/Documentation/devicetree/bindings/gpio/gpio-xgene-sb.txt b/Documentation/devicetree/bindings/gpio/gpio-xgene-sb.txt
index dae1300..bee1347 100644
--- a/Documentation/devicetree/bindings/gpio/gpio-xgene-sb.txt
+++ b/Documentation/devicetree/bindings/gpio/gpio-xgene-sb.txt
@@ -3,8 +3,11 @@ APM X-Gene Standby GPIO controller bindings
 This is a gpio controller in the standby domain.
 
 There are 20 GPIO pins from 0..21. There is no GPIO_DS14 or GPIO_DS15,
-only GPIO_DS8..GPIO_DS13 support interrupts. The IRQ mapping
+only GPIO_DS8..GPIO_DS13 support external interrupts. The IRQ mapping
 is currently 1-to-1 on interrupts 0x28 thru 0x2d.
+GPIO pins from GPIO_DS8 to GPIO_DS13 are configured as external interrupt
+by default. If one wish not to use any of these pins as external interrupts,
+the corresponding interrupt resource for those pins should be removed.
 
 Required properties:
 - compatible: "apm,xgene-gpio-sb" for the X-Gene Standby GPIO controller
@@ -23,10 +26,19 @@ Example:
 		reg = <0x0 0x17001000 0x0 0x400>;
 		#gpio-cells = <2>;
 		gpio-controller;
-		interrupts = 	<0x0 0x28 0x1>,
-				<0x0 0x29 0x1>,
-				<0x0 0x2a 0x1>,
-				<0x0 0x2b 0x1>,
-				<0x0 0x2c 0x1>,
-				<0x0 0x2d 0x1>;
+		interrupts = 	<0x0 0x28 0x1>,		/* GPIO_DS8 */
+				<0x0 0x29 0x1>,		/* GPIO_DS9 */
+				<0x0 0x2a 0x1>,		/* GPIO_DS10 */
+				<0x0 0x2b 0x1>,		/* GPIO_DS11 */
+				<0x0 0x2c 0x1>,		/* GPIO_DS12 */
+				<0x0 0x2d 0x1>;		/* GPIO_DS13 */
 	};
+
+/* Board-specific: exclude GPIO_DS8 to leave it as GPIO */
+&sbgpio {
+	interrupts =	<0x0 0x29 0x1>,		/* GPIO_DS9 */
+			<0x0 0x2a 0x1>,		/* GPIO_DS10 */
+			<0x0 0x2b 0x1>,		/* GPIO_DS11 */
+			<0x0 0x2c 0x1>,		/* GPIO_DS12 */
+			<0x0 0x2d 0x1>;		/* GPIO_DS13 */
+}
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux