gpio-samsung.txt 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. };
  35. Samsung S3C24XX GPIO Controller
  36. Required properties:
  37. - compatible: Compatible property value should be "samsung,s3c24xx-gpio".
  38. - reg: Physical base address of the controller and length of memory mapped
  39. region.
  40. - #gpio-cells: Should be 3. The syntax of the gpio specifier used by client nodes
  41. should be the following with values derived from the SoC user manual.
  42. <[phandle of the gpio controller node]
  43. [pin number within the gpio controller]
  44. [mux function]
  45. [flags and pull up/down]
  46. Values for gpio specifier:
  47. - Pin number: depending on the controller a number from 0 up to 15.
  48. - Mux function: Depending on the SoC and the gpio bank the gpio can be set
  49. as input, output or a special function
  50. - Flags and Pull Up/Down: the values to use differ for the individual SoCs
  51. example S3C2416/S3C2450:
  52. 0 - Pull Up/Down Disabled.
  53. 1 - Pull Down Enabled.
  54. 2 - Pull Up Enabled.
  55. Bit 16 (0x00010000) - Input is active low.
  56. Consult the user manual for the correct values of Mux and Pull Up/Down.
  57. - gpio-controller: Specifies that the node is a gpio controller.
  58. - #address-cells: should be 1.
  59. - #size-cells: should be 1.
  60. Example:
  61. gpa: gpio-controller@56000000 {
  62. #address-cells = <1>;
  63. #size-cells = <1>;
  64. compatible = "samsung,s3c24xx-gpio";
  65. reg = <0x56000000 0x10>;
  66. #gpio-cells = <3>;
  67. gpio-controller;
  68. };