162306a36Sopenharmony_ciVIA VT8500 and Wondermedia WM8xxx-series pinmux/gpio controller
262306a36Sopenharmony_ci
362306a36Sopenharmony_ciThese SoCs contain a combined Pinmux/GPIO module. Each pin may operate as
462306a36Sopenharmony_cieither a GPIO in, GPIO out or as an alternate function (I2C, SPI etc).
562306a36Sopenharmony_ci
662306a36Sopenharmony_ciRequired properties:
762306a36Sopenharmony_ci- compatible: "via,vt8500-pinctrl", "wm,wm8505-pinctrl", "wm,wm8650-pinctrl",
862306a36Sopenharmony_ci	"wm8750-pinctrl" or "wm,wm8850-pinctrl"
962306a36Sopenharmony_ci- reg: Should contain the physical address of the module's registers.
1062306a36Sopenharmony_ci- interrupt-controller: Marks the device node as an interrupt controller.
1162306a36Sopenharmony_ci- #interrupt-cells: Should be two.
1262306a36Sopenharmony_ci- gpio-controller: Marks the device node as a GPIO controller.
1362306a36Sopenharmony_ci- #gpio-cells : Should be two. The first cell is the pin number and the
1462306a36Sopenharmony_ci  second cell is used to specify optional parameters.
1562306a36Sopenharmony_ci	bit 0 - active low
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ciPlease refer to ../gpio/gpio.txt for a general description of GPIO bindings.
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ciPlease refer to pinctrl-bindings.txt in this directory for details of the
2062306a36Sopenharmony_cicommon pinctrl bindings used by client devices, including the meaning of the
2162306a36Sopenharmony_ciphrase "pin configuration node".
2262306a36Sopenharmony_ci
2362306a36Sopenharmony_ciEach pin configuration node lists the pin(s) to which it applies, and one or
2462306a36Sopenharmony_cimore of the mux functions to select on those pin(s), and pull-up/down
2562306a36Sopenharmony_ciconfiguration. Each subnode only affects those parameters that are explicitly
2662306a36Sopenharmony_cilisted. In other words, a subnode that lists only a mux function implies no
2762306a36Sopenharmony_ciinformation about any pull configuration. Similarly, a subnode that lists only
2862306a36Sopenharmony_cia pull parameter implies no information about the mux function.
2962306a36Sopenharmony_ci
3062306a36Sopenharmony_ciRequired subnode-properties:
3162306a36Sopenharmony_ci- wm,pins: An array of cells. Each cell contains the ID of a pin.
3262306a36Sopenharmony_ci
3362306a36Sopenharmony_ciOptional subnode-properties:
3462306a36Sopenharmony_ci- wm,function: Integer, containing the function to mux to the pin(s):
3562306a36Sopenharmony_ci  0: GPIO in
3662306a36Sopenharmony_ci  1: GPIO out
3762306a36Sopenharmony_ci  2: alternate
3862306a36Sopenharmony_ci
3962306a36Sopenharmony_ci- wm,pull: Integer, representing the pull-down/up to apply to the pin(s):
4062306a36Sopenharmony_ci  0: none
4162306a36Sopenharmony_ci  1: down
4262306a36Sopenharmony_ci  2: up
4362306a36Sopenharmony_ci
4462306a36Sopenharmony_ciEach of wm,function and wm,pull may contain either a single value which
4562306a36Sopenharmony_ciwill be applied to all pins in wm,pins, or one value for each entry in
4662306a36Sopenharmony_ciwm,pins.
4762306a36Sopenharmony_ci
4862306a36Sopenharmony_ciExample:
4962306a36Sopenharmony_ci
5062306a36Sopenharmony_ci	pinctrl: pinctrl {
5162306a36Sopenharmony_ci		compatible = "wm,wm8505-pinctrl";
5262306a36Sopenharmony_ci		reg = <0xD8110000 0x10000>;
5362306a36Sopenharmony_ci		interrupt-controller;
5462306a36Sopenharmony_ci		#interrupt-cells = <2>;
5562306a36Sopenharmony_ci		gpio-controller;
5662306a36Sopenharmony_ci		#gpio-cells = <2>;
5762306a36Sopenharmony_ci	};
58