gpio.txt 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. Every GPIO controller node must have #gpio-cells property defined,
  2. this information will be used to translate gpio-specifiers.
  3. On CPM1 devices, all ports are using slightly different register layouts.
  4. Ports A, C and D are 16bit ports and Ports B and E are 32bit ports.
  5. On CPM2 devices, all ports are 32bit ports and use a common register layout.
  6. Required properties:
  7. - compatible : "fsl,cpm1-pario-bank-a", "fsl,cpm1-pario-bank-b",
  8. "fsl,cpm1-pario-bank-c", "fsl,cpm1-pario-bank-d",
  9. "fsl,cpm1-pario-bank-e", "fsl,cpm2-pario-bank"
  10. - #gpio-cells : Should be two. The first cell is the pin number and the
  11. second cell is used to specify optional parameters (currently unused).
  12. - gpio-controller : Marks the port as GPIO controller.
  13. Example of three SOC GPIO banks defined as gpio-controller nodes:
  14. CPM1_PIO_A: gpio-controller@950 {
  15. #gpio-cells = <2>;
  16. compatible = "fsl,cpm1-pario-bank-a";
  17. reg = <0x950 0x10>;
  18. gpio-controller;
  19. };
  20. CPM1_PIO_B: gpio-controller@ab8 {
  21. #gpio-cells = <2>;
  22. compatible = "fsl,cpm1-pario-bank-b";
  23. reg = <0xab8 0x10>;
  24. gpio-controller;
  25. };
  26. CPM1_PIO_E: gpio-controller@ac8 {
  27. #gpio-cells = <2>;
  28. compatible = "fsl,cpm1-pario-bank-e";
  29. reg = <0xac8 0x18>;
  30. gpio-controller;
  31. };