Home
last modified time | relevance | path

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

12345678910>>...47

/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 …]
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.
25 * individual clock for LED device.
40 #define MT6323_ISINK_CON0(i) (MT6323_ISINK0_CON0 + 0x8 * (i))
41 #define MT6323_ISINK_DIM_DUTY_MASK (0x1f << 8)
46 #define MT6323_ISINK_CON1(i) (MT6323_ISINK0_CON1 + 0x8 * (i))
47 #define MT6323_ISINK_DIM_FSEL_MASK (0xffff)
51 #define MT6323_ISINK_CON2(i) (MT6323_ISINK0_CON2 + 0x8 * (i))
53 #define MT6323_ISINK_CH_STEP_MASK (0x7 << 12)
[all …]
Dleds-bcm6328.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Driver for BCM6328 memory-mapped LEDs, based on leds-syscon.c
15 #define BCM6328_REG_INIT 0x00
16 #define BCM6328_REG_MODE_HI 0x04
17 #define BCM6328_REG_MODE_LO 0x08
18 #define BCM6328_REG_HWDIS 0x0c
19 #define BCM6328_REG_STROBE 0x10
20 #define BCM6328_REG_LNKACTSEL_HI 0x14
21 #define BCM6328_REG_LNKACTSEL_LO 0x18
22 #define BCM6328_REG_RBACK 0x1c
[all …]
Dleds-wm8350.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * LED driver for WM8350 driven LEDS.
88 static int wm8350_led_enable(struct wm8350_led *led) in wm8350_led_enable() argument
90 int ret = 0; in wm8350_led_enable()
92 if (led->enabled) in wm8350_led_enable()
95 ret = regulator_enable(led->isink); in wm8350_led_enable()
96 if (ret != 0) { in wm8350_led_enable()
97 dev_err(led->cdev.dev, "Failed to enable ISINK: %d\n", ret); in wm8350_led_enable()
101 ret = regulator_enable(led->dcdc); in wm8350_led_enable()
102 if (ret != 0) { in wm8350_led_enable()
[all …]
/kernel/linux/linux-4.19/drivers/leds/
Dleds-bd2802.c2 * leds-bd2802.c - RGB LED Driver
11 * Datasheet: http://www.rohm.com/products/databook/driver/pdf/bd2802gu-e.pdf
20 #include <linux/leds-bd2802.h>
24 #define LED_CTL(rgb2en, rgb1en) ((rgb2en) << 4 | ((rgb1en) << 0))
26 #define BD2802_LED_OFFSET 0xa
27 #define BD2802_COLOR_OFFSET 0x3
29 #define BD2802_REG_CLKSETUP 0x00
30 #define BD2802_REG_CONTROL 0x01
31 #define BD2802_REG_HOURSETUP 0x02
32 #define BD2802_REG_CURRENT1SETUP 0x03
[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 - http://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 - http://www.ti.com/
9 #include <linux/led-class-flash.h>
15 #define LM3601X_LED_IR 0x0
16 #define LM3601X_LED_TORCH 0x1
19 #define LM3601X_ENABLE_REG 0x01
20 #define LM3601X_CFG_REG 0x02
21 #define LM3601X_LED_FLASH_REG 0x03
22 #define LM3601X_LED_TORCH_REG 0x04
[all …]
Dleds-lp8860.c2 * TI LP8860 4-Channel LED Driver
27 #define LP8860_DISP_CL1_BRT_MSB 0x00
28 #define LP8860_DISP_CL1_BRT_LSB 0x01
29 #define LP8860_DISP_CL1_CURR_MSB 0x02
30 #define LP8860_DISP_CL1_CURR_LSB 0x03
31 #define LP8860_CL2_BRT_MSB 0x04
32 #define LP8860_CL2_BRT_LSB 0x05
33 #define LP8860_CL2_CURRENT 0x06
34 #define LP8860_CL3_BRT_MSB 0x07
35 #define LP8860_CL3_BRT_LSB 0x08
[all …]
Dleds-cpcap.c15 #include <linux/mfd/motorola-cpcap.h>
23 #define CPCAP_LED_NO_CURRENT 0x0001
35 .mask = 0x03FF,
41 .mask = 0x03FF,
47 .mask = 0x03FF,
54 .mask = 0x000F,
56 .init_mask = 0x7FFF,
57 .init_val = 0x5FF0,
60 /* camera privacy led */
63 .mask = 0x0007,
[all …]
Dleds-aat1290.c2 * LED Flash class driver for the AAT1290
3 * 1.5A Step-Up Current Regulator for Flash LEDs
15 #include <linux/led-class-flash.h>
23 #include <media/v4l2-flash-led-class.h>
50 /* maximum LED current in movie mode */
52 /* maximum LED current in flash mode */
58 /* max LED brightness level */
68 /* corresponding LED Flash class device */
98 static void aat1290_as2cwire_write(struct aat1290_led *led, int addr, int value) in aat1290_as2cwire_write() argument
102 gpiod_direction_output(led->gpio_fl_en, 0); in aat1290_as2cwire_write()
[all …]
Dleds-max8997.c2 * leds-max8997.c - LED class driver for MAX8997 LEDs.
18 #include <linux/mfd/max8997-private.h>
22 #define MAX8997_LED_FLASH_CUR_MASK 0xf8
24 #define MAX8997_LED_MOVIE_CUR_MASK 0xf0
26 #define MAX8997_LED_FLASH_MAX_BRIGHTNESS 0x1f
27 #define MAX8997_LED_MOVIE_MAX_BRIGHTNESS 0xf
28 #define MAX8997_LED_NONE_MAX_BRIGHTNESS 0
30 #define MAX8997_LED0_FLASH_MASK 0x1
31 #define MAX8997_LED0_FLASH_PIN_MASK 0x5
32 #define MAX8997_LED0_MOVIE_MASK 0x8
[all …]
Dleds-max77693.c2 * LED Flash class driver for the flash cell of max77693 mfd.
14 #include <linux/led-class-flash.h>
16 #include <linux/mfd/max77693-common.h>
17 #include <linux/mfd/max77693-private.h>
23 #include <media/v4l2-flash-led-class.h>
25 #define MODE_OFF 0
35 #define FLED1_IOUT (1 << 0)
62 /* corresponding LED Flash class device */
83 /* sub led data */
99 /* bitmask of FLED outputs use state (bit 0. - FLED1, bit 1. - FLED2) */
[all …]
Dleds-ktd2692.c2 * LED driver : leds-ktd2692.c
15 #include <linux/led-class-flash.h>
29 #define KTD2692_FLASH_MODE_TIMEOUT_DISABLE 0
36 #define KTD2692_REG_LVP_BASE 0x00
37 #define KTD2692_REG_FLASH_TIMEOUT_BASE 0x20
38 #define KTD2692_REG_MM_MIN_CURR_THRESHOLD_BASE 0x40
39 #define KTD2692_REG_MOVIE_CURRENT_BASE 0x60
40 #define KTD2692_REG_FLASH_CURRENT_BASE 0x80
41 #define KTD2692_REG_MODE_BASE 0xA0
55 KTD2692_LOW = 0,
[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-4.19/sound/usb/caiaq/
Dcontrol.c17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
30 #define CNT_INTVAL 0x10000
37 struct snd_usb_caiaqdev *cdev = caiaqdev(chip->card); in control_info()
38 int pos = kcontrol->private_value; in control_info()
42 uinfo->count = 1; in control_info()
45 switch (cdev->chip.usb_id) { in control_info()
48 if (pos == 0) { in control_info()
50 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in control_info()
51 uinfo->value.integer.min = 0; in control_info()
52 uinfo->value.integer.max = 2; in control_info()
[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>>...47