/kernel/linux/linux-5.10/drivers/leds/ |
D | Makefile | 11 obj-$(CONFIG_LEDS_88PM860X) += leds-88pm860x.o 12 obj-$(CONFIG_LEDS_AAT1290) += leds-aat1290.o 13 obj-$(CONFIG_LEDS_ACER_A500) += leds-acer-a500.o 14 obj-$(CONFIG_LEDS_ADP5520) += leds-adp5520.o 15 obj-$(CONFIG_LEDS_AN30259A) += leds-an30259a.o 16 obj-$(CONFIG_LEDS_APU) += leds-apu.o 17 obj-$(CONFIG_LEDS_ARIEL) += leds-ariel.o 18 obj-$(CONFIG_LEDS_AS3645A) += leds-as3645a.o 19 obj-$(CONFIG_LEDS_ASIC3) += leds-asic3.o 20 obj-$(CONFIG_LEDS_AW2013) += leds-aw2013.o [all …]
|
D | Kconfig | 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 N. 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. 70 This option enables support for the LEDs on the AAT1290. [all …]
|
D | leds-mc13783.c | 3 * LEDs driver for Freescale MC13783/MC13892/MC34708 7 * Based on leds-da903x: 18 #include <linux/leds.h> 32 struct mc13xxx_leds *leds; member 57 struct mc13xxx_leds *leds = led->leds; in mc13xxx_led_set() local 105 return mc13xxx_reg_rmw(leds->master, leds->devtype->ledctrl_base + reg, in mc13xxx_led_set() 114 struct mc13xxx_leds *leds = platform_get_drvdata(pdev); in mc13xxx_led_probe_dt() local 124 parent = of_get_child_by_name(dev_of_node(dev->parent), "leds"); in mc13xxx_led_probe_dt() 130 leds->devtype->num_regs); in mc13xxx_led_probe_dt() 149 pdata->led[i].id = leds->devtype->led_min + tmp; in mc13xxx_led_probe_dt() [all …]
|
D | leds-sc27xx-bltc.c | 4 #include <linux/leds.h> 56 struct sc27xx_led leds[SC27XX_LEDS_MAX]; member 82 static u32 sc27xx_led_get_offset(struct sc27xx_led *leds) in sc27xx_led_get_offset() argument 84 return leds->priv->base + SC27XX_LEDS_OFFSET * leds->line; in sc27xx_led_get_offset() 87 static int sc27xx_led_enable(struct sc27xx_led *leds, enum led_brightness value) in sc27xx_led_enable() argument 89 u32 base = sc27xx_led_get_offset(leds); in sc27xx_led_enable() 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() 107 static int sc27xx_led_disable(struct sc27xx_led *leds) in sc27xx_led_disable() argument [all …]
|
D | leds-mt6323.c | 8 #include <linux/leds.h> 111 struct mt6323_leds *leds = led->parent; in mt6323_led_hw_brightness() local 112 struct regmap *regmap = leds->hw->regmap; in mt6323_led_hw_brightness() 135 struct mt6323_leds *leds = led->parent; in mt6323_led_hw_off() local 136 struct regmap *regmap = leds->hw->regmap; in mt6323_led_hw_off() 160 struct mt6323_leds *leds = led->parent; in mt6323_get_led_hw_brightness() local 161 struct regmap *regmap = leds->hw->regmap; in mt6323_get_led_hw_brightness() 191 struct mt6323_leds *leds = led->parent; in mt6323_led_hw_on() local 192 struct regmap *regmap = leds->hw->regmap; in mt6323_led_hw_on() 245 struct mt6323_leds *leds = led->parent; in mt6323_led_set_blink() local [all …]
|
D | leds-turris-omnia.c | 3 * CZ.NIC's Turris Omnia LEDs driver 13 #include "leds.h" 49 struct omnia_led leds[]; member 56 struct omnia_leds *leds = dev_get_drvdata(cdev->dev->parent); in omnia_led_brightness_set_blocking() local 61 mutex_lock(&leds->lock); in omnia_led_brightness_set_blocking() 75 ret = i2c_smbus_write_byte_data(leds->client, CMD_LED_STATE, state); in omnia_led_brightness_set_blocking() 77 ret = i2c_master_send(leds->client, buf, 5); in omnia_led_brightness_set_blocking() 79 mutex_unlock(&leds->lock); in omnia_led_brightness_set_blocking() 151 * can be used to control the intensity of all the LEDs at once, so that if they 163 struct omnia_leds *leds = i2c_get_clientdata(client); in brightness_show() local [all …]
|
D | leds-ariel.c | 9 #include <linux/leds.h> 85 struct ariel_led *leds; in ariel_led_probe() local 94 leds = devm_kcalloc(dev, NLEDS, sizeof(*leds), GFP_KERNEL); in ariel_led_probe() 95 if (!leds) in ariel_led_probe() 98 leds[0].ec_index = EC_BLUE_LED; in ariel_led_probe() 99 leds[0].led_cdev.name = "blue:power", in ariel_led_probe() 100 leds[0].led_cdev.default_trigger = "default-on"; in ariel_led_probe() 102 leds[1].ec_index = EC_AMBER_LED; in ariel_led_probe() 103 leds[1].led_cdev.name = "amber:status", in ariel_led_probe() 105 leds[2].ec_index = EC_GREEN_LED; in ariel_led_probe() [all …]
|
D | leds-gpio-register.c | 7 #include <linux/leds.h> 15 * Makes a copy of pdata and pdata->leds and registers a new leds-gpio device 16 * with the result. This allows to have pdata and pdata-leds in .init.rodata 31 _pdata.leds = kmemdup(pdata->leds, in gpio_led_register_device() 32 pdata->num_leds * sizeof(*pdata->leds), GFP_KERNEL); in gpio_led_register_device() 33 if (!_pdata.leds) in gpio_led_register_device() 36 ret = platform_device_register_resndata(NULL, "leds-gpio", id, in gpio_led_register_device() 39 kfree(_pdata.leds); in gpio_led_register_device()
|
D | leds-ot200.c | 2 * Bachmann ot200 leds driver. 13 #include <linux/leds.h> 26 * The device has three leds on the back panel (led_err, led_init and led_run) 27 * and can handle up to seven leds on the front panel. 30 static struct ot200_led leds[] = { variable 122 for (i = 0; i < ARRAY_SIZE(leds); i++) { in ot200_led_probe() 124 leds[i].cdev.name = leds[i].name; in ot200_led_probe() 125 leds[i].cdev.brightness_set = ot200_led_brightness_set; in ot200_led_probe() 127 ret = devm_led_classdev_register(&pdev->dev, &leds[i].cdev); in ot200_led_probe() 132 leds_front = 0; /* turn off all front leds */ in ot200_led_probe() [all …]
|
/kernel/linux/linux-5.10/drivers/input/ |
D | input-leds.c | 12 #include <linux/leds.h> 47 struct input_led leds[]; member 87 struct input_leds *leds; in input_leds_connect() local 98 leds = kzalloc(struct_size(leds, leds, num_leds), GFP_KERNEL); in input_leds_connect() 99 if (!leds) in input_leds_connect() 102 leds->num_leds = num_leds; in input_leds_connect() 104 leds->handle.dev = dev; in input_leds_connect() 105 leds->handle.handler = handler; in input_leds_connect() 106 leds->handle.name = "leds"; in input_leds_connect() 107 leds->handle.private = leds; in input_leds_connect() [all …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/b43/ |
D | leds.c | 17 #include "leds.h" 77 struct b43_leds *leds = container_of(work, struct b43_leds, work); in b43_leds_work() local 78 struct b43_wl *wl = container_of(leds, struct b43_wl, leds); in b43_leds_work() 86 b43_led_update(dev, &wl->leds.led_tx); in b43_leds_work() 87 b43_led_update(dev, &wl->leds.led_rx); in b43_leds_work() 88 b43_led_update(dev, &wl->leds.led_radio); in b43_leds_work() 89 b43_led_update(dev, &wl->leds.led_assoc); in b43_leds_work() 102 if (likely(!wl->leds.stop)) { in b43_led_brightness_set() 104 ieee80211_queue_work(wl->hw, &wl->leds.work); in b43_led_brightness_set() 130 b43warn(dev->wl, "LEDs: Failed to register %s\n", name); in b43_register_led() [all …]
|
/kernel/linux/linux-5.10/Documentation/leds/ |
D | index.rst | 4 LEDs title 10 leds-class 11 leds-class-flash 12 leds-class-multicolor 19 leds-blinkm 20 leds-el15203000 21 leds-lm3556 22 leds-lp3944 23 leds-lp5521 24 leds-lp5523 [all …]
|
D | leds-lm3556.rst | 26 LM3556 Flash can be controlled through sys/class/leds/flash/brightness file 35 #echo 0 > sys/class/leds/flash/brightness 39 #echo 1 > sys/class/leds/flash/brightness 45 #echo 16 > sys/class/leds/flash/brightness 54 LM3556 torch can be controlled through sys/class/leds/torch/brightness file. 62 #echo 0 > sys/class/leds/torch/brightness 66 #echo 1 > sys/class/leds/torch/brightness 72 #echo 8 > sys/class/leds/torch/brightness 77 Indicator pattern can be set through sys/class/leds/indicator/pattern file, 90 #echo 0 > sys/class/leds/indicator/pattern [all …]
|
D | leds-class.rst | 5 In its simplest form, the LED class just allows control of LEDs from 6 userspace. LEDs appear in /sys/class/leds/. The maximum brightness of the 8 of the LED (taking a value 0-max_brightness). Most LEDs don't have hardware 18 Complex triggers while available to all LEDs have LED specific 22 be specified via /sys/class/leds/<device>/delay_{on,off} in milliseconds. 28 is chosen (via /sys/class/leds/<device>/trigger). Trigger specific 29 parameters can appear in /sys/class/leds/<device> once a given trigger is 36 The underlying design philosophy is simplicity. LEDs are simple devices 53 retrieved using get_led_device_info.sh script from tools/leds; generally 54 this section is expected mostly for LEDs that are somehow associated with [all …]
|
/kernel/linux/linux-5.10/Documentation/ABI/testing/ |
D | sysfs-driver-hid-srws1 | 1 What: /sys/class/leds/SRWS1::<serial>::RPM1 2 What: /sys/class/leds/SRWS1::<serial>::RPM2 3 What: /sys/class/leds/SRWS1::<serial>::RPM3 4 What: /sys/class/leds/SRWS1::<serial>::RPM4 5 What: /sys/class/leds/SRWS1::<serial>::RPM5 6 What: /sys/class/leds/SRWS1::<serial>::RPM6 7 What: /sys/class/leds/SRWS1::<serial>::RPM7 8 What: /sys/class/leds/SRWS1::<serial>::RPM8 9 What: /sys/class/leds/SRWS1::<serial>::RPM9 10 What: /sys/class/leds/SRWS1::<serial>::RPM10 [all …]
|
D | sysfs-class-led | 1 What: /sys/class/leds/<led>/brightness 8 Most LEDs don't have hardware brightness support, so will 13 For multicolor LEDs, writing to this file will update all 14 LEDs within the group to a calculated percentage of what 23 Documentation/leds/leds-class-multicolor.rst. 26 /sys/class/leds/<led>/max_brightness. 35 What: /sys/class/leds/<led>/max_brightness 45 What: /sys/class/leds/<led>/brightness_hw_changed 49 Last hardware set brightness level for this LED. Some LEDs 50 may be changed autonomously by hardware/firmware. Only LEDs [all …]
|
D | sysfs-class-led-trigger-netdev | 1 What: /sys/class/leds/<led>/device_name 4 Contact: linux-leds@vger.kernel.org 8 What: /sys/class/leds/<led>/interval 11 Contact: linux-leds@vger.kernel.org 16 What: /sys/class/leds/<led>/link 19 Contact: linux-leds@vger.kernel.org 30 What: /sys/class/leds/<led>/tx 33 Contact: linux-leds@vger.kernel.org 42 What: /sys/class/leds/<led>/rx 45 Contact: linux-leds@vger.kernel.org
|
/kernel/linux/linux-5.10/drivers/leds/trigger/ |
D | Kconfig | 6 This option enables trigger support for the leds class. 7 These triggers allow kernel events to drive the LEDs and can 15 This allows LEDs to be controlled by a programmable timer 18 For more details read Documentation/leds/leds-class.rst. 25 This allows LEDs to blink in one-shot pulses with parameters 39 This allows LEDs to be controlled by disk activity. 46 This allows LEDs to be controlled by MTD activity. 52 This allows LEDs to be controlled by a CPU load average. 60 This allows LEDs to be controlled as a backlight device: they 68 This allows LEDs to be controlled by active CPUs. This shows [all …]
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/leds/ |
D | leds-bcm6328.txt | 1 LEDs connected to Broadcom BCM6328 controller 4 In these SoCs it's possible to control LEDs both as GPIOs or by hardware. 5 However, on some devices there are Serial LEDs (LEDs connected to a 74x164 9 Some of these Serial LEDs are hardware controlled (e.g. ethernet LEDs) and 10 exporting the 74x164 as spi-gpio prevents those LEDs to be hardware 17 registers you have some limited control over rerouting the LEDs (as 21 reason, hardware controlled LEDs aren't registered as LED class devices. 24 - compatible : should be "brcm,bcm6328-leds". 30 - brcm,serial-leds : Boolean, enables Serial LEDs. 32 - brcm,serial-mux : Boolean, enables Serial LEDs multiplexing. [all …]
|
D | cznic,turris-omnia-leds.yaml | 4 $id: http://devicetree.org/schemas/leds/cznic,turris-omnia-leds.yaml# 7 title: CZ.NIC's Turris Omnia LEDs driver 13 This module adds support for the RGB LEDs found on the front panel of the 14 Turris Omnia router. There are 12 RGB LEDs that are controlled by a 20 const: cznic,turris-omnia-leds 36 - $ref: leds-class-multicolor.yaml# 40 supports RGB LEDs. 47 This property identifies one of the LEDs on the front panel of the 58 #include <dt-bindings/leds/common.h> 65 compatible = "cznic,turris-omnia-leds"; [all …]
|
D | leds-pm8058.txt | 4 an LED driver block for up to six LEDs: three normal LEDs, two 5 "flash" LEDs and one "keypad backlight" LED. The names are 10 Hardware-wise the different LEDs support slightly different 11 output currents. The "flash" LEDs do not need to charge nor 15 The LEDs appear as children to the PM8058 device, with the 26 "qcom,pm8058-led" (for the normal LEDs at 0x131, 0x132 and 0x133) 28 "qcom,pm8058-flash-led" (for the "flash" LEDs at 0x49 and 0xFB) 31 - label: see Documentation/devicetree/bindings/leds/common.txt 32 - default-state: see Documentation/devicetree/bindings/leds/common.txt 33 - linux,default-trigger: see Documentation/devicetree/bindings/leds/common.txt
|
D | leds-pca9532.txt | 3 The PCA9532 family is SMBus I/O expander optimized for dimming LEDs. 17 - label: see Documentation/devicetree/bindings/leds/common.txt 18 - type: Output configuration, see dt-bindings/leds/leds-pca9532.h (default NONE) 19 - linux,default-trigger: see Documentation/devicetree/bindings/leds/common.txt 20 - default-state: see Documentation/devicetree/bindings/leds/common.txt 24 #include <dt-bindings/leds/leds-pca9532.h> 26 leds: pca9530@60 {
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/carl9170/ |
D | led.c | 52 /* disable LEDs */ in carl9170_led_init() 78 if (ar->leds[i].registered) { in carl9170_led_update() 79 if (ar->leds[i].last_state || in carl9170_led_update() 80 ar->leds[i].toggled) { in carl9170_led_update() 82 if (ar->leds[i].toggled) in carl9170_led_update() 83 tmp = 70 + 200 / (ar->leds[i].toggled); in carl9170_led_update() 89 ar->leds[i].toggled = 0; in carl9170_led_update() 129 snprintf(ar->leds[i].name, sizeof(ar->leds[i].name), in carl9170_led_register_led() 132 ar->leds[i].ar = ar; in carl9170_led_register_led() 133 ar->leds[i].l.name = ar->leds[i].name; in carl9170_led_register_led() [all …]
|
/kernel/linux/linux-5.10/drivers/video/backlight/ |
D | led_bl.c | 10 #include <linux/leds.h> 17 struct led_classdev **leds; member 36 led_set_brightness(priv->leds[i], bkl_brightness); in led_bl_set_brightness() 49 led_set_brightness(priv->leds[i], LED_OFF); in led_bl_power_off() 76 struct led_classdev **leds; in led_bl_get_leds() local 80 ret = of_count_phandle_with_args(node, "leds", NULL); in led_bl_get_leds() 92 leds = devm_kzalloc(dev, sizeof(struct led_classdev *) * nb_leds, in led_bl_get_leds() 94 if (!leds) in led_bl_get_leds() 98 leds[i] = devm_of_led_get(dev, i); in led_bl_get_leds() 99 if (IS_ERR(leds[i])) in led_bl_get_leds() [all …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/intersil/p54/ |
D | led.c | 21 #include <linux/leds.h> 38 for (i = 0; i < ARRAY_SIZE(priv->leds); i++) in p54_update_leds() 39 if (priv->leds[i].toggled) { in p54_update_leds() 42 tmp = 70 + 200 / (priv->leds[i].toggled); in p54_update_leds() 46 if (priv->leds[i].led_dev.brightness == LED_OFF) in p54_update_leds() 49 priv->leds[i].toggled = in p54_update_leds() 50 !!priv->leds[i].led_dev.brightness; in p54_update_leds() 57 "failed to update LEDs (%d).\n", err); in p54_update_leds() 85 struct p54_led_dev *led = &priv->leds[led_index]; in p54_register_led() 116 * of available/programmable LEDs of the device. in p54_init_leds() [all …]
|