| /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/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/ 38 #define LM36923_LED3_EN BIT(3) 48 #define LM3692X_RAMP_RATE_2ms BIT(3) 49 #define LM3692X_RAMP_RATE_4ms (BIT(3) | BIT(1)) 50 #define LM3692X_RAMP_RATE_8ms (BIT(2) | BIT(3)) 51 #define LM3692X_RAMP_RATE_16ms (BIT(1) | BIT(2) | BIT(3)) 64 #define LM3692X_PWM_HYSTER_2LSB BIT(3) 65 #define LM3692X_PWM_HYSTER_3LSB (BIT(3) | BIT(2)) [all …]
|
| H A D | leds-88pm860x.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * LED driver for Marvell 88PM860x 23 #define LED_ON_CONTINUOUS (0x0F << 3) 47 int ret = -EINVAL; in led_power_set() 56 case 3: in led_power_set() 69 struct pm860x_led *led = container_of(cdev, struct pm860x_led, cdev); in pm860x_led_set() local 71 unsigned char buf[3]; in pm860x_led_set() 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() [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() 66 shift = 9 + (led->id - MC13783_LED_MD) * 4; in mc13xxx_led_set() 77 off = led->id - MC13783_LED_R1; in mc13xxx_led_set() 78 bank = off / 3; in mc13xxx_led_set() [all …]
|
| H A D | leds-aw2013.c | 1 // SPDX-License-Identifier: GPL-2.0+ 2 // Driver for Awinic AW2013 3-channel LED driver 12 #define AW2013_MAX_LEDS 3 23 /* LED channel enable register */ 27 /* LED channel control registers */ 29 #define AW2013_LCFG_IMAX_MASK (BIT(0) | BIT(1)) // Should be 0-3 34 /* LED channel PWM registers */ 37 /* LED channel timing registers */ 38 #define AW2013_LEDT0(x) (0x37 + (x) * 3) 39 #define AW2013_LEDT0_T1(x) ((x) << 4) // Should be 0-7 [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" 27 * 0x80 engine 3 program (4 pages) 30 * 0xe0 engine 3 muxing info (1 page) 52 #define LP5569_CP_MODE_MASK GENMASK(4, 3) 57 #define LP5569_LED_OPEN_TEST BIT(3) 68 #define LP5569_CLK_OUTPUT BIT(3) 84 #define LP5569_LED_FAULT3 BIT(3) [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-bcm6358.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Driver for BCM6358 memory-mapped LEDs, based on leds-syscon.c 18 #define BCM6358_SLED_CLKDIV_MASK 3 22 #define BCM6358_SLED_CLKDIV_8 3 25 #define BCM6358_SLED_BUSY BIT(3) 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 [all …]
|
| H A D | leds-ns2.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * leds-ns2.c - Driver for the Network Space v2 (and parents) dual-GPIO LED 9 * Based on leds-gpio.c by Raphael Assenat <raph@8d.com> 39 * The Network Space v2 dual-GPIO LED is wired to a CPLD. Three different LED 40 * modes are available: off, on and SATA activity blinking. The LED modes are 42 * for the command/slow GPIOs corresponds to a LED mode. 56 static int ns2_led_get_mode(struct ns2_led *led, enum ns2_led_modes *mode) in ns2_led_get_mode() argument 62 cmd_level = gpiod_get_value_cansleep(led->cmd); in ns2_led_get_mode() 63 slow_level = gpiod_get_value_cansleep(led->slow); in ns2_led_get_mode() 65 for (i = 0; i < led->num_modes; i++) { in ns2_led_get_mode() [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" 55 #define LM3532_PWM_ZONE_1_EN BIT(3) 64 #define LM3532_ZONE_MASK (BIT(2) | BIT(3) | BIT(4)) 67 #define LM3532_ZONE_2 BIT(3) 68 #define LM3532_ZONE_3 (BIT(2) | BIT(3)) 71 #define LM3532_ENABLE_ALS BIT(3) 82 #define LM3532_MAX_CONTROL_BANKS 3 [all …]
|
| H A 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 …]
|
| /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-bcm6328.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/leds/leds-bcm6328.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Álvaro Fernández Rojas <noltari@gmail.com> 17 as spi-gpio. See 21 exporting the 74x164 as spi-gpio prevents those LEDs to be hardware 24 BCM6328 LED controller has a HWDIS register, which controls whether a LED 27 is usually 1:1 for hardware to LED signals, but through the activity/link 29 explained later in brcm,link-signal-sources). Even if a LED is hardware [all …]
|
| H A D | awinic,aw200xx.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: AWINIC AW200XX LED 10 - Martin Kurbanov <mmkurbanov@sberdevices.ru> 13 It is a matrix LED driver programmed via an I2C interface. Devices have 14 a set of individually controlled leds and support 3 pattern controllers 16 - AW20036 (3x12) 36 LEDs 17 - AW20054 (6x9) 54 LEDs 18 - AW20072 (6x12) 72 LEDs [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 …]
|
| H A D | ti.lm36922.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: Texas Instruments - LM3692x Highly Efficient White LED Driver 10 - Dan Murphy <dmurphy@ti.com> 13 The LM3692x is an ultra-compact, highly efficient, 14 white-LED driver designed for LCD display backlighting. 17 LED strings it supports. The LM36922 supports two strings while the LM36923 26 - ti,lm36922 27 - ti,lm36923 [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) 112 #define MC_CHANNEL_NUM 3 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. [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 …]
|
| /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" 27 GT683R_LED_BREATHING = 3, 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() 83 struct hid_device *hdev = to_hid_device(dev->parent); in mode_show() [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 */ 36 [3] = 5, /* yellow */ 37 [4] = 3, /* blue */ 117 mutex_lock(&ldev->lock); in hidled_send() 123 memcpy(ldev->buf, buf, ldev->config->report_size); in hidled_send() 125 if (ldev->config->report_type == RAW_REQUEST) in hidled_send() [all …]
|
| /linux/Documentation/sound/hd-audio/ |
| H A D | models.rst | 2 HD-Audio Codec-Specific Models 7 3stack 8 3-jack in back and a headphone out 9 3stack-digout 10 3-jack in back, a HP out and a SPDIF out 12 5-jack in back, 2-jack in front 13 5stack-digout 14 5-jack in back, 2-jack in front, a SPDIF out 16 6-jack in back, 2-jack in front 17 6stack-digout [all …]
|
| /linux/drivers/net/wireless/ath/ath5k/ |
| H A D | led.c | 2 * Copyright (c) 2002-2005 Sam Leffler, Errno Consulting 3 * Copyright (c) 2004-2005 Atheros Communications, Inc. 19 * 3. Neither the names of the above-listed copyright holders nor the names 55 /* Devices we match on for LED config info (typically laptops) */ 62 { ATH_SDEVICE(PCI_VENDOR_ID_FOXCONN, 0xe008), ATH_LED(3, 0) }, 63 /* Acer Aspire One AO531h AO751h (keng-yu.lin@canonical.com) */ 64 { ATH_SDEVICE(PCI_VENDOR_ID_FOXCONN, 0xe00d), ATH_LED(3, 0) }, 67 /* E-machines E510 (tuliom@gmail.com) */ 68 { ATH_SDEVICE(PCI_VENDOR_ID_AMBIT, 0x0428), ATH_LED(3, 0) }, 72 { ATH_SDEVICE(PCI_VENDOR_ID_QMI, 0x0105), ATH_LED(3, 0) }, [all …]
|
| /linux/arch/arm/boot/dts/aspeed/ |
| H A D | aspeed-bmc-ibm-system1.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 /dts-v1/; 5 #include "aspeed-g6.dtsi" 6 #include <dt-bindings/gpio/aspeed-gpio.h> 7 #include <dt-bindings/i2c/i2c.h> 8 #include <dt-bindings/leds/leds-pca955x.h> 12 compatible = "ibm,system1-bmc", "aspeed,ast2600"; 74 stdout-path = "uart5:115200n8"; 82 reserved-memory { 83 #address-cells = <1>; [all …]
|
| /linux/drivers/leds/flash/ |
| H A D | leds-mt6360.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 #include <linux/led-class-flash.h> 9 #include <linux/led-class-multicolor.h> 15 #include <media/v4l2-flash-led-class.h> 29 #define MT6360_ISNK_ENMASK(_led_no) BIT(7 - (_led_no)) 31 #define MT6360_CHRINDSEL_MASK BIT(3) 35 #define MULTICOLOR_NUM_CHANNELS 3 39 #define MT6360_REG_FLEDBASE(_id) (0x372 + 4 * (_id - MT6360_LED_FLASH1)) 41 #define MT6360_REG_FLEDITOR(_id) (MT6360_REG_FLEDBASE(_id) + 3) 47 #define MT6360_TORCHEN_MASK BIT(3) [all …]
|