Home
last modified time | relevance | path

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

12345678910>>...42

/kernel/linux/linux-6.6/drivers/leds/simple/
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
8 This option enables support for the LEDs of several Industrial PCs
12 will be called simatic-ipc-leds.
15 tristate "LED driver for Siemens Simatic IPCs based on Intel Apollo Lake GPIO"
21 This option enables support for the LEDs of several Industrial PCs
22 from Siemens based on Apollo Lake GPIO i.e. IPC127E.
25 will be called simatic-ipc-leds-gpio-apollolake.
28 tristate "LED driver for Siemens Simatic IPCs based on Nuvoton GPIO"
34 This option enables support for the LEDs of several Industrial PCs
35 from Siemens based on Nuvoton GPIO i.e. IPC227G.
[all …]
DMakefile1 # SPDX-License-Identifier: GPL-2.0
2 obj-$(CONFIG_LEDS_SIEMENS_SIMATIC_IPC) += simatic-ipc-leds.o
3 obj-$(CONFIG_LEDS_SIEMENS_SIMATIC_IPC_APOLLOLAKE) += simatic-ipc-leds-gpio-core.o simatic-ipc-leds-…
4 obj-$(CONFIG_LEDS_SIEMENS_SIMATIC_IPC_F7188X) += simatic-ipc-leds-gpio-core.o simatic-ipc-leds-gpi…
5 obj-$(CONFIG_LEDS_SIEMENS_SIMATIC_IPC_ELKHARTLAKE) += simatic-ipc-leds-gpio-core.o simatic-ipc-leds…
Dsimatic-ipc-leds-gpio-f7188x.c1 // SPDX-License-Identifier: GPL-2.0
3 * Siemens SIMATIC IPC driver for GPIO based LEDs
11 #include <linux/gpio/machine.h>
12 #include <linux/gpio/consumer.h>
13 #include <linux/leds.h>
16 #include <linux/platform_data/x86/simatic-ipc-base.h>
18 #include "simatic-ipc-leds-gpio.h"
21 .dev_id = "leds-gpio",
23 GPIO_LOOKUP_IDX("gpio-f7188x-2", 0, NULL, 0, GPIO_ACTIVE_LOW),
24 GPIO_LOOKUP_IDX("gpio-f7188x-2", 1, NULL, 1, GPIO_ACTIVE_LOW),
[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-6.6/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-group-multicolor.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/leds/leds-group-multicolor.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Multi-color LED built with monochromatic LEDs
10 - Jean-Jacques Hiblot <jjhiblot@traphandler.com>
13 This driver combines several monochromatic LEDs into one multi-color
18 const: leds-group-multicolor
20 leds:
22 An aray of monochromatic leds
[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-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 …]
/kernel/linux/linux-6.6/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>
23 #include <linux/gpio/machine.h>
31 .gpio = 3,
47 .name = "gpio-keys-polled",
57 .default_trigger = "default-on",
[all …]
Dalix.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * At the moment this means setup of GPIO control of LEDs
9 * and Philip Prindeville <philipp@redfish-solutions.com>
11 * TODO: There are large similarities with leds-net5501.c
13 * In the future leds-net5501.c should be migrated over to platform
21 #include <linux/leds.h>
25 #include <linux/gpio/machine.h>
47 .gpio = 24,
63 .name = "gpio-keys-polled",
73 .default_trigger = "default-on",
[all …]
/kernel/linux/linux-6.6/drivers/leds/
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>
20 #include "leds.h"
47 if (led_dat->blinking) { in gpio_led_set()
48 led_dat->platform_gpio_blink_set(led_dat->gpiod, level, in gpio_led_set()
50 led_dat->blinking = 0; in gpio_led_set()
52 if (led_dat->can_sleep) in gpio_led_set()
[all …]
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 Y.
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-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>
40 struct pca9532_led leds[16]; member
45 struct gpio_chip gpio; member
101 .name = "leds-pca953x",
109 /* We have two pwm/blinkers, but 16 possible leds to drive. Additionally,
112 * 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
16 * Makes a copy of pdata and pdata->leds and registers a new leds-gpio device
17 * with the result. This allows to have pdata and pdata-leds in .init.rodata
29 if (!pdata->num_leds) in gpio_led_register_device()
30 return ERR_PTR(-EINVAL); in gpio_led_register_device()
32 _pdata.leds = kmemdup(pdata->leds, in gpio_led_register_device()
33 pdata->num_leds * sizeof(*pdata->leds), GFP_KERNEL); in gpio_led_register_device()
[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 …]
/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-6.6/arch/arm/boot/dts/marvell/
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 …]

12345678910>>...42