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