brcm,kona-gpio.txt 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. Broadcom Kona Family GPIO
  2. =========================
  3. This GPIO driver is used in the following Broadcom SoCs:
  4. BCM11130, BCM11140, BCM11351, BCM28145, BCM28155
  5. The Broadcom GPIO Controller IP can be configured prior to synthesis to
  6. support up to 8 banks of 32 GPIOs where each bank has its own IRQ. The
  7. GPIO controller only supports edge, not level, triggering of interrupts.
  8. Required properties
  9. -------------------
  10. - compatible: "brcm,bcm11351-gpio", "brcm,kona-gpio"
  11. - reg: Physical base address and length of the controller's registers.
  12. - interrupts: The interrupt outputs from the controller. There is one GPIO
  13. interrupt per GPIO bank. The number of interrupts listed depends on the
  14. number of GPIO banks on the SoC. The interrupts must be ordered by bank,
  15. starting with bank 0. There is always a 1:1 mapping between banks and
  16. IRQs.
  17. - #gpio-cells: Should be <2>. The first cell is the pin number, the second
  18. cell is used to specify optional parameters:
  19. - bit 0 specifies polarity (0 for normal, 1 for inverted)
  20. See also "gpio-specifier" in .../devicetree/bindings/gpio/gpio.txt.
  21. - #interrupt-cells: Should be <2>. The first cell is the GPIO number. The
  22. second cell is used to specify flags. The following subset of flags is
  23. supported:
  24. - trigger type (bits[1:0]):
  25. 1 = low-to-high edge triggered.
  26. 2 = high-to-low edge triggered.
  27. 3 = low-to-high or high-to-low edge triggered
  28. Valid values are 1, 2, 3
  29. See also .../devicetree/bindings/interrupt-controller/interrupts.txt.
  30. - gpio-controller: Marks the device node as a GPIO controller.
  31. - interrupt-controller: Marks the device node as an interrupt controller.
  32. Example:
  33. gpio: gpio@35003000 {
  34. compatible = "brcm,bcm11351-gpio", "brcm,kona-gpio";
  35. reg = <0x35003000 0x800>;
  36. interrupts =
  37. <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH
  38. GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH
  39. GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH
  40. GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH
  41. GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH
  42. GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH>;
  43. #gpio-cells = <2>;
  44. #interrupt-cells = <2>;
  45. gpio-controller;
  46. interrupt-controller;
  47. };