leds-pca955x.txt 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. * NXP - pca955x LED driver
  2. The PCA955x family of chips are I2C LED blinkers whose pins not used
  3. to control LEDs can be used as general purpose I/Os. The GPIO pins can
  4. be input or output, and output pins can also be pulse-width controlled.
  5. Required properties:
  6. - compatible : should be one of :
  7. "nxp,pca9550"
  8. "nxp,pca9551"
  9. "nxp,pca9552"
  10. "ibm,pca9552"
  11. "nxp,pca9553"
  12. - #address-cells: must be 1
  13. - #size-cells: must be 0
  14. - reg: I2C slave address. depends on the model.
  15. Optional properties:
  16. - gpio-controller: allows pins to be used as GPIOs.
  17. - #gpio-cells: must be 2.
  18. - gpio-line-names: define the names of the GPIO lines
  19. LED sub-node properties:
  20. - reg : number of LED line.
  21. from 0 to 1 for the pca9550
  22. from 0 to 7 for the pca9551
  23. from 0 to 15 for the pca9552
  24. from 0 to 3 for the pca9553
  25. - type: (optional) either
  26. PCA955X_TYPE_NONE
  27. PCA955X_TYPE_LED
  28. PCA955X_TYPE_GPIO
  29. see dt-bindings/leds/leds-pca955x.h (default to LED)
  30. - label : (optional)
  31. see Documentation/devicetree/bindings/leds/common.txt
  32. - linux,default-trigger : (optional)
  33. see Documentation/devicetree/bindings/leds/common.txt
  34. Examples:
  35. pca9552: pca9552@60 {
  36. compatible = "nxp,pca9552";
  37. #address-cells = <1>;
  38. #size-cells = <0>;
  39. reg = <0x60>;
  40. gpio-controller;
  41. #gpio-cells = <2>;
  42. gpio-line-names = "GPIO12", "GPIO13", "GPIO14", "GPIO15";
  43. gpio@12 {
  44. reg = <12>;
  45. type = <PCA955X_TYPE_GPIO>;
  46. };
  47. gpio@13 {
  48. reg = <13>;
  49. type = <PCA955X_TYPE_GPIO>;
  50. };
  51. gpio@14 {
  52. reg = <14>;
  53. type = <PCA955X_TYPE_GPIO>;
  54. };
  55. gpio@15 {
  56. reg = <15>;
  57. type = <PCA955X_TYPE_GPIO>;
  58. };
  59. led@0 {
  60. label = "red:power";
  61. linux,default-trigger = "default-on";
  62. reg = <0>;
  63. type = <PCA955X_TYPE_LED>;
  64. };
  65. led@1 {
  66. label = "green:power";
  67. reg = <1>;
  68. type = <PCA955X_TYPE_LED>;
  69. };
  70. led@2 {
  71. label = "pca9552:yellow";
  72. reg = <2>;
  73. type = <PCA955X_TYPE_LED>;
  74. };
  75. led@3 {
  76. label = "pca9552:white";
  77. reg = <3>;
  78. type = <PCA955X_TYPE_LED>;
  79. };
  80. };