zx296702-gpio.txt 802 B

123456789101112131415161718192021222324
  1. ZTE ZX296702 GPIO controller
  2. Required properties:
  3. - compatible : "zte,zx296702-gpio"
  4. - #gpio-cells : Should be two. The first cell is the pin number and the
  5. second cell is used to specify optional parameters:
  6. - bit 0 specifies polarity (0 for normal, 1 for inverted)
  7. - gpio-controller : Marks the device node as a GPIO controller.
  8. - interrupts : Interrupt mapping for GPIO IRQ.
  9. - gpio-ranges : Interaction with the PINCTRL subsystem.
  10. gpio1: gpio@b008040 {
  11. compatible = "zte,zx296702-gpio";
  12. reg = <0xb008040 0x40>;
  13. gpio-controller;
  14. #gpio-cells = <2>;
  15. gpio-ranges = < &pmx0 0 54 2 &pmx0 2 59 14>;
  16. interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
  17. interrupt-parent = <&intc>;
  18. interrupt-controller;
  19. #interrupt-cells = <2>;
  20. clock-names = "gpio_pclk";
  21. clocks = <&lsp0clk ZX296702_GPIO_CLK>;
  22. };