Home
last modified time | relevance | path

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

12345678910>>...46

/kernel/linux/linux-5.10/drivers/leds/
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>
20 #define LED_CTL(rgb2en, rgb1en) ((rgb2en) << 4 | ((rgb1en) << 0))
22 #define BD2802_LED_OFFSET 0xa
23 #define BD2802_COLOR_OFFSET 0x3
25 #define BD2802_REG_CLKSETUP 0x00
26 #define BD2802_REG_CONTROL 0x01
27 #define BD2802_REG_HOURSETUP 0x02
[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/
18 #define LM36922_MODEL 0
21 #define LM3692X_REV 0x0
22 #define LM3692X_RESET 0x1
23 #define LM3692X_EN 0x10
24 #define LM3692X_BRT_CTRL 0x11
25 #define LM3692X_PWM_CTRL 0x12
26 #define LM3692X_BOOST_CTRL 0x13
[all …]
Dleds-lm3601x.c1 // SPDX-License-Identifier: GPL-2.0
2 // Flash and torch driver for Texas Instruments LM3601X LED
4 // Copyright (C) 2018 Texas Instruments Incorporated - https://www.ti.com/
9 #include <linux/led-class-flash.h>
14 #define LM3601X_LED_IR 0x0
15 #define LM3601X_LED_TORCH 0x1
18 #define LM3601X_ENABLE_REG 0x01
19 #define LM3601X_CFG_REG 0x02
20 #define LM3601X_LED_FLASH_REG 0x03
21 #define LM3601X_LED_TORCH_REG 0x04
[all …]
Dleds-cpcap.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 #include <linux/mfd/motorola-cpcap.h>
15 #define CPCAP_LED_NO_CURRENT 0x0001
27 .mask = 0x03FF,
33 .mask = 0x03FF,
39 .mask = 0x03FF,
46 .mask = 0x000F,
48 .init_mask = 0x7FFF,
49 .init_val = 0x5FF0,
52 /* camera privacy led */
[all …]
Dleds-aat1290.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * LED Flash class driver for the AAT1290
4 * 1.5A Step-Up Current Regulator for Flash LEDs
12 #include <linux/led-class-flash.h>
20 #include <media/v4l2-flash-led-class.h>
49 /* maximum LED current in movie mode */
51 /* maximum LED current in flash mode */
57 /* max LED brightness level */
67 /* corresponding LED Flash class device */
96 static void aat1290_as2cwire_write(struct aat1290_led *led, int addr, int value) in aat1290_as2cwire_write() argument
[all …]
Dleds-max8997.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * leds-max8997.c - LED class driver for MAX8997 LEDs.
14 #include <linux/mfd/max8997-private.h>
18 #define MAX8997_LED_FLASH_CUR_MASK 0xf8
20 #define MAX8997_LED_MOVIE_CUR_MASK 0xf0
22 #define MAX8997_LED_FLASH_MAX_BRIGHTNESS 0x1f
23 #define MAX8997_LED_MOVIE_MAX_BRIGHTNESS 0xf
24 #define MAX8997_LED_NONE_MAX_BRIGHTNESS 0
26 #define MAX8997_LED0_FLASH_MASK 0x1
27 #define MAX8997_LED0_FLASH_PIN_MASK 0x5
[all …]
Dleds-lm3697.c1 // SPDX-License-Identifier: GPL-2.0
2 // TI LM3697 LED chip family driver
3 // Copyright (C) 2018 Texas Instruments Incorporated - https://www.ti.com/
10 #include <linux/leds-ti-lmu-common.h>
12 #define LM3697_REV 0x0
13 #define LM3697_RESET 0x1
14 #define LM3697_OUTPUT_CONFIG 0x10
15 #define LM3697_CTRL_A_RAMP 0x11
16 #define LM3697_CTRL_B_RAMP 0x12
17 #define LM3697_CTRL_A_B_RT_RAMP 0x13
[all …]
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>
22 #define MODE_OFF 0
32 #define FLED1_IOUT (1 << 0)
59 /* corresponding LED Flash class device */
80 /* sub led data */
[all …]
Dleds-lp8860.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * TI LP8860 4-Channel LED Driver
22 #define LP8860_DISP_CL1_BRT_MSB 0x00
23 #define LP8860_DISP_CL1_BRT_LSB 0x01
24 #define LP8860_DISP_CL1_CURR_MSB 0x02
25 #define LP8860_DISP_CL1_CURR_LSB 0x03
26 #define LP8860_CL2_BRT_MSB 0x04
27 #define LP8860_CL2_BRT_LSB 0x05
28 #define LP8860_CL2_CURRENT 0x06
29 #define LP8860_CL3_BRT_MSB 0x07
[all …]
Dleds-ktd2692.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * LED driver : leds-ktd2692.c
12 #include <linux/led-class-flash.h>
26 #define KTD2692_FLASH_MODE_TIMEOUT_DISABLE 0
33 #define KTD2692_REG_LVP_BASE 0x00
34 #define KTD2692_REG_FLASH_TIMEOUT_BASE 0x20
35 #define KTD2692_REG_MM_MIN_CURR_THRESHOLD_BASE 0x40
36 #define KTD2692_REG_MOVIE_CURRENT_BASE 0x60
37 #define KTD2692_REG_FLASH_CURRENT_BASE 0x80
38 #define KTD2692_REG_MODE_BASE 0xA0
[all …]
/kernel/linux/linux-6.6/drivers/leds/
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>
20 #define LED_CTL(rgb2en, rgb1en) ((rgb2en) << 4 | ((rgb1en) << 0))
22 #define BD2802_LED_OFFSET 0xa
23 #define BD2802_COLOR_OFFSET 0x3
25 #define BD2802_REG_CLKSETUP 0x00
26 #define BD2802_REG_CONTROL 0x01
27 #define BD2802_REG_HOURSETUP 0x02
[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/
17 #define LM36922_MODEL 0
20 #define LM3692X_REV 0x0
21 #define LM3692X_RESET 0x1
22 #define LM3692X_EN 0x10
23 #define LM3692X_BRT_CTRL 0x11
24 #define LM3692X_PWM_CTRL 0x12
25 #define LM3692X_BOOST_CTRL 0x13
[all …]
Dleds-max8997.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * leds-max8997.c - LED class driver for MAX8997 LEDs.
14 #include <linux/mfd/max8997-private.h>
18 #define MAX8997_LED_FLASH_CUR_MASK 0xf8
20 #define MAX8997_LED_MOVIE_CUR_MASK 0xf0
22 #define MAX8997_LED_FLASH_MAX_BRIGHTNESS 0x1f
23 #define MAX8997_LED_MOVIE_MAX_BRIGHTNESS 0xf
24 #define MAX8997_LED_NONE_MAX_BRIGHTNESS 0
26 #define MAX8997_LED0_FLASH_MASK 0x1
27 #define MAX8997_LED0_FLASH_PIN_MASK 0x5
[all …]
Dleds-cpcap.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 #include <linux/mfd/motorola-cpcap.h>
15 #define CPCAP_LED_NO_CURRENT 0x0001
27 .mask = 0x03FF,
33 .mask = 0x03FF,
39 .mask = 0x03FF,
46 .mask = 0x000F,
48 .init_mask = 0x7FFF,
49 .init_val = 0x5FF0,
52 /* camera privacy led */
[all …]
Dleds-lm3697.c1 // SPDX-License-Identifier: GPL-2.0
2 // TI LM3697 LED chip family driver
3 // Copyright (C) 2018 Texas Instruments Incorporated - https://www.ti.com/
15 #include <linux/leds-ti-lmu-common.h>
17 #define LM3697_REV 0x0
18 #define LM3697_RESET 0x1
19 #define LM3697_OUTPUT_CONFIG 0x10
20 #define LM3697_CTRL_A_RAMP 0x11
21 #define LM3697_CTRL_B_RAMP 0x12
22 #define LM3697_CTRL_A_B_RT_RAMP 0x13
[all …]
Dleds-lp8860.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * TI LP8860 4-Channel LED Driver
21 #define LP8860_DISP_CL1_BRT_MSB 0x00
22 #define LP8860_DISP_CL1_BRT_LSB 0x01
23 #define LP8860_DISP_CL1_CURR_MSB 0x02
24 #define LP8860_DISP_CL1_CURR_LSB 0x03
25 #define LP8860_CL2_BRT_MSB 0x04
26 #define LP8860_CL2_BRT_LSB 0x05
27 #define LP8860_CL2_CURRENT 0x06
28 #define LP8860_CL3_BRT_MSB 0x07
[all …]
/kernel/linux/linux-6.6/sound/usb/caiaq/
Dcontrol.c1 // SPDX-License-Identifier: GPL-2.0-or-later
17 #define CNT_INTVAL 0x10000
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()
35 if (pos == 0) { 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()
[all …]
/kernel/linux/linux-5.10/sound/usb/caiaq/
Dcontrol.c1 // SPDX-License-Identifier: GPL-2.0-or-later
17 #define CNT_INTVAL 0x10000
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()
35 if (pos == 0) { 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()
[all …]
/kernel/linux/linux-6.6/drivers/leds/flash/
Dleds-lm3601x.c1 // SPDX-License-Identifier: GPL-2.0
2 // Flash and torch driver for Texas Instruments LM3601X LED
4 // Copyright (C) 2018 Texas Instruments Incorporated - https://www.ti.com/
9 #include <linux/led-class-flash.h>
14 #define LM3601X_LED_IR 0x0
15 #define LM3601X_LED_TORCH 0x1
18 #define LM3601X_ENABLE_REG 0x01
19 #define LM3601X_CFG_REG 0x02
20 #define LM3601X_LED_FLASH_REG 0x03
21 #define LM3601X_LED_TORCH_REG 0x04
[all …]
Dleds-aat1290.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * LED Flash class driver for the AAT1290
4 * 1.5A Step-Up Current Regulator for Flash LEDs
12 #include <linux/led-class-flash.h>
20 #include <media/v4l2-flash-led-class.h>
49 /* maximum LED current in movie mode */
51 /* maximum LED current in flash mode */
57 /* max LED brightness level */
67 /* corresponding LED Flash class device */
96 static void aat1290_as2cwire_write(struct aat1290_led *led, int addr, int value) in aat1290_as2cwire_write() argument
[all …]
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>
22 #define MODE_OFF 0
32 #define FLED1_IOUT (1 << 0)
59 /* corresponding LED Flash class device */
80 /* sub led data */
[all …]
Dleds-ktd2692.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * LED driver : leds-ktd2692.c
12 #include <linux/led-class-flash.h>
26 #define KTD2692_FLASH_MODE_TIMEOUT_DISABLE 0
33 #define KTD2692_REG_LVP_BASE 0x00
34 #define KTD2692_REG_FLASH_TIMEOUT_BASE 0x20
35 #define KTD2692_REG_MM_MIN_CURR_THRESHOLD_BASE 0x40
36 #define KTD2692_REG_MOVIE_CURRENT_BASE 0x60
37 #define KTD2692_REG_FLASH_CURRENT_BASE 0x80
38 #define KTD2692_REG_MODE_BASE 0xA0
[all …]
/kernel/linux/linux-6.6/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-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 …]
/kernel/linux/linux-5.10/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 …]

12345678910>>...46