gpio-xgene-sb.txt 988 B

1234567891011121314151617181920212223242526272829303132
  1. APM X-Gene Standby GPIO controller bindings
  2. This is a gpio controller in the standby domain.
  3. There are 20 GPIO pins from 0..21. There is no GPIO_DS14 or GPIO_DS15,
  4. only GPIO_DS8..GPIO_DS13 support interrupts. The IRQ mapping
  5. is currently 1-to-1 on interrupts 0x28 thru 0x2d.
  6. Required properties:
  7. - compatible: "apm,xgene-gpio-sb" for the X-Gene Standby GPIO controller
  8. - reg: Physical base address and size of the controller's registers
  9. - #gpio-cells: Should be two.
  10. - first cell is the pin number
  11. - second cell is used to specify the gpio polarity:
  12. 0 = active high
  13. 1 = active low
  14. - gpio-controller: Marks the device node as a GPIO controller.
  15. - interrupts: Shall contain exactly 6 interrupts.
  16. Example:
  17. sbgpio: sbgpio@17001000 {
  18. compatible = "apm,xgene-gpio-sb";
  19. reg = <0x0 0x17001000 0x0 0x400>;
  20. #gpio-cells = <2>;
  21. gpio-controller;
  22. interrupts = <0x0 0x28 0x1>,
  23. <0x0 0x29 0x1>,
  24. <0x0 0x2a 0x1>,
  25. <0x0 0x2b 0x1>,
  26. <0x0 0x2c 0x1>,
  27. <0x0 0x2d 0x1>;
  28. };