Home
last modified time | relevance | path

Searched +full:led +full:- +full:4 (Results 1 – 25 of 1047) sorted by relevance

12345678910>>...42

/linux-6.12.1/sound/usb/caiaq/
Dcontrol.c1 // SPDX-License-Identifier: GPL-2.0-or-later
24 struct snd_usb_caiaqdev *cdev = caiaqdev(chip->card); in control_info()
25 int pos = kcontrol->private_value; in control_info()
29 uinfo->count = 1; in control_info()
32 switch (cdev->chip.usb_id) { in control_info()
37 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in control_info()
38 uinfo->value.integer.min = 0; in control_info()
39 uinfo->value.integer.max = 2; in control_info()
54 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in control_info()
55 uinfo->value.integer.min = 0; in control_info()
[all …]
/linux-6.12.1/Documentation/devicetree/bindings/leds/
Dleds-mt6360.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/leds/leds-mt6360.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: LED driver for MT6360 PMIC from MediaTek Integrated.
10 - Gene Chen <gene_chen@richtek.com>
15 Add MT6360 LED driver include 2-channel Flash LED with torch/strobe mode,
16 and 4-channel RGB LED support Register/Flash/Breath Mode
20 const: mediatek,mt6360-led
22 "#address-cells":
[all …]
Dleds-bcm6328.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
4 $id: http://devicetree.org/schemas/leds/leds-bcm6328.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Álvaro Fernández Rojas <noltari@gmail.com>
17 as spi-gpio. See
21 exporting the 74x164 as spi-gpio prevents those LEDs to be hardware
24 BCM6328 LED controller has a HWDIS register, which controls whether a LED
27 is usually 1:1 for hardware to LED signals, but through the activity/link
29 explained later in brcm,link-signal-sources). Even if a LED is hardware
[all …]
Dqcom,spmi-flash-led.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/leds/qcom,spmi-flash-led.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Flash LED device inside Qualcomm Technologies, Inc. PMICs
10 - Fenglin Wu <quic_fenglinw@quicinc.com>
13 Flash LED controller is present inside some Qualcomm Technologies, Inc. PMICs.
14 The flash LED module can have different number of LED channels supported
15 e.g. 3 or 4. There are some different registers between them but they can
24 - enum:
[all …]
Dleds-lp55xx.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/leds/leds-lp55xx.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: TI/National Semiconductor LP55xx and LP8501 LED Drivers
10 - Jacek Anaszewski <jacek.anaszewski@gmail.com>
11 - Pavel Machek <pavel@ucw.cz>
15 LED Drivers.
27 - national,lp5521
28 - national,lp5523
[all …]
/linux-6.12.1/drivers/leds/
Dleds-bcm6328.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Driver for BCM6328 memory-mapped LEDs, based on leds-syscon.c
59 * struct bcm6328_led - state container for bcm6328 based LEDs
60 * @cdev: LED class device for this LED
63 * @pin: LED pin number
66 * @active_low: LED is active low
98 * bits [31:0] -> LEDs 8-23
99 * bits [47:32] -> LEDs 0-7
100 * bits [63:48] -> unused
105 return pin + 16; /* LEDs 0-7 (bits 47:32) */ in bcm6328_pin2shift()
[all …]
Dleds-an30259a.c1 // SPDX-License-Identifier: GPL-2.0+
3 // Driver for Panasonic AN30259A 3-channel LED driver
22 /* LED power registers */
24 #define AN30259A_LED_EN(x) BIT((x) - 1)
25 #define AN30259A_LED_SLOPE(x) BIT(((x) - 1) + 4)
27 #define AN30259A_REG_LEDCC(x) (0x03 + ((x) - 1))
30 #define AN30259A_REG_SLOPE(x) (0x06 + ((x) - 1))
32 #define AN30259A_LED_SLOPETIME2(x) ((x) << 4)
34 #define AN30259A_REG_LEDCNT1(x) (0x09 + (4 * ((x) - 1)))
35 #define AN30259A_LED_DUTYMAX(x) ((x) << 4)
[all …]
Dleds-pca963x.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Author: Peter Meerwald <p.meerwald@bct-electronic.com>
9 * Based on leds-pca955x.c
11 * LED driver for the PCA9633 I2C LED driver (7-bit slave address 0x62)
12 * LED driver for the PCA9634/5 I2C LED driver (7-bit slave address set by hw.)
18 * in identical fashion. The delay_on/delay_off values of the last LED
22 * or by adding the 'nxp,hw-blink' property to the DTS.
36 /* LED select registers determine the source that drives LED outputs */
37 #define PCA963X_LED_OFF 0x0 /* LED driver off */
38 #define PCA963X_LED_ON 0x1 /* LED driver on */
[all …]
Dleds-lm3692x.c1 // SPDX-License-Identifier: GPL-2.0
2 // TI LM3692x LED chip family driver
3 // Copyright (C) 2017-18 Texas Instruments Incorporated - https://www.ti.com/
52 #define LM3692X_RAMP_EN BIT(4)
66 #define LM3692X_PWM_HYSTER_4LSB BIT(4)
67 #define LM3692X_PWM_HYSTER_5LSB (BIT(4) | BIT(2))
68 #define LM3692X_PWM_HYSTER_6LSB (BIT(4) | BIT(3))
80 #define LM3692X_MIN_IND_22UH BIT(4)
95 #define LM3692X_FAULT_FLAG_OPEN BIT(4)
101 * @led_dev: LED class device pointer
[all …]
Dleds-cht-wcove.c1 // SPDX-License-Identifier: GPL-2.0
30 #define CHT_WC_LED1_SWCTL BIT(0) /* HW or SW control of charging led */
34 #define CHT_WC_LED_I_MA2_5 (2 << 2) /* LED current limit */
35 #define CHT_WC_LED_I_MASK GENMASK(3, 2) /* LED current limit mask */
37 #define CHT_WC_LED_F_1_4_HZ (0 << 4)
38 #define CHT_WC_LED_F_1_2_HZ (1 << 4)
39 #define CHT_WC_LED_F_1_HZ (2 << 4)
40 #define CHT_WC_LED_F_2_HZ (3 << 4)
41 #define CHT_WC_LED_F_MASK GENMASK(5, 4)
56 /* Mask + values for turning the LED on/off */
[all …]
Dleds-lp5569.c1 // SPDX-License-Identifier: GPL-2.0-only
16 #include <linux/platform_data/leds-lp55xx.h>
18 #include <dt-bindings/leds/leds-lp55xx.h>
20 #include "leds-lp55xx-common.h"
25 * 0x00 engine 1 program (4 pages)
26 * 0x40 engine 2 program (4 pages)
27 * 0x80 engine 3 program (4 pages)
32 #define LP5569_PAGES_PER_ENGINE 4
52 #define LP5569_CP_MODE_MASK GENMASK(4, 3)
56 #define LP5569_LED_SHORT_TEST BIT(4)
[all …]
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
16 bool "LED Support"
18 Say Y to enable Linux LED support. This allows control of supported
24 tristate "LED Class Support"
26 This option enables the LED sysfs class in /sys/class/leds. You'll
30 tristate "LED Flash Class Support"
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
36 for the flash related features of a LED device. It can be built
40 tristate "LED Multicolor Class Support"
[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>
7 * LED driver for various PCA955x I2C LED drivers
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
[all …]
/linux-6.12.1/drivers/net/dsa/qca/
Dqca8k-leds.c1 // SPDX-License-Identifier: GPL-2.0
14 * Internal PHY 3 has port at index 4. in qca8k_phy_to_port()
15 * Internal PHY 4 has port at index 5. in qca8k_phy_to_port()
26 reg_info->reg = QCA8K_LED_CTRL_REG(led_num); in qca8k_get_enable_led_reg()
27 reg_info->shift = QCA8K_LED_PHY0123_CONTROL_RULE_SHIFT; in qca8k_get_enable_led_reg()
33 reg_info->reg = QCA8K_LED_CTRL3_REG; in qca8k_get_enable_led_reg()
34 reg_info->shift = QCA8K_LED_PHY123_PATTERN_EN_SHIFT(port_num, led_num); in qca8k_get_enable_led_reg()
36 case 4: in qca8k_get_enable_led_reg()
37 reg_info->reg = QCA8K_LED_CTRL_REG(led_num); in qca8k_get_enable_led_reg()
38 reg_info->shift = QCA8K_LED_PHY4_CONTROL_RULE_SHIFT; in qca8k_get_enable_led_reg()
[all …]
/linux-6.12.1/arch/arm/boot/dts/aspeed/
Daspeed-bmc-ibm-blueridge.dts1 // SPDX-License-Identifier: GPL-2.0-or-later
3 /dts-v1/;
5 #include <dt-bindings/gpio/aspeed-gpio.h>
6 #include <dt-bindings/i2c/i2c.h>
7 #include <dt-bindings/leds/leds-pca955x.h>
8 #include "aspeed-g6.dtsi"
9 #include "ibm-power11-quad.dtsi"
13 compatible = "ibm,blueridge-bmc", "aspeed,ast2600";
35 stdout-path = &uart5;
43 reserved-memory {
[all …]
Daspeed-bmc-ibm-rainier.dts1 // SPDX-License-Identifier: GPL-2.0-or-later
3 /dts-v1/;
5 #include "aspeed-g6.dtsi"
6 #include <dt-bindings/gpio/aspeed-gpio.h>
7 #include <dt-bindings/i2c/i2c.h>
8 #include <dt-bindings/leds/leds-pca955x.h>
12 compatible = "ibm,rainier-bmc", "aspeed,ast2600";
34 stdout-path = &uart5;
43 reserved-memory {
44 #address-cells = <1>;
[all …]
Daspeed-bmc-ibm-system1.dts1 // SPDX-License-Identifier: GPL-2.0-or-later
3 /dts-v1/;
5 #include "aspeed-g6.dtsi"
6 #include <dt-bindings/gpio/aspeed-gpio.h>
7 #include <dt-bindings/i2c/i2c.h>
8 #include <dt-bindings/leds/leds-pca955x.h>
12 compatible = "ibm,system1-bmc", "aspeed,ast2600";
74 stdout-path = "uart5:115200n8";
82 reserved-memory {
83 #address-cells = <1>;
[all …]
/linux-6.12.1/arch/mips/boot/dts/mti/
Dsead3.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
8 #include <dt-bindings/interrupt-controller/mips-gic.h>
11 #address-cells = <1>;
12 #size-cells = <1>;
13 compatible = "mti,sead-3";
14 model = "MIPS SEAD-3";
17 stdout-path = "serial1:115200";
36 cpu_intc: interrupt-controller {
37 compatible = "mti,cpu-interrupt-controller";
[all …]
/linux-6.12.1/drivers/leds/rgb/
Dleds-mt6370-rgb.c1 // SPDX-License-Identifier: GPL-2.0-only
14 #include <linux/led-class-multicolor.h>
107 #define MT6370_VENDOR_ID_MASK GENMASK(7, 4)
110 #define MT6370_CHEN_BIT(id) BIT(MT6370_LED_ISNK4 - id)
113 #define MT6370_PWM_DUTY (BIT(5) - 1)
114 #define MT6372_PWM_DUTY (BIT(8) - 1)
118 * If the color of the LED in DT is set to
119 * - 'LED_COLOR_ID_RGB'
120 * - 'LED_COLOR_ID_MULTI'
123 * If so, this LED will choose 'struct led_classdev_mc mc' to use.
[all …]
/linux-6.12.1/Documentation/firmware-guide/acpi/dsd/
Dleds.rst1 .. SPDX-License-Identifier: GPL-2.0
9 device node, the LED driver chip. The "reg" property in the LED specific nodes
10 tells the numerical ID of each individual LED output to which the LEDs are
11 connected. [leds] The hierarchical data nodes are named "led@X", where X is the
12 number of the LED output.
14 Referring to LEDs in Device tree is documented in [video-interfaces], in
15 "flash-leds" property documentation. In short, LEDs are directly referred to by
20 the same mechanism on ACPI is not possible. A mechanism to refer to non-device
21 ACPI nodes is documented in [data-node-ref].
24 combination of the LED driver device reference and an integer argument,
[all …]
/linux-6.12.1/include/linux/platform_data/
Dlm3630a_bl.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Simple driver for Texas Instruments LM3630A LED Flash driver chip
37 *@leda_label : optional led a label.
38 *@leda_init_brt : led a init brightness. 4~255
39 *@leda_max_brt : led a max brightness. 4~255
40 *@leda_ctrl : led a disable, enable linear, enable exponential
41 *@ledb_label : optional led b label.
42 *@ledb_init_brt : led b init brightness. 4~255
43 *@ledb_max_brt : led b max brightness. 4~255
44 *@ledb_ctrl : led b disable, enable linear, enable exponential
[all …]
/linux-6.12.1/arch/arm/boot/dts/ti/omap/
Domap3-echo.dts1 // SPDX-License-Identifier: GPL-2.0-only
5 /dts-v1/;
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/leds/common.h>
14 compatible = "amazon,omap3-echo", "ti,omap3630", "ti,omap3";
18 cpu0-supply = <&vdd1_reg>;
28 compatible = "regulator-fixed";
29 regulator-name = "vcc5v";
30 regulator-min-microvolt = <5000000>;
31 regulator-max-microvolt = <5000000>;
[all …]
/linux-6.12.1/drivers/hid/
Dhid-led.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Simple USB RGB LED driver
6 * Based on drivers/hid/hid-thingm.c and
16 #include "hid-ids.h"
32 /* R+2G+4B -> riso kagaku color index */
37 [4] = 3, /* blue */
39 [6] = 4, /* cyan */
43 #define RISO_KAGAKU_IX(r, g, b) riso_kagaku_tbl[((r)?1:0)+((g)?2:0)+((b)?4:0)]
117 mutex_lock(&ldev->lock); in hidled_send()
123 memcpy(ldev->buf, buf, ldev->config->report_size); in hidled_send()
[all …]
/linux-6.12.1/include/linux/
Dsmc91x.h1 /* SPDX-License-Identifier: GPL-2.0 */
7 * than the maximal access size. So, if your platform can do 16-bit
8 * and 32-bit accesses to the SMC91x device, but not 8-bit, set both
12 * SMC91X_USE_16BIT to be supported - just setting SMC91X_USE_32BIT is
22 #define SMC91X_IO_SHIFT_0 (0 << 4)
23 #define SMC91X_IO_SHIFT_1 (1 << 4)
24 #define SMC91X_IO_SHIFT_2 (2 << 4)
25 #define SMC91X_IO_SHIFT_3 (3 << 4)
26 #define SMC91X_IO_SHIFT(x) (((x) >> 4) & 0x3)
30 #define RPC_LED_100_10 (0x00) /* LED = 100Mbps OR's with 10Mbps link detect */
[all …]
/linux-6.12.1/arch/arm/boot/dts/arm/
Dintegrator.dtsi1 // SPDX-License-Identifier: GPL-2.0
7 #address-cells = <1>;
8 #size-cells = <1>;
15 core-module@10000000 {
16 compatible = "arm,core-module-integrator", "syscon", "simple-mfd";
19 #address-cells = <1>;
20 #size-cells = <1>;
22 /* Use core module LED to indicate CPU load */
23 led@c,0 {
24 compatible = "register-bit-led";
[all …]

12345678910>>...42