/linux-6.12.1/drivers/leds/ |
D | leds-ns2.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * leds-ns2.c - Driver for the Network Space v2 (and parents) dual-GPIO LED 9 * Based on leds-gpio.c by Raphael Assenat <raph@8d.com> 33 u32 mode; member 39 * The Network Space v2 dual-GPIO LED is wired to a CPLD. Three different LED 40 * modes are available: off, on and SATA activity blinking. The LED modes are 42 * for the command/slow GPIOs corresponds to a LED mode. 50 unsigned char sata; /* True when SATA mode active. */ 56 static int ns2_led_get_mode(struct ns2_led *led, enum ns2_led_modes *mode) in ns2_led_get_mode() argument 62 cmd_level = gpiod_get_value_cansleep(led->cmd); in ns2_led_get_mode() [all …]
|
D | leds-max8997.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * leds-max8997.c - LED class driver for MAX8997 LEDs. 14 #include <linux/mfd/max8997-private.h> 47 static void max8997_led_set_mode(struct max8997_led *led, in max8997_led_set_mode() argument 48 enum max8997_led_mode mode) in max8997_led_set_mode() argument 51 struct i2c_client *client = led->iodev->i2c; in max8997_led_set_mode() 54 switch (mode) { in max8997_led_set_mode() 57 val = led->id ? in max8997_led_set_mode() 59 led->cdev.max_brightness = MAX8997_LED_FLASH_MAX_BRIGHTNESS; in max8997_led_set_mode() 63 val = led->id ? in max8997_led_set_mode() [all …]
|
D | leds-spi-byte.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // Copyright (c) 2019 Christian Mauderer <oss@c-mauderer.de> 6 * - one LED is controlled by a single byte on MOSI 7 * - the value of the byte gives the brightness between two values (lowest to 9 * - no return value is necessary (no MISO signal) 15 * - "ubnt,acb-spi-led": Microcontroller (SONiX 8F26E611LA) based device used 18 * * Higher two bits set a mode. Lower six bits are a parameter. 19 * * Mode: 00 -> set brightness between 0x00 (min) and 0x3F (max) 20 * * Mode: 01 -> pulsing pattern (min -> max -> min) with an interval. From 24 * * Mode: 10 -> same as 01 but with only a ramp from min to max. Again a [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 …]
|
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" 103 * @als_input_mode: ALS input mode for brightness control 123 * @led_dev: led class device 125 * @control_bank: Control bank the LED is associated to 126 * @mode: Mode of the LED string 128 * @num_leds: Number of LED strings are supported in this array 129 * @full_scale_current: The full-scale current setting for the current sink. [all …]
|
D | leds-lp55xx-common.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 * Derived from leds-lp5521.c, leds-lp5523.c 21 #include <linux/platform_data/leds-lp55xx.h> 24 #include <dt-bindings/leds/leds-lp55xx.h> 26 #include "leds-lp55xx-common.h" 28 /* OP MODE require at least 153 us to clear regs */ 36 * Same Mask for each engine for both mode and exec 48 #define LP55xx_MODE_ENGn_SHIFT(n, shift) ((shift) + (2 * (3 - (n)))) 50 #define LP55xx_MODE_ENGn_GET(n, mode, shift) \ argument 51 (((mode) >> LP55xx_MODE_ENGn_SHIFT(n, shift)) & LP55xx_MODE_ENG_MASK) [all …]
|
D | leds-netxbig.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * leds-netxbig.c - Driver for the 2Big and 5Big Network series LEDs 42 enum netxbig_led_mode mode; member 72 for (pin = 0; pin < gpio_ext->num_addr; pin++) in gpio_ext_set_addr() 73 gpiod_set_value(gpio_ext->addr[pin], (addr >> pin) & 1); in gpio_ext_set_addr() 80 for (pin = 0; pin < gpio_ext->num_data; pin++) in gpio_ext_set_data() 81 gpiod_set_value(gpio_ext->data[pin], (data >> pin) & 1); in gpio_ext_set_data() 87 gpiod_set_value(gpio_ext->enable, 0); in gpio_ext_enable_select() 88 gpiod_set_value(gpio_ext->enable, 1); in gpio_ext_enable_select() 104 * Class LED driver. [all …]
|
D | leds-turris-omnia.c | 1 // SPDX-License-Identifier: GPL-2.0 9 #include <linux/led-class-multicolor.h> 27 /* LED controller commands at I2C address 0x2b */ 91 return -EIO; in omnia_cmd_read_raw() 99 err = omnia_cmd_read_raw(client->adapter, client->addr, cmd, &reply, 1); in omnia_cmd_read_u8() 107 struct omnia_led *led) in omnia_led_send_color_cmd() argument 113 cmd[1] = led->reg; in omnia_led_send_color_cmd() 114 cmd[2] = led->subled_info[0].brightness; in omnia_led_send_color_cmd() 115 cmd[3] = led->subled_info[1].brightness; in omnia_led_send_color_cmd() 116 cmd[4] = led->subled_info[2].brightness; in omnia_led_send_color_cmd() [all …]
|
/linux-6.12.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" 50 enum gt683r_led_mode mode; member 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 …]
|
/linux-6.12.1/drivers/leds/flash/ |
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> 59 /* corresponding LED Flash class device */ 80 /* sub led data */ 92 /* mode of fled outputs */ 96 /* bitmask of FLED outputs use state (bit 0. - FLED1, bit 1. - FLED2) */ [all …]
|
D | leds-ktd2692.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * LED driver : leds-ktd2692.c 12 #include <linux/leds-expresswire.h> 13 #include <linux/led-class-flash.h> 20 /* Value related the movie mode */ 25 /* Value related the flash mode */ 44 /* Movie / Flash Mode Control */ 52 /* maximum LED current in movie mode */ 54 /* maximum LED current in flash mode */ 58 /* max LED brightness level */ [all …]
|
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 13 #include <linux/led-class-flash.h> 21 #include <media/v4l2-flash-led-class.h> 50 /* maximum LED current in movie mode */ 52 /* maximum LED current in flash mode */ 58 /* max LED brightness level */ 68 /* corresponding LED Flash class device */ 77 /* movie mode current scale */ [all …]
|
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 6 tristate "LED support for the AAT1290" 15 tristate "AS3645A and LM3555 LED flash controllers support" 19 Enable LED flash class support for AS3645A LED flash 24 tristate "LED support for Kinetic KTD2692 flash LED controller" 29 This option enables support for Kinetic KTD2692 LED flash connected 35 tristate "LED support for LM3601x Chips" 43 tristate "LED support for MAX77693 Flash" 50 and torch mode. 53 tristate "LED Support for Mediatek MT6360 PMIC" [all …]
|
/linux-6.12.1/Documentation/devicetree/bindings/leds/ |
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 | leds-lm3532.txt | 1 * 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 …]
|
D | richtek,rt8515.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Richtek RT8515 1.5A dual channel LED driver 10 - Linus Walleij <linus.walleij@linaro.org> 13 The Richtek RT8515 is a dual channel (two mode) LED driver that 14 supports driving a white LED in flash or torch mode. The maximum 15 current for each mode is defined in hardware using two resistors 22 enf-gpios: 26 ent-gpios: [all …]
|
/linux-6.12.1/drivers/net/ethernet/intel/igc/ |
D | igc_leds.c | 1 // SPDX-License-Identifier: GPL-2.0 42 struct led_classdev led; member 47 container_of(lcdev, struct igc_led_classdev, led) 49 static void igc_led_select(struct igc_adapter *adapter, int led, in igc_led_select() argument 52 switch (led) { in igc_led_select() 70 netdev_err(adapter->netdev, "Unknown LED %d selected!\n", led); in igc_led_select() 74 static void igc_led_set(struct igc_adapter *adapter, int led, u32 mode, in igc_led_set() argument 78 struct igc_hw *hw = &adapter->hw; in igc_led_set() 80 igc_led_select(adapter, led, &mask, &shift, &blink_bit); in igc_led_set() 82 pm_runtime_get_sync(&adapter->pdev->dev); in igc_led_set() [all …]
|
/linux-6.12.1/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | led.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 3 * Copyright (C) 2012-2014, 2018-2019 Intel Corporation 7 #include "iwl-io.h" 8 #include "iwl-csr.h" 30 IWL_WARN(mvm, "LED command failed: %d\n", err); in iwl_mvm_send_led_fw_cmd() 35 if (fw_has_capa(&mvm->fw->ucode_capa, in iwl_mvm_led_set() 41 iwl_write32(mvm->trans, CSR_LED_REG, in iwl_mvm_led_set() 48 struct iwl_mvm *mvm = container_of(led_cdev, struct iwl_mvm, led); in iwl_led_brightness_set() 55 int mode = iwlwifi_mod_params.led_mode; in iwl_mvm_leds_init() local 58 switch (mode) { in iwl_mvm_leds_init() [all …]
|
/linux-6.12.1/Documentation/userspace-api/media/v4l/ |
D | ext-ctrls-flash.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 3 .. _flash-controls: 13 The interface can support both LED and xenon flash devices. As of 17 .. _flash-controls-use-cases: 23 Unsynchronised LED flash (software strobe) 24 ------------------------------------------ 26 Unsynchronised LED flash is controlled directly by the host as the 34 Synchronised LED flash (hardware strobe) 35 ---------------------------------------- 37 The synchronised LED flash is pre-programmed by the host (power and [all …]
|
/linux-6.12.1/arch/arm64/boot/dts/microchip/ |
D | sparx5_pcb134_board.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 10 gpio-restart { 11 compatible = "gpio-restart"; 16 i2c0_imux: i2c-mux-0 { 17 compatible = "i2c-mux-pinctrl"; 18 #address-cells = <1>; 19 #size-cells = <0>; 20 i2c-parent = <&i2c0>; 23 i2c0_emux: i2c-mux-1 { [all …]
|
/linux-6.12.1/sound/core/ |
D | control_led.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * LED state routines for driver control interface 14 MODULE_DESCRIPTION("ALSA control interface to LED trigger code."); 17 #define MAX_LED (((SNDRV_CTL_ELEM_ACCESS_MIC_LED - SNDRV_CTL_ELEM_ACCESS_SPK_LED) \ 33 struct snd_ctl_led *led; member 42 enum snd_ctl_led_mode mode; member 60 .group = (SNDRV_CTL_ELEM_ACCESS_SPK_LED >> SNDRV_CTL_ELEM_ACCESS_LED_SHIFT) - 1, 62 .mode = MODE_FOLLOW_MUTE, 66 .group = (SNDRV_CTL_ELEM_ACCESS_MIC_LED >> SNDRV_CTL_ELEM_ACCESS_LED_SHIFT) - 1, 68 .mode = MODE_FOLLOW_MUTE, [all …]
|
/linux-6.12.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() 36 /* current input mode of A8DJ and A4DJ */ 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() [all …]
|
/linux-6.12.1/Documentation/devicetree/bindings/leds/backlight/ |
D | lm3630a-backlight.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/leds/backlight/lm3630a-backlight.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: TI LM3630A High-Efficiency Dual-String White LED 10 - Lee Jones <lee@kernel.org> 11 - Daniel Thompson <daniel.thompson@linaro.org> 12 - Jingoo Han <jingoohan1@gmail.com> 15 The LM3630A is a current-mode boost converter which supplies the power and 26 '#address-cells': [all …]
|
/linux-6.12.1/drivers/net/wireless/intel/iwlwifi/dvm/ |
D | led.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright(c) 2003 - 2014 Intel Corporation. All rights reserved. 17 #include "iwl-io.h" 18 #include "iwl-trans.h" 19 #include "iwl-modparams.h" 38 { .throughput = 1 * 1024 - 1, .blink_time = 260 }, 39 { .throughput = 5 * 1024 - 1, .blink_time = 220 }, 40 { .throughput = 10 * 1024 - 1, .blink_time = 190 }, 41 { .throughput = 20 * 1024 - 1, .blink_time = 170 }, 42 { .throughput = 50 * 1024 - 1, .blink_time = 150 }, [all …]
|
/linux-6.12.1/drivers/regulator/ |
D | wm8350-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // wm8350.c -- Voltage and current regulation for the Wolfson WM8350 PMIC 101 switch (wm8350->pmic.isink_A_dcdc) { in wm8350_isink_enable() 109 1 << (wm8350->pmic.isink_A_dcdc - in wm8350_isink_enable() 113 return -EINVAL; in wm8350_isink_enable() 117 switch (wm8350->pmic.isink_B_dcdc) { in wm8350_isink_enable() 125 1 << (wm8350->pmic.isink_B_dcdc - in wm8350_isink_enable() 129 return -EINVAL; in wm8350_isink_enable() 133 return -EINVAL; in wm8350_isink_enable() 145 switch (wm8350->pmic.isink_A_dcdc) { in wm8350_isink_disable() [all …]
|