162306a36Sopenharmony_ciBinding for dual-GPIO LED found on Network Space v2 (and parents). 262306a36Sopenharmony_ci 362306a36Sopenharmony_ciRequired properties: 462306a36Sopenharmony_ci- compatible: "lacie,ns2-leds". 562306a36Sopenharmony_ci 662306a36Sopenharmony_ciEach LED is represented as a sub-node of the ns2-leds device. 762306a36Sopenharmony_ci 862306a36Sopenharmony_ciRequired sub-node properties: 962306a36Sopenharmony_ci- cmd-gpio: Command LED GPIO. See OF device-tree GPIO specification. 1062306a36Sopenharmony_ci- slow-gpio: Slow LED GPIO. See OF device-tree GPIO specification. 1162306a36Sopenharmony_ci- modes-map: A mapping between LED modes (off, on or SATA activity blinking) and 1262306a36Sopenharmony_ci the corresponding cmd-gpio/slow-gpio values. All the GPIO values combinations 1362306a36Sopenharmony_ci should be given in order to avoid having an unknown mode at driver probe time. 1462306a36Sopenharmony_ci 1562306a36Sopenharmony_ciOptional sub-node properties: 1662306a36Sopenharmony_ci- label: Name for this LED. If omitted, the label is taken from the node name. 1762306a36Sopenharmony_ci- linux,default-trigger: Trigger assigned to the LED. 1862306a36Sopenharmony_ci 1962306a36Sopenharmony_ciExample: 2062306a36Sopenharmony_ci 2162306a36Sopenharmony_ci#include <dt-bindings/leds/leds-ns2.h> 2262306a36Sopenharmony_ci 2362306a36Sopenharmony_cins2-leds { 2462306a36Sopenharmony_ci compatible = "lacie,ns2-leds"; 2562306a36Sopenharmony_ci 2662306a36Sopenharmony_ci blue-sata { 2762306a36Sopenharmony_ci label = "ns2:blue:sata"; 2862306a36Sopenharmony_ci slow-gpio = <&gpio0 29 0>; 2962306a36Sopenharmony_ci cmd-gpio = <&gpio0 30 0>; 3062306a36Sopenharmony_ci modes-map = <NS_V2_LED_OFF 0 1 3162306a36Sopenharmony_ci NS_V2_LED_ON 1 0 3262306a36Sopenharmony_ci NS_V2_LED_ON 0 0 3362306a36Sopenharmony_ci NS_V2_LED_SATA 1 1>; 3462306a36Sopenharmony_ci }; 3562306a36Sopenharmony_ci}; 36