Home
last modified time | relevance | path

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

12345678910>>...43

/linux-6.12.1/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"
26 .dev_id = "leds-gpio",
28 GPIO_LOOKUP_IDX("gpio-f7188x-2", 0, NULL, 0, GPIO_ACTIVE_LOW),
29 GPIO_LOOKUP_IDX("gpio-f7188x-2", 1, NULL, 1, GPIO_ACTIVE_LOW),
[all …]
Dsimatic-ipc-leds-gpio-core.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"
23 { .name = "red:" LED_FUNCTION_STATUS "-1" },
24 { .name = "green:" LED_FUNCTION_STATUS "-1" },
25 { .name = "red:" LED_FUNCTION_STATUS "-2" },
[all …]
Dsimatic-ipc-leds-gpio-elkhartlake.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",
53 MODULE_DESCRIPTION("LED driver for Siemens Simatic IPCs based on Intel Elkhart Lake GPIO");
56 MODULE_SOFTDEP("pre: simatic-ipc-leds-gpio-core platform:elkhartlake-pinctrl");
Dsimatic-ipc-leds-gpio-apollolake.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("apollolake-pinctrl.0", 52, NULL, 0, GPIO_ACTIVE_LOW),
24 GPIO_LOOKUP_IDX("apollolake-pinctrl.0", 53, NULL, 1, GPIO_ACTIVE_LOW),
[all …]
/linux-6.12.1/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 …]
/linux-6.12.1/arch/x86/platform/geode/
Dgeode-common.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Shared helpers to register GPIO-connected buttons and LEDs
8 #include <linux/gpio/machine.h>
9 #include <linux/gpio/property.h>
11 #include <linux/leds.h>
15 #include "geode-common.h"
18 .name = "cs5535-gpio",
22 PROPERTY_ENTRY_U32("poll-interval", 20),
27 .name = "geode-gpio-keys",
32 { /* Placeholder for GPIO property */ },
[all …]
/linux-6.12.1/drivers/leds/
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
19 LEDs from both userspace and optionally, by kernel events (triggers).
26 This option enables the LED sysfs class in /sys/class/leds. You'll
27 need this to do anything useful with LEDs. If unsure, say Y.
33 This option enables the flash LED sysfs class in /sys/class/leds.
34 It wraps LED Class and adds flash LEDs specific sysfs attributes
43 This option enables the multicolor LED sysfs class in /sys/class/leds.
46 for multicolor LEDs that are grouped together. This class is not
47 intended for single color LEDs. It can be built as a module.
54 for LED sysfs class devices under /sys/class/leds.
[all …]
Dleds-gpio.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * LEDs driver for GPIOs
12 #include <linux/gpio.h>
13 #include <linux/gpio/consumer.h>
14 #include <linux/leds.h>
24 #include "leds.h"
51 if (led_dat->blinking) { in gpio_led_set()
52 led_dat->platform_gpio_blink_set(led_dat->gpiod, level, in gpio_led_set()
54 led_dat->blinking = 0; in gpio_led_set()
56 if (led_dat->can_sleep) 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>
43 struct pca9532_led leds[16]; member
48 struct gpio_chip gpio; member
108 .name = "leds-pca953x",
116 /* We have two pwm/blinkers, but 16 possible leds to drive. Additionally,
119 * leds that are not ON/OFF.
[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-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-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 …]
/linux-6.12.1/drivers/net/wireless/ath/ath10k/
Dleds.c1 // SPDX-License-Identifier: ISC
3 * Copyright (c) 2005-2011 Atheros Communications Inc.
4 * Copyright (c) 2011-2017 Qualcomm Atheros, Inc.
5 * Copyright (c) 2018 Sebastian Gottschall <s.gottschall@dd-wrt.com>
9 #include <linux/leds.h>
13 #include "wmi-ops.h"
15 #include "leds.h"
21 leds.cdev); in ath10k_leds_set_brightness_blocking()
22 struct gpio_led *led = &ar->leds.wifi_led; in ath10k_leds_set_brightness_blocking()
24 mutex_lock(&ar->conf_mutex); in ath10k_leds_set_brightness_blocking()
[all …]
/linux-6.12.1/arch/arm/boot/dts/qcom/
Dqcom-ipq8064-rb3011.dts1 // SPDX-License-Identifier: GPL-2.0
2 #include "qcom-ipq8064.dtsi"
3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/leds/common.h>
7 model = "MikroTik RB3011UiAS-RM";
14 mdio-gpio0 = &mdio0;
15 mdio-gpio1 = &mdio1;
20 stdout-path = "serial0:115200n8";
23 gpio-keys {
24 compatible = "gpio-keys";
[all …]
/linux-6.12.1/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 …]
Darmada-370-seagate-nas-4bay.dts1 // SPDX-License-Identifier: GPL-2.0
3 * Device Tree file for Seagate NAS 4-Bay (Armada 370 SoC).
13 * Product name : Seagate NAS 4-Bay
14 * Code name (board/PCB) : Dart 4-Bay
19 /dts-v1/;
20 #include "armada-370-seagate-nas-xbay.dtsi"
21 #include <dt-bindings/leds/leds-ns2.h>
24 model = "Seagate NAS 4-Bay (Dart, SRPD40)";
25 compatible = "seagate,dart-4", "marvell,armada370", "marvell,armada-370-xp";
28 internal-regs {
[all …]
/linux-6.12.1/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 …]
/linux-6.12.1/arch/mips/bcm63xx/boards/
Dboard_bcm963xx.c1 // SPDX-License-Identifier: GPL-2.0-only
56 .leds = {
59 .gpio = 37,
60 .default_trigger= "default-on",
83 .leds = {
85 .name = "96328avng::ppp-fail",
86 .gpio = 2,
91 .gpio = 4,
93 .default_trigger = "default-on",
96 .name = "96328avng::power-fail",
[all …]
/linux-6.12.1/drivers/platform/x86/
Dpcengines-apuv2.c1 // SPDX-License-Identifier: GPL-2.0+
4 * PC-Engines APUv2/APUv3 board platform driver
5 * for GPIO buttons and LEDs
16 #include <linux/leds.h>
20 #include <linux/gpio/machine.h>
22 #include <linux/platform_data/gpio/gpio-amd-fch.h>
25 * NOTE: this driver only supports APUv2/3 - not APUv1, as this one
38 /* Order in which the GPIO lines are defined in the register list */
47 /* GPIO device */
60 [APU2_GPIO_LINE_LED1] = "front-led1",
[all …]
/linux-6.12.1/arch/arm64/boot/dts/qcom/
Dipq5332-rdp-common.dtsi1 // SPDX-License-Identifier: BSD-3-Clause
5 * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
8 /dts-v1/;
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/input/input.h>
12 #include <dt-bindings/leds/common.h>
21 stdout-path = "serial0";
24 gpio-keys {
25 compatible = "gpio-keys";
26 pinctrl-0 = <&gpio_keys_default>;
[all …]

12345678910>>...43