Lines Matching +full:gpio +full:- +full:leds
30 .Nd GPIO LED generic device driver
35 .Bd -ragged -offset indent
36 .Cd "device gpio"
44 compatible device to a GPIO pin.
49 The GPIO pin can then be controlled by writing to this device as described
59 .Bl -tag -width ".Va hint.gpioiic.%d.atXXX"
69 Which pin on the GPIO interface to map to this instance.
71 (any other bits - i.e., pins - will be ignored).
77 If set to -1, the LED will be kept in its original state.
87 .Bd -literal
88 gpio: gpio {
90 gpio-controller;
95 gpios = <&gpio 16 2 0>; /* GPIO pin 16. */
101 gpios = <&gpio 17 2 0>; /* GPIO pin 17. */
102 name = "user-led1";
107 Optionally, you can choose to combine all the LEDs under a single
108 .Dq gpio-leds
110 .Bd -literal
116 compatible = "gpio-leds";
119 gpios = <&gpio 16 2 0>;
124 gpios = <&gpio 17 2 0>;
125 name = "user-led1"
131 Both methods are equally supported and it is possible to have the LEDs
133 The only restriction is that a GPIO pin cannot be mapped by two different
134 (gpio)leds.
139 .Pa /usr/src/sys/dts/bindings-gpio.txt .
149 .Xr gpio 4 ,