Lines Matching +full:id +full:- +full:gpios

1 .. SPDX-License-Identifier: GPL-2.0
8 allows names to be given to GPIOs (and other things as well) returned
13 With _DSD we can now query GPIOs using a name instead of an integer
16 // Bluetooth device with reset and shutdown GPIOs
31 ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
34 Package () {"reset-gpios", Package() {^BTH, 1, 1, 0 }},
35 Package () {"shutdown-gpios", Package() {^BTH, 0, 0, 0 }},
61 In our Bluetooth example the "reset-gpios" refers to the second GpioIo()
75 assuming non-active (Polarity = !Pull Bias)
77 Down High as low, assuming non-active
78 Up Low as high, assuming non-active
82 That said, for our above example the both GPIOs, since the bias setting
87 It is possible to leave holes in the array of GPIOs. This is useful in
89 implemented as GPIOs and some as native signals. For example a SPI host
90 controller can have chip selects 0 and 2 implemented as GPIOs and 1 as
94 "cs-gpios",
108 - gpio-hog
109 - output-high
110 - output-low
111 - input
112 - line-name
118 ToUUID("dbb8e3e6-5886-4ba6-8795-1319f52a966b"),
120 Package () {"hog-gpio8", "G8PU"}
125 ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
127 Package () {"gpio-hog", 1},
128 Package () {"gpios", Package () {8, 0}},
129 Package () {"output-high", 1},
130 Package () {"line-name", "gpio8-pullup"},
134 - gpio-line-names
139 "gpio-line-names",
165 To do that, the driver needs to define a mapping table as a NULL-terminated
171 line in that resource starting from zero, and the active-low flag for that line,
181 { "reset-gpios", &reset_gpio, 1 },
182 { "shutdown-gpios", &shutdown_gpio, 1 },
198 mapping, the Linux GPIO framework refuses to return any GPIOs. This is
219 the GpioIo() in _CRS desc will hold ERR_PTR(-ENOENT).
226 the ACPI GPIO mapping tables are hardly linked to an ACPI ID and certain
237 We may consider two different cases here, i.e. when connection ID is
242 desc = gpiod_get(dev, "non-null-connection-id", flags);
243 desc = gpiod_get_index(dev, "non-null-connection-id", index, flags);