| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-5.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 …]
|
| /kernel/linux/linux-5.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/ 39 #define LM36923_LED3_EN BIT(3) 49 #define LM3692X_RAMP_RATE_2ms BIT(3) 50 #define LM3692X_RAMP_RATE_4ms (BIT(3) | BIT(1)) 51 #define LM3692X_RAMP_RATE_8ms (BIT(2) | BIT(3)) 52 #define LM3692X_RAMP_RATE_16ms (BIT(1) | BIT(2) | BIT(3)) 65 #define LM3692X_PWM_HYSTER_2LSB BIT(3) 66 #define LM3692X_PWM_HYSTER_3LSB (BIT(3) | BIT(2)) [all …]
|
| 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 …]
|
| 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() 65 shift = 9 + (led->id - MC13783_LED_MD) * 4; in mc13xxx_led_set() 76 off = led->id - MC13783_LED_R1; in mc13xxx_led_set() 77 bank = off / 3; in mc13xxx_led_set() [all …]
|
| 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 …]
|
| /kernel/linux/linux-6.6/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 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 …]
|
| 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 …]
|
| 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() 65 shift = 9 + (led->id - MC13783_LED_MD) * 4; in mc13xxx_led_set() 76 off = led->id - MC13783_LED_R1; in mc13xxx_led_set() 77 bank = off / 3; in mc13xxx_led_set() [all …]
|
| 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 …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/leds/ |
| 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 …]
|
| 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 | qcom,spmi-flash-led.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/leds/qcom,spmi-flash-led.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Flash LED device inside Qualcomm Technologies, Inc. PMICs 10 - Fenglin Wu <quic_fenglinw@quicinc.com> 13 Flash LED controller is present inside some Qualcomm Technologies, Inc. PMICs. 14 The flash LED module can have different number of LED channels supported 15 e.g. 3 or 4. There are some different registers between them but they can 24 - enum: [all …]
|
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/net/dsa/qca/ |
| D | qca8k-leds.c | 1 // SPDX-License-Identifier: GPL-2.0 13 * Internal PHY 2 has port at index 3. in qca8k_phy_to_port() 14 * Internal PHY 3 has port at index 4. in qca8k_phy_to_port() 26 reg_info->reg = QCA8K_LED_CTRL_REG(led_num); in qca8k_get_enable_led_reg() 27 reg_info->shift = QCA8K_LED_PHY0123_CONTROL_RULE_SHIFT; in qca8k_get_enable_led_reg() 31 case 3: in qca8k_get_enable_led_reg() 33 reg_info->reg = QCA8K_LED_CTRL3_REG; in qca8k_get_enable_led_reg() 34 reg_info->shift = QCA8K_LED_PHY123_PATTERN_EN_SHIFT(port_num, led_num); in qca8k_get_enable_led_reg() 37 reg_info->reg = QCA8K_LED_CTRL_REG(led_num); in qca8k_get_enable_led_reg() 38 reg_info->shift = QCA8K_LED_PHY4_CONTROL_RULE_SHIFT; in qca8k_get_enable_led_reg() [all …]
|
| /kernel/linux/linux-5.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 | 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 …]
|
| /kernel/linux/linux-5.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 …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-6.6/drivers/leds/rgb/ |
| 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 …]
|
| /kernel/linux/linux-6.6/arch/arm/boot/dts/aspeed/ |
| D | aspeed-bmc-ibm-rainier.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,rainier-bmc", "aspeed,ast2600"; 34 stdout-path = &uart5; 43 reserved-memory { 44 #address-cells = <1>; [all …]
|
| /kernel/linux/linux-5.10/drivers/net/wireless/ath/ath5k/ |
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/net/wireless/ath/ath5k/ |
| 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 …]
|
| /kernel/linux/linux-5.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" 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 …]
|
| /kernel/linux/linux-6.6/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" 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 …]
|