[PATCH v3 2/2] Add documentation for tca6507 devicetree bindings.
Grant Likely
grant.likely at secretlab.ca
Fri Nov 16 05:12:34 EST 2012
On Mon, 12 Nov 2012 22:25:11 +0100, Marek Belisko <marek.belisko at open-nandra.com> wrote:
> Signed-off-by: Marek Belisko <marek.belisko at open-nandra.com>
> ---
> Documentation/devicetree/bindings/leds/tca6507.txt | 40 ++++++++++++++++++++
> 1 file changed, 40 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/leds/tca6507.txt
>
> diff --git a/Documentation/devicetree/bindings/leds/tca6507.txt b/Documentation/devicetree/bindings/leds/tca6507.txt
> new file mode 100644
> index 0000000..a49eb0c
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/leds/tca6507.txt
> @@ -0,0 +1,40 @@
> +LEDs conected to tca6507
> +
> +Required properties:
> +- compatible : should be : "ti,tca6507".
> +
> +Each led is represented as a sub-node of the ti,tca6507 device.
> +
> +LED sub-node properties:
> +- label : label for this LED
> +- reg : number of LED line (could be from 0 to 6)
> +- linux,default-trigger : (optional) This parameter, if present, is a
> + string defining the trigger assigned to the LED. Current triggers are:
> + "backlight" - LED will act as a back-light, controlled by the framebuffer
> + system
> + "default-on" - LED will turn on
> + "heartbeat" - LED "double" flashes at a load average based rate
> + "ide-disk" - LED indicates disk activity
> + "timer" - LED flashes at a fixed, configurable rate
This is cut-and-paste from bindings/gpio/led.txt. It should be split
into a separate file and referenced by both bindings. Otherwise the
binding looks fine.
> +
> +Examples:
> +
> +tca6507 at 45 {
> + compatible = "ti,tca6507";
> + #address-cells = <1>;
> + #size-cells = <0>;
> + reg = <0x45>;
> +
> + led0: red_aux at 0 {
> + label = "red:aux";
> + reg = <0x0>;
> + };
> +
> + led1: green_aux at 1 {
Don't use underscores in node names. Use '-'. (There isn't a technical
reason for this. It is just convention)
g.
More information about the devicetree-discuss
mailing list