All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v9 0/4] leds: add new LED driver for TI LP5812
@ 2025-06-10 17:43 Nam Tran
  2025-06-10 17:43 ` [PATCH v9 1/4] dt-bindings: leds: add TI/National Semiconductor LP5812 LED Driver Nam Tran
                   ` (6 more replies)
  0 siblings, 7 replies; 19+ messages in thread
From: Nam Tran @ 2025-06-10 17:43 UTC (permalink / raw)
  To: lee
  Cc: pavel, krzk+dt, robh, conor+dt, corbet, linux-leds, linux-kernel,
	devicetree, linux-doc, Nam Tran

This patch series adds support for the TI/National Semiconductor LP5812
4x3 matrix RGB LED driver. The driver supports features such as autonomous
animation and time-cross-multiplexing (TCM) for dynamic LED effects.

Following feedback from both the LED and auxdisplay subsystem maintainers,
the driver has been moved back to the LED subsystem, under drivers/leds/rgb/.
This version integrates with the existing multicolor LED APIs, avoiding custom
sysfs where standard LED interfaces are sufficient.

Signed-off-by: Nam Tran <trannamatk@gmail.com>
---
Changes in v9:
- Move driver back to drivers/leds/rgb/
- Integrate with LED multicolor framework
- Refactor and simplify custom sysfs handling
- Extend Device Tree binding to support multi-led@ nodes using leds-class-multicolor.yaml
- Update documentation to reflect the updated sysfs
- Link to v8: https://lore.kernel.org/lkml/20250427082447.138359-1-trannamatk@gmail.com/

Changes in v8:
- Move driver to drivers/auxdisplay/ instead of drivers/leds/.
- Rename files from leds-lp5812.c/.h to lp5812.c/.h.
- Move ti,lp5812.yaml binding to auxdisplay/ directory,
  and update the title and $id to match new path.
- No functional changes to the binding itself (keep Reviewed-by).
- Update commit messages and patch titles to reflect the move.
- Link to v7: https://lore.kernel.org/linux-leds/20250422190121.46839-1-trannamatk@gmail.com/

Changes in v7:
- Mark `chip_leds_map` as const.
- Use consistent `ret` initialization.
- Simplify the function `set_mix_sel_led()`.
- Refactor `dev_config_show()` and `led_auto_animation_show()` to avoid temp buffer, malloc/free.
- Simplify the code and ensure consistent use of mutex lock/unlock in show/store functions.
- Remove `total_leds` and `total_aeu`.
- Link to v6: https://lore.kernel.org/linux-leds/20250419184333.56617-1-trannamatk@gmail.com/

Changes in v6:
- Add `vcc-supply` property to describe the LP5812 power supply.
- Remove `chan-name` property and entire LED subnodes, as they are not needed.
- Update LP5812 LED driver node to Raspberry Pi 4 B Device Tree, based on updated binding.
- Link to v5: https://lore.kernel.org/linux-leds/20250414145742.35713-1-trannamatk@gmail.com/

Changes in v5:
- Rebase on v6.15-rc2
- Removed unused functions (lp5812_dump_regs, lp5812_update_bit).
- Address Krzysztof's review comments
- Link to v4: https://lore.kernel.org/linux-leds/20250405183246.198568-1-trannamatk@gmail.com/
---

Nam Tran (4):
  dt-bindings: leds: add TI/National Semiconductor LP5812 LED Driver
  leds: add TI/National Semiconductor LP5812 LED Driver
  docs: ABI: Document LP5812 LED sysfs interfaces
  docs: leds: Document TI LP5812 LED driver

 .../ABI/testing/sysfs-bus-i2c-devices-lp5812  |   40 +
 .../ABI/testing/sysfs-class-led-lp5812        |  120 +
 .../devicetree/bindings/leds/ti,lp5812.yaml   |  264 +++
 Documentation/leds/index.rst                  |    1 +
 Documentation/leds/leds-lp5812.rst            |   84 +
 MAINTAINERS                                   |   13 +
 drivers/leds/rgb/Kconfig                      |   13 +
 drivers/leds/rgb/Makefile                     |    1 +
 drivers/leds/rgb/leds-lp5812.c                | 1946 +++++++++++++++++
 drivers/leds/rgb/leds-lp5812.h                |  228 ++
 10 files changed, 2710 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-bus-i2c-devices-lp5812
 create mode 100644 Documentation/ABI/testing/sysfs-class-led-lp5812
 create mode 100644 Documentation/devicetree/bindings/leds/ti,lp5812.yaml
 create mode 100644 Documentation/leds/leds-lp5812.rst
 create mode 100644 drivers/leds/rgb/leds-lp5812.c
 create mode 100644 drivers/leds/rgb/leds-lp5812.h


base-commit: f09079bd04a924c72d555cd97942d5f8d7eca98c
-- 
2.25.1


^ permalink raw reply	[flat|nested] 19+ messages in thread
* Re: [PATCH v9 2/4] leds: add TI/National Semiconductor LP5812 LED Driver
@ 2025-06-13 14:50 kernel test robot
  0 siblings, 0 replies; 19+ messages in thread
