/Linux-v6.1/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 …]
|
/Linux-v6.1/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/ 18 #define LM36923_MODEL 1 36 #define LM3692X_LED1_EN BIT(1) 45 #define LM3692X_RAMP_RATE_250us BIT(1) 47 #define LM3692X_RAMP_RATE_1ms (BIT(1) | BIT(2)) 49 #define LM3692X_RAMP_RATE_4ms (BIT(3) | BIT(1)) 51 #define LM3692X_RAMP_RATE_16ms (BIT(1) | BIT(2) | BIT(3)) 61 #define LM3692X_PWM_FILTER_150 BIT(1) [all …]
|
D | leds-bd2802.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * leds-bd2802.c - RGB LED Driver 8 * Datasheet: http://www.rohm.com/products/databook/driver/pdf/bd2802gu-e.pdf 16 #include <linux/leds-bd2802.h> 58 * State '1' : 'blink' 73 struct led_state led[2]; member 104 /*--------------------------------------------------------------*/ 106 /*--------------------------------------------------------------*/ 108 static inline int bd2802_is_rgb_off(struct bd2802_led *led, enum led_ids id, in bd2802_is_rgb_off() argument 113 return !led->led[id].r; in bd2802_is_rgb_off() [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 53 #define BCM6328_LED_MODE_BLINK1 1 56 #define BCM6328_LED_SHIFT(X) ((X) << 1) 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 [all …]
|
D | leds-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * leds-regulator.c - LED class driver for regulator driven LEDs. 7 * Inspired by leds-wm8350 driver. 15 #include <linux/leds-regulator.h> 36 return 1; in led_regulator_get_max_brightness() 40 * and the LED can be turned on and off. in led_regulator_get_max_brightness() 44 return 1; in led_regulator_get_max_brightness() 53 return -EINVAL; in led_regulator_get_voltage() 55 return regulator_list_voltage(supply, brightness - 1); in led_regulator_get_voltage() 59 static void regulator_led_enable(struct regulator_led *led) in regulator_led_enable() argument [all …]
|
D | leds-el15203000.c | 1 // SPDX-License-Identifier: GPL-2.0 14 * +-----+---------+ 15 * | LED | COMMAND | 16 * +-----+---------+ 17 * | 1 | 1 | 18 * +-----+---------+ 22 * +----------+--------------+-------------------------------------------+ 24 * +----------+--------------+-------------------------------------------+ 26 * +----------+--------------+-------------------------------------------+ 28 * +----------+--------------+-------------------------------------------+ [all …]
|
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)) 34 #define AN30259A_REG_LEDCNT1(x) (0x09 + (4 * ((x) - 1))) 38 #define AN30259A_REG_LEDCNT2(x) (0x0A + (4 * ((x) - 1))) 43 #define AN30259A_REG_LEDCNT3(x) (0x0B + (4 * ((x) - 1))) [all …]
|
D | leds-wm831x-status.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * LED driver for WM831x status LEDs 38 static void wm831x_status_set(struct wm831x_status *led) in wm831x_status_set() argument 42 mutex_lock(&led->mutex); in wm831x_status_set() 44 led->reg_val &= ~(WM831X_LED_SRC_MASK | WM831X_LED_MODE_MASK | in wm831x_status_set() 47 spin_lock_irqsave(&led->value_lock, flags); in wm831x_status_set() 49 led->reg_val |= led->src << WM831X_LED_SRC_SHIFT; in wm831x_status_set() 50 if (led->blink) { in wm831x_status_set() 51 led->reg_val |= 2 << WM831X_LED_MODE_SHIFT; in wm831x_status_set() 52 led->reg_val |= led->blink_time << WM831X_LED_DUR_SHIFT; in wm831x_status_set() [all …]
|
D | leds-88pm860x.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * LED driver for Marvell 88PM860x 25 #define LED1_BLINK_EN (1 << 1) 26 #define LED2_BLINK_EN (1 << 2) 47 int ret = -EINVAL; in led_power_set() 51 case 1: in led_power_set() 69 struct pm860x_led *led = container_of(cdev, struct pm860x_led, cdev); in pm860x_led_set() local 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-lm3533.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * leds-lm3533.c -- LM3533 LED driver 5 * Copyright (C) 2011-2012 Texas Instruments 24 #define LM3533_ALS_CHANNEL_LV_MIN 1 40 #define LM3533_LED_FLAG_PATTERN_ENABLE 1 59 static inline int lm3533_led_get_ctrlbank_id(struct lm3533_led *led) in lm3533_led_get_ctrlbank_id() argument 61 return led->id + 2; in lm3533_led_get_ctrlbank_id() 64 static inline u8 lm3533_led_get_lv_reg(struct lm3533_led *led, u8 base) in lm3533_led_get_lv_reg() argument 66 return base + led->id; in lm3533_led_get_lv_reg() 69 static inline u8 lm3533_led_get_pattern(struct lm3533_led *led) in lm3533_led_get_pattern() argument [all …]
|
D | leds-tca6507.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * leds-tca6507 5 * The TCA6507 is a programmable LED controller that can drive 7 9 * blink or double-blink. 12 * out-only (pull-up resistor required) or as an LED with variable 13 * brightness and hardware-assisted blinking. 17 * 500usec intervals in each 8msec that the led is 'on'. The levels 21 * with separate time for rise, on, fall, off and second-off. Thus if 22 * 3 or more different non-trivial rates are required, software must 25 * support double-blink so 'second-off' always matches 'off'. [all …]
|
D | leds-mt6323.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * LED driver for Mediatek MT6323 PMIC 18 * 32K clock common for LED device. 25 * individual clock for LED device. 56 #define MT6323_ISINK_SFSTR0_TC_MASK (0x3 << 1) 57 #define MT6323_ISINK_SFSTR0_TC(i) (((i) << 1) & \ 62 /* Register to LED channel enablement. */ 76 * struct mt6323_led - state container for the LED device 77 * @id: the identifier in MT6323 LED device 78 * @parent: the pointer to MT6323 LED controller [all …]
|
/Linux-v6.1/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 | common.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jacek Anaszewski <jacek.anaszewski@gmail.com> 11 - Pavel Machek <pavel@ucw.cz> 14 LED and flash LED devices provide the same basic functionality as current 15 regulators, but extended with LED and flash LED specific features like 18 Many LED devices expose more than one current output that can be connected 19 to one or more discrete LED component. Since the arrangement of connections 20 can influence the way of the LED device initialization, the LED components [all …]
|
/Linux-v6.1/drivers/leds/flash/ |
D | leds-aat1290.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * LED Flash class driver for the AAT1290 4 * 1.5A Step-Up Current Regulator for Flash LEDs 12 #include <linux/led-class-flash.h> 20 #include <media/v4l2-flash-led-class.h> 24 #define AAT1290_MAX_MM_CURR_PERCENT_100 1 29 #define AAT1290_MOVIE_MODE_OFF 1 33 #define AAT1290_MM_TO_FL_1_92 1 40 #define AAT1290_EN_SET_TICK_TIME_US 1 49 /* maximum LED current in movie mode */ [all …]
|
D | leds-ktd2692.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * LED driver : leds-ktd2692.c 12 #include <linux/led-class-flash.h> 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 97 gpiod_direction_output(led->ctrl_gpio, KTD2692_HIGH); in ktd2692_expresswire_start() 101 static void ktd2692_expresswire_reset(struct ktd2692_context *led) in ktd2692_expresswire_reset() argument [all …]
|
D | leds-max77693.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * LED Flash class driver for the flash cell of max77693 mfd. 11 #include <linux/led-class-flash.h> 13 #include <linux/mfd/max77693-common.h> 14 #include <linux/mfd/max77693-private.h> 20 #include <media/v4l2-flash-led-class.h> 23 #define MODE_FLASH(a) (1 << (a)) 24 #define MODE_TORCH(a) (1 << (2 + (a))) 25 #define MODE_FLASH_EXTERNAL(a) (1 << (4 + (a))) 32 #define FLED1_IOUT (1 << 0) [all …]
|
/Linux-v6.1/drivers/net/wireless/broadcom/b43/ |
D | leds.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 LED control 7 Copyright (c) 2005 Martin Langer <martin-langer@gmx.de>, 9 Copyright (c) 2005-2007 Michael Buesch <m@bues.ch> 28 ctl &= ~(1 << led_index); in b43_led_turn_on() 30 ctl |= (1 << led_index); in b43_led_turn_on() 41 ctl |= (1 << led_index); in b43_led_turn_off() 43 ctl &= ~(1 << led_index); in b43_led_turn_off() 48 struct b43_led *led) in b43_led_update() argument 53 if (!led->wl) in b43_led_update() [all …]
|
/Linux-v6.1/arch/arm/boot/dts/ |
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-v6.1/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" 33 GT683R_LED_SIDE = 1, 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 …]
|
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-v6.1/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 …]
|
/Linux-v6.1/drivers/net/wireless/broadcom/b43legacy/ |
D | leds.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 LED control 7 Copyright (c) 2005 Martin Langer <martin-langer@gmx.de>, 9 Copyright (c) 2005-2007 Michael Buesch <m@bues.ch> 24 struct b43legacy_wl *wl = dev->wl; in b43legacy_led_turn_on() 28 spin_lock_irqsave(&wl->leds_lock, flags); in b43legacy_led_turn_on() 31 ctl &= ~(1 << led_index); in b43legacy_led_turn_on() 33 ctl |= (1 << led_index); in b43legacy_led_turn_on() 35 spin_unlock_irqrestore(&wl->leds_lock, flags); in b43legacy_led_turn_on() 41 struct b43legacy_wl *wl = dev->wl; in b43legacy_led_turn_off() [all …]
|
/Linux-v6.1/drivers/leds/blink/ |
D | leds-lgm-sso.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Intel Lightning Mountain SoC LED Serial Shift Output Controller driver 23 #define SSO_DEV_NAME "lgm-sso" 55 #define DATA_CLK_EDGE 0 /* 0-rising, 1-falling */ 63 * SW - Software has to update the SWU bit 64 * GPTC - General Purpose timer is used as clock source 65 * FPID - Divided FSC clock (FPID) is used as clock source 69 US_GPTC = 1, 74 MAX_FPID_FREQ_RANK = 5, /* 1 to 4 */ 94 CLK_SRC_GPTC = 1, [all …]
|