| /kernel/linux/linux-6.6/drivers/leds/ |
| D | Makefile | 11 obj-$(CONFIG_LEDS_88PM860X) += leds-88pm860x.o 12 obj-$(CONFIG_LEDS_ACER_A500) += leds-acer-a500.o 13 obj-$(CONFIG_LEDS_ADP5520) += leds-adp5520.o 14 obj-$(CONFIG_LEDS_AN30259A) += leds-an30259a.o 15 obj-$(CONFIG_LEDS_APU) += leds-apu.o 16 obj-$(CONFIG_LEDS_ARIEL) += leds-ariel.o 17 obj-$(CONFIG_LEDS_AW200XX) += leds-aw200xx.o 18 obj-$(CONFIG_LEDS_AW2013) += leds-aw2013.o 19 obj-$(CONFIG_LEDS_BCM6328) += leds-bcm6328.o 20 obj-$(CONFIG_LEDS_BCM6358) += leds-bcm6358.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 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. 70 will be called leds-an30259a. [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-mt6323.c | 8 #include <linux/leds.h> 108 * @max_period: Maximum period for all LEDs 109 * @max_leds: Maximum number of supported LEDs 111 * @max_brightness: Maximum brightness for all LEDs 156 struct mt6323_leds *leds = led->parent; in mt6323_led_hw_brightness() local 157 const struct mt6323_regs *regs = leds->pdata->regs; in mt6323_led_hw_brightness() 158 struct regmap *regmap = leds->hw->regmap; in mt6323_led_hw_brightness() 181 struct mt6323_leds *leds = led->parent; in mt6323_led_hw_off() local 182 const struct mt6323_regs *regs = leds->pdata->regs; in mt6323_led_hw_off() 183 struct regmap *regmap = leds->hw->regmap; in mt6323_led_hw_off() [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-cht-wcove.c | 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 340 struct cht_wc_leds *leds; in cht_wc_leds_probe() local 352 leds = devm_kzalloc(&pdev->dev, sizeof(*leds), GFP_KERNEL); in cht_wc_leds_probe() 353 if (!leds) in cht_wc_leds_probe() 361 leds->leds[0].regs = &cht_wc_led_regs[0]; in cht_wc_leds_probe() 362 leds->leds[0].regmap = pmic->regmap; in cht_wc_leds_probe() 363 ret = cht_wc_led_save_regs(&leds->leds[0], &leds->led1_initial_regs); in cht_wc_leds_probe() 370 leds->leds[0].cdev.default_trigger = "max170xx_battery-charging-blink-full-solid"; in cht_wc_leds_probe() [all …]
|
| /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 …]
|
| /kernel/linux/linux-6.6/drivers/leds/blink/ |
| D | leds-bcm63138.c | 7 #include <linux/leds.h> 54 struct bcm63138_leds *leds; member 64 static void bcm63138_leds_write(struct bcm63138_leds *leds, unsigned int reg, in bcm63138_leds_write() argument 67 writel(data, leds->base + reg); in bcm63138_leds_write() 70 static unsigned long bcm63138_leds_read(struct bcm63138_leds *leds, in bcm63138_leds_read() argument 73 return readl(leds->base + reg); in bcm63138_leds_read() 76 static void bcm63138_leds_update_bits(struct bcm63138_leds *leds, in bcm63138_leds_update_bits() argument 81 bcm63138_leds_write(leds, reg, (bcm63138_leds_read(leds, reg) & ~mask) | (val & mask)); in bcm63138_leds_update_bits() 88 static void bcm63138_leds_set_flash_rate(struct bcm63138_leds *leds, in bcm63138_leds_set_flash_rate() argument 95 bcm63138_leds_update_bits(leds, BCM63138_FLASH_RATE_CTRL1 + reg_offset, in bcm63138_leds_set_flash_rate() [all …]
|
| /kernel/linux/linux-6.6/Documentation/leds/ |
| D | index.rst | 4 LEDs title 10 leds-class 11 leds-class-flash 12 leds-class-multicolor 19 leds-blinkm 20 leds-cht-wcove 21 leds-el15203000 22 leds-lm3556 23 leds-lp3944 24 leds-lp5521 [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-6.6/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-6.6/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 …]
|
| /kernel/linux/linux-6.6/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 69 This allows LEDs to be controlled by active CPUs. This shows [all …]
|
| /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/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 …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/leds/ |
| D | leds-bcm63138.yaml | 4 $id: http://devicetree.org/schemas/leds/leds-bcm63138.yaml# 7 title: Broadcom's BCM63138 LEDs controller 13 This LEDs controller was first used on BCM63138 and later reused on BCM4908, 16 It supports up to 32 LEDs that can be connected parallelly or serially. It 19 Binding serially connected LEDs isn't documented yet. 26 - brcm,bcm4908-leds 27 - brcm,bcm6848-leds 28 - brcm,bcm6858-leds 29 - brcm,bcm63148-leds 30 - brcm,bcm63381-leds [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 …]
|