Back to home page

OSCL-LXR

 
 

    


0001 Binding for dual-GPIO LED found on Network Space v2 (and parents).
0002 
0003 Required properties:
0004 - compatible: "lacie,ns2-leds".
0005 
0006 Each LED is represented as a sub-node of the ns2-leds device.
0007 
0008 Required sub-node properties:
0009 - cmd-gpio: Command LED GPIO. See OF device-tree GPIO specification.
0010 - slow-gpio: Slow LED GPIO. See OF device-tree GPIO specification.
0011 - modes-map: A mapping between LED modes (off, on or SATA activity blinking) and
0012   the corresponding cmd-gpio/slow-gpio values. All the GPIO values combinations
0013   should be given in order to avoid having an unknown mode at driver probe time.
0014 
0015 Optional sub-node properties:
0016 - label: Name for this LED. If omitted, the label is taken from the node name.
0017 - linux,default-trigger: Trigger assigned to the LED.
0018 
0019 Example:
0020 
0021 #include <dt-bindings/leds/leds-ns2.h>
0022 
0023 ns2-leds {
0024         compatible = "lacie,ns2-leds";
0025 
0026         blue-sata {
0027                 label = "ns2:blue:sata";
0028                 slow-gpio = <&gpio0 29 0>;
0029                 cmd-gpio = <&gpio0 30 0>;
0030                 modes-map = <NS_V2_LED_OFF  0 1
0031                              NS_V2_LED_ON   1 0
0032                              NS_V2_LED_ON   0 0
0033                              NS_V2_LED_SATA 1 1>;
0034         };
0035 };