Lines Matching +full:a +full:- +full:gpio
2 GPIO configuration.
5 1. Properties for GPIO Controllers
7 1.1 #gpio-cells
9 Property: #gpio-cells
13 Description: The #gpio-cells property defines the number of cells required
14 to encode a gpio specifier.
17 1.2 gpio-controller
19 Property: gpio-controller
23 Description: The presence of a gpio-controller property defines a node as a
24 GPIO controller node.
27 1.3 pin-count
29 Property: pin-count
33 Description: The pin-count property defines the number of GPIO pins.
38 GPIO: gpio@10100 {
39 #gpio-cells = <3>;
40 compatible = "mrvl,gpio";
42 gpio-controller;
44 interrupt-parent = <&PIC>;
45 pin-count = <50>
48 2. Properties for GPIO consumer nodes.
54 Value type: <prop-encoded-array> encoded as arbitrary number of GPIO
57 Description: The gpios property of a device node defines the GPIO or GPIOs
59 consists of an arbitrary number of GPIO specifiers.
61 The first cell of the GPIO specifier is phandle of the node's
62 parent GPIO controller and remaining cells are defined by the
63 binding describing the GPIO parent, typically include
67 gpios = <&GPIO 0 1 /* GPIO[0]: FLAGS */
68 &GPIO 1 2>; /* GPIO[1]: FLAGS */
71 3. GPIO controller specifier
76 pin: 0-MAX GPIO pin number.
81 to controller's GPIO reference manual.
85 GPIO_PIN_OPENDRAIN 0x0004 Open-drain output
86 GPIO_PIN_OPENSOURCE 0x0008 Open-source output
87 GPIO_PIN_PUSHPULL 0x0010 Push-pull output
89 GPIO_PIN_PULLUP 0x0040 Internal pull-up enabled
90 GPIO_PIN_PULLDOWN 0x0080 Internal pull-down enabled
100 gpios = <&GPIO 0 0x00000001 /* GPIO[0]: IN */
101 &GPIO 1 0x00000002 /* GPIO[1]: OUT */
102 &GPIO 2 0x00000801 /* GPIO[2]: IN, IRQ (edge) */
103 &GPIO 3 0x00004001 /* GPIO[3]: IN, IRQ (level) */
105 &GPIO 10 0x00000401>; /* GPIO[10]: OUT, blink */