gpio-74x164.txt 735 B

123456789101112131415161718192021222324252627
  1. * Generic 8-bits shift register GPIO driver
  2. Required properties:
  3. - compatible: Should contain one of the following:
  4. "fairchild,74hc595"
  5. "nxp,74lvc594"
  6. - reg : chip select number
  7. - gpio-controller : Marks the device node as a gpio controller.
  8. - #gpio-cells : Should be two. The first cell is the pin number and
  9. the second cell is used to specify the gpio polarity:
  10. 0 = active high
  11. 1 = active low
  12. - registers-number: Number of daisy-chained shift registers
  13. Optional properties:
  14. - enable-gpios: GPIO connected to the OE (Output Enable) pin.
  15. Example:
  16. gpio5: gpio5@0 {
  17. compatible = "fairchild,74hc595";
  18. reg = <0>;
  19. gpio-controller;
  20. #gpio-cells = <2>;
  21. registers-number = <4>;
  22. spi-max-frequency = <100000>;
  23. };