| /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-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 | 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 …]
|
| /linux/drivers/leds/ |
| H A 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 …]
|
| H A D | leds-an30259a.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // Driver for Panasonic AN30259A 3-channel LED driver 22 /* LED power registers */ 24 #define AN30259A_LED_EN(x) BIT((x) - 1) 25 #define AN30259A_LED_SLOPE(x) BIT(((x) - 1) + 4) 27 #define AN30259A_REG_LEDCC(x) (0x03 + ((x) - 1)) 30 #define AN30259A_REG_SLOPE(x) (0x06 + ((x) - 1)) 32 #define AN30259A_LED_SLOPETIME2(x) ((x) << 4) 34 #define AN30259A_REG_LEDCNT1(x) (0x09 + (4 * ((x) - 1))) 35 #define AN30259A_LED_DUTYMAX(x) ((x) << 4) [all …]
|
| H A D | leds-pca963x.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Author: Peter Meerwald <p.meerwald@bct-electronic.com> 9 * Based on leds-pca955x.c 11 * LED driver for the PCA9633 I2C LED driver (7-bit slave address 0x62) 12 * LED driver for the PCA9634/5 I2C LED driver (7-bit slave address set by hw.) 18 * in identical fashion. The delay_on/delay_off values of the last LED 22 * or by adding the 'nxp,hw-blink' property to the DTS. 36 /* LED select registers determine the source that drives LED outputs */ 37 #define PCA963X_LED_OFF 0x0 /* LED driver off */ 38 #define PCA963X_LED_ON 0x1 /* LED driver on */ [all …]
|
| 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/ 52 #define LM3692X_RAMP_EN BIT(4) 66 #define LM3692X_PWM_HYSTER_4LSB BIT(4) 67 #define LM3692X_PWM_HYSTER_5LSB (BIT(4) | BIT(2)) 68 #define LM3692X_PWM_HYSTER_6LSB (BIT(4) | BIT(3)) 80 #define LM3692X_MIN_IND_22UH BIT(4) 95 #define LM3692X_FAULT_FLAG_OPEN BIT(4) 101 * @led_dev: LED class device pointer [all …]
|
| H A D | leds-pca955x.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright 2007-2008 Extreme Engineering Solutions, Inc. 5 * Author: Nate Case <ncase@xes-inc.com> 7 * LED driver for various PCA955x I2C LED drivers 11 * Device Description 7-bit slave address 12 * ------ ----------- ------------------- 13 * PCA9550 2-bit driver 0x60 .. 0x61 14 * PCA9551 8-bit driver 0x60 .. 0x67 15 * PCA9552 16-bit driver 0x60 .. 0x67 16 * PCA9553/01 4-bit driver 0x62 [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" 25 * 0x00 engine 1 program (4 pages) 26 * 0x40 engine 2 program (4 pages) 27 * 0x80 engine 3 program (4 pages) 32 #define LP5569_PAGES_PER_ENGINE 4 52 #define LP5569_CP_MODE_MASK GENMASK(4, 3) 56 #define LP5569_LED_SHORT_TEST BIT(4) [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-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 30 #define AW2013_LCFG_MD BIT(4) 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 [all …]
|
| H A D | leds-tlc591xx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 19 #define MODE1_NORMAL_MODE (0 << 4) 20 #define MODE1_SPEED_MODE (1 << 4) 33 /* LED Driver Output State, determine the source that drives LED outputs */ 35 #define LEDOUT_ON 0x1 /* Output HI-Z */ 86 tlc591xx_set_ledout(struct tlc591xx_priv *priv, struct tlc591xx_led *led, in tlc591xx_set_ledout() argument 89 unsigned int i = (led->led_no % 4) * 2; in tlc591xx_set_ledout() 91 unsigned int addr = priv->reg_ledout_offset + (led->led_no >> 2); in tlc591xx_set_ledout() 95 return regmap_update_bits(priv->regmap, addr, mask, val); in tlc591xx_set_ledout() 99 tlc591xx_set_pwm(struct tlc591xx_priv *priv, struct tlc591xx_led *led, in tlc591xx_set_pwm() argument [all …]
|
| H A D | leds-pm8058.c | 1 // SPDX-License-Identifier: GPL-2.0-only 18 #define PM8058_LED_TYPE_KEYPAD_SHIFT 4 30 struct pm8058_led *led; in pm8058_led_set() local 35 led = container_of(cled, struct pm8058_led, cdev); in pm8058_led_set() 36 switch (led->ledtype) { in pm8058_led_set() 50 ret = regmap_update_bits(led->map, led->reg, mask, val); in pm8058_led_set() 52 pr_err("Failed to set LED brightness\n"); in pm8058_led_set() 57 struct pm8058_led *led; in pm8058_led_get() local 61 led = container_of(cled, struct pm8058_led, cdev); in pm8058_led_get() 63 ret = regmap_read(led->map, led->reg, &val); in pm8058_led_get() [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/leds/rgb/ |
| H A D | leds-mt6370-rgb.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 #include <linux/led-class-multicolor.h> 107 #define MT6370_VENDOR_ID_MASK GENMASK(7, 4) 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. [all …]
|
| /linux/Documentation/firmware-guide/acpi/dsd/ |
| H A 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. [leds] 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 [video-interfaces], in 15 "flash-leds" property documentation. In short, LEDs are directly referred to by 19 combination of the LED driver device reference and an integer argument, 20 referring to the "reg" property of the relevant LED, is used to identify 22 firmware and software, it uniquely identifies the LED driver outputs. [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/include/linux/platform_data/ |
| H A D | lm3630a_bl.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Simple driver for Texas Instruments LM3630A LED Flash driver chip 37 *@leda_label : optional led a label. 38 *@leda_init_brt : led a init brightness. 4~255 39 *@leda_max_brt : led a max brightness. 4~255 40 *@leda_ctrl : led a disable, enable linear, enable exponential 41 *@ledb_label : optional led b label. 42 *@ledb_init_brt : led b init brightness. 4~255 43 *@ledb_max_brt : led b max brightness. 4~255 44 *@ledb_ctrl : led b disable, enable linear, enable exponential [all …]
|
| /linux/drivers/leds/blink/ |
| H A D | leds-bcm63138.c | 1 // SPDX-License-Identifier: GPL-2.0-only 19 #define BCM63138_LED_BITS 4 /* how many bits control a single LED */ 20 #define BCM63138_LED_MASK ((1 << BCM63138_LED_BITS) - 1) /* 0xf */ 27 #define BCM63138_GLB_CTRL_SERIAL_LED_MSB_FIRST BIT(4) 40 #define BCM63138_POWER_LUT_BASE0 0x34 /* -> b0 */ 72 writel(data, leds->base + reg); in bcm63138_leds_write() 78 return readl(leds->base + reg); in bcm63138_leds_read() 94 struct bcm63138_led *led, in bcm63138_leds_set_flash_rate() argument 97 int reg_offset = (led->pin >> fls((BCM63138_LEDS_PER_REG - 1))) * 4; in bcm63138_leds_set_flash_rate() 98 int shift = (led->pin & (BCM63138_LEDS_PER_REG - 1)) * BCM63138_LED_BITS; in bcm63138_leds_set_flash_rate() [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/hid/ |
| 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 */ 37 [4] = 3, /* blue */ 39 [6] = 4, /* cyan */ 43 #define RISO_KAGAKU_IX(r, g, b) riso_kagaku_tbl[((r)?1:0)+((g)?2:0)+((b)?4:0)] 117 mutex_lock(&ldev->lock); in hidled_send() 123 memcpy(ldev->buf, buf, ldev->config->report_size); in hidled_send() [all …]
|
| /linux/include/linux/ |
| H A D | smc91x.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 7 * than the maximal access size. So, if your platform can do 16-bit 8 * and 32-bit accesses to the SMC91x device, but not 8-bit, set both 12 * SMC91X_USE_16BIT to be supported - just setting SMC91X_USE_32BIT is 22 #define SMC91X_IO_SHIFT_0 (0 << 4) 23 #define SMC91X_IO_SHIFT_1 (1 << 4) 24 #define SMC91X_IO_SHIFT_2 (2 << 4) 25 #define SMC91X_IO_SHIFT_3 (3 << 4) 26 #define SMC91X_IO_SHIFT(x) (((x) >> 4) & 0x3) 30 #define RPC_LED_100_10 (0x00) /* LED = 100Mbps OR's with 10Mbps link detect */ [all …]
|
| /linux/arch/arm/boot/dts/arm/ |
| H A D | integrator.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 7 #address-cells = <1>; 8 #size-cells = <1>; 15 core-module@10000000 { 16 compatible = "arm,core-module-integrator", "syscon", "simple-mfd"; 19 #address-cells = <1>; 20 #size-cells = <1>; 22 /* Use core module LED to indicate CPU load */ 23 led@c,0 { 24 compatible = "register-bit-led"; [all …]
|
| /linux/arch/arm/boot/dts/broadcom/ |
| H A D | bcm958625-meraki-kingpin.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 5 * Copyright (C) 2020-2021 Matthew Hagan <mnhagan88@gmail.com> 8 #include "bcm958625-meraki-mx6x-common.dtsi" 13 compatible = "gpio-keys-polled"; 15 poll-interval = <20>; 17 button-reset { 25 compatible = "gpio-leds"; 27 led-0 { 28 /* green:lan1-left */ 30 function-enumerator = <0>; [all …]
|