gpio-mpc8xxx.txt 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. * Freescale MPC512x/MPC8xxx/QorIQ/Layerscape GPIO controller
  2. Required properties:
  3. - compatible : Should be "fsl,<soc>-gpio"
  4. The following <soc>s are known to be supported:
  5. mpc5121, mpc5125, mpc8349, mpc8572, mpc8610, pq3, qoriq,
  6. ls1021a, ls1043a, ls2080a.
  7. - reg : Address and length of the register set for the device
  8. - interrupts : Should be the port interrupt shared by all 32 pins.
  9. - #gpio-cells : Should be two. The first cell is the pin number and
  10. the second cell is used to specify the gpio polarity:
  11. 0 = active high
  12. 1 = active low
  13. Optional properties:
  14. - little-endian : GPIO registers are used as little endian. If not
  15. present registers are used as big endian by default.
  16. Example of gpio-controller node for a mpc5125 SoC:
  17. gpio0: gpio@1100 {
  18. compatible = "fsl,mpc5125-gpio";
  19. #gpio-cells = <2>;
  20. reg = <0x1100 0x080>;
  21. interrupts = <78 0x8>;
  22. };
  23. Example of gpio-controller node for a ls2080a SoC:
  24. gpio0: gpio@2300000 {
  25. compatible = "fsl,ls2080a-gpio", "fsl,qoriq-gpio";
  26. reg = <0x0 0x2300000 0x0 0x10000>;
  27. interrupts = <0 36 0x4>; /* Level high type */
  28. gpio-controller;
  29. little-endian;
  30. #gpio-cells = <2>;
  31. interrupt-controller;
  32. #interrupt-cells = <2>;
  33. };