| /kernel/linux/linux-5.10/drivers/leds/ |
| D | leds-el15203000.c | 1 // SPDX-License-Identifier: GPL-2.0 13 * +-----+---------+ 14 * | LED | COMMAND | 15 * +-----+---------+ 17 * +-----+---------+ 21 * +----------+--------------+-------------------------------------------+ 23 * +----------+--------------+-------------------------------------------+ 25 * +----------+--------------+-------------------------------------------+ 27 * +----------+--------------+-------------------------------------------+ 29 * +----------+--------------+-------------------------------------------+ [all …]
|
| D | leds-sc27xx-bltc.c | 1 // SPDX-License-Identifier: GPL-2.0 84 return leds->priv->base + SC27XX_LEDS_OFFSET * leds->line; in sc27xx_led_get_offset() 90 u32 ctrl_base = leds->priv->base + SC27XX_LEDS_CTRL; in sc27xx_led_enable() 91 u8 ctrl_shift = SC27XX_CTRL_SHIFT * leds->line; in sc27xx_led_enable() 92 struct regmap *regmap = leds->priv->regmap; in sc27xx_led_enable() 109 struct regmap *regmap = leds->priv->regmap; in sc27xx_led_disable() 110 u32 ctrl_base = leds->priv->base + SC27XX_LEDS_CTRL; in sc27xx_led_disable() 111 u8 ctrl_shift = SC27XX_CTRL_SHIFT * leds->line; in sc27xx_led_disable() 122 mutex_lock(&leds->priv->lock); in sc27xx_led_set() 129 mutex_unlock(&leds->priv->lock); in sc27xx_led_set() [all …]
|
| D | led-core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * LED Class Core 5 * Copyright 2005-2006 Openedhand Ltd. 45 if (!led_cdev->brightness_set) in __led_set_brightness() 46 return -ENOTSUPP; in __led_set_brightness() 48 led_cdev->brightness_set(led_cdev, value); in __led_set_brightness() 56 if (!led_cdev->brightness_set_blocking) in __led_set_brightness_blocking() 57 return -ENOTSUPP; in __led_set_brightness_blocking() 59 return led_cdev->brightness_set_blocking(led_cdev, value); in __led_set_brightness_blocking() 68 if (!led_cdev->blink_delay_on || !led_cdev->blink_delay_off) { in led_timer_function() [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 19 * * Mode: 00 -> set brightness between 0x00 (min) and 0x3F (max) 20 * * Mode: 01 -> pulsing pattern (min -> max -> min) with an interval. From 22 * slightly different pattern starting from 0x10 (longer gap between the 24 * * Mode: 10 -> same as 01 but with only a ramp from min to max. Again a [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 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 71 return led->id; in lm3533_led_get_pattern() 74 static inline u8 lm3533_led_get_pattern_reg(struct lm3533_led *led, in lm3533_led_get_pattern_reg() 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" 83 static void lp8501_set_led_current(struct lp55xx_led *led, u8 led_current) in lp8501_set_led_current() argument 85 led->led_current = led_current; in lp8501_set_led_current() 86 lp55xx_write(led->chip, LP8501_REG_LED_CURRENT_BASE + led->chan_nr, in lp8501_set_led_current() 99 /* Chip startup time is 500 us, 1 - 2 ms gives some margin */ in lp8501_post_init_device() 102 if (chip->pdata->clock_mode != LP55XX_CLOCK_EXT) in lp8501_post_init_device() 111 LP8501_PWR_CONFIG_M, chip->pdata->pwr_sel); in lp8501_post_init_device() [all …]
|
| D | leds-lp5562.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * LP5562 LED driver 17 #include <linux/platform_data/leds-lp55xx.h> 20 #include "leds-lp55xx-common.h" 114 static void lp5562_set_led_current(struct lp55xx_led *led, u8 led_current) in lp5562_set_led_current() argument 123 led->led_current = led_current; in lp5562_set_led_current() 124 lp55xx_write(led->chip, addr[led->chan_nr], led_current); in lp5562_set_led_current() 129 enum lp55xx_engine_index idx = chip->engine_idx; in lp5562_load_engine() 209 enum lp55xx_engine_index idx = chip->engine_idx; in lp5562_update_firmware() 210 u8 pattern[LP5562_PROGRAM_LENGTH] = {0}; in lp5562_update_firmware() local [all …]
|
| /kernel/linux/linux-5.10/Documentation/ABI/testing/ |
| D | sysfs-class-led-trigger-pattern | 1 What: /sys/class/leds/<led>/pattern 5 Specify a software pattern for the LED, that supports altering 9 The pattern is given by a series of tuples, of brightness and 13 Documentation/devicetree/bindings/leds/leds-trigger-pattern.txt 15 What: /sys/class/leds/<led>/hw_pattern 19 Specify a hardware pattern for the LED, for LED hardware that 22 software pattern. 24 Since different LED hardware can have different semantics of 29 What: /sys/class/leds/<led>/repeat 33 Specify a pattern repeat number. -1 means repeat indefinitely,
|
| /kernel/linux/linux-4.19/Documentation/leds/ |
| D | leds-lp55xx.txt | 7 ----------- 12 Create LED class devices for multiple output channels 13 Device attributes for user-space interface 14 Program memory for running LED patterns 26 control multi output LED channels such as led current, channel index. 30 For example, LP5521 has maximum 3 LED channels. 52 Setting LED output current 59 various LED patterns. 60 This pattern data is saved as a file in the user-land or 65 To load and run the pattern, the programming sequence is following. [all …]
|
| D | leds-lm3556.txt | 5 1.5 A Synchronous Boost LED Flash Driver w/ High-Side Current Source 10 Contact:Daniel Jeong(daniel.jeong-at-ti.com, gshark.jeong-at-gmail.com) 13 ----------- 17 In Flash Mode, the LED current source(LED) provides 16 target current levels 32 In Torch Mode, the current source(LED) is programmed via the CURRENT CONTROL 46 Indicator pattern can be set through sys/class/leds/indicator/pattern file, 47 and 4 patterns are pre-defined in indicator_pattern array. 48 According to N-lank, Pulse time and N Period values, different pattern wiill 51 Please refer datasheet for more detail about N-Blank, Pulse time and N Period. 53 Indicator pattern example: [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/leds/ |
| D | leds-el15203000.txt | 1 Crane Merchandising System - EL15203000 LED driver 2 -------------------------------------------------- 4 This LED Board (aka RED LEDs board) is widely used in 9 Vending area LED encoded with symbol 'V' (hex code 0x56). 10 Doesn't have any hardware blinking pattern. 12 Screen light tube LED which surrounds vending machine screen and 13 encoded with symbol 'S' (hex code 0x53). Supports blinking breathing pattern. 15 Water Pipe LED encoded with symbol 'P' (hex code 0x50) and 16 actually consists of 5 LEDs that exposed by protocol like one LED. 18 - cascade pattern [all …]
|
| D | leds-trigger-pattern.txt | 1 * Pattern format for LED pattern trigger 3 The pattern is given by a series of tuples, of brightness and duration (ms). 4 The LED is expected to traverse the series and each brightness value for the 6 new value, and writing malformed pattern deactivates any active one. 13 The gradual dimming format of the software pattern values should be: 17 echo 0 1000 255 2000 > pattern 19 It will make the LED go gradually from zero-intensity to max (255) intensity in 22 LED brightness 24 255-| / \ / \ / 28 0-| / \/ \/ [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 …]
|
| /kernel/linux/linux-5.10/Documentation/leds/ |
| D | leds-lp55xx.rst | 8 ----------- 13 Create LED class devices for multiple output channels 14 Device attributes for user-space interface 15 Program memory for running LED patterns 28 control multi output LED channels such as led current, channel index. 32 For example, LP5521 has maximum 3 LED channels. 50 - Maximum number of channels 51 - Reset command, chip enable command 52 - Chip specific initialization 53 - Brightness control register access [all …]
|
| D | leds-sc27xx.rst | 1 .. SPDX-License-Identifier: GPL-2.0 7 /sys/class/leds/<led>/hw_pattern 8 -------------------------------- 10 Specify a hardware pattern for the SC27XX LED. For the SC27XX 11 LED controller, it only supports 4 stages to make a single 12 hardware pattern, which is used to configure the rise time, 15 For the breathing mode, the SC27XX LED only expects one brightness 16 for the high stage. To be compatible with the hardware pattern 20 - Min stage duration: 125 ms 21 - Max stage duration: 31875 ms [all …]
|
| D | leds-lm3556.rst | 6 1.5 A Synchronous Boost LED Flash Driver w/ High-Side Current Source 10 - Daniel Jeong 12 Contact:Daniel Jeong(daniel.jeong-at-ti.com, gshark.jeong-at-gmail.com) 15 ----------- 21 In Flash Mode, the LED current source(LED) provides 16 target current levels 50 In Torch Mode, the current source(LED) is programmed via the CURRENT CONTROL 77 Indicator pattern can be set through sys/class/leds/indicator/pattern file, 78 and 4 patterns are pre-defined in indicator_pattern array. 80 According to N-lank, Pulse time and N Period values, different pattern wiill 84 Please refer datasheet for more detail about N-Blank, Pulse time and N Period. [all …]
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | leds.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Driver model for leds and led triggers 11 #include <dt-bindings/leds/common.h> 25 * LED Core 41 * with in-driver hard-coded LED names used as a fallback when 43 * in new LED class drivers. 47 * string to be used for devicename section of LED class device 48 * either for label based LED name composition path or for fwnode 53 * indicates if LED name should always comprise devicename section; 54 * only LEDs exposed by drivers of hot-pluggable devices should [all …]
|
| /kernel/linux/linux-4.19/drivers/leds/ |
| D | leds-lm3533.c | 2 * leds-lm3533.c -- LM3533 LED driver 4 * Copyright (C) 2011-2012 Texas Instruments 63 static inline int lm3533_led_get_ctrlbank_id(struct lm3533_led *led) in lm3533_led_get_ctrlbank_id() argument 65 return led->id + 2; in lm3533_led_get_ctrlbank_id() 68 static inline u8 lm3533_led_get_lv_reg(struct lm3533_led *led, u8 base) in lm3533_led_get_lv_reg() argument 70 return base + led->id; in lm3533_led_get_lv_reg() 73 static inline u8 lm3533_led_get_pattern(struct lm3533_led *led) in lm3533_led_get_pattern() argument 75 return led->id; in lm3533_led_get_pattern() 78 static inline u8 lm3533_led_get_pattern_reg(struct lm3533_led *led, in lm3533_led_get_pattern_reg() argument 81 return base + lm3533_led_get_pattern(led) * LM3533_REG_PATTERN_STEP; in lm3533_led_get_pattern_reg() [all …]
|
| D | leds-lp8501.c | 2 * TI LP8501 9 channel LED Driver 22 #include <linux/platform_data/leds-lp55xx.h> 25 #include "leds-lp55xx-common.h" 87 static void lp8501_set_led_current(struct lp55xx_led *led, u8 led_current) in lp8501_set_led_current() argument 89 led->led_current = led_current; in lp8501_set_led_current() 90 lp55xx_write(led->chip, LP8501_REG_LED_CURRENT_BASE + led->chan_nr, in lp8501_set_led_current() 103 /* Chip startup time is 500 us, 1 - 2 ms gives some margin */ in lp8501_post_init_device() 106 if (chip->pdata->clock_mode != LP55XX_CLOCK_EXT) in lp8501_post_init_device() 115 LP8501_PWR_CONFIG_M, chip->pdata->pwr_sel); in lp8501_post_init_device() 120 enum lp55xx_engine_index idx = chip->engine_idx; in lp8501_load_engine() [all …]
|
| D | leds-lp5562.c | 2 * LP5562 LED driver 20 #include <linux/platform_data/leds-lp55xx.h> 23 #include "leds-lp55xx-common.h" 117 static void lp5562_set_led_current(struct lp55xx_led *led, u8 led_current) in lp5562_set_led_current() argument 126 led->led_current = led_current; in lp5562_set_led_current() 127 lp55xx_write(led->chip, addr[led->chan_nr], led_current); in lp5562_set_led_current() 132 enum lp55xx_engine_index idx = chip->engine_idx; in lp5562_load_engine() 212 enum lp55xx_engine_index idx = chip->engine_idx; in lp5562_update_firmware() 213 u8 pattern[LP5562_PROGRAM_LENGTH] = {0}; in lp5562_update_firmware() local 232 while ((offset < size - 1) && (i < LP5562_PROGRAM_LENGTH)) { in lp5562_update_firmware() [all …]
|
| /kernel/linux/linux-5.10/include/linux/mfd/ |
| D | max8997.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * max8997.h - Driver for the Maxim 8997/8966 5 * Copyright (C) 2009-2010 Samsung Electrnoics 122 * @internal_mode_pattern: internal mode pattern for internal mode 123 * [0 - 3]: valid pattern number 125 * for the internal mode pattern 126 * [0 - 15]: available cycles 127 * @pattern_signal_period: period of the waveform for the internal mode pattern 128 * [0 - 255]: available period 153 * The number of LED devices for MAX8997 is two [all …]
|
| /kernel/linux/linux-5.10/drivers/leds/trigger/ |
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 3 bool "LED Trigger support" 13 tristate "LED Timer Trigger" 16 via sysfs. Some LED hardware can be programmed to start 17 blinking the LED without any further software interaction. 18 For more details read Documentation/leds/leds-class.rst. 23 tristate "LED One-shot Trigger" 25 This allows LEDs to blink in one-shot pulses with parameters 28 or on dense events, where this blinks the LED at constant rate if 36 bool "LED Disk Trigger" [all …]
|
| D | ledtrig-timer.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * LED Kernel Timer Trigger 5 * Copyright 2005-2006 Openedhand Ltd. 23 return sprintf(buf, "%lu\n", led_cdev->blink_delay_on); in led_delay_on_show() 37 led_blink_set(led_cdev, &state, &led_cdev->blink_delay_off); in led_delay_on_store() 38 led_cdev->blink_delay_on = state; in led_delay_on_store() 48 return sprintf(buf, "%lu\n", led_cdev->blink_delay_off); in led_delay_off_show() 62 led_blink_set(led_cdev, &led_cdev->blink_delay_on, &state); in led_delay_off_store() 63 led_cdev->blink_delay_off = state; in led_delay_off_store() 80 u32 *pattern; in pattern_init() local [all …]
|
| /kernel/linux/linux-4.19/include/linux/mfd/ |
| D | max8997.h | 2 * max8997.h - Driver for the Maxim 8997/8966 4 * Copyright (C) 2009-2010 Samsung Electrnoics 19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 135 * @internal_mode_pattern: internal mode pattern for internal mode 136 * [0 - 3]: valid pattern number 138 * for the internal mode pattern 139 * [0 - 15]: available cycles 140 * @pattern_signal_period: period of the waveform for the internal mode pattern 141 * [0 - 255]: available period 166 * The number of LED devices for MAX8997 is two [all …]
|
| /kernel/linux/linux-5.10/include/linux/platform_data/ |
| D | leds-lp55xx.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 9 * Derived from leds-lp5521.h, leds-lp5523.h 16 #include <linux/led-class-multicolor.h> 29 u8 led_current; /* mA x10, 0 if led is not connected */ 55 * @led_config : Configurable led class device 56 * @num_channels : Number of LED channels 62 * @patterns : Predefined pattern data for RGB channels 68 /* LED channel configuration */ 79 /* Predefined pattern data */
|