From: kernel test robot @ 2025-06-13 14:50 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp, Dan Carpenter

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <20250610174319.183375-4-trannamatk@gmail.com>
References: <20250610174319.183375-4-trannamatk@gmail.com>
TO: Nam Tran <trannamatk@gmail.com>
TO: lee@kernel.org
CC: pavel@kernel.org
CC: krzk+dt@kernel.org
CC: robh@kernel.org
CC: conor+dt@kernel.org
CC: corbet@lwn.net
CC: linux-leds@vger.kernel.org
CC: linux-kernel@vger.kernel.org
CC: devicetree@vger.kernel.org
CC: linux-doc@vger.kernel.org
CC: Nam Tran <trannamatk@gmail.com>

Hi Nam,

kernel test robot noticed the following build warnings:

[auto build test WARNING on f09079bd04a924c72d555cd97942d5f8d7eca98c]

url:    https://github.com/intel-lab-lkp/linux/commits/Nam-Tran/dt-bindings-leds-add-TI-National-Semiconductor-LP5812-LED-Driver/20250611-100314
base:   f09079bd04a924c72d555cd97942d5f8d7eca98c
patch link:    https://lore.kernel.org/r/20250610174319.183375-4-trannamatk%40gmail.com
patch subject: [PATCH v9 2/4] leds: add TI/National Semiconductor LP5812 LED Driver
:::::: branch date: 3 days ago
:::::: commit date: 3 days ago
config: powerpc-randconfig-r072-20250613 (https://download.01.org/0day-ci/archive/20250613/202506132206.dBqw1BIJ-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project f819f46284f2a79790038e1f6649172789734ae8)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202506132206.dBqw1BIJ-lkp@intel.com/

smatch warnings:
drivers/leds/rgb/leds-lp5812.c:827 lp5812_multicolor_brightness() error: uninitialized symbol 'ret'.

vim +/ret +827 drivers/leds/rgb/leds-lp5812.c

8089ca4ee5bd17 Nam Tran 2025-06-11  812  
8089ca4ee5bd17 Nam Tran 2025-06-11  813  static int lp5812_multicolor_brightness(struct lp5812_led *led)
8089ca4ee5bd17 Nam Tran 2025-06-11  814  {
8089ca4ee5bd17 Nam Tran 2025-06-11  815  	struct lp5812_chip *chip = led->chip;
8089ca4ee5bd17 Nam Tran 2025-06-11  816  	int ret, i;
8089ca4ee5bd17 Nam Tran 2025-06-11  817  
8089ca4ee5bd17 Nam Tran 2025-06-11  818  	guard(mutex)(&chip->lock);
8089ca4ee5bd17 Nam Tran 2025-06-11  819  	for (i = 0; i < led->mc_cdev.num_colors; i++) {
8089ca4ee5bd17 Nam Tran 2025-06-11  820  		ret = lp5812_manual_dc_pwm_control(chip, led->mc_cdev.subled_info[i].channel,
8089ca4ee5bd17 Nam Tran 2025-06-11  821  						   led->mc_cdev.subled_info[i].brightness,
8089ca4ee5bd17 Nam Tran 2025-06-11  822  						   LP5812_DIMMING_PWM);
8089ca4ee5bd17 Nam Tran 2025-06-11  823  		if (ret)
8089ca4ee5bd17 Nam Tran 2025-06-11  824  			break;
8089ca4ee5bd17 Nam Tran 2025-06-11  825  	}
8089ca4ee5bd17 Nam Tran 2025-06-11  826  
8089ca4ee5bd17 Nam Tran 2025-06-11 @827  	return ret;
8089ca4ee5bd17 Nam Tran 2025-06-11  828  }
8089ca4ee5bd17 Nam Tran 2025-06-11  829  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2025-06-17 17:46 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-10 17:43 [PATCH v9 0/4] leds: add new LED driver for TI LP5812 Nam Tran
2025-06-10 17:43 ` [PATCH v9 1/4] dt-bindings: leds: add TI/National Semiconductor LP5812 LED Driver Nam Tran
2025-06-11  8:24   ` Krzysztof Kozlowski
2025-06-17 16:29     ` Nam Tran
2025-06-10 17:43 ` [PATCH v5] test Nam Tran
2025-06-12 10:03   ` Lee Jones
2025-06-17 17:46     ` Nam Tran
2025-06-10 17:43 ` [PATCH v9 2/4] leds: add TI/National Semiconductor LP5812 LED Driver Nam Tran
2025-06-10 18:13   ` Randy Dunlap
2025-06-17 16:50     ` Nam Tran
2025-06-10 21:07   ` Christophe JAILLET
2025-06-17 17:30     ` Nam Tran
2025-06-16 18:37   ` kernel test robot
2025-06-10 17:43 ` [PATCH v9 3/4] docs: ABI: Document LP5812 LED sysfs interfaces Nam Tran
2025-06-10 17:43 ` [PATCH v9 4/4] docs: leds: Document TI LP5812 LED driver Nam Tran
2025-06-10 17:55 ` [PATCH v9 0/4] leds: add new LED driver for TI LP5812 Nam Tran
2025-06-11  6:59 ` Krzysztof Kozlowski
2025-06-17 15:40   ` Nam Tran
  -- strict thread matches above, loose matches on Subject: below --
2025-06-13 14:50 [PATCH v9 2/4] leds: add TI/National Semiconductor LP5812 LED Driver kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.