| /kernel/linux/linux-5.10/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-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/led-class-flash.h> 19 /* Value related the movie mode */ 24 /* Value related the flash mode */ 56 /* Movie / Flash Mode Control */ 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 */ [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-lp5521.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * LP5521 LED chip driver. 18 #include <linux/platform_data/leds-lp55xx.h> 22 #include "leds-lp55xx-common.h" 44 /* Base register to set LED current */ 60 #define LP5521_PWRSAVE_EN 0x20 /* 1 = Power save mode */ 62 #define LP5521_CP_MODE_BYPASS 8 /* CP forced to bypass mode */ 63 #define LP5521_CP_MODE_1X5 0x10 /* CP forced to 1.5x mode */ 64 #define LP5521_CP_MODE_AUTO 0x18 /* Automatic mode selection */ 80 #define LP5521_MODE_R_M 0x30 /* Operation Mode Register */ [all …]
|
| D | leds-lp5523.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * lp5523.c - LP5523, LP55231 LED Driver 19 #include <linux/platform_data/leds-lp55xx.h> 22 #include "leds-lp55xx-common.h" 82 #define LP5523_MODE_ENG1_M 0x30 /* Operation Mode Register */ 89 #define LP5523_ENG1_IS_LOADING(mode) \ argument 90 ((mode & LP5523_MODE_ENG1_M) == LP5523_LOAD_ENG1) 91 #define LP5523_ENG2_IS_LOADING(mode) \ argument 92 ((mode & LP5523_MODE_ENG2_M) == LP5523_LOAD_ENG2) 93 #define LP5523_ENG3_IS_LOADING(mode) \ argument [all …]
|
| D | leds-lp8501.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * TI LP8501 9 channel LED Driver 18 #include <linux/platform_data/leds-lp55xx.h> 21 #include "leds-lp55xx-common.h" 71 #define LP8501_ENG1_IS_LOADING(mode) \ argument 72 ((mode & LP8501_MODE_ENG1_M) == LP8501_LOAD_ENG1) 73 #define LP8501_ENG2_IS_LOADING(mode) \ argument 74 ((mode & LP8501_MODE_ENG2_M) == LP8501_LOAD_ENG2) 75 #define LP8501_ENG3_IS_LOADING(mode) \ argument 76 ((mode & LP8501_MODE_ENG3_M) == LP8501_LOAD_ENG3) [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 …]
|
| /kernel/linux/linux-6.6/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-lp5521.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * LP5521 LED chip driver. 18 #include <linux/platform_data/leds-lp55xx.h> 22 #include "leds-lp55xx-common.h" 44 /* Base register to set LED current */ 60 #define LP5521_PWRSAVE_EN 0x20 /* 1 = Power save mode */ 61 #define LP5521_CP_MODE_MASK 0x18 /* Charge pump mode */ 77 #define LP5521_MODE_R_M 0x30 /* Operation Mode Register */ 84 #define LP5521_R_IS_LOADING(mode) \ argument 85 ((mode & LP5521_MODE_R_M) == LP5521_LOAD_R) [all …]
|
| D | leds-lp5523.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * lp5523.c - LP5523, LP55231 LED Driver 19 #include <linux/platform_data/leds-lp55xx.h> 22 #include "leds-lp55xx-common.h" 85 #define LP5523_MODE_ENG1_M 0x30 /* Operation Mode Register */ 92 #define LP5523_ENG1_IS_LOADING(mode) \ argument 93 ((mode & LP5523_MODE_ENG1_M) == LP5523_LOAD_ENG1) 94 #define LP5523_ENG2_IS_LOADING(mode) \ argument 95 ((mode & LP5523_MODE_ENG2_M) == LP5523_LOAD_ENG2) 96 #define LP5523_ENG3_IS_LOADING(mode) \ argument [all …]
|
| D | leds-lp8501.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * TI LP8501 9 channel LED Driver 18 #include <linux/platform_data/leds-lp55xx.h> 21 #include "leds-lp55xx-common.h" 71 #define LP8501_ENG1_IS_LOADING(mode) \ argument 72 ((mode & LP8501_MODE_ENG1_M) == LP8501_LOAD_ENG1) 73 #define LP8501_ENG2_IS_LOADING(mode) \ argument 74 ((mode & LP8501_MODE_ENG2_M) == LP8501_LOAD_ENG2) 75 #define LP8501_ENG3_IS_LOADING(mode) \ argument 76 ((mode & LP8501_MODE_ENG3_M) == LP8501_LOAD_ENG3) [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 …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-6.6/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/led-class-flash.h> 19 /* Value related the movie mode */ 24 /* Value related the flash mode */ 56 /* Movie / Flash Mode Control */ 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 */ [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 12 #include <linux/led-class-flash.h> 20 #include <media/v4l2-flash-led-class.h> 49 /* maximum LED current in movie mode */ 51 /* maximum LED current in flash mode */ 57 /* max LED brightness level */ 67 /* corresponding LED Flash class device */ 76 /* movie mode current scale */ [all …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/leds/ |
| 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 …]
|
| /kernel/linux/linux-6.6/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 …]
|