gpio-ts4900.txt 894 B

12345678910111213141516171819202122232425262728293031
  1. * Technologic Systems I2C-FPGA's GPIO controller bindings
  2. This bindings describes the GPIO controller for Technologic's FPGA core.
  3. TS-4900's FPGA encodes the GPIO state on 3 bits, whereas the TS-7970's FPGA
  4. uses 2 bits: it doesn't use a dedicated input bit.
  5. Required properties:
  6. - compatible: Should be one of the following
  7. "technologic,ts4900-gpio"
  8. "technologic,ts7970-gpio"
  9. - reg: Physical base address of the controller and length
  10. of memory mapped region.
  11. - #gpio-cells: Should be two. The first cell is the pin number.
  12. - gpio-controller: Marks the device node as a gpio controller.
  13. Optional property:
  14. - ngpios: Number of GPIOs this controller is instantiated with,
  15. the default is 32. See gpio.txt for more details.
  16. Example:
  17. &i2c2 {
  18. gpio8: gpio@28 {
  19. compatible = "technologic,ts4900-gpio";
  20. reg = <0x28>;
  21. #gpio-cells = <2>;
  22. gpio-controller;
  23. ngpios = <32>;
  24. };
  25. };