Home
last modified time | relevance | path

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

12345678910>>...42

/linux-6.14.4/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.14.4/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 <[email protected]>
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 …]
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 <[email protected]>
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
17 ganging 2 channels together to supply maximum current up to 2 A. The current
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 <[email protected]>
11 - Pavel Machek <[email protected]>
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 <[email protected]>
11 - Pavel Machek <[email protected]>
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 <[email protected]>
11 - Amireddy Mallikarjuna reddy <[email protected]>
15 const: intel,lgm-ssoled
21 maxItems: 2
23 clock-names:
[all …]
/linux-6.14.4/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-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 */
39 #define CHT_WC_LED_F_1_HZ (2 << 4)
45 #define CHT_WC_LED_EFF_BLINKING (2 << 1)
47 #define CHT_WC_LED_EFF_MASK GENMASK(2, 1)
49 #define CHT_WC_LED_COUNT 2
56 /* Mask + values for turning the LED on/off */
109 struct cht_wc_led *led = container_of(cdev, struct cht_wc_led, cdev); in cht_wc_leds_brightness_set() local
[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-mt6323.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * LED driver for Mediatek MT6323 PMIC
18 * 32K clock common for LED device.
30 * individual clock for LED device.
60 /* Register to LED channel enablement. */
69 * struct mt6323_led - state container for the LED device
70 * @id: the identifier in MT6323 LED device
71 * @parent: the pointer to MT6323 LED controller
72 * @cdev: LED class device for this LED device
73 * @current_brightness: current state of the LED device
[all …]
Dleds-mc13783.c1 // SPDX-License-Identifier: GPL-2.0-only
7 * Based on leds-da903x:
11 * Copyright (C) 2006-2008 Marvell International Ltd.
40 struct mc13xxx_led *led; member
56 struct mc13xxx_led *led = in mc13xxx_led_set() local
58 struct mc13xxx_leds *leds = led->leds; in mc13xxx_led_set()
61 switch (led->id) { in mc13xxx_led_set()
65 reg = 2; in mc13xxx_led_set()
66 shift = 9 + (led->id - MC13783_LED_MD) * 4; in mc13xxx_led_set()
77 off = led->id - MC13783_LED_R1; in mc13xxx_led_set()
[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"
26 * 0x40 engine 2 program (4 pages)
29 * 0xd0 engine 2 muxing info (1 page)
38 #define LP5569_MODE_ENG_SHIFT 2
41 #define LP5569_EXEC_ENG_SHIFT 2
53 #define LP5569_PWM_PWR_SAVE BIT(2)
62 #define LP5569_ENGINE1_INT BIT(2)
[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 …]
/linux-6.14.4/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 …]
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>
30 #define FLASH_STS_3CH_OTST3 BIT(2)
39 #define FLASH_STS_4CH_BOB_ILIM_S1 BIT(2)
49 #define FLASH_STROBE_HW_SW_SEL_BIT BIT(2)
128 REG_FIELD_ID(0x49, 0, 2, 3, 1), /* chan_strobe */
129 REG_FIELD(0x4c, 0, 2), /* chan_en */
130 REG_FIELD(0x56, 0, 2), /* therm_thrsh1 */
131 REG_FIELD(0x57, 0, 2), /* therm_thrsh2 */
[all …]
/linux-6.14.4/drivers/net/dsa/qca/
Dqca8k-leds.c1 // SPDX-License-Identifier: GPL-2.0
12 * Internal PHY 1 has port at index 2. in qca8k_phy_to_port()
13 * Internal PHY 2 has port at index 3. 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()
30 case 2: 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()
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.14.4/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"
12 model = "Blueridge 2U";
13 compatible = "ibm,blueridge-bmc", "aspeed,ast2600";
35 stdout-path = &uart5;
[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>
11 model = "Rainier 2U";
12 compatible = "ibm,rainier-bmc", "aspeed,ast2600";
34 stdout-path = &uart5;
43 reserved-memory {
[all …]
Daspeed-bmc-ibm-fuji.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,fuji-bmc", "aspeed,ast2600";
170 stdout-path = &uart5;
178 reserved-memory {
[all …]
/linux-6.14.4/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-6.14.4/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.14.4/drivers/leds/rgb/
Dleds-mt6370-rgb.c1 // SPDX-License-Identifier: GPL-2.0-only
14 #include <linux/led-class-multicolor.h>
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.
125 * 'MT6370_LED_ISNK1' ~ 'MT6370_LED_ISNK4', then this LED will choose
[all …]
/linux-6.14.4/arch/arm/boot/dts/marvell/
Dkirkwood-iomega_ix2_200.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
5 #include "kirkwood-6281.dtsi"
8 model = "Iomega StorCenter ix2-200";
9 compatible = "iom,ix2-200", "marvell,kirkwood-88f6281", "marvell,kirkwood";
18 stdout-path = &uart0;
22 pinctrl: pin-controller@10000 {
23 pinctrl-0 = < &pmx_led_sata_brt_ctrl_1
33 pinctrl-names = "default";
35 pmx_button_reset: pmx-button-reset {
[all …]

12345678910>>...42