renesas,gpio-rcar.txt 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. * Renesas R-Car GPIO Controller
  2. Required Properties:
  3. - compatible: should be one of the following.
  4. - "renesas,gpio-r8a7778": for R8A7778 (R-Mobile M1) compatible GPIO controller.
  5. - "renesas,gpio-r8a7779": for R8A7779 (R-Car H1) compatible GPIO controller.
  6. - "renesas,gpio-r8a7790": for R8A7790 (R-Car H2) compatible GPIO controller.
  7. - "renesas,gpio-rcar": for generic R-Car GPIO controller.
  8. - reg: Base address and length of each memory resource used by the GPIO
  9. controller hardware module.
  10. - interrupt-parent: phandle of the parent interrupt controller.
  11. - interrupts: Interrupt specifier for the controllers interrupt.
  12. - gpio-controller: Marks the device node as a gpio controller.
  13. - #gpio-cells: Should be 2. The first cell is the GPIO number and the second
  14. cell specifies GPIO flags, as defined in <dt-bindings/gpio/gpio.h>. Only the
  15. GPIO_ACTIVE_HIGH and GPIO_ACTIVE_LOW flags are supported.
  16. - gpio-ranges: Range of pins managed by the GPIO controller.
  17. Please refer to gpio.txt in this directory for details of gpio-ranges property
  18. and the common GPIO bindings used by client devices.
  19. Example: R8A7779 (R-Car H1) GPIO controller nodes
  20. gpio0: gpio@ffc40000 {
  21. compatible = "renesas,gpio-r8a7779", "renesas,gpio-rcar";
  22. reg = <0xffc40000 0x2c>;
  23. interrupt-parent = <&gic>;
  24. interrupts = <0 141 0x4>;
  25. #gpio-cells = <2>;
  26. gpio-controller;
  27. gpio-ranges = <&pfc 0 0 32>;
  28. };
  29. ...
  30. gpio6: gpio@ffc46000 {
  31. compatible = "renesas,gpio-r8a7779", "renesas,gpio-rcar";
  32. reg = <0xffc46000 0x2c>;
  33. interrupt-parent = <&gic>;
  34. interrupts = <0 147 0x4>;
  35. #gpio-cells = <2>;
  36. gpio-controller;
  37. gpio-ranges = <&pfc 0 192 9>;
  38. };