Searched +full:leds +full:- +full:lp55xx (Results 1 – 12 of 12) sorted by relevance
| /linux/Documentation/leds/ |
| H A D | leds-lp55xx.rst | 8 ----------- 14 Device attributes for user-space interface 17 The LP55xx common driver provides these features using exported functions. 25 In lp55xx common driver, two different data structure is used. 50 - Maximum number of channels 51 - Reset command, chip enable command 52 - Chip specific initialization 53 - Brightness control register access 54 - Setting LED output current 55 - Program memory address access for running patterns [all …]
|
| H A D | index.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 LEDs title 10 leds-class 11 leds-class-flash 12 leds-class-multicolor 13 ledtrig-oneshot 14 ledtrig-transient 15 ledtrig-usbport 19 leds-blinkm 20 leds-cht-wcove [all …]
|
| H A D | leds-lp5562.rst | 13 LEDs can be controlled directly via the led class control interface. 17 For the details, please refer to 'firmware' section in leds-lp55xx.txt 70 Please refer to 'leds-lp55xx.txt"
|
| /linux/Documentation/devicetree/bindings/leds/ |
| H A 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> 14 Bindings for the TI/National Semiconductor LP55xx and LP8501 multi channel 27 - national,lp5521 28 - national,lp5523 [all …]
|
| /linux/drivers/leds/ |
| H A D | leds-lp8501.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 #include <linux/leds.h> 18 #include <linux/platform_data/leds-lp55xx.h> 21 #include "leds-lp55xx-common.h" 65 /* Chip startup time is 500 us, 1 - 2 ms gives some margin */ in lp8501_post_init_device() 68 if (chip->pdata->clock_mode != LP55XX_CLOCK_EXT) in lp8501_post_init_device() 71 val |= (chip->pdata->charge_pump_mode << LP8501_CP_MODE_SHIFT) & LP8501_CP_MODE_MASK; in lp8501_post_init_device() 79 LP8501_PWR_CONFIG_M, chip->pdata->pwr_sel); in lp8501_post_init_device()
|
| H A D | leds-lp5521.c | 1 // SPDX-License-Identifier: GPL-2.0-only 16 #include <linux/leds.h> 19 #include <linux/platform_data/leds-lp55xx.h> 23 #include "leds-lp55xx-common.h" 112 * current reg. This is dummy read is required on some platforms - in lp5521_post_init_device() 114 * LP5521_REG_ENABLE register will not have any effect - strange! in lp5521_post_init_device() 118 dev_err(&chip->cl->dev, "error in resetting chip\n"); in lp5521_post_init_device() 122 dev_err(&chip->cl->dev, in lp5521_post_init_device() 125 ret = -EINVAL; in lp5521_post_init_device() 140 val |= (chip->pdata->charge_pump_mode << LP5521_CP_MODE_SHIFT) & LP5521_CP_MODE_MASK; in lp5521_post_init_device() [all …]
|
| H A D | leds-lp5569.c | 1 // SPDX-License-Identifier: GPL-2.0-only 12 #include <linux/leds.h> 16 #include <linux/platform_data/leds-lp55xx.h> 18 #include <dt-bindings/leds/leds-lp55xx.h> 20 #include "leds-lp55xx-common.h" 142 chip->engine_idx = i; in lp5569_init_program_engine() 147 pattern[i - 1][j]); in lp5569_init_program_engine() 161 dev_err(&chip->cl->dev, in lp5569_init_program_engine() 164 ret = -EINVAL; in lp5569_init_program_engine() 178 val |= FIELD_PREP(LP5569_CP_MODE_MASK, chip->pdata->charge_pump_mode); in lp5569_post_init_device() [all …]
|
| H A D | leds-lp55xx-common.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * LP55XX Common Driver Header 9 * Derived from leds-lp5521.c, leds-lp5523.c 15 #include <linux/led-class-multicolor.h> 187 * @lock : Lock for user-space interface 188 * @num_leds : Number of registered LEDs 197 struct mutex lock; /* lock for user-space interface */ 214 * @chip : The lp55xx chip data
|
| H A D | leds-lp5562.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 #include <linux/leds.h> 18 #include <linux/platform_data/leds-lp55xx.h> 21 #include "leds-lp55xx-common.h" 108 led->led_current = led_current; in lp5562_set_led_current() 109 lp55xx_write(led->chip, addr[led->chan_nr], led_current); in lp5562_set_led_current() 152 /* Initialize all channels PWM to zero -> leds off */ in lp5562_post_init_device() 166 struct lp55xx_chip *chip = led->chip; in lp5562_multicolor_brightness() 176 guard(mutex)(&chip->lock); in lp5562_multicolor_brightness() 177 for (i = 0; i < led->mc_cdev.num_colors; i++) { in lp5562_multicolor_brightness() [all …]
|
| H A D | leds-lp5523.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * lp5523.c - LP5523, LP55231 LED Driver 16 #include <linux/leds.h> 20 #include <linux/platform_data/leds-lp55xx.h> 23 #include "leds-lp55xx-common.h" 88 /* Chip startup time is 500 us, 1 - 2 ms gives some margin */ in lp5523_post_init_device() 92 val |= (chip->pdata->charge_pump_mode << LP5523_CP_MODE_SHIFT) & LP5523_CP_MODE_MASK; in lp5523_post_init_device() 98 /* turn on all leds */ in lp5523_post_init_device() 150 chip->engine_idx = i; in lp5523_init_program_engine() 155 pattern[i - 1][j]); in lp5523_init_program_engine() [all …]
|
| H A D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0 4 obj-$(CONFIG_NEW_LEDS) += led-core.o 5 obj-$(CONFIG_LEDS_CLASS) += led-class.o 6 obj-$(CONFIG_LEDS_CLASS_FLASH) += led-class-flash.o 7 obj-$(CONFIG_LEDS_CLASS_MULTICOLOR) += led-class-multicolor.o 8 obj-$(CONFIG_LEDS_TRIGGERS) += led-triggers.o 9 obj-$(CONFIG_LEDS_KUNIT_TEST) += led-test.o 11 # LED Platform Drivers (keep this sorted, M-| sort) 12 obj-$(CONFIG_LEDS_88PM860X) += leds-88pm860x.o 13 obj-$(CONFIG_LEDS_ACER_A500) += leds-acer-a500.o [all …]
|
| /linux/include/linux/platform_data/ |
| H A D | leds-lp55xx.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * LP55XX Platform Data Header 9 * Derived from leds-lp5521.h, leds-lp5523.h 16 #include <linux/led-class-multicolor.h> 57 * @label : Used for naming LEDs
|