Lines Matching +full:device +full:- +full:state +full:- +full:gpios
30 .Nd GPIO LED generic device driver
35 .Bd -ragged -offset indent
36 .Cd "device gpio"
37 .Cd "device gpioled"
44 compatible device to a GPIO pin.
47 which is used to export a device as
49 The GPIO pin can then be controlled by writing to this device as described
54 .Xr device.hints 5
59 .Bl -tag -width ".Va hint.gpioiic.%d.atXXX"
64 Arbitrary name of device in
71 (any other bits - i.e., pins - will be ignored).
78 .Bl -tag
87 .It Va hint.gpioled.%d.state
88 The initial state of the LED when the driver takes control over it.
90 If set to -1, the LED will be kept in its original state.
99 device usually looks like:
100 .Bd -literal
103 gpio-controller;
108 gpios = <&gpio 16 2 0>; /* GPIO pin 16. */
114 gpios = <&gpio 17 2 0>; /* GPIO pin 17. */
115 name = "user-led1";
121 .Dq gpio-leds
123 .Bd -literal
129 compatible = "gpio-leds";
132 gpios = <&gpio 16 2 0>;
137 gpios = <&gpio 17 2 0>;
138 name = "user-led1"
150 .Va gpios
152 .Pa /usr/src/sys/dts/bindings-gpio.txt .
156 is the arbitrary name of the device in