Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drivers: led_strip: Various enhancements #71630

Merged
merged 8 commits into from
May 14, 2024

Conversation

thedjnK
Copy link
Collaborator

@thedjnK thedjnK commented Apr 17, 2024

Various enhancements to the LED strip driver class:

  • Adds a common binding with (mandatory) chain length and colour ordering properties
  • Adds a length function which returns the length of the LED strip
  • Fixes some formatting issues with the driver
  • Check length before updating LED strip
  • Make update channels function optional
  • Add chain length and colour mapping to LED strips in boards and overlays
  • Remove LED length Kconfig from sample as chain length is now mandatory

@thedjnK thedjnK requested review from simonguinot and removed request for mbolivar-ampere April 17, 2024 19:03
@zephyrbot zephyrbot added area: Display area: Samples Samples platform: Raspberry Pi Pico Raspberry Pi Pico (RPi Pico) area: LED Label to identify LED subsystem platform: TI SimpleLink Texas Instruments SimpleLink MCU area: Devicetree Binding PR modifies or adds a Device Tree binding Release Notes To be mentioned in the release notes labels Apr 17, 2024
@thedjnK thedjnK requested a review from simonguinot May 1, 2024 17:27
@thedjnK thedjnK force-pushed the ledstripupdates branch 2 times, most recently from f009600 to c2fdeeb Compare May 4, 2024 09:36
simonguinot
simonguinot previously approved these changes May 4, 2024
Copy link
Collaborator

@simonguinot simonguinot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @thedjnK !

drivers/led_strip/ws2812_spi.c Show resolved Hide resolved
soburi
soburi previously approved these changes May 6, 2024
Copy link
Member

@aescolar aescolar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comment #71630 (comment)

Adds a common binding with a chain length and colour ordering
property

Signed-off-by: Jamie McCrae <spam@helper3000.net>
Adds chain length and colour mapping properties to LED strip devices
on boards where these parameters are now required

Signed-off-by: Jamie McCrae <spam@helper3000.net>
Adds a length function which returns the length of the LED strip

Signed-off-by: Jamie McCrae <spam@helper3000.net>
Updates the include file to fix some formatting issues

Signed-off-by: Jamie McCrae <spam@helper3000.net>
Checks that the supplied length is valid for the given driver
before passing it to the update function

Signed-off-by: Jamie McCrae <spam@helper3000.net>
Makes the update channels function optional, this is only
implemented in one driver so can be safely omitted from most
drivers

Signed-off-by: Jamie McCrae <spam@helper3000.net>
Adds changes about the LED strip driver

Signed-off-by: Jamie McCrae <spam@helper3000.net>
The chain-length DTS property is now mandatory, so remove the
optional Kconfig for setting the length

Signed-off-by: Jamie McCrae <spam@helper3000.net>
@thedjnK thedjnK dismissed stale reviews from soburi and simonguinot via 3ecbc6e May 7, 2024 17:11
@thedjnK thedjnK requested a review from soburi May 7, 2024 17:11
@aescolar aescolar dismissed their stale review May 8, 2024 06:47

Addressed

@thedjnK
Copy link
Collaborator Author

thedjnK commented May 13, 2024

ping @soburi

@henrikbrixandersen henrikbrixandersen merged commit 92145a2 into zephyrproject-rtos:main May 14, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Devicetree Binding PR modifies or adds a Device Tree binding area: Display area: LED Label to identify LED subsystem area: Samples Samples platform: Raspberry Pi Pico Raspberry Pi Pico (RPi Pico) platform: TI SimpleLink Texas Instruments SimpleLink MCU Release Notes To be mentioned in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants