18c2ecf20Sopenharmony_ciBinding for dual-GPIO LED found on Network Space v2 (and parents). 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciRequired properties: 48c2ecf20Sopenharmony_ci- compatible: "lacie,ns2-leds". 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ciEach LED is represented as a sub-node of the ns2-leds device. 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ciRequired sub-node properties: 98c2ecf20Sopenharmony_ci- cmd-gpio: Command LED GPIO. See OF device-tree GPIO specification. 108c2ecf20Sopenharmony_ci- slow-gpio: Slow LED GPIO. See OF device-tree GPIO specification. 118c2ecf20Sopenharmony_ci- modes-map: A mapping between LED modes (off, on or SATA activity blinking) and 128c2ecf20Sopenharmony_ci the corresponding cmd-gpio/slow-gpio values. All the GPIO values combinations 138c2ecf20Sopenharmony_ci should be given in order to avoid having an unknown mode at driver probe time. 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ciOptional sub-node properties: 168c2ecf20Sopenharmony_ci- label: Name for this LED. If omitted, the label is taken from the node name. 178c2ecf20Sopenharmony_ci- linux,default-trigger: Trigger assigned to the LED. 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ciExample: 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci#include <dt-bindings/leds/leds-ns2.h> 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_cins2-leds { 248c2ecf20Sopenharmony_ci compatible = "lacie,ns2-leds"; 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ci blue-sata { 278c2ecf20Sopenharmony_ci label = "ns2:blue:sata"; 288c2ecf20Sopenharmony_ci slow-gpio = <&gpio0 29 0>; 298c2ecf20Sopenharmony_ci cmd-gpio = <&gpio0 30 0>; 308c2ecf20Sopenharmony_ci modes-map = <NS_V2_LED_OFF 0 1 318c2ecf20Sopenharmony_ci NS_V2_LED_ON 1 0 328c2ecf20Sopenharmony_ci NS_V2_LED_ON 0 0 338c2ecf20Sopenharmony_ci NS_V2_LED_SATA 1 1>; 348c2ecf20Sopenharmony_ci }; 358c2ecf20Sopenharmony_ci}; 36