blob: 8c3a84caf8d8ee7ba8bf60af141af8693038d748 [file] [log] [blame]
Gabriel Huau5318f182015-05-25 22:27:37 -07001Intel x86 PINCTRL/GPIO controller
2
3Pin-muxing on x86 can be described with a node for the PINCTRL master
4node and a set of child nodes for each pin on the SoC.
5
6The PINCTRL master node requires the following properties:
7- compatible : "intel,x86-pinctrl"
8
9Pin nodes must be children of the pinctrl master node and can
10contain the following properties:
Simon Glassc13dcb32016-03-11 22:07:17 -070011- pad-offset - (required) offset in the IOBASE for the pin to configure
Bin Meng2600ba62016-06-08 05:07:36 -070012- gpio-offset - (required only when 'mode-gpio' is set) 2 cells
Simon Glassc13dcb32016-03-11 22:07:17 -070013 - offset in the GPIOBASE for the pin to configure
14 - the bit shift in this register (4 = bit 4)
15- mode-gpio - (optional) standalone property to force the pin into GPIO mode
16- mode-func - (optional) function number to assign to the pin. If
17 'mode-gpio' is set, this property will be ignored.
Gabriel Huau5318f182015-05-25 22:27:37 -070018in case of 'mode-gpio' property set:
Simon Glassc13dcb32016-03-11 22:07:17 -070019- output-value - (optional) this set the default output value of the GPIO
20- direction - (optional) this set the direction of the gpio
Bin Meng2600ba62016-06-08 05:07:36 -070021- pull-strength - (optional) this set the pull strength of the pin
Simon Glassc13dcb32016-03-11 22:07:17 -070022- pull-assign - (optional) this set the pull assignement (up/down) of the pin
Bin Meng2600ba62016-06-08 05:07:36 -070023- invert - (optional) this input pin is inverted
Gabriel Huau5318f182015-05-25 22:27:37 -070024
25Example:
26
27pin_usb_host_en0@0 {
Bin Meng2600ba62016-06-08 05:07:36 -070028 gpio-offset = <0x80 8>;
29 pad-offset = <0x260>;
30 mode-gpio;
31 output-value = <1>;
32 direction = <PIN_OUTPUT>;
Gabriel Huau5318f182015-05-25 22:27:37 -070033};