Lines Matching +full:echo +full:- +full:gpios

1 .. SPDX-License-Identifier: GPL-2.0-only
6 The GPIO Aggregator provides a mechanism to aggregate GPIOs, and expose them as
10 Aggregating GPIOs using Sysfs
11 -----------------------------
15 system permissions, on an all-or-nothing basis: either a GPIO controller is
18 The GPIO Aggregator provides access control for a set of one or more GPIOs, by
21 simplifies and hardens exporting GPIOs to a virtual machine, as the VM can just
22 grab the full GPIO controller, and no longer needs to care about which GPIOs to
26 write-only attribute files in sysfs.
28 /sys/bus/platform/drivers/gpio-aggregator/
32 controller by writing a string describing the GPIOs to
35 .. code-block:: none
48 is a comma-separated list of GPIO offsets and/or
52 line 19 of "e6052000.gpio" and GPIO lines 20-21 of
55 .. code-block:: sh
57 $ echo 'e6052000.gpio 19 e6050000.gpio 20-21' > new_device
64 Example: Destroy the previously-created aggregated GPIO
65 controller, assumed to be "gpio-aggregator.0":
67 .. code-block:: sh
69 $ echo gpio-aggregator.0 > delete_device
73 -------------------
76 GPIO-operated device described in DT, without a dedicated in-kernel driver.
81 gpio-aggregator driver, or by writing to the "driver_override" file in Sysfs.
83 Example: If "door" is a GPIO-operated device described in DT, using its own
89 gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>,
91 gpio-line-names = "open", "lock";
99 .. code-block:: sh
101 $ echo gpio-aggregator > /sys/bus/platform/devices/door/driver_override
102 $ echo door > /sys/bus/platform/drivers/gpio-aggregator/bind
106 .. code-block:: sh
109 gpiochip12 - 2 lines:
110 line 0: "open" unused input active-high
111 line 1: "lock" unused input active-high