| /linux/sound/usb/caiaq/ |
| H A 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/Documentation/devicetree/bindings/leds/ |
| H A D | leds-mt6360.yaml | 1 # 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 …]
|
| H A 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 …]
|
| H A D | leds-lgm.yaml | 1 # 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 <Yixin.zhu@intel.com> 11 - Amireddy Mallikarjuna reddy <mallikarjunax.reddy@intel.com> 15 const: intel,lgm-ssoled 21 maxItems: 2 23 clock-names: [all …]
|
| H A D | kinetic,ktd202x.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Kinetic KTD2026/7 RGB/White LED Driver 10 - André Apitzsch <git@apitzsch.eu> 13 The KTD2026/7 is a RGB/White LED driver with I2C interface. 16 https://www.kinet-ic.com/uploads/KTD2026-7-04h.pdf 21 - kinetic,ktd2026 22 - kinetic,ktd2027 27 vin-supply: [all …]
|
| /linux/drivers/leds/ |
| H A 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/ 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 …]
|
| H A 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 …]
|
| H A D | leds-mt6323.c | 1 // 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 …]
|
| H A D | leds-lp5569.c | 1 // 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 …]
|
| H A 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. 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 …]
|
| H A 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 …]
|
| H A D | leds-el15203000.c | 1 // SPDX-License-Identifier: GPL-2.0 14 * +-----+---------+ 15 * | LED | COMMAND | 16 * +-----+---------+ 18 * +-----+---------+ 22 * +----------+--------------+-------------------------------------------+ 24 * +----------+--------------+-------------------------------------------+ 26 * +----------+--------------+-------------------------------------------+ 28 * +----------+--------------+-------------------------------------------+ 30 * +----------+--------------+-------------------------------------------+ [all …]
|
| H A 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 …]
|
| H A 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 …]
|
| H A 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> 25 #define PCA9532_REG_PSC(m, i) (PCA9532_REG_OFFSET(m) + 0x1 + (i) * 2) 26 #define PCA9532_REG_PWM(m, i) (PCA9532_REG_OFFSET(m) + 0x2 + (i) * 2) 27 #define LED_REG(m, led) (PCA9532_REG_OFFSET(m) + 0x5 + (led >> 2)) argument 28 #define LED_NUM(led) (led & 0x3) argument 29 #define LED_SHIFT(led) (LED_NUM(led) * 2) argument 30 #define LED_MASK(led) (0x3 << LED_SHIFT(led)) argument 54 u8 pwm[2]; [all …]
|
| H A 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 …]
|
| /linux/drivers/leds/flash/ |
| H A 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 …]
|
| H A D | leds-mt6370-flash.c | 1 // SPDX-License-Identifier: GPL-2.0-only 15 #include <linux/led-class-flash.h> 22 #include <media/v4l2-flash-led-class.h> 42 #define MT6370_STROBEN_MASK BIT(2) 43 #define MT6370_FLCSEN_MASK(_id) BIT(MT6370_LED_FLASH2 - (_id)) 54 #define MT6370_LED_JOINT 2 89 struct mt6370_led *led = to_mt6370_led(lcdev, flash.led_cdev); in mt6370_torch_brightness_set() local 90 struct mt6370_priv *priv = led->priv; in mt6370_torch_brightness_set() 91 u32 led_enable_mask = led->led_no == MT6370_LED_JOINT ? MT6370_FLCSEN_MASK_ALL : in mt6370_torch_brightness_set() 92 MT6370_FLCSEN_MASK(led->led_no); in mt6370_torch_brightness_set() [all …]
|
| /linux/drivers/hid/ |
| H A 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, 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 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/arch/arm/boot/dts/ti/omap/ |
| H A D | omap3-echo.dts | 1 // 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/drivers/leds/rgb/ |
| H A D | leds-mt6370-rgb.c | 1 // 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 …]
|
| H A D | leds-ktd202x.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Kinetic KTD2026/7 RGB/White LED driver with I2C interface 7 * Datasheet: https://www.kinet-ic.com/uploads/KTD2026-7-04h.pdf 11 #include <linux/led-class-multicolor.h> 50 /* Register 2-3 */ 54 #define KTD202X_CHANNEL_CTRL_MASK(x) (BIT(2 * (x)) | BIT(2 * (x) + 1)) 56 #define KTD202X_CHANNEL_CTRL_ON(x) BIT(2 * (x)) 57 #define KTD202X_CHANNEL_CTRL_PWM1(x) BIT(2 * (x) + 1) 58 #define KTD202X_CHANNEL_CTRL_PWM2(x) (BIT(2 * (x)) | BIT(2 * (x) + 1)) 63 /* Register 6-9 */ [all …]
|
| /linux/arch/arm/boot/dts/marvell/ |
| H A D | kirkwood-iomega_ix2_200.dts | 1 // 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 …]
|
| /linux/arch/mips/boot/dts/mti/ |
| H A 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 …]
|