050-leds_tlc59116_document_binding.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. Document the binding for the TLC59116 LED driver.
  2. Signed-off-by: Andrew Lunn <andrew@lunn.ch>
  3. ---
  4. .../devicetree/bindings/leds/leds-tlc59116.txt | 40 ++++++++++++++++++++++
  5. 1 file changed, 40 insertions(+)
  6. create mode 100644 Documentation/devicetree/bindings/leds/leds-tlc59116.txt
  7. --- /dev/null
  8. +++ b/Documentation/devicetree/bindings/leds/leds-tlc59116.txt
  9. @@ -0,0 +1,40 @@
  10. +LEDs connected to tcl59116
  11. +
  12. +Required properties
  13. +- compatible: should be "ti,tlc59116"
  14. +- #address-cells: must be 1
  15. +- #size-cells: must be 0
  16. +- reg: typically 0x68
  17. +
  18. +Each led is represented as a sub-node of the ti,,tlc59116.
  19. +See Documentation/devicetree/bindings/leds/common.txt
  20. +
  21. +LED sub-node properties:
  22. +- reg: number of LED line, 0 to 15
  23. +- label: (optional) name of LED
  24. +- linux,default-trigger : (optional)
  25. +
  26. +Examples:
  27. +
  28. +tlc59116@68 {
  29. + #address-cells = <1>;
  30. + #size-cells = <0>;
  31. + compatible = "ti,tlc59116";
  32. + reg = <0x68>;
  33. +
  34. + wan@0 {
  35. + label = "wrt1900ac:amber:wan";
  36. + reg = <0x0>;
  37. + };
  38. +
  39. + 2g@2 {
  40. + label = "wrt1900ac:white:2g";
  41. + reg = <0x2>;
  42. + };
  43. +
  44. + alive@9 {
  45. + label = "wrt1900ac:green:alive";
  46. + reg = <0x9>;
  47. + linux,default_trigger = "heartbeat";
  48. + };
  49. +};