| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/leds/ |
| D | common.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/leds/common.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Common leds properties 10 - Jacek Anaszewski <jacek.anaszewski@gmail.com> 11 - Pavel Machek <pavel@ucw.cz> 25 led-sources: 30 $ref: /schemas/types.yaml#/definitions/uint32-array 35 from the header include/dt-bindings/leds/common.h. If there is no [all …]
|
| D | regulator-led.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/leds/regulator-led.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Regulator LEDs 10 - Linus Walleij <linus.walleij@linaro.org> 13 Regulator LEDs are powered by a single regulator such that they can 20 - $ref: common.yaml# 24 pattern: '^led.*$' 27 const: regulator-led [all …]
|
| D | register-bit-led.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/leds/register-bit-led.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Register Bit LEDs 10 - Linus Walleij <linus.walleij@linaro.org> 13 Register bit leds are used with syscon multifunctional devices where single 14 bits in a certain register can turn on/off a single LED. The register bit LEDs 20 - $ref: /schemas/leds/common.yaml# 25 The unit-address is in the form of @<reg addr>,<bit offset> [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/leds/ |
| D | common.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/leds/common.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Common leds properties 10 - Jacek Anaszewski <jacek.anaszewski@gmail.com> 11 - Pavel Machek <pavel@ucw.cz> 25 led-sources: 30 $ref: /schemas/types.yaml#definitions/uint32-array 35 from the header include/dt-bindings/leds/common.h. If there is no [all …]
|
| /kernel/linux/linux-5.10/drivers/leds/trigger/ |
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 3 bool "LED Trigger support" 6 This option enables trigger support for the leds class. 7 These triggers allow kernel events to drive the LEDs and can 13 tristate "LED Timer Trigger" 15 This allows LEDs to be controlled by a programmable timer 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 36 bool "LED Disk Trigger" [all …]
|
| D | ledtrig-oneshot.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * One-shot LED Trigger 7 * Based on ledtrig-timer.c by Richard Purdie <rpurdie@openedhand.com> 16 #include <linux/leds.h> 17 #include "../leds.h" 32 &led_cdev->blink_delay_on, &led_cdev->blink_delay_off, in led_shot() 33 oneshot_data->invert); in led_shot() 43 return sprintf(buf, "%u\n", oneshot_data->invert); in led_invert_show() 58 oneshot_data->invert = !!state; in led_invert_store() 60 if (oneshot_data->invert) in led_invert_store() [all …]
|
| D | ledtrig-timer.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * LED Kernel Timer Trigger 5 * Copyright 2005-2006 Openedhand Ltd. 16 #include <linux/leds.h> 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() [all …]
|
| D | ledtrig-pattern.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * LED pattern trigger 11 #include <linux/leds.h> 41 data->curr = data->next; in pattern_trig_update_patterns() 42 if (!data->is_indefinite && data->curr == data->patterns) in pattern_trig_update_patterns() 43 data->repeat--; in pattern_trig_update_patterns() 45 if (data->next == data->patterns + data->npatterns - 1) in pattern_trig_update_patterns() 46 data->next = data->patterns; in pattern_trig_update_patterns() 48 data->next++; in pattern_trig_update_patterns() 50 data->delta_t = 0; in pattern_trig_update_patterns() [all …]
|
| /kernel/linux/linux-6.6/drivers/leds/trigger/ |
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 3 bool "LED Trigger support" 6 This option enables trigger support for the leds class. 7 These triggers allow kernel events to drive the LEDs and can 13 tristate "LED Timer Trigger" 15 This allows LEDs to be controlled by a programmable timer 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 36 bool "LED Disk Trigger" [all …]
|
| D | ledtrig-oneshot.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * One-shot LED Trigger 7 * Based on ledtrig-timer.c by Richard Purdie <rpurdie@openedhand.com> 16 #include <linux/leds.h> 17 #include "../leds.h" 32 &led_cdev->blink_delay_on, &led_cdev->blink_delay_off, in led_shot() 33 oneshot_data->invert); in led_shot() 43 return sprintf(buf, "%u\n", oneshot_data->invert); in led_invert_show() 58 oneshot_data->invert = !!state; in led_invert_store() 60 if (oneshot_data->invert) in led_invert_store() [all …]
|
| D | ledtrig-timer.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * LED Kernel Timer Trigger 5 * Copyright 2005-2006 Openedhand Ltd. 16 #include <linux/leds.h> 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() [all …]
|
| D | ledtrig-pattern.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * LED pattern trigger 11 #include <linux/leds.h> 41 data->curr = data->next; in pattern_trig_update_patterns() 42 if (!data->is_indefinite && data->curr == data->patterns) in pattern_trig_update_patterns() 43 data->repeat--; in pattern_trig_update_patterns() 45 if (data->next == data->patterns + data->npatterns - 1) in pattern_trig_update_patterns() 46 data->next = data->patterns; in pattern_trig_update_patterns() 48 data->next++; in pattern_trig_update_patterns() 50 data->delta_t = 0; in pattern_trig_update_patterns() [all …]
|
| /kernel/linux/linux-6.6/Documentation/leds/ |
| D | leds-qcom-lpg.rst | 1 .. SPDX-License-Identifier: GPL-2.0 8 ----------- 11 number of PWM channels, a programmable pattern lookup table and a RGB LED 15 individual LEDs, grouped together as RGB LEDs or otherwise be accessed as PWM 23 deeper idle states the LPG provides pattern support. This consists of a shared 25 range within the table to use, the rate and if the pattern should repeat. 27 The pattern for a channel can be programmed using the "pattern" trigger, using 30 /sys/class/leds/<led>/hw_pattern 31 -------------------------------- 33 Specify a hardware pattern for a Qualcomm LPG LED. [all …]
|
| D | leds-mt6370-rgb.rst | 1 .. SPDX-License-Identifier: GPL-2.0 8 ----------- 10 The MT6370 integrates a four-channel RGB LED driver, designed to provide a 12 includes a smart LED string controller and it can drive 3 channels of LEDs with 14 current up to 6mA. It provides three operation modes for RGB LEDs: 15 PWM Dimming mode, breath pattern mode, and constant current mode. The device 18 The breath pattern for a channel can be programmed using the "pattern" trigger, 21 /sys/class/leds/<led>/hw_pattern 22 -------------------------------- 24 Specify a hardware breath pattern for a MT6370 RGB LED. [all …]
|
| /kernel/linux/linux-6.6/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. 27 file at Documentation/leds/. 29 What: /sys/class/leds/<led>/repeat 33 Specify a pattern repeat number. -1 means repeat indefinitely, [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. 27 file at Documentation/leds/. 29 What: /sys/class/leds/<led>/repeat 33 Specify a pattern repeat number. -1 means repeat indefinitely,
|
| D | sysfs-class-led-driver-el15203000 | 1 What: /sys/class/leds/<led>/repeat 6 so this file should always store -1. 9 Documentation/ABI/testing/sysfs-class-led-trigger-pattern
|
| /kernel/linux/linux-6.6/drivers/leds/ |
| D | leds-cht-wcove.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Driver for LEDs connected to the Intel Cherry Trail Whiskey Cove PMIC 14 #include <linux/leds.h> 77 struct cht_wc_led leds[CHT_WC_LED_COUNT]; member 112 mutex_lock(&led->mutex); in cht_wc_leds_brightness_set() 115 ret = regmap_update_bits(led->regmap, led->regs->ctrl, in cht_wc_leds_brightness_set() 116 led->regs->on_off_mask, led->regs->off_val); in cht_wc_leds_brightness_set() 118 dev_err(cdev->dev, "Failed to turn off: %d\n", ret); in cht_wc_leds_brightness_set() 123 ret = regmap_update_bits(led->regmap, led->regs->fsm, in cht_wc_leds_brightness_set() 126 dev_err(cdev->dev, "Failed to update LED FSM reg: %d\n", ret); in cht_wc_leds_brightness_set() [all …]
|
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 13 LEDs from both userspace and optionally, by kernel events (triggers). 20 This option enables the LED sysfs class in /sys/class/leds. You'll 21 need this to do anything useful with LEDs. If unsure, say Y. 27 This option enables the flash LED sysfs class in /sys/class/leds. 28 It wraps LED Class and adds flash LEDs specific sysfs attributes 37 This option enables the multicolor LED sysfs class in /sys/class/leds. 40 for multicolor LEDs that are grouped together. This class is not 41 intended for single color LEDs. It can be built as a module. 48 for LED sysfs class devices under /sys/class/leds. [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> 41 * with in-driver hard-coded LED names used as a fallback when 54 * only LEDs exposed by drivers of hot-pluggable devices should 100 * Set LED brightness level immediately - it can block the caller for 121 struct led_pattern *pattern, u32 len, int repeat); 128 const char *default_trigger; /* Trigger to use */ 140 /* Protects the trigger data below */ 143 struct led_trigger *trigger; member [all …]
|
| /kernel/linux/linux-6.6/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> 47 * struct led_lookup_data - represents a single LED lookup entry 66 * with in-driver hard-coded LED names used as a fallback when 79 * only LEDs exposed by drivers of hot-pluggable devices should 128 /* Brightness off also disables hw-blinking so it is a separate action */ 140 * Set LED brightness level immediately - it can block the caller for 165 struct led_pattern *pattern, u32 len, int repeat); 172 const char *default_trigger; /* Trigger to use */ [all …]
|
| /kernel/linux/linux-6.6/drivers/tty/vt/ |
| D | keyboard.c | 1 // SPDX-License-Identifier: GPL-2.0 15 * 11-11-96: SAK should now work in the raw mode (Martin Mares) 18 * Merge with the m68k keyboard driver and split-off of the PC low-level 21 * 27-05-97: Added support for the Magic SysRq Key (Martin Mares) 22 * 30-07-98: Dead keys redone, aeb@cwi.nl. 23 * 21-08-02: Converted to input API, major cleanup. (Vojtech Pavlik) 34 #include <linux/leds.h> 116 [ KT_FN ] = ARRAY_SIZE(func_table) - 1, 117 [ KT_SPEC ] = ARRAY_SIZE(fn_handler) - 1, 118 [ KT_PAD ] = NR_PAD - 1, [all …]
|
| /kernel/linux/linux-5.10/drivers/tty/vt/ |
| D | keyboard.c | 1 // SPDX-License-Identifier: GPL-2.0 15 * 11-11-96: SAK should now work in the raw mode (Martin Mares) 18 * Merge with the m68k keyboard driver and split-off of the PC low-level 21 * 27-05-97: Added support for the Magic SysRq Key (Martin Mares) 22 * 30-07-98: Dead keys redone, aeb@cwi.nl. 23 * 21-08-02: Converted to input API, major cleanup. (Vojtech Pavlik) 39 #include <linux/leds.h> 117 255, ARRAY_SIZE(func_table) - 1, ARRAY_SIZE(fn_handler) - 1, NR_PAD - 1, 118 NR_DEAD - 1, 255, 3, NR_SHIFT - 1, 255, NR_ASCII - 1, NR_LOCK - 1, 119 255, NR_LOCK - 1, 255, NR_BRL - 1 [all …]
|
| /kernel/linux/linux-6.6/drivers/leds/rgb/ |
| D | leds-qcom-lpg.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2017-2022 Linaro Ltd 4 * Copyright (c) 2010-2012, The Linux Foundation. All rights reserved. 9 #include <linux/led-class-multicolor.h> 40 #define PWM_DTEST_REG(x) (0xe2 + (x) - 1) 58 * struct lpg - LPG device context 62 * @pwm: PWM-chip object, if operating in PWM mode 68 * @triled_src: power-source for the TRILED 98 * struct lpg_channel - per channel data 102 * @lut_mask: mask in LUT to start pattern generator for this channel [all …]
|
| /kernel/linux/linux-5.10/drivers/leds/ |
| D | leds-tca6507.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * leds-tca6507 8 * The modulation can be varied in a simple pattern to produce a 9 * blink or double-blink. 12 * out-only (pull-up resistor required) or as an LED with variable 13 * brightness and hardware-assisted blinking. 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'. 42 * delays in the ranges: 56-72, 112-144, 168-216, 224-27504, [all …]
|