gpio-samsung.txt 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. Samsung Exynos4 GPIO Controller
  2. Required properties:
  3. - compatible: Compatible property value should be "samsung,exynos4-gpio>".
  4. - reg: Physical base address of the controller and length of memory mapped
  5. region.
  6. - #gpio-cells: Should be 4. The syntax of the gpio specifier used by client nodes
  7. should be the following with values derived from the SoC user manual.
  8. <[phandle of the gpio controller node]
  9. [pin number within the gpio controller]
  10. [mux function]
  11. [pull up/down]
  12. [drive strength]>
  13. Values for gpio specifier:
  14. - Pin number: is a value between 0 to 7.
  15. - Pull Up/Down: 0 - Pull Up/Down Disabled.
  16. 1 - Pull Down Enabled.
  17. 3 - Pull Up Enabled.
  18. - Drive Strength: 0 - 1x,
  19. 1 - 3x,
  20. 2 - 2x,
  21. 3 - 4x
  22. - gpio-controller: Specifies that the node is a gpio controller.
  23. - #address-cells: should be 1.
  24. - #size-cells: should be 1.
  25. Example:
  26. gpa0: gpio-controller@11400000 {
  27. #address-cells = <1>;
  28. #size-cells = <1>;
  29. compatible = "samsung,exynos4-gpio";
  30. reg = <0x11400000 0x20>;
  31. #gpio-cells = <4>;
  32. gpio-controller;
  33. };