gpio-samsung.txt 1.2 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. [flags and pull up/down]
  12. [drive strength]>
  13. Values for gpio specifier:
  14. - Pin number: is a value between 0 to 7.
  15. - Flags and Pull Up/Down: 0 - Pull Up/Down Disabled.
  16. 1 - Pull Down Enabled.
  17. 3 - Pull Up Enabled.
  18. Bit 16 (0x00010000) - Input is active low.
  19. - Drive Strength: 0 - 1x,
  20. 1 - 3x,
  21. 2 - 2x,
  22. 3 - 4x
  23. - gpio-controller: Specifies that the node is a gpio controller.
  24. - #address-cells: should be 1.
  25. - #size-cells: should be 1.
  26. Example:
  27. gpa0: gpio-controller@11400000 {
  28. #address-cells = <1>;
  29. #size-cells = <1>;
  30. compatible = "samsung,exynos4-gpio";
  31. reg = <0x11400000 0x20>;
  32. #gpio-cells = <4>;
  33. gpio-controller;
  34. };