leds-ns2.txt 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. Binding for dual-GPIO LED found on Network Space v2 (and parents).
  2. Required properties:
  3. - compatible: "lacie,ns2-leds".
  4. Each LED is represented as a sub-node of the ns2-leds device.
  5. Required sub-node properties:
  6. - cmd-gpio: Command LED GPIO. See OF device-tree GPIO specification.
  7. - slow-gpio: Slow LED GPIO. See OF device-tree GPIO specification.
  8. - modes-map: A mapping between LED modes (off, on or SATA activity blinking) and
  9. the corresponding cmd-gpio/slow-gpio values. All the GPIO values combinations
  10. should be given in order to avoid having an unknown mode at driver probe time.
  11. Optional sub-node properties:
  12. - label: Name for this LED. If omitted, the label is taken from the node name.
  13. - linux,default-trigger: Trigger assigned to the LED.
  14. Example:
  15. #include <dt-bindings/leds/leds-ns2.h>
  16. ns2-leds {
  17. compatible = "lacie,ns2-leds";
  18. blue-sata {
  19. label = "ns2:blue:sata";
  20. slow-gpio = <&gpio0 29 0>;
  21. cmd-gpio = <&gpio0 30 0>;
  22. modes-map = <NS_V2_LED_OFF 0 1
  23. NS_V2_LED_ON 1 0
  24. NS_V2_LED_ON 0 0
  25. NS_V2_LED_SATA 1 1>;
  26. };
  27. };