/linux/Documentation/devicetree/bindings/leds/ |
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 | register-bit-led.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/leds/register-bit-led.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Linus Walleij <linus.walleij@linaro.org> 14 bits in a certain register can turn on/off a single LED. The register bit LEDs 20 - $ref: /schemas/leds/common.yaml# 25 The unit-address is in the form of @<reg addr>,<bit offset> 26 pattern: '^led@[0-9a-f]+,[0-9a-f]{1,2}$' 29 const: register-bit-led [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/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/hid/ |
H A D | hid-picolcd_leds.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2010-2012 by Bruno Prémont <bonbons@linux-vserver.org> * 11 #include <linux/hid-debug.h> 13 #include "hid-ids.h" 29 #include "hid-picolcd.h" 37 if (!data->led[0]) in picolcd_leds_set() 39 report = picolcd_out_report(REPORT_LED_STATE, data->hdev); in picolcd_leds_set() 40 if (!report || report->maxfield != 1 || report->field[0]->report_count != 1) in picolcd_leds_set() 43 spin_lock_irqsave(&data->lock, flags); in picolcd_leds_set() 44 hid_set_field(report->field[0], 0, data->led_state); in picolcd_leds_set() [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 20 the same mechanism on ACPI is not possible. A mechanism to refer to non-device 21 ACPI nodes is documented in [data-node-ref]. 24 combination of the LED driver device reference and an integer argument, [all …]
|
/linux/drivers/leds/ |
H A D | leds-lp8860.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * TI LP8860 4-Channel LED Driver 90 * @led_dev: led class device pointer 94 * @regulator: LED supply regulator pointer 139 static int lp8860_unlock_eeprom(struct lp8860_led *led, int lock) in lp8860_unlock_eeprom() argument 143 mutex_lock(&led->lock); in lp8860_unlock_eeprom() 146 ret = regmap_write(led->regmap, in lp8860_unlock_eeprom() 150 dev_err(&led->client->dev, "EEPROM Unlock failed\n"); in lp8860_unlock_eeprom() 154 ret = regmap_write(led->regmap, in lp8860_unlock_eeprom() 158 dev_err(&led->client->dev, "EEPROM Unlock failed\n"); in lp8860_unlock_eeprom() [all …]
|
H A D | leds-lp50xx.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // TI LP50XX LED chip family driver 3 // Copyright (C) 2018-20 Texas Instruments Incorporated - https://www.ti.com/ 17 #include <linux/led-class-multicolor.h> 54 /* There are 3 LED outputs per bank */ 60 #define LP5024_MAX_LED_MODULES 8 132 .reg_bits = 8, 133 .val_bits = 8, 142 .reg_bits = 8, 143 .val_bits = 8, [all …]
|
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 104 if (pin < 8) in bcm6328_pin2shift() [all …]
|
H A D | leds-tlc591xx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 33 /* LED Driver Output State, determine the source that drives LED outputs */ 35 #define LEDOUT_ON 0x1 /* Output HI-Z */ 66 .max_leds = 8, 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 102 u8 pwm = TLC591XX_REG_PWM(led->led_no); in tlc591xx_set_pwm() [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" 86 #define LM3532_BRT_VAL_ADJUST 8 89 #define LM3532_NUM_RAMP_VALS 8 90 #define LM3532_NUM_AVG_VALS 8 123 * @led_dev: led class device 125 * @control_bank: Control bank the LED is associated to 126 * @mode: Mode of the LED string [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 …]
|
/linux/arch/arm/boot/dts/st/ |
H A D | ste-href.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright 2012 ST-Ericsson AB 6 #include <dt-bindings/interrupt-controller/irq.h> 7 #include <dt-bindings/leds/common.h> 8 #include "ste-href-family-pinctrl.dtsi" 17 compatible = "simple-battery"; 18 battery-type = "lithium-ion-polymer"; 21 thermal-zones { 22 battery-thermal { 24 polling-delay = <0>; [all …]
|
H A D | stm32mp157c-lxa-tac-gen2.dts | 1 // SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-3-Clause) 3 * Copyright (C) 2020 STMicroelectronics - All Rights Reserved 8 /dts-v1/; 11 #include "stm32mp15xc-lxa-tac.dtsi" 15 compatible = "lxa,stm32mp157c-tac-gen2", "oct,stm32mp15xx-osd32", "st,stm32mp157"; 18 compatible = "pwm-backlight"; 19 power-supply = <&v3v3>; 21 brightness-levels = <0 31 63 95 127 159 191 223 255>; 22 default-brightness-level = <7>; 26 reg_iobus_12v: regulator-iobus-12v { [all …]
|
/linux/drivers/media/dvb-frontends/ |
H A D | au8522_common.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 Auvitek AU8522 QAM/8VSB demodulator driver 7 Copyright (C) 2005-2008 Auvitek International, Ltd. 29 /* 16 bit registers, 8 bit values */ 33 u8 buf[] = { (reg >> 8) | 0x80, reg & 0xff, data }; in au8522_writereg() 35 struct i2c_msg msg = { .addr = state->config.demod_address, in au8522_writereg() 38 ret = i2c_transfer(state->i2c, &msg, 1); in au8522_writereg() 44 return (ret != 1) ? -1 : 0; in au8522_writereg() 51 u8 b0[] = { (reg >> 8) | 0x40, reg & 0xff }; in au8522_readreg() 55 { .addr = state->config.demod_address, .flags = 0, in au8522_readreg() [all …]
|
/linux/drivers/hid/usbhid/ |
H A D | usbkbd.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (c) 1999-2001 Vojtech Pavlik 11 * e-mail - mail your message to <vojtech@ucw.cz>, or by paper mail: 12 * Vojtech Pavlik, Simunkova 1594, Prague 8, 182 00 Czech Republic 38 4, 5, 6, 7, 8, 9, 10, 11, 28, 1, 14, 15, 57, 12, 13, 26, 56 * struct usb_kbd - state of each attached keyboard 64 * @led: URB for sending LEDs (e.g. numlock, ...) 65 * @newleds: data that will be sent with the @led URB representing which LEDs 71 * @cr: Control request for @led URB 72 * @leds: Buffer for the @led URB [all …]
|
/linux/arch/arm64/boot/dts/arm/ |
H A D | juno-motherboard.dtsi | 4 * Copyright (c) 2013-2014 ARM Ltd 11 mb_clk24mhz: clock-24000000 { 12 compatible = "fixed-clock"; 13 #clock-cells = <0>; 14 clock-frequency = <24000000>; 15 clock-output-names = "juno_mb:clk24mhz"; 18 mb_clk25mhz: clock-25000000 { 19 compatible = "fixed-clock"; 20 #clock-cells = <0>; 21 clock-frequency = <25000000>; [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 …]
|
H A D | bcm47094-linksys-panamera.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 6 /dts-v1/; 9 #include "bcm5301x-nand-cs0-bch8.dtsi" 30 gpio-keys { 31 compatible = "gpio-keys"; 33 button-wps { 39 button-rfkill { 45 button-reset { 53 compatible = "gpio-leds"; 55 led-wps { [all …]
|
/linux/arch/arm/boot/dts/aspeed/ |
H A D | aspeed-bmc-ibm-blueridge.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 /dts-v1/; 5 #include <dt-bindings/gpio/aspeed-gpio.h> 6 #include <dt-bindings/i2c/i2c.h> 7 #include <dt-bindings/leds/leds-pca955x.h> 8 #include "aspeed-g6.dtsi" 9 #include "ibm-power11-quad.dtsi" 13 compatible = "ibm,blueridge-bmc", "aspeed,ast2600"; 35 stdout-path = &uart5; 43 reserved-memory { [all …]
|
H A 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 …]
|
/linux/arch/arm/mach-footbridge/ |
H A 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> 55 outb(val >> 8, 0x371); in wb977_ww() 85 outb(new_gpio >> 8, GP2_IO_BASE); in nw_gpio_modify_op() 110 wb977_device_select(8); in __gpio_modify_io() 134 return inb(GP1_IO_BASE) | inb(GP2_IO_BASE) << 8; in nw_gpio_read() 208 * KBC 8MHz in wb977_init_keyboard() 219 * Initialise the Winbond W83977F Infra-Red device 237 * RX DMA - ISA DMA 0 in wb977_init_irda() [all …]
|
/linux/arch/mips/boot/dts/brcm/ |
H A 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 …]
|
/linux/drivers/parisc/ |
H A D | led.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Chassis LCD/LED driver for HP-PARISC workstations 8 * (c) Copyright 2000-2023 Helge Deller <deller@gmx.de> 32 #include <asm/led.h> 39 static unsigned char lastleds; /* LED state from most recent update */ 43 static unsigned char lcd_no_led_support; /* KittyHawk doesn't support LED on its LCD */ 47 unsigned char on; /* value for turning LED on */ 48 unsigned char off; /* value for turning LED off */ 53 lcd_cmd_reg_addr needs to be 64bit aligned on 64bit PA2.0-machines */ 57 unsigned long lcd_cmd_reg_addr; /* ptr to LCD cmd-register & data ptr for LED */ [all …]
|
/linux/arch/arm/boot/dts/arm/ |
H A D | arm-realview-eb.dtsi | 23 #include <dt-bindings/interrupt-controller/irq.h> 24 #include <dt-bindings/gpio/gpio.h> 27 #address-cells = <1>; 28 #size-cells = <1>; 29 compatible = "arm,realview-eb"; 48 vmmc: regulator-vmmc { 49 compatible = "regulator-fixed"; 50 regulator-name = "vmmc"; 51 regulator-min-microvolt = <3300000>; 52 regulator-max-microvolt = <3300000>; [all …]
|