allwinner,sunxi-pinctrl.txt 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. * Allwinner A1X Pin Controller
  2. The pins controlled by sunXi pin controller are organized in banks,
  3. each bank has 32 pins. Each pin has 7 multiplexing functions, with
  4. the first two functions being GPIO in and out. The configuration on
  5. the pins includes drive strength and pull-up.
  6. Required properties:
  7. - compatible: Should be one of the followings (depending on you SoC):
  8. "allwinner,sun4i-a10-pinctrl"
  9. "allwinner,sun5i-a10s-pinctrl"
  10. "allwinner,sun5i-a13-pinctrl"
  11. "allwinner,sun6i-a31-pinctrl"
  12. "allwinner,sun6i-a31-r-pinctrl"
  13. "allwinner,sun7i-a20-pinctrl"
  14. "allwinner,sun8i-a23-pinctrl"
  15. "allwinner,sun8i-a23-r-pinctrl"
  16. - reg: Should contain the register physical address and length for the
  17. pin controller.
  18. Please refer to pinctrl-bindings.txt in this directory for details of the
  19. common pinctrl bindings used by client devices.
  20. A pinctrl node should contain at least one subnodes representing the
  21. pinctrl groups available on the machine. Each subnode will list the
  22. pins it needs, and how they should be configured, with regard to muxer
  23. configuration, drive strength and pullups. If one of these options is
  24. not set, its actual value will be unspecified.
  25. Required subnode-properties:
  26. - allwinner,pins: List of strings containing the pin name.
  27. - allwinner,function: Function to mux the pins listed above to.
  28. Optional subnode-properties:
  29. - allwinner,drive: Integer. Represents the current sent to the pin
  30. 0: 10 mA
  31. 1: 20 mA
  32. 2: 30 mA
  33. 3: 40 mA
  34. - allwinner,pull: Integer.
  35. 0: No resistor
  36. 1: Pull-up resistor
  37. 2: Pull-down resistor
  38. Examples:
  39. pinctrl@01c20800 {
  40. compatible = "allwinner,sun5i-a13-pinctrl";
  41. reg = <0x01c20800 0x400>;
  42. #address-cells = <1>;
  43. #size-cells = <0>;
  44. uart1_pins_a: uart1@0 {
  45. allwinner,pins = "PE10", "PE11";
  46. allwinner,function = "uart1";
  47. allwinner,drive = <0>;
  48. allwinner,pull = <0>;
  49. };
  50. uart1_pins_b: uart1@1 {
  51. allwinner,pins = "PG3", "PG4";
  52. allwinner,function = "uart1";
  53. allwinner,drive = <0>;
  54. allwinner,pull = <0>;
  55. };
  56. };