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