···11+* Allwinner A1X Pin Controller22+33+The pins controlled by sunXi pin controller are organized in banks,44+each bank has 32 pins. Each pin has 7 multiplexing functions, with55+the first two functions being GPIO in and out. The configuration on66+the pins includes drive strength and pull-up.77+88+Required properties:99+- compatible: "allwinner,<soc>-pinctrl". Supported SoCs for now are:1010+ sun5i-a13.1111+- reg: Should contain the register physical address and length for the1212+ pin controller.1313+1414+Please refer to pinctrl-bindings.txt in this directory for details of the1515+common pinctrl bindings used by client devices.1616+1717+A pinctrl node should contain at least one subnodes representing the1818+pinctrl groups available on the machine. Each subnode will list the1919+pins it needs, and how they should be configured, with regard to muxer2020+configuration, drive strength and pullups. If one of these options is2121+not set, its actual value will be unspecified.2222+2323+Required subnode-properties:2424+2525+- allwinner,pins: List of strings containing the pin name.2626+- allwinner,function: Function to mux the pins listed above to.2727+2828+Optional subnode-properties:2929+- allwinner,drive: Integer. Represents the current sent to the pin3030+ 0: 10 mA3131+ 1: 20 mA3232+ 2: 30 mA3333+ 3: 40 mA3434+- allwinner,pull: Integer.3535+ 0: No resistor3636+ 1: Pull-up resistor3737+ 2: Pull-down resistor3838+3939+Examples:4040+4141+pinctrl@01c20800 {4242+ compatible = "allwinner,sun5i-a13-pinctrl";4343+ reg = <0x01c20800 0x400>;4444+ #address-cells = <1>;4545+ #size-cells = <0>;4646+4747+ uart1_pins_a: uart1@0 {4848+ allwinner,pins = "PE10", "PE11";4949+ allwinner,function = "uart1";5050+ allwinner,drive = <0>;5151+ allwinner,pull = <0>;5252+ };5353+5454+ uart1_pins_b: uart1@1 {5555+ allwinner,pins = "PG3", "PG4";5656+ allwinner,function = "uart1";5757+ allwinner,drive = <0>;5858+ allwinner,pull = <0>;5959+ };6060+};
+1-1
arch/arm/Kconfig
···16371637 default 355 if ARCH_U850016381638 default 264 if MACH_H470016391639 default 512 if SOC_OMAP516401640- default 288 if ARCH_VT850016401640+ default 288 if ARCH_VT8500 || ARCH_SUNXI16411641 default 016421642 help16431643 Maximum number of GPIOs in the system.