gpio-pca953x.txt 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. * NXP PCA953x I2C GPIO multiplexer
  2. Required properties:
  3. - compatible: Has to contain one of the following:
  4. nxp,pca9505
  5. nxp,pca9534
  6. nxp,pca9535
  7. nxp,pca9536
  8. nxp,pca9537
  9. nxp,pca9538
  10. nxp,pca9539
  11. nxp,pca9554
  12. nxp,pca9555
  13. nxp,pca9556
  14. nxp,pca9557
  15. nxp,pca9574
  16. nxp,pca9575
  17. nxp,pca9698
  18. nxp,pcal6524
  19. nxp,pcal9555a
  20. maxim,max7310
  21. maxim,max7312
  22. maxim,max7313
  23. maxim,max7315
  24. ti,pca6107
  25. ti,pca9536
  26. ti,tca6408
  27. ti,tca6416
  28. ti,tca6424
  29. ti,tca9539
  30. ti,tca9554
  31. onnn,pca9654
  32. exar,xra1202
  33. - gpio-controller: if used as gpio expander.
  34. - #gpio-cells: if used as gpio expander.
  35. - interrupt-controller: if to be used as interrupt expander.
  36. - #interrupt-cells: if to be used as interrupt expander.
  37. Optional properties:
  38. - interrupts: interrupt specifier for the device's interrupt output.
  39. - reset-gpios: GPIO specification for the RESET input. This is an
  40. active low signal to the PCA953x.
  41. - vcc-supply: power supply regulator.
  42. Example:
  43. gpio@20 {
  44. compatible = "nxp,pca9505";
  45. reg = <0x20>;
  46. pinctrl-names = "default";
  47. pinctrl-0 = <&pinctrl_pca9505>;
  48. gpio-controller;
  49. #gpio-cells = <2>;
  50. interrupt-parent = <&gpio3>;
  51. interrupts = <23 IRQ_TYPE_LEVEL_LOW>;
  52. };
  53. Example with Interrupts:
  54. gpio99: gpio@22 {
  55. compatible = "nxp,pcal6524";
  56. reg = <0x22>;
  57. interrupt-parent = <&gpio6>;
  58. interrupts = <1 IRQ_TYPE_EDGE_FALLING>; /* gpio6_161 */
  59. interrupt-controller;
  60. #interrupt-cells = <2>;
  61. vcc-supply = <&vdds_1v8_main>;
  62. gpio-controller;
  63. #gpio-cells = <2>;
  64. gpio-line-names =
  65. "hdmi-ct-hpd", "hdmi.ls-oe", "p02", "p03", "vibra", "fault2", "p06", "p07",
  66. "en-usb", "en-host1", "en-host2", "chg-int", "p14", "p15", "mic-int", "en-modem",
  67. "shdn-hs-amp", "chg-status+red", "green", "blue", "en-esata", "fault1", "p26", "p27";
  68. };
  69. ts3a227@3b {
  70. compatible = "ti,ts3a227e";
  71. reg = <0x3b>;
  72. interrupt-parent = <&gpio99>;
  73. interrupts = <14 IRQ_TYPE_EDGE_RISING>;
  74. ti,micbias = <0>; /* 2.1V */
  75. };