1LEDs connected to Broadcom BCM6858 controller
2
3This controller is present on BCM6858, BCM6328, BCM6362 and BCM63268.
4In these SoCs it's possible to control LEDs both as GPIOs or by hardware.
5
6Required properties:
7  - compatible : should be "brcm,bcm6858-leds".
8  - #address-cells : must be 1.
9  - #size-cells : must be 0.
10  - reg : BCM6858 LED controller address and size.
11
12Optional properties:
13  - brcm,serial-led-msb-first : Boolean, msb data come out first on serial data pin
14    Default : false
15  - brcm,serial-led-en-pol : Boolean, serial led polarity (true => active high)
16    Default : false
17  - brcm,serial-led-clk-pol : Boolean, serial clock polarity (true => active high)
18    Default : false
19  - brcm,serial-led-data-ppol : Boolean, serial data polarity (true => active high)
20    Default : false
21  - brcm,serial-shift-inv : Boolean, led test mode
22    Default : false
23
24Each LED is represented as a sub-node of the brcm,bcm6858-leds device.
25
26LED sub-node required properties:
27  - reg : LED pin number (only LEDs 0 to 32 are valid).
28
29LED sub-node optional properties:
30  - label : see Documentation/devicetree/bindings/leds/common.txt
31  - active-low : Boolean, makes LED active low.
32    Default : false
33
34Examples:
35BCM6328 with 2 GPIO LEDs
36	leds0: led-controller@ff800800 {
37		compatible = "brcm,bcm6858-leds";
38		#address-cells = <1>;
39		#size-cells = <0>;
40		reg = <0x0 0xff800800 0x0 0xe4>;
41
42		led@2 {
43			reg = <2>;
44			label = "green:inet";
45		};
46
47		led@5 {
48			reg = <5>;
49			label = "red:alarm";
50		};
51	};
52