Skip to content

Conversation

cx-anuj-pathak
Copy link
Contributor

@cx-anuj-pathak cx-anuj-pathak commented Sep 25, 2024

This PR refactors lp5562 driver into lp55xx, and add support for LP5521 LED driver.

led_data variable values are constant, why not use macros instead
this will simplify code and reduces memory usage

Signed-off-by: Anuj Pathak <anuj@croxel.com>
@cx-anuj-pathak cx-anuj-pathak force-pushed the drivers/led/lp55xx branch 2 times, most recently from 25fe2b2 to bbabc67 Compare November 2, 2024 06:21
Refactor source handling to generic APIs to enter PWM/Enginge mode.
This will enable the path toward merging lp5521 driver.

Signed-off-by: Anuj Pathak <anuj@croxel.com>
- Since we'll merge lp5562 and lp5521, where both have
  different color ordering, lets use standard color ids
  This will also enable us in merging lp5521 driver
- Fixed lp5562 sample to use ColorIDs

Signed-off-by: Anuj Pathak <anuj@croxel.com>
generalized handling of current settings and default state on init
driver is now ready to rename and merge

Signed-off-by: Anuj Pathak <anuj@croxel.com>
Define and use interface structure to handle the differnce
between lp5562 and lp5521 drivers

Signed-off-by: Anuj Pathak <anuj@croxel.com>
- updated correspoding kconf and CMake

Signed-off-by: Anuj Pathak <anuj@croxel.com>
- added lp5562, lp5521 dts defintion extending lp55xx base

Signed-off-by: Anuj Pathak <anuj@croxel.com>
renamed all refereces to 5562 to 55xx which are same
for both 5562 and 5521

Signed-off-by: Anuj Pathak <anuj@croxel.com>
- implemented lp5521 interface in lp55xx driver
- updated KConfig to enable LP5521 support

Signed-off-by: Anuj Pathak <anuj@croxel.com>
@cx-anuj-pathak cx-anuj-pathak marked this pull request as ready for review November 2, 2024 06:47
@zephyrbot zephyrbot added platform: TI SimpleLink Texas Instruments SimpleLink MCU area: LED Label to identify LED subsystem area: Samples Samples labels Nov 2, 2024
Add support for testing of lp5521 using threads

Signed-off-by: Anuj Pathak <anuj@croxel.com>
We were using individual function for programing a instructions.
This is inefficient as we are making too much I2C calls. This commit
introduced macros to generate complete program bytes, and used burst
write to write complete program in one I2C call
This commit also incroduce load_and_run API to simplify update blink
brightness and blink APIs

Signed-off-by: Anuj Pathak <anuj@croxel.com>
- add croxel_cx1825 board to platform_allow list of lp55xx sample

Signed-off-by: Anuj Pathak <anuj@croxel.com>
Copy link

This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time.

@github-actions github-actions bot added the Stale label Jan 24, 2025
@github-actions github-actions bot closed this Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: LED Label to identify LED subsystem area: Samples Samples platform: TI SimpleLink Texas Instruments SimpleLink MCU Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants