]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - Documentation/devicetree/bindings/gpio/gpio-davinci.txt
Merge remote-tracking branch 'chrome-platform/for-next'
[karo-tx-linux.git] / Documentation / devicetree / bindings / gpio / gpio-davinci.txt
index a2e839d6e338b5e15c31e951b30dd72615099ad3..5079ba7d65681dfa0b48a3874de414fec9a99189 100644 (file)
@@ -1,13 +1,17 @@
-Davinci GPIO controller bindings
+Davinci/Keystone GPIO controller bindings
 
 Required Properties:
-- compatible: should be "ti,dm6441-gpio"
+- compatible: should be "ti,dm6441-gpio", "ti,keystone-gpio"
 
 - reg: Physical base address of the controller and the size of memory mapped
        registers.
 
 - gpio-controller : Marks the device node as a gpio controller.
 
+- #gpio-cells : Should be two.
+  - first cell is the pin number
+  - second cell is used to specify optional parameters (unused)
+
 - interrupt-parent: phandle of the parent interrupt controller.
 
 - interrupts: Array of GPIO interrupt number. Only banked or unbanked IRQs are
@@ -27,6 +31,7 @@ Example:
 gpio: gpio@1e26000 {
        compatible = "ti,dm6441-gpio";
        gpio-controller;
+       #gpio-cells = <2>;
        reg = <0x226000 0x1000>;
        interrupt-parent = <&intc>;
        interrupts = <42 IRQ_TYPE_EDGE_BOTH 43 IRQ_TYPE_EDGE_BOTH
@@ -39,3 +44,19 @@ gpio: gpio@1e26000 {
        interrupt-controller;
        #interrupt-cells = <2>;
 };
+
+leds {
+       compatible = "gpio-leds";
+
+       led1 {
+               label = "davinci:green:usr1";
+               gpios = <&gpio 10 GPIO_ACTIVE_HIGH>;
+               ...
+       };
+
+       led2 {
+               label = "davinci:red:debug1";
+               gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
+               ...
+       };
+};