Skip to content

Conversation

@jpanisbl
Copy link
Contributor

@jpanisbl jpanisbl changed the title Add support for CC2340R5 SoC simplelink_lpf3: Add support for CC2340R5 SoC Jul 26, 2024
@vaishnavachath
Copy link
Member

@jpanisbl Thank you for the PR, is there a platform addition pull request already submitted? If yes can you please update the hal_ti to this PR so that CI tests run against this PR? If not you will need to create the platform addition PR also in parallel, if you have test results please do share those as well

@vaishnavachath vaishnavachath self-requested a review July 27, 2024 06:54
@vaishnavachath vaishnavachath self-assigned this Jul 27, 2024
@bogdanovs
Copy link
Contributor

@jpanisbl Thank you for the PR, is there a platform addition pull request already submitted? If yes can you please update the hal_ti to this PR so that CI tests run against this PR? If not you will need to create the platform addition PR also in parallel, if you have test results please do share those as well

@vaishnavachath We are working on Zephyr PR and will update west.yaml with revision from this PR. I suppose Zephyr draft PR will be sufficient to trigger CI.

Comment on lines 3 to 6
** Copyright 2006 -- 2012 (c) INVIA **
** **
** All rights reserved. Reproduction in whole or part is prohibited **
** without the written permission of the copyright owner **
Copy link

Choose a reason for hiding this comment

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

it's not really clear if this library is open source...

Copy link
Member

Choose a reason for hiding this comment

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

very much sounds like it's not

Copy link

Choose a reason for hiding this comment

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

ya it was kind of rethorical :) but based on the BSD 3-clause header that follows, there is a -small- chance that TI actually owns the rights to re-license so @jpanisbl please clarify :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi. Thank you for the review.
We are going to remove this ECC lib before updating this PR. Some native Zephyr support for ECC will have to be used instead.

@jpanisbl
Copy link
Contributor Author

jpanisbl commented Jul 29, 2024

@jpanisbl Thank you for the PR, is there a platform addition pull request already submitted? If yes can you please update the hal_ti to this PR so that CI tests run against this PR? If not you will need to create the platform addition PR also in parallel, if you have test results please do share those as well

@vaishnavachath We are working on Zephyr PR and will update west.yaml with revision from this PR. I suppose Zephyr draft PR will be sufficient to trigger CI.

Zephyr draft PR created here:
zephyrproject-rtos/zephyr#76441

"Hello World" fail is not surprising: a python package named crc-tool was added to requirements, but is not available upstream yet.

I'll fix the compliance error (d6a51a1546b4a843c15de8b144744e108cf600f7: dts/arm/ti/cc2340r5.dtsi:16: new blank line at EOF) and update the Zephyr draft PR.

//
//*****************************************************************************
// Bit-band access to address x bit number b using word access (32 bit)
#define HWREGBITW(x, b) \
Copy link

Choose a reason for hiding this comment

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

The CC23x0 device does not support bit banding. Consider removing this and check this isn't used anywhere.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@SML892 Done by Stoyan -> PR updated.

@jpanisbl
Copy link
Contributor Author

