gpio-sprd.txt 1.1 KB

12345678910111213141516171819202122232425262728
  1. Spreadtrum GPIO controller bindings
  2. The controller's registers are organized as sets of sixteen 16-bit
  3. registers with each set controlling a bank of up to 16 pins. A single
  4. interrupt is shared for all of the banks handled by the controller.
  5. Required properties:
  6. - compatible: Should be "sprd,sc9860-gpio".
  7. - reg: Define the base and range of the I/O address space containing
  8. the GPIO controller registers.
  9. - gpio-controller: Marks the device node as a GPIO controller.
  10. - #gpio-cells: Should be <2>. The first cell is the gpio number and
  11. the second cell is used to specify optional parameters.
  12. - interrupt-controller: Marks the device node as an interrupt controller.
  13. - #interrupt-cells: Should be <2>. Specifies the number of cells needed
  14. to encode interrupt source.
  15. - interrupts: Should be the port interrupt shared by all the gpios.
  16. Example:
  17. ap_gpio: gpio@40280000 {
  18. compatible = "sprd,sc9860-gpio";
  19. reg = <0 0x40280000 0 0x1000>;
  20. gpio-controller;
  21. #gpio-cells = <2>;
  22. interrupt-controller;
  23. #interrupt-cells = <2>;
  24. interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
  25. };