leds-bcm6858.txt 1.5 KB

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