/Linux-v5.10/sound/usb/caiaq/ |
D | control.c | 1 // 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.10/drivers/leds/ |
D | leds-lm3692x.c | 1 // 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 …]
|
D | leds-max77693.c | 1 // 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 …]
|
D | leds-lm3533.c | 1 // 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 …]
|
D | leds-mc13783.c | 1 // 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 …]
|
D | leds-lm3532.c | 1 // 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 …]
|
D | leds-el15203000.c | 1 // SPDX-License-Identifier: GPL-2.0 13 * +-----+---------+ 14 * | LED | COMMAND | 15 * +-----+---------+ 17 * +-----+---------+ 21 * +----------+--------------+-------------------------------------------+ 23 * +----------+--------------+-------------------------------------------+ 25 * +----------+--------------+-------------------------------------------+ 27 * +----------+--------------+-------------------------------------------+ 29 * +----------+--------------+-------------------------------------------+ [all …]
|
D | leds-88pm860x.c | 1 // 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 …]
|
D | leds-bd2802.c | 1 // 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 …]
|
D | leds-bcm6358.c | 1 // 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 …]
|
D | leds-pca9532.c | 1 // 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 …]
|
D | leds-ariel.c | 1 // 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 …]
|
D | leds-turris-omnia.c | 1 // 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 …]
|
D | leds-wm831x-status.c | 1 // 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 …]
|
D | leds-bcm6328.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Driver for BCM6328 memory-mapped LEDs, based on leds-syscon.c 28 #define BCM6328_LED_BLINK_DELAYS 2 54 #define BCM6328_LED_MODE_BLINK2 2 59 * struct bcm6328_led - state container for bcm6328 based LEDs 60 * @cdev: LED class device for this LED 63 * @pin: LED pin number 66 * @active_low: LED is active low 98 * bits [31:0] -> LEDs 8-23 99 * bits [47:32] -> LEDs 0-7 [all …]
|
D | leds-lm3697.c | 1 // 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> 39 #define LM3697_MAX_CONTROL_BANKS 2 42 * struct lm3697_led - 43 * @hvled_strings: Array of LED strings associated with a control bank 44 * @label: LED label 45 * @led_dev: LED class device 48 * @control_bank: Control bank the LED is associated to. 0 is control bank A [all …]
|
/Linux-v5.10/Documentation/devicetree/bindings/leds/ |
D | leds-lp55xx.yaml | 1 # 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 …]
|
D | common.yaml | 1 # 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 …]
|
D | leds-lp50xx.yaml | 1 # 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 …]
|
D | leds-aw2013.yaml | 1 # 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 …]
|
D | leds-bcm6328.txt | 7 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 …]
|
D | leds-lm3697.txt | 1 * Texas Instruments - LM3697 Highly Efficient White LED Driver 3 The LM3697 11-bit LED driver provides high- 4 performance backlight dimming for 1, 2, or 3 series 5 LED strings while delivering up to 90% efficiency. 10 - compatible: 12 - reg : I2C slave address 13 - #address-cells : 1 14 - #size-cells : 0 17 - enable-gpios : GPIO pin to enable/disable the device 18 - vled-supply : LED supply [all …]
|
/Linux-v5.10/drivers/hid/ |
D | hid-gt683r.c | 1 // 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, 62 struct device *dev = led_cdev->dev->parent; in gt683r_brightness_set() 64 struct gt683r_led *led = hid_get_drvdata(hdev); in gt683r_brightness_set() local 67 if (led_cdev == &led->led_devs[i]) in gt683r_brightness_set() 72 led->brightnesses[i] = brightness; in gt683r_brightness_set() 73 schedule_work(&led->work); in gt683r_brightness_set() [all …]
|
D | hid-led.c | 1 // 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.10/arch/mips/boot/dts/mti/ |
D | sead3.dts | 1 // 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 …]
|