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