Home
last modified time | relevance | path

Searched +full:gpio +full:- +full:leds (Results 1 – 25 of 1048) sorted by relevance

12345678910>>...42

/kernel/linux/linux-4.19/Documentation/devicetree/bindings/leds/
Dleds-gpio.txt1 LEDs connected to GPIO lines
4 - compatible : should be "gpio-leds".
6 Each LED is represented as a sub-node of the gpio-leds device. Each
9 LED sub-node properties:
10 - gpios : Should specify the LED's GPIO, see "gpios property" in
11 Documentation/devicetree/bindings/gpio/gpio.txt. Active low LEDs should be
12 indicated using flags in the GPIO specifier.
13 - label : (optional)
14 see Documentation/devicetree/bindings/leds/common.txt
15 - linux,default-trigger : (optional)
[all …]
Dleds-ns2.txt1 Binding for dual-GPIO LED found on Network Space v2 (and parents).
4 - compatible: "lacie,ns2-leds".
6 Each LED is represented as a sub-node of the ns2-leds device.
8 Required sub-node properties:
9 - cmd-gpio: Command LED GPIO. See OF device-tree GPIO specification.
10 - slow-gpio: Slow LED GPIO. See OF device-tree GPIO specification.
11 - modes-map: A mapping between LED modes (off, on or SATA activity blinking) and
12 the corresponding cmd-gpio/slow-gpio values. All the GPIO values combinations
15 Optional sub-node properties:
16 - label: Name for this LED. If omitted, the label is taken from the node name.
[all …]
Dleds-pca955x.txt1 * NXP - pca955x LED driver
4 to control LEDs can be used as general purpose I/Os. The GPIO pins can
5 be input or output, and output pins can also be pulse-width controlled.
8 - compatible : should be one of :
13 - #address-cells: must be 1
14 - #size-cells: must be 0
15 - reg: I2C slave address. depends on the model.
18 - gpio-controller: allows pins to be used as GPIOs.
19 - #gpio-cells: must be 2.
20 - gpio-line-names: define the names of the GPIO lines
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/leds/
Dleds-gpio.yaml1 # SPDX-License-Identifier: GPL-2.0-only
3 ---
4 $id: http://devicetree.org/schemas/leds/leds-gpio.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: LEDs connected to GPIO lines
10 - Jacek Anaszewski <jacek.anaszewski@gmail.com>
11 - Pavel Machek <pavel@ucw.cz>
14 Each LED is represented as a sub-node of the gpio-leds device. Each
19 const: gpio-leds
24 "(^led-[0-9a-f]$|led)":
[all …]
Dleds-ns2.txt1 Binding for dual-GPIO LED found on Network Space v2 (and parents).
4 - compatible: "lacie,ns2-leds".
6 Each LED is represented as a sub-node of the ns2-leds device.
8 Required sub-node properties:
9 - cmd-gpio: Command LED GPIO. See OF device-tree GPIO specification.
10 - slow-gpio: Slow LED GPIO. See OF device-tree GPIO specification.
11 - modes-map: A mapping between LED modes (off, on or SATA activity blinking) and
12 the corresponding cmd-gpio/slow-gpio values. All the GPIO values combinations
15 Optional sub-node properties:
16 - label: Name for this LED. If omitted, the label is taken from the node name.
[all …]
Dleds-pca955x.txt1 * NXP - pca955x LED driver
4 to control LEDs can be used as general purpose I/Os. The GPIO pins can
5 be input or output, and output pins can also be pulse-width controlled.
8 - compatible : should be one of :
14 - #address-cells: must be 1
15 - #size-cells: must be 0
16 - reg: I2C slave address. depends on the model.
19 - gpio-controller: allows pins to be used as GPIOs.
20 - #gpio-cells: must be 2.
21 - gpio-line-names: define the names of the GPIO lines
[all …]
/kernel/linux/linux-4.19/drivers/leds/
DKconfig12 LEDs from both userspace and optionally, by kernel events (triggers).
19 This option enables the led sysfs class in /sys/class/leds. You'll
20 need this to do anything useful with LEDs. If unsure, say N.
26 This option enables the flash led sysfs class in /sys/class/leds.
27 It wrapps LED Class and adds flash LEDs specific sysfs attributes
37 for led sysfs class devices under /sys/class/leds.
39 See Documentation/ABI/testing/sysfs-class-led for details.
48 This option enables support for on-chip LED drivers found on Marvell
59 This option enables support for the LEDs on the AAT1290.
66 This driver makes the PC Engines APU/APU2/APU3 front panel LEDs
[all …]
Dleds-pca955x.c2 * Copyright 2007-2008 Extreme Engineering Solutions, Inc.
4 * Author: Nate Case <ncase@xes-inc.com>
14 * Device Description 7-bit slave address
15 * ------ ----------- -------------------
16 * PCA9550 2-bit driver 0x60 .. 0x61
17 * PCA9551 8-bit driver 0x60 .. 0x67
18 * PCA9552 16-bit driver 0x60 .. 0x67
19 * PCA9553/01 4-bit driver 0x62
20 * PCA9553/02 4-bit driver 0x63
25 * ---------------- -----------
[all …]
Dleds-pca9532.c2 * pca9532.c - 16-bit Led dimmer
18 #include <linux/leds.h>
22 #include <linux/leds-pca9532.h>
23 #include <linux/gpio.h>
43 struct pca9532_led leds[16]; member
48 struct gpio_chip gpio; member
105 .name = "leds-pca953x",
113 /* We have two pwm/blinkers, but 16 possible leds to drive. Additionally,
116 * leds that are not ON/OFF.
123 for (i = 0; i < data->chip_info->num_leds; i++) { in pca9532_calcpwm()
[all …]
Dleds-gpio-register.c3 * Uwe Kleine-Koenig <u.kleine-koenig@pengutronix.de>
10 #include <linux/leds.h>
15 * gpio_led_register_device - register a gpio-led device
18 * Makes a copy of pdata and pdata->leds and registers a new leds-gpio device
19 * with the result. This allows to have pdata and pdata-leds in .init.rodata
31 if (!pdata->num_leds) in gpio_led_register_device()
32 return ERR_PTR(-EINVAL); in gpio_led_register_device()
34 _pdata.leds = kmemdup(pdata->leds, in gpio_led_register_device()
35 pdata->num_leds * sizeof(*pdata->leds), GFP_KERNEL); in gpio_led_register_device()
36 if (!_pdata.leds) in gpio_led_register_device()
[all …]
Dleds-gpio.c2 * LEDs driver for GPIOs
14 #include <linux/gpio.h>
15 #include <linux/gpio/consumer.h>
17 #include <linux/leds.h>
49 if (led_dat->blinking) { in gpio_led_set()
50 led_dat->platform_gpio_blink_set(led_dat->gpiod, level, in gpio_led_set()
52 led_dat->blinking = 0; in gpio_led_set()
54 if (led_dat->can_sleep) in gpio_led_set()
55 gpiod_set_value_cansleep(led_dat->gpiod, level); in gpio_led_set()
57 gpiod_set_value(led_dat->gpiod, level); in gpio_led_set()
[all …]
Dleds-s3c24xx.c1 /* drivers/leds/leds-s3c24xx.c
7 * S3C24XX - LEDs GPIO driver
16 #include <linux/leds.h>
17 #include <linux/gpio.h>
20 #include <linux/platform_data/leds-s3c24xx.h>
22 #include <mach/regs-gpio.h>
23 #include <plat/gpio-cfg.h>
41 struct s3c24xx_led_platdata *pd = led->pdata; in s3c24xx_led_set()
42 int state = (value ? 1 : 0) ^ (pd->flags & S3C24XX_LEDF_ACTLOW); in s3c24xx_led_set()
47 gpio_set_value(pd->gpio, state); in s3c24xx_led_set()
[all …]
/kernel/linux/linux-5.10/drivers/leds/
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
13 LEDs from both userspace and optionally, by kernel events (triggers).
20 This option enables the LED sysfs class in /sys/class/leds. You'll
21 need this to do anything useful with LEDs. If unsure, say N.
27 This option enables the flash LED sysfs class in /sys/class/leds.
28 It wraps LED Class and adds flash LEDs specific sysfs attributes
37 This option enables the multicolor LED sysfs class in /sys/class/leds.
40 for multicolor LEDs that are grouped together. This class is not
41 intended for single color LEDs. It can be built as a module.
48 for LED sysfs class devices under /sys/class/leds.
[all …]
Dleds-pca955x.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright 2007-2008 Extreme Engineering Solutions, Inc.
5 * Author: Nate Case <ncase@xes-inc.com>
11 * Device Description 7-bit slave address
12 * ------ ----------- -------------------
13 * PCA9550 2-bit driver 0x60 .. 0x61
14 * PCA9551 8-bit driver 0x60 .. 0x67
15 * PCA9552 16-bit driver 0x60 .. 0x67
16 * PCA9553/01 4-bit driver 0x62
17 * PCA9553/02 4-bit driver 0x63
[all …]
Dleds-gpio.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * LEDs driver for GPIOs
10 #include <linux/gpio.h>
11 #include <linux/gpio/consumer.h>
13 #include <linux/leds.h>
45 if (led_dat->blinking) { in gpio_led_set()
46 led_dat->platform_gpio_blink_set(led_dat->gpiod, level, in gpio_led_set()
48 led_dat->blinking = 0; in gpio_led_set()
50 if (led_dat->can_sleep) in gpio_led_set()
51 gpiod_set_value_cansleep(led_dat->gpiod, level); in gpio_led_set()
[all …]
Dleds-pca9532.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * pca9532.c - 16-bit Led dimmer
14 #include <linux/leds.h>
18 #include <linux/leds-pca9532.h>
19 #include <linux/gpio/driver.h>
41 struct pca9532_led leds[16]; member
46 struct gpio_chip gpio; member
103 .name = "leds-pca953x",
111 /* We have two pwm/blinkers, but 16 possible leds to drive. Additionally,
114 * leds that are not ON/OFF.
[all …]
Dleds-gpio-register.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Uwe Kleine-Koenig <u.kleine-koenig@pengutronix.de>
7 #include <linux/leds.h>
12 * gpio_led_register_device - register a gpio-led device
15 * Makes a copy of pdata and pdata->leds and registers a new leds-gpio device
16 * with the result. This allows to have pdata and pdata-leds in .init.rodata
28 if (!pdata->num_leds) in gpio_led_register_device()
29 return ERR_PTR(-EINVAL); in gpio_led_register_device()
31 _pdata.leds = kmemdup(pdata->leds, in gpio_led_register_device()
32 pdata->num_leds * sizeof(*pdata->leds), GFP_KERNEL); in gpio_led_register_device()
[all …]
Dleds-netxbig.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * leds-netxbig.c - Driver for the 2Big and 5Big Network series LEDs
15 #include <linux/gpio/consumer.h>
16 #include <linux/leds.h>
58 struct netxbig_led *leds; member
63 * GPIO extension bus.
72 for (pin = 0; pin < gpio_ext->num_addr; pin++) in gpio_ext_set_addr()
73 gpiod_set_value(gpio_ext->addr[pin], (addr >> pin) & 1); in gpio_ext_set_addr()
80 for (pin = 0; pin < gpio_ext->num_data; pin++) in gpio_ext_set_data()
81 gpiod_set_value(gpio_ext->data[pin], (data >> pin) & 1); in gpio_ext_set_data()
[all …]
/kernel/linux/linux-4.19/arch/x86/platform/geode/
Dgeos.c3 * At the moment this means setup of GPIO control of LEDs.
7 * and Philip Prindeville <philipp@redfish-solutions.com>
9 * TODO: There are large similarities with leds-net5501.c
11 * In the future leds-net5501.c should be migrated over to platform
22 #include <linux/leds.h>
24 #include <linux/gpio.h>
34 .gpio = 3,
50 .name = "gpio-keys-polled",
60 .gpio = 6,
61 .default_trigger = "default-on",
[all …]
/kernel/linux/linux-5.10/arch/x86/platform/geode/
Dgeos.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * At the moment this means setup of GPIO control of LEDs.
8 * and Philip Prindeville <philipp@redfish-solutions.com>
10 * TODO: There are large similarities with leds-net5501.c
12 * In the future leds-net5501.c should be migrated over to platform
19 #include <linux/leds.h>
30 .gpio = 3,
46 .name = "gpio-keys-polled",
56 .gpio = 6,
57 .default_trigger = "default-on",
[all …]
/kernel/linux/linux-4.19/Documentation/driver-api/gpio/
Ddrivers-on-gpio.rst2 Subsystem drivers using GPIO
5 Note that standard kernel drivers exist for common GPIO tasks and will provide
6 the right in-kernel and userspace APIs/ABIs for the job, and that these
10 - leds-gpio: drivers/leds/leds-gpio.c will handle LEDs connected to GPIO
13 - ledtrig-gpio: drivers/leds/trigger/ledtrig-gpio.c will provide a LED trigger,
14 i.e. a LED will turn on/off in response to a GPIO line going high or low
15 (and that LED may in turn use the leds-gpio as per above).
17 - gpio-keys: drivers/input/keyboard/gpio_keys.c is used when your GPIO line
20 - gpio-keys-polled: drivers/input/keyboard/gpio_keys_polled.c is used when your
21 GPIO line cannot generate interrupts, so it needs to be periodically polled
[all …]
/kernel/linux/linux-4.19/arch/arm/boot/dts/
Dkirkwood-d2net.dts1 // SPDX-License-Identifier: GPL-2.0
9 /dts-v1/;
11 #include <dt-bindings/leds/leds-ns2.h>
12 #include "kirkwood-netxbig.dtsi"
16 compatible = "lacie,d2net_v2", "lacie,netxbig", "marvell,kirkwood-88f6281", "marvell,kirkwood";
23 ns2-leds {
24 compatible = "lacie,ns2-leds";
26 blue-sata {
28 slow-gpio = <&gpio0 29 GPIO_ACTIVE_HIGH>;
29 cmd-gpio = <&gpio0 30 GPIO_ACTIVE_HIGH>;
[all …]
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Dkirkwood-d2net.dts1 // SPDX-License-Identifier: GPL-2.0
9 /dts-v1/;
11 #include <dt-bindings/leds/leds-ns2.h>
12 #include "kirkwood-netxbig.dtsi"
16 compatible = "lacie,d2net_v2", "lacie,netxbig", "marvell,kirkwood-88f6281", "marvell,kirkwood";
23 ns2-leds {
24 compatible = "lacie,ns2-leds";
26 blue-sata {
28 slow-gpio = <&gpio0 29 GPIO_ACTIVE_HIGH>;
29 cmd-gpio = <&gpio0 30 GPIO_ACTIVE_HIGH>;
[all …]
/kernel/linux/linux-5.10/Documentation/driver-api/gpio/
Ddrivers-on-gpio.rst2 Subsystem drivers using GPIO
5 Note that standard kernel drivers exist for common GPIO tasks and will provide
6 the right in-kernel and userspace APIs/ABIs for the job, and that these
10 - leds-gpio: drivers/leds/leds-gpio.c will handle LEDs connected to GPIO
13 - ledtrig-gpio: drivers/leds/trigger/ledtrig-gpio.c will provide a LED trigger,
14 i.e. a LED will turn on/off in response to a GPIO line going high or low
15 (and that LED may in turn use the leds-gpio as per above).
17 - gpio-keys: drivers/input/keyboard/gpio_keys.c is used when your GPIO line
20 - gpio-keys-polled: drivers/input/keyboard/gpio_keys_polled.c is used when your
21 GPIO line cannot generate interrupts, so it needs to be periodically polled
[all …]
/kernel/linux/linux-4.19/arch/mips/bcm63xx/boards/
Dboard_bcm963xx.c59 .leds = {
62 .gpio = 37,
63 .default_trigger= "default-on",
89 .leds = {
91 .name = "96328avng::ppp-fail",
92 .gpio = 2,
97 .gpio = 4,
99 .default_trigger = "default-on",
102 .name = "96328avng::power-fail",
103 .gpio = 8,
[all …]

12345678910>>...42