Home
last modified time | relevance | path

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

12345678910>>...43

/openbmc/linux/sound/usb/caiaq/
H A 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 …]
/openbmc/linux/Documentation/devicetree/bindings/leds/
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
/openbmc/linux/drivers/leds/
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
/openbmc/linux/drivers/net/dsa/qca/
H A 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 …]
/openbmc/linux/arch/arm/boot/dts/aspeed/
H A 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 …]
H A 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 …]
/openbmc/linux/arch/mips/boot/dts/mti/
H A 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 …]
/openbmc/linux/Documentation/firmware-guide/acpi/dsd/
H A 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 …]
/openbmc/linux/drivers/leds/rgb/
H A 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 …]
/openbmc/linux/include/linux/platform_data/
H A 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 …]
/openbmc/linux/arch/arm/boot/dts/ti/omap/
H A 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 …]
/openbmc/linux/include/linux/
H A 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 …]
/openbmc/linux/drivers/hid/
H A 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 …]
/openbmc/u-boot/drivers/misc/
H A Dpca9551_led.c1 // SPDX-License-Identifier: GPL-2.0+
22 #define PCA9551_CTRL_AI (1 << 4) /* Auto-increment flag */
34 static int freq_last = -1;
35 static int mask_last = -1;
36 static int idx_last = -1;
39 static int pca9551_led_get_state(int led, int *state) in pca9551_led_get_state() argument
45 if (led < 0 || led > 7) { in pca9551_led_get_state()
46 return -EINVAL; in pca9551_led_get_state()
47 } else if (led < 4) { in pca9551_led_get_state()
49 shift = led << 1; in pca9551_led_get_state()
[all …]
/openbmc/openbmc/meta-quanta/meta-gbs/recipes-phosphor/sensors/phosphor-nvme/
H A Dnvme_json_rewrite.sh6 if [ ! -d "/sys/class/gpio/gpio$1" ]; then
12 # 1-0024
15 # 1-0021
17 if [ -d "/sys/bus/i2c/drivers/pca953x/1-0024" ]; then
18 presentPinBase="$(cat /sys/bus/i2c/drivers/pca953x/1-0024/gpio/gpiochip*/base)"
27 if [ -d "/sys/bus/i2c/drivers/pca953x/1-0021" ]; then
28 PwrGoodPinBase="$(cat /sys/bus/i2c/drivers/pca953x/1-0021/gpio/gpiochip*/base)"
43 "NVMeDriveFaultLEDGroupPath": "/xyz/openbmc_project/led/groups/led_u2_0_fault",
44 "NVMeDriveLocateLEDGroupPath": "/xyz/openbmc_project/led/groups/led_u2_0_locate",
45 … "NVMeDriveLocateLEDControllerBusName": "xyz.openbmc_project.LED.Controller.led_u2_0_locate",
[all …]
/openbmc/linux/arch/arm/boot/dts/arm/
H A 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 …]
/openbmc/linux/drivers/leds/flash/
H A Dleds-qcom-flash.c1 // SPDX-License-Identifier: GPL-2.0-only
9 #include <linux/led-class-flash.h>
14 #include <media/v4l2-flash-led-class.h>
29 #define FLASH_STS_3CH_VPH_DROOP BIT(4)
38 #define FLASH_STS_4CH_OTST2 BIT(4)
120 REG_FIELD_ID(0x3e, 0, 7, 4, 1), /* chan_timer */
121 REG_FIELD_ID(0x42, 0, 6, 4, 1), /* itarget */
124 REG_FIELD_ID(0x4a, 0, 6, 4, 1), /* chan_strobe */
151 static int set_flash_module_en(struct qcom_flash_led *led, bool en) in set_flash_module_en() argument
153 struct qcom_flash_data *flash_data = led->flash_data; in set_flash_module_en()
[all …]

12345678910>>...43