allwinner,sunxi-pinctrl.txt 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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: "allwinner,<soc>-pinctrl". Supported SoCs for now are:
  8. sun5i-a13.
  9. - reg: Should contain the register physical address and length for the
  10. pin controller.
  11. Please refer to pinctrl-bindings.txt in this directory for details of the
  12. common pinctrl bindings used by client devices.
  13. A pinctrl node should contain at least one subnodes representing the
  14. pinctrl groups available on the machine. Each subnode will list the
  15. pins it needs, and how they should be configured, with regard to muxer
  16. configuration, drive strength and pullups. If one of these options is
  17. not set, its actual value will be unspecified.
  18. Required subnode-properties:
  19. - allwinner,pins: List of strings containing the pin name.
  20. - allwinner,function: Function to mux the pins listed above to.
  21. Optional subnode-properties:
  22. - allwinner,drive: Integer. Represents the current sent to the pin
  23. 0: 10 mA
  24. 1: 20 mA
  25. 2: 30 mA
  26. 3: 40 mA
  27. - allwinner,pull: Integer.
  28. 0: No resistor
  29. 1: Pull-up resistor
  30. 2: Pull-down resistor
  31. Examples:
  32. pinctrl@01c20800 {
  33. compatible = "allwinner,sun5i-a13-pinctrl";
  34. reg = <0x01c20800 0x400>;
  35. #address-cells = <1>;
  36. #size-cells = <0>;
  37. uart1_pins_a: uart1@0 {
  38. allwinner,pins = "PE10", "PE11";
  39. allwinner,function = "uart1";
  40. allwinner,drive = <0>;
  41. allwinner,pull = <0>;
  42. };
  43. uart1_pins_b: uart1@1 {
  44. allwinner,pins = "PG3", "PG4";
  45. allwinner,function = "uart1";
  46. allwinner,drive = <0>;
  47. allwinner,pull = <0>;
  48. };
  49. };