Home
last modified time | relevance | path

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

12345678910>>...43

/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/u-boot/drivers/led/
H A DKconfig1 menu "LED Support"
3 config LED config
4 bool "Enable LED support"
8 U-Boot provides a uclass API to implement this feature. LED drivers
9 can provide access to board-specific LEDs. Use of the device tree
13 bool "LED Support for BCM6328"
14 depends on LED && ARCH_BMIPS
17 LED HW controller accessed via MMIO registers.
20 means that if one LED is set to blink at 100ms and then a different
21 LED is set to blink at 200ms, both will blink at 200ms.
[all …]
/OK3568_Linux_fs/kernel/drivers/leds/
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/
38 #define LM3692X_LED2_EN BIT(2)
47 #define LM3692X_RAMP_RATE_500us BIT(2)
48 #define LM3692X_RAMP_RATE_1ms (BIT(1) | BIT(2))
51 #define LM3692X_RAMP_RATE_8ms (BIT(2) | BIT(3))
52 #define LM3692X_RAMP_RATE_16ms (BIT(1) | BIT(2) | BIT(3))
64 #define LM3692X_PWM_HYSTER_1LSB BIT(2)
66 #define LM3692X_PWM_HYSTER_3LSB (BIT(3) | BIT(2))
[all …]
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A Dleds-el15203000.c1 // SPDX-License-Identifier: GPL-2.0
13 * +-----+---------+
14 * | LED | COMMAND |
15 * +-----+---------+
17 * +-----+---------+
21 * +----------+--------------+-------------------------------------------+
23 * +----------+--------------+-------------------------------------------+
25 * +----------+--------------+-------------------------------------------+
27 * +----------+--------------+-------------------------------------------+
29 * +----------+--------------+-------------------------------------------+
[all …]
H A 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 …]
H A 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 …]
H A 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 …]
H A Dleds-lp5523.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * lp5523.c - LP5523, LP55231 LED Driver
19 #include <linux/platform_data/leds-lp55xx.h>
22 #include "leds-lp55xx-common.h"
27 * 0x10 engine 2 program
30 * 0x40 engine 2 muxing info
76 #define LP5523_PAGE_ENG3 2
104 #define LED_ACTIVE(mux, led) (!!(mux & (0x0001 << led))) argument
118 static void lp5523_set_led_current(struct lp55xx_led *led, u8 led_current) in lp5523_set_led_current() argument
120 led->led_current = led_current; in lp5523_set_led_current()
[all …]
H A Dleds-turris-omnia.c1 // SPDX-License-Identifier: GPL-2.0
9 #include <linux/led-class-multicolor.h>
33 #define OMNIA_CMD_LED_COLOR_R 2
56 struct omnia_leds *leds = dev_get_drvdata(cdev->dev->parent); in omnia_led_brightness_set_blocking()
57 struct omnia_led *led = to_omnia_led(mc_cdev); in omnia_led_brightness_set_blocking() local
61 mutex_lock(&leds->lock); in omnia_led_brightness_set_blocking()
63 led_mc_calc_color_components(&led->mc_cdev, brightness); in omnia_led_brightness_set_blocking()
66 buf[OMNIA_CMD_LED_COLOR_LED] = led->reg; in omnia_led_brightness_set_blocking()
67 buf[OMNIA_CMD_LED_COLOR_R] = mc_cdev->subled_info[0].brightness; in omnia_led_brightness_set_blocking()
68 buf[OMNIA_CMD_LED_COLOR_G] = mc_cdev->subled_info[1].brightness; in omnia_led_brightness_set_blocking()
[all …]
H A 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 …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/leds/
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 …]
H A 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 …]
H A 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 …]
H A Dleds-bcm6328.txt7 as spi-gpio. See Documentation/devicetree/bindings/gpio/gpio-74x164.txt), or
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 …]
/OK3568_Linux_fs/kernel/drivers/hid/
H A 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 …]
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 */
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 …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723bs/include/
H A Dhal_com_led.h3 * Copyright(c) 2007 - 2017 Realtek Corporation.
6 * under the terms of version 2 of the GNU General Public License as
25 * LED Behavior Constant.
27 * Default LED behavior.
34 /* LED Customerization */
55 #define LED_BLINK_NO_LINK_INTERVAL_ALPHA_500MS 500 /* add by ylb 20121012 for customer led for alph…
97 * LED object.
102 LED_CTL_LINK = 2,
120 RTW_LED_OFF = 2,
124 …LED_BLINK_SCAN = 6, /* LED is blinking during scanning period, the # of times to blink is depend o…
[all …]
/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/kernel/arch/arm/boot/dts/
H A Drk3036-echo.dts2 * This file is dual-licensed: you can use it either under the terms
9 * published by the Free Software Foundation; either version 2 of the
41 /dts-v1/;
47 compatible = "rockchip,rk3036-echo", "rockchip,rk3036";
49 fiq-debugger {
50 compatible = "rockchip,fiq-debugger";
52 rockchip,serial-id = <2>;
53 rockchip,wake-irq = <0>;
55 rockchip,irq-mode-enable = <0>;
58 pinctrl-names = "default";
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8188eu/include/
H A Dhal_com_led.h1 /* SPDX-License-Identifier: GPL-2.0 */
4 * Copyright(c) 2007 - 2017 Realtek Corporation.
7 * under the terms of version 2 of the GNU General Public License as
26 * LED Behavior Constant.
28 * Default LED behavior.
35 /* LED Customerization */
56 #define LED_BLINK_NO_LINK_INTERVAL_ALPHA_500MS 500 /* add by ylb 20121012 for customer led for alph…
98 * LED object.
103 LED_CTL_LINK = 2,
125 RTW_LED_OFF = 2,
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8189fs/include/
H A Dhal_com_led.h1 /* SPDX-License-Identifier: GPL-2.0 */
4 * Copyright(c) 2007 - 2017 Realtek Corporation.
7 * under the terms of version 2 of the GNU General Public License as
26 * LED Behavior Constant.
28 * Default LED behavior.
35 /* LED Customerization */
56 #define LED_BLINK_NO_LINK_INTERVAL_ALPHA_500MS 500 /* add by ylb 20121012 for customer led for alph…
98 * LED object.
103 LED_CTL_LINK = 2,
125 RTW_LED_OFF = 2,
[all …]

12345678910>>...43