Searched +full:leds +full:- +full:lp55xx (Results 1 – 13 of 13) 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 | leds-lp5523.rst | 9 Contact: Samu Onkalo (samu.p.onkalo-at-nokia.com) 12 ----------- 13 LP5523 can drive up to 9 channels. Leds can be controlled directly via 15 The name of each channel is configurable in the platform data - name and label. 22 - /sys/class/leds/R1 (name: 'R1') 23 - /sys/class/leds/B1 (name: 'B1') 28 - /sys/class/leds/RGB:channelN (label: 'RGB', N: 0 ~ 8) 33 - /sys/class/leds/lp5523:channelN (N: 0 ~ 8) 38 1) Legacy interface - enginex_mode, enginex_load and enginex_leds 53 cd /sys/class/leds/lp5523:channel2/device [all …]
|
H A D | leds-lp5521.rst | 10 Contact: Samu Onkalo (samu.p.onkalo-at-nokia.com) 13 ----------- 15 LP5521 can drive up to 3 channels. Leds can be controlled directly via 25 1) Legacy interface - enginex_mode and enginex_load 37 cd /sys/class/leds/lp5521:channel2/device 46 2) Firmware interface - LP55xx common interface 48 For the details, please refer to 'firmware' section in leds-lp55xx.txt 57 - /sys/class/leds/lp5521:channel0/led_current - RW 58 - /sys/class/leds/lp5521:channel0/max_current - RO 111 (XXXX : pdata->label or i2c client name, N : channel number)
|
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 | leds-lp55xx-common.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 * Derived from leds-lp5521.c, leds-lp5523.c 19 #include <linux/leds.h> 21 #include <linux/platform_data/leds-lp55xx.h> 24 #include <dt-bindings/leds/leds-lp55xx.h> 26 #include "leds-lp55xx-common.h" 48 #define LP55xx_MODE_ENGn_SHIFT(n, shift) ((shift) + (2 * (3 - (n)))) 59 #define LP55xx_EXEC_ENGn_SHIFT(n, shift) ((shift) + (2 * (3 - (n)))) 65 #define LP55xx_PAGE_OFFSET(n, pages) (((n) - 1) * (pages)) 92 const struct lp55xx_device_config *cfg = chip->cfg; in lp55xx_wait_opmode_done() [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
|