brintos

brintos / linux-shallow public Read only

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