tca6507.txt 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. LEDs connected to tca6507
  2. Required properties:
  3. - compatible : should be : "ti,tca6507".
  4. - #address-cells: must be 1
  5. - #size-cells: must be 0
  6. - reg: typically 0x45.
  7. Optional properties:
  8. - gpio-controller: allows lines to be used as output-only GPIOs.
  9. - #gpio-cells: if present, must not be 0.
  10. Each led is represented as a sub-node of the ti,tca6507 device.
  11. LED sub-node properties:
  12. - label : (optional) see Documentation/devicetree/bindings/leds/common.txt
  13. - reg : number of LED line (could be from 0 to 6)
  14. - linux,default-trigger : (optional)
  15. see Documentation/devicetree/bindings/leds/common.txt
  16. - compatible: either "led" (the default) or "gpio".
  17. Examples:
  18. tca6507@45 {
  19. compatible = "ti,tca6507";
  20. #address-cells = <1>;
  21. #size-cells = <0>;
  22. reg = <0x45>;
  23. gpio-controller;
  24. #gpio-cells = <2>;
  25. led0: red-aux@0 {
  26. label = "red:aux";
  27. reg = <0x0>;
  28. };
  29. led1: green-aux@1 {
  30. label = "green:aux";
  31. reg = <0x5>;
  32. linux,default-trigger = "default-on";
  33. };
  34. wifi-reset@6 {
  35. reg = <0x6>;
  36. compatible = "gpio";
  37. };
  38. };