Lines Matching refs:gpio

8 properties, each containing a 'gpio-list':
10 gpio-list ::= <single-gpio> [gpio-list]
11 single-gpio ::= <gpio-phandle> <gpio-specifier>
12 gpio-phandle : phandle to gpio controller node
13 gpio-specifier : Array of #gpio-cells specifying specific gpio
34 gpio-controller
35 #gpio-cells = <2>;
38 gpio-controller
39 #gpio-cells = <1>;
49 Note that gpio-specifier length is controller dependent. In the
50 above example, &gpio1 uses 2 cells to specify a gpio, while &gpio2
53 gpio-specifier may encode: bank, pin position inside the bank,
57 defined in include/dt-bindings/gpio/gpio.h whenever possible:
65 GPIO_ACTIVE_HIGH is 0, so in this example gpio-specifier is "18 0" and encodes
66 GPIO pin number, and GPIO flags as accepted by the "qe_pio_e" gpio-controller.
71 A gpio-specifier should contain a flag indicating the GPIO polarity; active-
75 The gpio-specifier's polarity flag should represent the physical level at the
79 the GPIO controller and the device, then the gpio-specifier will represent the
97 In particular, the polarity cannot be derived from the gpio-specifier, since
105 in the binding. The gpio-specifier should represent the polarity of the signal
112 2) gpio-controller nodes
115 Every GPIO controller node must contain both an empty "gpio-controller"
116 property, and a #gpio-cells integer property, which indicates the number of
117 cells in a gpio-specifier.
121 gpio-controller's driver probe function.
125 - gpio-hog: A property specifying that this child node represent a GPIO hog.
142 Example of two SOC GPIO banks defined as gpio-controller nodes:
144 qe_pio_a: gpio-controller@1400 {
147 gpio-controller;
148 #gpio-cells = <2>;
151 gpio-hog;
154 line-name = "foo-bar-gpio";
158 qe_pio_e: gpio-controller@1460 {
161 gpio-controller;
162 #gpio-cells = <2>;
165 2.1) gpio- and pin-controller interaction
173 controllers. The gpio-ranges property described below represents this, and
176 gpio-range-list ::= <single-gpio-range> [gpio-range-list]
177 single-gpio-range ::= <numeric-gpio-range> | <named-gpio-range>
178 numeric-gpio-range ::=
179 <pinctrl-phandle> <gpio-base> <pinctrl-base> <count>
180 named-gpio-range ::= <pinctrl-phandle> <gpio-base> '<0 0>'
182 gpio-base : Base GPIO ID in the GPIO controller
189 In case named gpio ranges are used (ranges with both <pinctrl-base> and
190 <count> set to 0), the property gpio-ranges-group-names contains one string
191 for every single-gpio-range in gpio-ranges:
203 were referenced by any gpio-ranges property to contain a property named
204 #gpio-range-cells with value <3>. This requirement is now deprecated.
211 qe_pio_e: gpio-controller@1460 {
212 #gpio-cells = <2>;
215 gpio-controller;
216 gpio-ranges = <&pinctrl1 0 20 10>, <&pinctrl2 10 50 20>;
225 gpio_pio_i: gpio-controller@14B0 {
226 #gpio-cells = <2>;
229 gpio-controller;
230 gpio-ranges = <&pinctrl1 0 20 10>,
234 gpio-ranges-group-names = "",