Home
last modified time | relevance | path

Searched +full:led +full:- +full:8 (Results 1 – 25 of 1029) sorted by relevance

12345678910>>...42

/Linux-v5.10/Documentation/devicetree/bindings/leds/
Dleds-lp55xx.yaml1 # 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 …]
Dleds-lm3532.txt1 * Texas Instruments - lm3532 White LED driver with ambient light sensing
4 The LM3532 provides the 3 high-voltage, low-side current sinks. The device is
5 programmable over an I2C-compatible interface and has independent
7 method allows for different LED currents in each current sink thus allowing
11 each with 32 internal voltage setting resistors, 8-bit logarithmic and linear
16 - compatible : "ti,lm3532"
17 - reg : I2C slave address
18 - #address-cells : 1
19 - #size-cells : 0
22 - enable-gpios : gpio pin to enable (active high)/disable the device.
[all …]
/Linux-v5.10/sound/usb/caiaq/
Dcontrol.c1 // 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-v5.10/arch/arm/boot/dts/
Domap3-echo.dts1 // SPDX-License-Identifier: GPL-2.0-only
5 /dts-v1/;
9 #include <dt-bindings/input/input.h>
13 compatible = "amazon,omap3-echo", "ti,omap3630", "ti,omap3";
17 cpu0-supply = <&vdd1_reg>;
27 compatible = "regulator-fixed";
28 regulator-name = "vcc5v";
29 regulator-min-microvolt = <5000000>;
30 regulator-max-microvolt = <5000000>;
31 regulator-boot-on;
[all …]
/Linux-v5.10/drivers/hid/
Dhid-picolcd_leds.c1 // 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 …]
Dhid-led.c1 // 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 */
46 __u8 data[8];
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 …]
/Linux-v5.10/drivers/leds/
Dleds-lp8860.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * TI LP8860 4-Channel LED Driver
88 * struct lp8860_led -
89 * @lock - Lock for reading/writing the device
90 * @client - Pointer to the I2C client
91 * @led_dev - led class device pointer
92 * @regmap - Devices register map
93 * @eeprom_regmap - EEPROM register map
94 * @enable_gpio - VDDIO/EN gpio to enable communication interface
95 * @regulator - LED supply regulator pointer
[all …]
Dleds-bcm6328.c1 // 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 …]
Dleds-lp50xx.c1 // 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/
18 #include <linux/led-class-multicolor.h>
57 /* There are 3 LED outputs per bank */
63 #define LP5024_MAX_LED_MODULES 8
135 .reg_bits = 8,
136 .val_bits = 8,
145 .reg_bits = 8,
146 .val_bits = 8,
[all …]
Dleds-tlc591xx.c1 // SPDX-License-Identifier: GPL-2.0-only
34 /* LED Driver Output State, determine the source that drives LED outputs */
36 #define LEDOUT_ON 0x1 /* Output HI-Z */
67 .max_leds = 8,
87 tlc591xx_set_ledout(struct tlc591xx_priv *priv, struct tlc591xx_led *led, in tlc591xx_set_ledout() argument
90 unsigned int i = (led->led_no % 4) * 2; in tlc591xx_set_ledout()
92 unsigned int addr = priv->reg_ledout_offset + (led->led_no >> 2); in tlc591xx_set_ledout()
96 return regmap_update_bits(priv->regmap, addr, mask, val); in tlc591xx_set_ledout()
100 tlc591xx_set_pwm(struct tlc591xx_priv *priv, struct tlc591xx_led *led, in tlc591xx_set_pwm() argument
103 u8 pwm = TLC591XX_REG_PWM(led->led_no); in tlc591xx_set_pwm()
[all …]
Dleds-lm3532.c1 // 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 …]
Dleds-aw2013.c1 // 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 …]
Dleds-is31fl319x.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright 2015-16 Golden Delicious Computers
7 * LED driver for the IS31FL319{0,1,3,6,9} to drive 1, 3, 6 or 9 light
105 { .compatible = "si-en,sn3199", .data = &is31fl3199_cdef, },
113 struct is31fl319x_led *led = container_of(cdev, struct is31fl319x_led, in is31fl319x_brightness_set() local
115 struct is31fl319x_chip *is31 = led->chip; in is31fl319x_brightness_set()
116 int chan = led - is31->leds; in is31fl319x_brightness_set()
121 dev_dbg(&is31->client->dev, "%s %d: %d\n", __func__, chan, brightness); in is31fl319x_brightness_set()
123 mutex_lock(&is31->lock); in is31fl319x_brightness_set()
126 ret = regmap_write(is31->regmap, IS31FL319X_PWM(chan), brightness); in is31fl319x_brightness_set()
[all …]
Dleds-pca955x.c1 // 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 …]
Dleds-ktd2692.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * LED driver : leds-ktd2692.c
12 #include <linux/led-class-flash.h>
22 #define KTD2692_MM_MIN_CURR_THRESHOLD_SCALE 8
25 #define KTD2692_FLASH_MODE_TIMEOUT_LEVELS 8
64 /* maximum LED current in movie mode */
66 /* maximum LED current in flash mode */
70 /* max LED brightness level */
75 /* Related LED Flash class device */
95 static void ktd2692_expresswire_start(struct ktd2692_context *led) in ktd2692_expresswire_start() argument
[all …]
Dleds-gpio.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2007 8D Technologies inc.
6 * Raphael Assenat <raph@8d.com>
45 if (led_dat->blinking) { in gpio_led_set()
46 led_dat->platform_gpio_blink_set(led_dat->gpiod, level, in gpio_led_set()
48 led_dat->blinking = 0; in gpio_led_set()
50 if (led_dat->can_sleep) in gpio_led_set()
51 gpiod_set_value_cansleep(led_dat->gpiod, level); in gpio_led_set()
53 gpiod_set_value(led_dat->gpiod, level); in gpio_led_set()
69 led_dat->blinking = 1; in gpio_blink_set()
[all …]
/Linux-v5.10/Documentation/firmware-guide/acpi/dsd/
Dleds.rst1 .. 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
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
26 firmware and software, it uniquely identifies the LED driver outputs.
[all …]
/Linux-v5.10/drivers/media/dvb-frontends/
Dau8522_common.c1 // 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-v5.10/drivers/hid/usbhid/
Dusbkbd.c1 // 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-v5.10/arch/mips/boot/dts/brcm/
Dbcm63268-comtrend-vr-3032u.dts1 // 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-v5.10/arch/arm/mach-footbridge/
Dnetwinder-hw.c1 // 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-v5.10/arch/parisc/include/asm/
Dled.h1 /* SPDX-License-Identifier: GPL-2.0 */
5 #define LED7 0x80 /* top (or furthest right) LED */
12 #define LED0 0x01 /* bottom (or furthest left) LED */
20 #define DISPLAY_MODEL_LCD 0 /* KittyHawk LED or LCD */
21 #define DISPLAY_MODEL_NONE 1 /* no LED or LCD */
22 #define DISPLAY_MODEL_LASI 2 /* LASI style 8 bit LED */
23 #define DISPLAY_MODEL_OLD_ASP 0x7F /* faked: ASP style 8 x 1 bit LED (only very old ASP versions) */
30 /* registers the LED regions for procfs */
40 /* main LED initialization function (uses PDC) */
/Linux-v5.10/Documentation/devicetree/bindings/pinctrl/
Dpinctrl-mt7622.txt4 - compatible: Should be one of the following
5 "mediatek,mt7622-pinctrl" for MT7622 SoC
6 "mediatek,mt7629-pinctrl" for MT7629 SoC
7 - reg: offset and length of the pinctrl space
9 - gpio-controller: Marks the device node as a GPIO controller.
10 - #gpio-cells: Should be two. The first cell is the pin number and the
14 - interrupt-controller : Marks the device node as an interrupt controller
16 If the property interrupt-controller is defined, following property is required
17 - reg-names: A string describing the "reg" entries. Must contain "eint".
18 - interrupts : The interrupt output from the controller.
[all …]
/Linux-v5.10/Documentation/devicetree/bindings/leds/irled/
Dspi-ir-led.txt1 Device tree bindings for IR LED connected through SPI bus which is used as
4 The IR LED switch is connected to the MOSI line of the SPI device and the data
8 - compatible: should be "ir-spi-led".
11 - duty-cycle: 8 bit value that represents the percentage of one period
13 - led-active-low: boolean value that specifies whether the output is
15 - power-supply: specifies the power source. It can either be a regulator
16 or a gpio which enables a regulator, i.e. a regulator-fixed as
18 Documentation/devicetree/bindings/regulator/fixed-regulator.yaml
23 compatible = "ir-spi-led";
25 spi-max-frequency = <5000000>;
[all …]
/Linux-v5.10/Documentation/leds/
Dleds-lp5523.rst5 * National Semiconductor LP5523 led driver chip
9 Contact: Samu Onkalo (samu.p.onkalo-at-nokia.com)
12 -----------
14 the led class control interface.
15 The name of each channel is configurable in the platform data - name and label.
22 - /sys/class/leds/R1 (name: 'R1')
23 - /sys/class/leds/B1 (name: 'B1')
28 - /sys/class/leds/RGB:channelN (label: 'RGB', N: 0 ~ 8)
33 - /sys/class/leds/lp5523:channelN (N: 0 ~ 8)
35 LP5523 has the internal program memory for running various LED patterns.
[all …]

12345678910>>...42