112514aa0SGrant LikelyBinding for dual-GPIO LED found on Network Space v2 (and parents). 212514aa0SGrant Likely 312514aa0SGrant LikelyRequired properties: 412514aa0SGrant Likely- compatible: "lacie,ns2-leds". 512514aa0SGrant Likely 612514aa0SGrant LikelyEach LED is represented as a sub-node of the ns2-leds device. 712514aa0SGrant Likely 812514aa0SGrant LikelyRequired sub-node properties: 912514aa0SGrant Likely- cmd-gpio: Command LED GPIO. See OF device-tree GPIO specification. 1012514aa0SGrant Likely- slow-gpio: Slow LED GPIO. See OF device-tree GPIO specification. 11*f7fafd08SVincent Donnefort- modes-map: A mapping between LED modes (off, on or SATA activity blinking) and 12*f7fafd08SVincent Donnefort the corresponding cmd-gpio/slow-gpio values. All the GPIO values combinations 13*f7fafd08SVincent Donnefort should be given in order to avoid having an unknown mode at driver probe time. 1412514aa0SGrant Likely 1512514aa0SGrant LikelyOptional sub-node properties: 1612514aa0SGrant Likely- label: Name for this LED. If omitted, the label is taken from the node name. 1712514aa0SGrant Likely- linux,default-trigger: Trigger assigned to the LED. 1812514aa0SGrant Likely 1912514aa0SGrant LikelyExample: 2012514aa0SGrant Likely 21*f7fafd08SVincent Donnefort#include <dt-bindings/leds/leds-ns2.h> 22*f7fafd08SVincent Donnefort 2312514aa0SGrant Likelyns2-leds { 2412514aa0SGrant Likely compatible = "lacie,ns2-leds"; 2512514aa0SGrant Likely 2612514aa0SGrant Likely blue-sata { 2712514aa0SGrant Likely label = "ns2:blue:sata"; 2812514aa0SGrant Likely slow-gpio = <&gpio0 29 0>; 2912514aa0SGrant Likely cmd-gpio = <&gpio0 30 0>; 30*f7fafd08SVincent Donnefort modes-map = <NS_V2_LED_OFF 0 1 31*f7fafd08SVincent Donnefort NS_V2_LED_ON 1 0 32*f7fafd08SVincent Donnefort NS_V2_LED_ON 0 0 33*f7fafd08SVincent Donnefort NS_V2_LED_SATA 1 1>; 3412514aa0SGrant Likely }; 3512514aa0SGrant Likely}; 36