Link to zephyr PR (which is not "draft" any more, it's now submitted for review): zephyrproject-rtos/zephyr#76441

@vaishnavachath
Copy link
Member

@jpanisbl
Need a README under simplelink_lpf3 directory detailing how these files were generated and how someone can update to a newer SDK , also please add details on what upstream SDK version these sources were generated, see
https://github.com/zephyrproject-rtos/hal_ti/blob/master/simplelink/README

Copy link
Member

@vaishnavachath vaishnavachath left a comment

Choose a reason for hiding this comment

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

Need a README under simplelink_lpf3 directory detailing how these files were generated and how someone can update to a newer SDK , also please add details on what upstream SDK version these sources were generated, see
https://github.com/zephyrproject-rtos/hal_ti/blob/master/simplelink/README

@vaishnavachath
Copy link
Member

Looking at the commit history, it looks like you have fixes and changes on top of original changes in your repo, this does not contribute much to the commit history in this repo, can you please squash those? Also if the sources are autogenerated from TI SDK sources, will recommend adding this information in commit message/README.

@vaishnavachath
Copy link
Member

@jpanisbl The PR looks good to me, only few minor comments, if you can fix those that would be great:

  • There are still commits that fix previous commits introduced in this PR, this does not add any value to the commit history in this repo, so if you can squash those, it is better.
  • there are multiple authors/commiters in some of those commits, can you add the Signed-off-by from each author?

@vaishnavachath
Copy link
Member

@fabiobaltieri @kartben , if you have any other comments, please let know.

vmyklebust and others added 7 commits January 14, 2025 11:17
Add initial lpf3 content to support cc2340r5. Currently, this includes
files necessary to support power management and drivers.
All files are added seperately from lpf2 content, which introduces a new
folder structure in the TI HAL.

Signed-off-by: Vebjorn Myklebust <[email protected]>
Signed-off-by: Lars Thalian Morstad <[email protected]>
Signed-off-by: Stoyan Bogdanov <[email protected]>
…ephyr

Ports parts of simplelink's Driver Porting Layer to TI F3 devices on Zephyr.
Taking inspiration from already existing DPL features, we allocate kernel
objects using slab memory. This means the total number of k_event, k_msgq
and k_thread objects is limited by a compile-time configuration.

Signed-off-by: Lars Thalian Morstad <[email protected]>
Port MutexP, SemaphoreP, SwiP, and QueueP to LPF3.
Add support for interrupts of INT_CPUIRQ4, INT_LRFD_IRQ0 and INT_LRFD_IRQ1
used by the RCL (TI's radio driver for F3 devices).

Add AES and ECDH SimpleLink drivers and their dependencies.

Signed-off-by: Vebjorn Myklebust <[email protected]>
Signed-off-by: Lars Thalian Morstad <[email protected]>
Signed-off-by: Min Xu <[email protected]>
Update simplelink lpf3 hal to the simplelink LPF3 SDK version
8.10.00.55.

Signed-off-by: Vebjorn Myklebust <[email protected]>
Port RCL (radio control layer), the radio driver for TI F3 devices to
Zephyr. This commit includes the source files of RCL, binary images of
modem firmwares, and pre-generated radio settings for adc noise and BLE5.
NOTE: currently, the radio settings for BLE5 are compiled as part of the
driver library by default, which is a workaround for now.

TI's BLE Stack controller requires the radio configuration C structs
without the PHY abbreviation appended as a suffix. This commit removes
the PHY abbreviation by disabling the "use_phy_abbreviation" when
generating the radio settings in SmartRF Studio 8.

Signed-off-by: Min Xu <[email protected]>
- Add some driverlib files to CMakeLists.
- Add CLKCTL driver.
- Add VIMS functionality for flash. VIMS function API is needed to
enable/disable buffers and check for activity before read/write/erase.
- Extend GPIO functionality with GPIOSetConfigDio and GPIOGetConfigDio.
- Add UARTEnable.
- Add support for DMA mode in ADC driver. Add support to ADC API for DMA
Trigger Event Publisher (INT_EVENT2). The ADC module provides four
interrupt sources (one for each conversion result storage register)
that can be configured to source the DMA trigger.

Signed-off-by: Stoyan Bogdanov <[email protected]>
Signed-off-by: Julien Panis <[email protected]>
Detail how this directory was generated and how someone can update
to a newer SDK. Also add details on what upstream SDK version these
sources were generated.

Signed-off-by: Vebjorn Myklebust <[email protected]>
Signed-off-by: Julien Panis <[email protected]>
@vaishnavachath vaishnavachath merged commit 258652a into zephyrproject-rtos:master Jan 14, 2025
@jpanisbl jpanisbl deleted the baylibre/master branch October 17, 2025 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants