Home
last modified time | relevance | path

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

12345678910>>...42

/Linux-v5.15/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-v5.15/drivers/leds/
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/
37 #define LM3692X_LED2_EN BIT(2)
46 #define LM3692X_RAMP_RATE_500us BIT(2)
47 #define LM3692X_RAMP_RATE_1ms (BIT(1) | BIT(2))
50 #define LM3692X_RAMP_RATE_8ms (BIT(2) | BIT(3))
51 #define LM3692X_RAMP_RATE_16ms (BIT(1) | BIT(2) | BIT(3))
63 #define LM3692X_PWM_HYSTER_1LSB BIT(2)
65 #define LM3692X_PWM_HYSTER_3LSB (BIT(3) | BIT(2))
[all …]
Dleds-lm3533.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * leds-lm3533.c -- LM3533 LED driver
5 * Copyright (C) 2011-2012 Texas Instruments
20 #define LM3533_LVCTRLBANK_MIN 2
25 #define LM3533_ALS_CHANNEL_LV_MAX 2
59 static inline int lm3533_led_get_ctrlbank_id(struct lm3533_led *led) in lm3533_led_get_ctrlbank_id() argument
61 return led->id + 2; in lm3533_led_get_ctrlbank_id()
64 static inline u8 lm3533_led_get_lv_reg(struct lm3533_led *led, u8 base) in lm3533_led_get_lv_reg() argument
66 return base + led->id; in lm3533_led_get_lv_reg()
69 static inline u8 lm3533_led_get_pattern(struct lm3533_led *led) in lm3533_led_get_pattern() argument
[all …]
Dleds-mc13783.c1 // SPDX-License-Identifier: GPL-2.0-only
7 * Based on leds-da903x:
11 * Copyright (C) 2006-2008 Marvell International Ltd.
39 struct mc13xxx_led *led; member
55 struct mc13xxx_led *led = in mc13xxx_led_set() local
57 struct mc13xxx_leds *leds = led->leds; in mc13xxx_led_set()
60 switch (led->id) { in mc13xxx_led_set()
64 reg = 2; in mc13xxx_led_set()
65 shift = 9 + (led->id - MC13783_LED_MD) * 4; in mc13xxx_led_set()
76 off = led->id - MC13783_LED_R1; in mc13xxx_led_set()
[all …]
Dleds-turris-omnia.c1 // SPDX-License-Identifier: GPL-2.0
9 #include <linux/led-class-multicolor.h>
48 struct omnia_leds *leds = dev_get_drvdata(cdev->dev->parent); in omnia_led_brightness_set_blocking()
49 struct omnia_led *led = to_omnia_led(mc_cdev); in omnia_led_brightness_set_blocking() local
53 mutex_lock(&leds->lock); in omnia_led_brightness_set_blocking()
55 led_mc_calc_color_components(&led->mc_cdev, brightness); in omnia_led_brightness_set_blocking()
58 buf[1] = led->reg; in omnia_led_brightness_set_blocking()
59 buf[2] = mc_cdev->subled_info[0].brightness; in omnia_led_brightness_set_blocking()
60 buf[3] = mc_cdev->subled_info[1].brightness; in omnia_led_brightness_set_blocking()
61 buf[4] = mc_cdev->subled_info[2].brightness; in omnia_led_brightness_set_blocking()
[all …]
Dleds-lm3532.c1 // SPDX-License-Identifier: GPL-2.0
2 // TI LM3532 LED driver
3 // Copyright (C) 2019 Texas Instruments Incorporated - https://www.ti.com/
16 #define LM3532_NAME "lm3532-led"
50 #define LM3532_CTRL_C_ENABLE BIT(2)
54 #define LM3532_PWM_ZONE_0_EN BIT(2)
64 #define LM3532_ZONE_MASK (BIT(2) | BIT(3) | BIT(4))
66 #define LM3532_ZONE_1 BIT(2)
68 #define LM3532_ZONE_3 (BIT(2) | BIT(3))
77 #define LM3532_ALS_OFFSET_mV 2
[all …]
Dleds-el15203000.c1 // SPDX-License-Identifier: GPL-2.0
14 * +-----+---------+
15 * | LED | COMMAND |
16 * +-----+---------+
18 * +-----+---------+
22 * +----------+--------------+-------------------------------------------+
24 * +----------+--------------+-------------------------------------------+
26 * +----------+--------------+-------------------------------------------+
28 * +----------+--------------+-------------------------------------------+
30 * +----------+--------------+-------------------------------------------+
[all …]
Dleds-88pm860x.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * LED driver for Marvell 88PM860x
26 #define LED2_BLINK_EN (1 << 2)
47 int ret = -EINVAL; in led_power_set()
52 case 2: in led_power_set()
69 struct pm860x_led *led = container_of(cdev, struct pm860x_led, cdev); in pm860x_led_set() local
74 chip = led->chip; in pm860x_led_set()
75 mutex_lock(&led->lock); in pm860x_led_set()
76 led->brightness = value >> 3; in pm860x_led_set()
78 if ((led->current_brightness == 0) && led->brightness) { in pm860x_led_set()
[all …]
Dleds-bd2802.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * leds-bd2802.c - RGB LED Driver
8 * Datasheet: http://www.rohm.com/products/databook/driver/pdf/bd2802gu-e.pdf
16 #include <linux/leds-bd2802.h>
59 * State '2' : 'on'.
62 unsigned r:2;
63 unsigned g:2;
64 unsigned b:2;
73 struct led_state led[2]; member
104 /*--------------------------------------------------------------*/
[all …]
Dleds-bcm6358.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Driver for BCM6358 memory-mapped LEDs, based on leds-syscon.c
21 #define BCM6358_SLED_CLKDIV_4 2
24 #define BCM6358_SLED_POLARITY BIT(2)
31 * struct bcm6358_led - state container for bcm6358 based LEDs
32 * @cdev: LED class device for this LED
35 * @pin: LED pin number
36 * @active_low: LED is active low
78 struct bcm6358_led *led = in bcm6358_led_set() local
82 spin_lock_irqsave(led->lock, flags); in bcm6358_led_set()
[all …]
Dleds-pca9532.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * pca9532.c - 16-bit Led dimmer
18 #include <linux/leds-pca9532.h>
26 #define PCA9532_REG_PSC(m, i) (PCA9532_REG_OFFSET(m) + 0x1 + (i) * 2)
27 #define PCA9532_REG_PWM(m, i) (PCA9532_REG_OFFSET(m) + 0x2 + (i) * 2)
28 #define LED_REG(m, led) (PCA9532_REG_OFFSET(m) + 0x5 + (led >> 2)) argument
29 #define LED_NUM(led) (led & 0x3) argument
30 #define LED_SHIFT(led) (LED_NUM(led) * 2) argument
31 #define LED_MASK(led) (0x3 << LED_SHIFT(led)) argument
49 u8 pwm[2];
[all …]
Dleds-ariel.c1 // SPDX-License-Identifier: BSD-2-Clause OR GPL-2.0-or-later
3 * Dell Wyse 3020 a.k.a. "Ariel" Embedded Controller LED Driver
36 struct ariel_led *led = led_cdev_to_ariel_led(led_cdev); in ariel_led_get() local
39 if (regmap_read(led->ec_ram, led->ec_index, &led_status)) in ariel_led_get()
51 struct ariel_led *led = led_cdev_to_ariel_led(led_cdev); in ariel_led_set() local
54 regmap_write(led->ec_ram, led->ec_index, EC_LED_OFF); in ariel_led_set()
56 regmap_write(led->ec_ram, led->ec_index, EC_LED_STILL); in ariel_led_set()
62 struct ariel_led *led = led_cdev_to_ariel_led(led_cdev); in ariel_blink_set() local
65 return -EINVAL; in ariel_blink_set()
68 regmap_write(led->ec_ram, led->ec_index, EC_LED_OFF); in ariel_blink_set()
[all …]
Dleds-wm831x-status.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * LED driver for WM831x status LEDs
38 static void wm831x_status_set(struct wm831x_status *led) in wm831x_status_set() argument
42 mutex_lock(&led->mutex); in wm831x_status_set()
44 led->reg_val &= ~(WM831X_LED_SRC_MASK | WM831X_LED_MODE_MASK | in wm831x_status_set()
47 spin_lock_irqsave(&led->value_lock, flags); in wm831x_status_set()
49 led->reg_val |= led->src << WM831X_LED_SRC_SHIFT; in wm831x_status_set()
50 if (led->blink) { in wm831x_status_set()
51 led->reg_val |= 2 << WM831X_LED_MODE_SHIFT; in wm831x_status_set()
52 led->reg_val |= led->blink_time << WM831X_LED_DUR_SHIFT; in wm831x_status_set()
[all …]
/Linux-v5.15/drivers/leds/flash/
Dleds-max77693.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * LED Flash class driver for the flash cell of max77693 mfd.
11 #include <linux/led-class-flash.h>
13 #include <linux/mfd/max77693-common.h>
14 #include <linux/mfd/max77693-private.h>
20 #include <media/v4l2-flash-led-class.h>
24 #define MODE_TORCH(a) (1 << (2 + (a)))
46 const char *label[2];
47 u32 iout_torch_max[2];
48 u32 iout_flash_max[2];
[all …]
/Linux-v5.15/Documentation/devicetree/bindings/leds/
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 …]
Dcommon.yaml1 # SPDX-License-Identifier: GPL-2.0-only
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Jacek Anaszewski <jacek.anaszewski@gmail.com>
11 - Pavel Machek <pavel@ucw.cz>
14 LED and flash LED devices provide the same basic functionality as current
15 regulators, but extended with LED and flash LED specific features like
18 Many LED devices expose more than one current output that can be connected
19 to one or more discrete LED component. Since the arrangement of connections
20 can influence the way of the LED device initialization, the LED components
[all …]
Dleds-lgm.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/leds/leds-lgm.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Intel Lightning Mountain (LGM) SoC LED Serial Shift Output (SSO) Controller driver
10 - Zhu, Yi Xin <Yixin.zhu@intel.com>
11 - Amireddy Mallikarjuna reddy <mallikarjunax.reddy@intel.com>
15 const: intel,lgm-ssoled
21 maxItems: 2
23 clock-names:
[all …]
Dleds-lp50xx.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/leds/leds-lp50xx.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: LED driver for LP50XX RGB LED from Texas Instruments.
10 - Dan Murphy <dmurphy@ti.com>
13 The LP50XX is multi-channel, I2C RGB LED Drivers that can group RGB LEDs into
14 a LED group or control them individually.
16 The difference in these RGB LED drivers is the number of supported RGB
27 - ti,lp5009
[all …]
Dleds-aw2013.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/leds/leds-aw2013.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: AWINIC AW2013 3-channel LED Driver
10 - Nikita Travkin <nikitos.tr@gmail.com>
13 The AW2013 is a 3-channel LED driver with I2C interface. It can control
14 LED brightness with PWM output.
23 vcc-supply:
26 "#address-cells":
[all …]
Dleds-bcm6328.txt7 as spi-gpio. See Documentation/devicetree/bindings/gpio/fairchild,74hc595.yaml),
10 exporting the 74x164 as spi-gpio prevents those LEDs to be hardware
13 BCM6328 LED controller has a HWDIS register, which controls whether a LED
16 is usually 1:1 for hardware to LED signals, but through the activity/link
18 explained later in brcm,link-signal-sources). Even if a LED is hardware
21 reason, hardware controlled LEDs aren't registered as LED class devices.
24 - compatible : should be "brcm,bcm6328-leds".
25 - #address-cells : must be 1.
26 - #size-cells : must be 0.
27 - reg : BCM6328 LED controller address and size.
[all …]
/Linux-v5.15/drivers/hid/
Dhid-gt683r.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * MSI GT683R led driver
14 #include "hid-ids.h"
26 GT683R_LED_AUDIO = 2,
34 GT683R_LED_FRONT = 2,
63 struct device *dev = led_cdev->dev->parent; in gt683r_brightness_set()
65 struct gt683r_led *led = hid_get_drvdata(hdev); in gt683r_brightness_set() local
68 if (led_cdev == &led->led_devs[i]) in gt683r_brightness_set()
73 led->brightnesses[i] = brightness; in gt683r_brightness_set()
74 schedule_work(&led->work); in gt683r_brightness_set()
[all …]
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 */
34 [1] = 2, /* red */
35 [2] = 1, /* green */
43 #define RISO_KAGAKU_IX(r, g, b) riso_kagaku_tbl[((r)?1:0)+((g)?2:0)+((b)?4:0)]
65 #define DELCOM_BLUE_LED 2
117 mutex_lock(&ldev->lock); in hidled_send()
[all …]
/Linux-v5.15/arch/arm/boot/dts/
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 …]
Daspeed-bmc-ibm-everest.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,everest-bmc", "aspeed,ast2600";
137 stdout-path = &uart5;
146 reserved-memory {
147 #address-cells = <1>;
[all …]
/Linux-v5.15/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 …]

12345678910>>...42