gpio-xra1403.txt 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. GPIO Driver for XRA1403 16-BIT GPIO Expander With Reset Input from EXAR
  2. The XRA1403 is an 16-bit GPIO expander with an SPI interface. Features available:
  3. - Individually programmable inputs:
  4. - Internal pull-up resistors
  5. - Polarity inversion
  6. - Individual interrupt enable
  7. - Rising edge and/or Falling edge interrupt
  8. - Input filter
  9. - Individually programmable outputs
  10. - Output Level Control
  11. - Output Three-State Control
  12. Properties
  13. ----------
  14. Check documentation for SPI and GPIO controllers regarding properties needed to configure the node.
  15. - compatible = "exar,xra1403".
  16. - reg - SPI id of the device.
  17. - gpio-controller - marks the node as gpio.
  18. - #gpio-cells - should be two where the first cell is the pin number
  19. and the second one is used for optional parameters.
  20. Optional properties:
  21. -------------------
  22. - reset-gpios: in case available used to control the device reset line.
  23. - interrupt-controller - marks the node as interrupt controller.
  24. - #interrupt-cells - should be two and represents the number of cells
  25. needed to encode interrupt source.
  26. Example
  27. --------
  28. gpioxra0: gpio@2 {
  29. compatible = "exar,xra1403";
  30. reg = <2>;
  31. gpio-controller;
  32. #gpio-cells = <2>;
  33. interrupt-controller;
  34. #interrupt-cells = <2>;
  35. reset-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
  36. spi-max-frequency = <1000000>;
  37. };