pinctrl-vt8500.txt 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. VIA VT8500 and Wondermedia WM8xxx-series pinmux/gpio controller
  2. These SoCs contain a combined Pinmux/GPIO module. Each pin may operate as
  3. either a GPIO in, GPIO out or as an alternate function (I2C, SPI etc).
  4. Required properties:
  5. - compatible: "via,vt8500-pinctrl", "wm,wm8505-pinctrl", "wm,wm8650-pinctrl",
  6. "wm8750-pinctrl" or "wm,wm8850-pinctrl"
  7. - reg: Should contain the physical address of the module's registers.
  8. - interrupt-controller: Marks the device node as an interrupt controller.
  9. - #interrupt-cells: Should be two.
  10. - gpio-controller: Marks the device node as a GPIO controller.
  11. - #gpio-cells : Should be two. The first cell is the pin number and the
  12. second cell is used to specify optional parameters.
  13. bit 0 - active low
  14. Please refer to ../gpio/gpio.txt for a general description of GPIO bindings.
  15. Please refer to pinctrl-bindings.txt in this directory for details of the
  16. common pinctrl bindings used by client devices, including the meaning of the
  17. phrase "pin configuration node".
  18. Each pin configuration node lists the pin(s) to which it applies, and one or
  19. more of the mux functions to select on those pin(s), and pull-up/down
  20. configuration. Each subnode only affects those parameters that are explicitly
  21. listed. In other words, a subnode that lists only a mux function implies no
  22. information about any pull configuration. Similarly, a subnode that lists only
  23. a pull parameter implies no information about the mux function.
  24. Required subnode-properties:
  25. - wm,pins: An array of cells. Each cell contains the ID of a pin.
  26. Optional subnode-properties:
  27. - wm,function: Integer, containing the function to mux to the pin(s):
  28. 0: GPIO in
  29. 1: GPIO out
  30. 2: alternate
  31. - wm,pull: Integer, representing the pull-down/up to apply to the pin(s):
  32. 0: none
  33. 1: down
  34. 2: up
  35. Each of wm,function and wm,pull may contain either a single value which
  36. will be applied to all pins in wm,pins, or one value for each entry in
  37. wm,pins.
  38. Example:
  39. pinctrl: pinctrl {
  40. compatible = "wm,wm8505-pinctrl";
  41. reg = <0xD8110000 0x10000>;
  42. interrupt-controller;
  43. #interrupt-cells = <2>;
  44. gpio-controller;
  45. #gpio-cells = <2>;
  46. };