| /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-4.19/sound/usb/caiaq/ |
| D | control.c | 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 37 struct snd_usb_caiaqdev *cdev = caiaqdev(chip->card); in control_info() 38 int pos = kcontrol->private_value; in control_info() 42 uinfo->count = 1; in control_info() 45 switch (cdev->chip.usb_id) { in control_info() 50 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in control_info() 51 uinfo->value.integer.min = 0; in control_info() 52 uinfo->value.integer.max = 2; in control_info() 67 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in control_info() 68 uinfo->value.integer.min = 0; in control_info() [all …]
|
| /kernel/linux/linux-4.19/Documentation/devicetree/bindings/leds/ |
| 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/Documentation/devicetree/bindings/leds/ |
| 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-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 …]
|
| /kernel/linux/linux-5.10/arch/mips/boot/dts/brcm/ |
| D | bcm63268-comtrend-vr-3032u.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 7 compatible = "comtrend,vr-3032u", "brcm,bcm63268"; 8 model = "Comtrend VR-3032u"; 17 stdout-path = &uart0; 23 brcm,serial-leds; 24 brcm,serial-dat-low; 25 brcm,serial-shift-inv; 27 led@0 { 29 brcm,hardware-controlled; [all …]
|
| /kernel/linux/linux-4.19/arch/mips/boot/dts/brcm/ |
| D | bcm63268-comtrend-vr-3032u.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 7 compatible = "comtrend,vr-3032u", "brcm,bcm63268"; 8 model = "Comtrend VR-3032u"; 17 stdout-path = &uart0; 23 brcm,serial-leds; 24 brcm,serial-dat-low; 25 brcm,serial-shift-inv; 27 led@0 { 29 brcm,hardware-controlled; [all …]
|
| /kernel/linux/linux-5.10/drivers/leds/ |
| D | leds-aw2013.c | 1 // SPDX-License-Identifier: GPL-2.0+ 2 // Driver for Awinic AW2013 3-channel LED driver 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 */ 39 #define AW2013_LEDT0_T1(x) ((x) << 4) // Should be 0-7 40 #define AW2013_LEDT0_T2(x) (x) // Should be 0-5 43 #define AW2013_LEDT1_T3(x) ((x) << 4) // Should be 0-7 [all …]
|
| D | leds-max77650.c | 1 // SPDX-License-Identifier: GPL-2.0 6 // LED driver for MAXIM 77650/77651 charger/power-supply. 21 #define MAX77650_LED_EN_MASK GENMASK(7, 6) 28 #define MAX77650_LED_ENABLE GENMASK(7, 6) 50 struct max77650_led *led = max77650_to_led(cdev); in max77650_led_brightness_set() local 60 return regmap_update_bits(led->map, led->regA, mask, val); in max77650_led_brightness_set() 66 struct max77650_led *leds, *led; in max77650_led_probe() local 72 dev = &pdev->dev; in max77650_led_probe() 77 return -ENOMEM; in max77650_led_probe() 79 map = dev_get_regmap(dev->parent, NULL); in max77650_led_probe() [all …]
|
| D | leds-lm3601x.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // Flash and torch driver for Texas Instruments LM3601X LED 4 // Copyright (C) 2018 Texas Instruments Incorporated - https://www.ti.com/ 9 #include <linux/led-class-flash.h> 25 #define LM3601X_SW_RESET BIT(7) 38 #define LM36010_BOOST_MODE_PASS BIT(7) 48 #define LM36010_OVP_FAULT BIT(7) 73 * struct lm3601x_led - 74 * @fled_cdev: flash LED class device pointer 78 * @led_name: LED label for the Torch or IR LED [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 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 100 * bits [63:48] -> unused 105 return pin + 16; /* LEDs 0-7 (bits 47:32) */ in bcm6328_pin2shift() [all …]
|
| /kernel/linux/linux-5.10/drivers/hid/ |
| 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 */ 40 [7] = 7 /* white */ 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() 126 ret = hid_hw_raw_request(ldev->hdev, buf[0], ldev->buf, in hidled_send() [all …]
|
| /kernel/linux/linux-4.19/drivers/hid/ |
| D | hid-led.c | 2 * Simple USB RGB LED driver 5 * Based on drivers/hid/hid-thingm.c and 19 #include "hid-ids.h" 35 /* R+2G+4B -> riso kagaku color index */ 43 [7] = 7 /* white */ 120 mutex_lock(&ldev->lock); in hidled_send() 126 memcpy(ldev->buf, buf, ldev->config->report_size); in hidled_send() 128 if (ldev->config->report_type == RAW_REQUEST) in hidled_send() 129 ret = hid_hw_raw_request(ldev->hdev, buf[0], ldev->buf, in hidled_send() 130 ldev->config->report_size, in hidled_send() [all …]
|
| /kernel/linux/linux-5.10/Documentation/firmware-guide/acpi/dsd/ |
| D | leds.rst | 1 .. SPDX-License-Identifier: GPL-2.0 9 device node, the LED driver chip. The "reg" property in the LED specific nodes 10 tells the numerical ID of each individual LED output to which the LEDs are 11 connected. [3] The hierarchical data nodes are named "led@X", where X is the 12 number of the LED output. 14 Referring to LEDs in Device tree is documented in [4], in "flash-leds" property 19 mechanism on ACPI is not possible. A mechanism to refer to non-device ACPI nodes 20 is documented in [7]. 23 combination of the LED driver device reference and an integer argument, 24 referring to the "reg" property of the relevant LED, is used to identify [all …]
|
| /kernel/linux/linux-4.19/drivers/leds/ |
| D | leds-lm3601x.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // Flash and torch driver for Texas Instruments LM3601X LED 4 // Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/ 9 #include <linux/led-class-flash.h> 26 #define LM3601X_SW_RESET BIT(7) 39 #define LM36010_BOOST_MODE_PASS BIT(7) 49 #define LM36010_OVP_FAULT BIT(7) 74 * struct lm3601x_led - 75 * @fled_cdev: flash LED class device pointer 79 * @led_name: LED label for the Torch or IR LED [all …]
|
| D | leds-bcm6328.c | 2 * Driver for BCM6328 memory-mapped LEDs, based on leds-syscon.c 58 * struct bcm6328_led - state container for bcm6328 based LEDs 59 * @cdev: LED class device for this LED 62 * @pin: LED pin number 65 * @active_low: LED is active low 97 * bits [31:0] -> LEDs 8-23 98 * bits [47:32] -> LEDs 0-7 99 * bits [63:48] -> unused 104 return pin + 16; /* LEDs 0-7 (bits 47:32) */ in bcm6328_pin2shift() 106 return pin - 8; /* LEDs 8-23 (bits 31:0) */ in bcm6328_pin2shift() [all …]
|
| /kernel/linux/linux-4.19/arch/arm/mach-footbridge/ |
| D | netwinder-hw.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * linux/arch/arm/mach-footbridge/netwinder-hw.c 20 #include <asm/mach-types.h> 101 wb977_device_select(7); in __gpio_modify_io() 219 * Initialise the Winbond W83977F Infra-Red device 237 * RX DMA - ISA DMA 0 in wb977_init_irda() 242 * TX DMA - Disable Tx DMA in wb977_init_irda() 267 current_gpio_io = -1; in wb977_init_gpio() 268 __gpio_modify_io(-1, GPIO_DONE | GPIO_WDTIMER); in wb977_init_gpio() 270 wb977_device_select(7); in wb977_init_gpio() [all …]
|
| /kernel/linux/linux-5.10/arch/arm/mach-footbridge/ |
| D | netwinder-hw.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * linux/arch/arm/mach-footbridge/netwinder-hw.c 20 #include <asm/mach-types.h> 101 wb977_device_select(7); in __gpio_modify_io() 219 * Initialise the Winbond W83977F Infra-Red device 237 * RX DMA - ISA DMA 0 in wb977_init_irda() 242 * TX DMA - Disable Tx DMA in wb977_init_irda() 267 current_gpio_io = -1; in wb977_init_gpio() 268 __gpio_modify_io(-1, GPIO_DONE | GPIO_WDTIMER); in wb977_init_gpio() 270 wb977_device_select(7); in wb977_init_gpio() [all …]
|
| /kernel/linux/linux-4.19/Documentation/ABI/testing/ |
| D | sysfs-class-led-driver-lm3533 | 1 What: /sys/class/leds/<led>/als_channel 7 ALS-current-control mode (1, 2), where 9 1 - out_current1 10 2 - out_current2 12 What: /sys/class/leds/<led>/als_en 17 Enable ALS-current-control mode (0, 1). 19 What: /sys/class/leds/<led>/falltime 20 What: /sys/class/leds/<led>/risetime 25 Set the pattern generator fall and rise times (0..7), where 27 0 - 2048 us [all …]
|
| /kernel/linux/linux-5.10/arch/arm/boot/dts/ |
| D | am571x-idk.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2015-2016 Texas Instruments Incorporated - https://www.ti.com/ 5 /dts-v1/; 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/interrupt-controller/irq.h> 10 #include "dra7-mmc-iodelay.dtsi" 11 #include "dra72x-mmc-iodelay.dtsi" 12 #include "am57xx-idk-common.dtsi" 13 #include "dra7-ipu-dsp-common.dtsi" 17 compatible = "ti,am5718-idk", "ti,am5718", "ti,dra7"; [all …]
|
| D | imx27-phytec-phycore-rdk.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 #include "imx27-phytec-phycore-som.dtsi" 9 compatible = "phytec,imx27-pcm970", "phytec,imx27-pcm038", "fsl,imx27"; 12 stdout-path = &uart1; 16 model = "Sharp-LQ035Q7"; 17 bits-per-pixel = <16>; 20 display-timings { 21 native-mode = <&timing0>; 23 clock-frequency = <5500000>; 26 hback-porch = <5>; [all …]
|
| /kernel/linux/linux-5.10/Documentation/ABI/testing/ |
| D | sysfs-class-led-driver-lm3533 | 1 What: /sys/class/leds/<led>/als_channel 7 ALS-current-control mode (1, 2), where: 14 What: /sys/class/leds/<led>/als_en 19 Enable ALS-current-control mode (0, 1). 21 What: /sys/class/leds/<led>/falltime 22 What: /sys/class/leds/<led>/risetime 27 Set the pattern generator fall and rise times (0..7), where: 37 7 16.78 s 40 What: /sys/class/leds/<led>/id 45 Get the id of this led (0..3). [all …]
|
| /kernel/linux/linux-5.10/drivers/iio/health/ |
| D | max30102.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * max30102.c - Support for MAX30102 heart rate and pulse oximeter sensor 8 * Copyright (C) 2017 Peter Meerwald-Stadler <pmeerw@pmeerw.net> 10 * 7-bit I2C chip address: 0x57 48 #define MAX30102_REG_INT_STATUS_FIFO_RDY BIT(7) 54 #define MAX30102_REG_INT_ENABLE_FIFO_EN BIT(7) 71 #define MAX30102_REG_MODE_CONFIG_MODE_HR 0x02 /* red LED */ 72 #define MAX30102_REG_MODE_CONFIG_MODE_HR_SPO2 0x03 /* red + IR LED */ 73 #define MAX30102_REG_MODE_CONFIG_MODE_MULTI 0x07 /* multi-LED mode */ 75 #define MAX30102_REG_MODE_CONFIG_PWR BIT(7) [all …]
|
| /kernel/linux/linux-4.19/drivers/iio/health/ |
| D | max30102.c | 2 * max30102.c - Support for MAX30102 heart rate and pulse oximeter sensor 7 * Copyright (C) 2017 Peter Meerwald-Stadler <pmeerw@pmeerw.net> 19 * 7-bit I2C chip address: 0x57 57 #define MAX30102_REG_INT_STATUS_FIFO_RDY BIT(7) 63 #define MAX30102_REG_INT_ENABLE_FIFO_EN BIT(7) 80 #define MAX30102_REG_MODE_CONFIG_MODE_HR 0x02 /* red LED */ 81 #define MAX30102_REG_MODE_CONFIG_MODE_HR_SPO2 0x03 /* red + IR LED */ 82 #define MAX30102_REG_MODE_CONFIG_MODE_MULTI 0x07 /* multi-LED mode */ 84 #define MAX30102_REG_MODE_CONFIG_PWR BIT(7) 86 #define MAX30102_REG_MODE_CONTROL_SLOT21 0x11 /* multi-LED control */ [all …]
|
| /kernel/linux/linux-4.19/Documentation/leds/ |
| D | leds-mlxcpld.txt | 4 Provide system LED support for the nex Mellanox systems: 9 ----------- 31 Bits [7:4] 39 Bits [7:4] 47 Bits [7:4] 52 [0,0,0,0] = LED OFF 85 Bits [7:4] 94 [0,0,0,0] = LED OFF 102 Color mask for uid LED: 104 [0,0,0,0] = LED OFF
|