[PATCH 1/4] leds: leds-ns2: add device tree binding
arnd at arndb.de
Tue Oct 16 09:02:39 EDT 2012
On Monday 15 October 2012, Simon Guinot wrote:
> diff --git a/Documentation/devicetree/bindings/gpio/leds-ns2.txt b/Documentation/devicetree/bindings/gpio/leds-ns2.txt
> new file mode 100644
> index 0000000..1a84969
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/gpio/leds-ns2.txt
> @@ -0,0 +1,26 @@
> +Binding for dual-GPIO LED found on Network Space v2 (and parents).
> +Required properties:
> +- compatible: "ns2-leds".
> +Each LED is represented as a sub-node of the ns2-leds device.
> +Required sub-node properties:
> +- cmd-gpio: Command LED GPIO. See OF device-tree GPIO specification.
> +- slow-gpio: Slow LED GPIO. See OF device-tree GPIO specification.
> +Optional sub-node properties:
> +- label: Name for this LED. If omitted, the label is taken from the node name.
> +- linux,default-trigger: Trigger assigned to the LED.
I'm not overly familiar with the LED subsystem, but isn't this something
that could be done with the generic gpio-led driver?
If not, is it possible to extend that driver in a way to make it possible
and remove the leds-ns2 driver?
More information about the linux-arm-kernel