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

Add PWM support to TI cc23x0 SoC #84530

Draft
wants to merge 22 commits into
base: main
Choose a base branch
from

Conversation

bogdanovs
Copy link
Contributor

This series adds PWM support to TI cc23x0 SoC.
Only the 4 top-level commits are part of this series. The previous commits are here because this series depends on the "base support" series, that has not been merged yet: #76441
Datasheet: https://www.ti.com/lit/ds/symlink/cc2340r5.pdf

jpanisbl and others added 22 commits January 24, 2025 16:01
Sync with simplelink_lpf3 support for cc23x0r5 SoC.

Signed-off-by: Stoyan Bogdanov <[email protected]>
Signed-off-by: Julien Panis <[email protected]>
Product URL: https://www.ti.com/product/CC2340R5

Signed-off-by: Lars Thalian Morstad <[email protected]>
Signed-off-by: Vebjorn Myklebust <[email protected]>
Signed-off-by: Stoyan Bogdanov <[email protected]>
Signed-off-by: Julien Panis <[email protected]>
Datasheet: https://www.ti.com/lit/ds/symlink/cc2340r5.pdf
TRM: https://www.ti.com/lit/ug/swcu193/swcu193.pdf

Signed-off-by: Lars Thalian Morstad <[email protected]>
Signed-off-by: Vebjorn Myklebust <[email protected]>
Signed-off-by: Stoyan Bogdanov <[email protected]>
Signed-off-by: Julien Panis <[email protected]>
Product URL: https://www.ti.com/tool/LP-EM-CC2340R5
Quick Start Guide: https://www.ti.com/lit/ml/swru588a/swru588a.pdf

Signed-off-by: Lars Thalian Morstad <[email protected]>
Signed-off-by: Vebjorn Myklebust <[email protected]>
Signed-off-by: Stoyan Bogdanov <[email protected]>
Signed-off-by: Julien Panis <[email protected]>
Add support for flash to cc23x0 SoC. The driver interacts with VIMS
(Versatile Instruction Memory System) internal bus standing before NVM.

Signed-off-by: Stoyan Bogdanov <[email protected]>
Signed-off-by: Julien Panis <[email protected]>
This region is used for customer configuration options.

Signed-off-by: Julien Panis <[email protected]>
Add support for flash to cc23x0 SoC.

Signed-off-by: Lars Thalian Morstad <[email protected]>
Signed-off-by: Vebjorn Myklebust <[email protected]>
Signed-off-by: Stoyan Bogdanov <[email protected]>
Signed-off-by: Julien Panis <[email protected]>
Describe system flash setting.

Signed-off-by: Lars Thalian Morstad <[email protected]>
Signed-off-by: Vebjorn Myklebust <[email protected]>
Signed-off-by: Stoyan Bogdanov <[email protected]>
Signed-off-by: Julien Panis <[email protected]>
Add support for pinctrl to cc23x0 SoC. Like for other TI SoCs,
a node approach is implemented (no grouping approach).

Signed-off-by: Lars Thalian Morstad <[email protected]>
Signed-off-by: Vebjorn Myklebust <[email protected]>
Signed-off-by: Stoyan Bogdanov <[email protected]>
Signed-off-by: Julien Panis <[email protected]>
Add support for pinctrl to cc23x0 SoC.

Signed-off-by: Lars Thalian Morstad <[email protected]>
Signed-off-by: Vebjorn Myklebust <[email protected]>
Signed-off-by: Stoyan Bogdanov <[email protected]>
Signed-off-by: Julien Panis <[email protected]>
Add support for systim to cc23x0 SoC.

Signed-off-by: Lars Thalian Morstad <[email protected]>
Signed-off-by: Vebjorn Myklebust <[email protected]>
Signed-off-by: Stoyan Bogdanov <[email protected]>
Signed-off-by: Julien Panis <[email protected]>
Add support for GPIO to cc23x0 SoC.

Signed-off-by: Lars Thalian Morstad <[email protected]>
Signed-off-by: Vebjorn Myklebust <[email protected]>
Signed-off-by: Stoyan Bogdanov <[email protected]>
Signed-off-by: Julien Panis <[email protected]>
Add support for GPIO to cc23x0 SoC.

Signed-off-by: Lars Thalian Morstad <[email protected]>
Signed-off-by: Vebjorn Myklebust <[email protected]>
Signed-off-by: Stoyan Bogdanov <[email protected]>
Signed-off-by: Julien Panis <[email protected]>
Enable GPIO.

Signed-off-by: Lars Thalian Morstad <[email protected]>
Signed-off-by: Vebjorn Myklebust <[email protected]>
Signed-off-by: Stoyan Bogdanov <[email protected]>
Signed-off-by: Julien Panis <[email protected]>
Add support for LEDs and buttons.

Signed-off-by: Lars Thalian Morstad <[email protected]>
Signed-off-by: Vebjorn Myklebust <[email protected]>
Signed-off-by: Stoyan Bogdanov <[email protected]>
Signed-off-by: Julien Panis <[email protected]>
Add support for UART to cc23x0 SoC.

Signed-off-by: Lars Thalian Morstad <[email protected]>
Signed-off-by: Vebjorn Myklebust <[email protected]>
Signed-off-by: Stoyan Bogdanov <[email protected]>
Signed-off-by: Julien Panis <[email protected]>
Add support for UART to cc23x0 SoC.

Signed-off-by: Lars Thalian Morstad <[email protected]>
Signed-off-by: Vebjorn Myklebust <[email protected]>
Signed-off-by: Stoyan Bogdanov <[email protected]>
Signed-off-by: Julien Panis <[email protected]>
Enable UART.

Signed-off-by: Lars Thalian Morstad <[email protected]>
Signed-off-by: Vebjorn Myklebust <[email protected]>
Signed-off-by: Stoyan Bogdanov <[email protected]>
Signed-off-by: Julien Panis <[email protected]>
Add PWM support for LGPT0, LGPT1, LGPT2 and LGPT3 for cc23x0 SoC.

Signed-off-by: Stoyan Bogdanov <[email protected]>
Add all available PWM channes as subnodes to respecite LGPT.

Signed-off-by: Stoyan Bogdanov <[email protected]>
For each available LGPT PWM channel is selected one PWM
capable pin.

Signed-off-by: Stoyan Bogdanov <[email protected]>
Add default pwm leds:
 - pwm_led0 - red led on the board
 - pwm_led1 - green led on the board

Signed-off-by: Stoyan Bogdanov <[email protected]>
@zephyrbot zephyrbot added platform: TI SimpleLink Texas Instruments SimpleLink MCU area: PWM Pulse Width Modulation area: UART Universal Asynchronous Receiver-Transmitter area: Timer Timer area: GPIO area: Pinctrl area: Flash labels Jan 24, 2025
@zephyrbot zephyrbot requested a review from anangl January 24, 2025 17:21
@zephyrbot
Copy link
Collaborator

The following west manifest projects have changed revision in this Pull Request:

Name Old Revision New Revision Diff
hal_ti zephyrproject-rtos/hal_ti@2e7b95a zephyrproject-rtos/hal_ti@258652a zephyrproject-rtos/[email protected]

All manifest checks OK

Note: This message is automatically posted and updated by the Manifest GitHub Action.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Flash area: GPIO area: Pinctrl area: PWM Pulse Width Modulation area: Timer Timer area: UART Universal Asynchronous Receiver-Transmitter manifest manifest-hal_ti platform: TI SimpleLink Texas Instruments SimpleLink MCU
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants