Skip to content

Conversation

@lpawelcz
Copy link
Contributor

@lpawelcz lpawelcz commented Sep 19, 2022

This PR supersedes PR #35361 and is a minimal version thereof. Its main purpose is to introduce basic support for the BRD4184B board using the EFR32BG22 SoC.

The PR consists of:

  • Pinctrl driver
  • Modifications to the UART driver
  • Sleep Timer (Real-Time Counter) driver and tests support
  • EFR32BG22 SoC support
  • EFR32BG22-SLTB010A board support

Initial support was verified on hardware by running the following samples:

  • hello_world
  • blinky
  • counter/alarm
  • subsys/shell/shell_module

This PR should be merged only after zephyrproject-rtos/hal_silabs#19 is merged and hal_silabs revision in west.yml is bumped to the newest one.

@str4t0m
Copy link
Contributor

str4t0m commented Sep 19, 2022

@sateeshkotapati ping FYI

@zephyrbot zephyrbot added manifest west manifest-hal_silabs DNM This PR should not be merged (Do Not Merge) labels Sep 19, 2022
@zephyrbot
Copy link

zephyrbot commented Sep 19, 2022

The following west manifest projects have been modified in this Pull Request:

Name Old Revision New Revision Diff
hal_silabs zephyrproject-rtos/hal_silabs@1ec8dd9 zephyrproject-rtos/hal_silabs@9dcaa76 (master) zephyrproject-rtos/[email protected]

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

Copy link
Member

@gmarull gmarull left a comment

Choose a reason for hiding this comment

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

A few comments. PM code needs, at least, a better explanation.

@lpawelcz
Copy link
Contributor Author

@gmarull thank you for your review. I've already addressed most of the comments. After positive review I will squash fixes with initial set of commits from this PR.

@lpawelcz lpawelcz force-pushed the efr32bg22-initial branch 3 times, most recently from 4d9f82a to 5eba854 Compare September 26, 2022 09:38
@lpawelcz lpawelcz requested a review from mnkp as a code owner September 26, 2022 09:38
lpawelcz and others added 17 commits December 20, 2022 11:19
This bumps the hal_silabs in order to add initial support for
EFR32BG22 SoCs

Signed-off-by: Paweł Czarnecki <[email protected]>
It would be better to use GPIO_PinModeSet() functions directly
in the drivers.

Signed-off-by: Pawel Czarnecki <[email protected]>
This commit adds initial support for gecko pinctrl driver

Co-authored-by: Mateusz Sierszulski <[email protected]>
Signed-off-by: Filip Kokosinski <[email protected]>
This commit adds a series of driver-related changes to
Gecko pinctrl.

Co-authored-by: Mateusz Sierszulski <[email protected]>
Signed-off-by: Filip Kokosinski <[email protected]>
This commit adds initial support for Silabs Real-Time counter

Co-authored-by: Filip Kokosinski <[email protected]>
Signed-off-by: Mateusz Sierszulski <[email protected]>
This commit adds sample support for the counter_gecko_stimer
driver.

Signed-off-by: Mateusz Sierszulski <[email protected]>
…timer

This commit adds test support for the counter_gecko_stimer
driver.

Signed-off-by: Mateusz Sierszulski <[email protected]>
Common GPIO driver needs to be initialized before e.g UART driver
to ensure correct GPIO clock configuration when configuring UART pinout

Signed-off-by: Pawel Czarnecki <[email protected]>
Enable GPIO clock so that other drivers could
configure their I/O pins

Signed-off-by: Pawel Czarnecki <[email protected]>
This commit adds support for Silicon Labs EFR32BG22 SoC.

Co-authored-by: Mateusz Sierszulski <[email protected]>
Signed-off-by: Filip Kokosinski <[email protected]>
This commit adds support for Silicon Labs efr32bg22_sltb010a boardo

Co-authored-by: Mateusz Sierszulski <[email protected]>
Co-authored-by: Pawel Czarnecki <[email protected]>
Signed-off-by: Filip Kokosinski <[email protected]>
Signed-off-by: Paweł Czarnecki <[email protected]>
HAL update affects also EFR32MG21 SoC. Because of that we need to
update the reg addresses in DTS.

Signed-off-by: Pawel Czarnecki <[email protected]>
change GPIO_IntConfig to GPIO_ExtIntConfig

Signed-off-by: Paweł Czarnecki <[email protected]>
do not build hwinfo driver for this board - it does not have support for it

Signed-off-by: Mateusz Sierszulski <[email protected]>
Add missing include

Signed-off-by: Pawel Czarnecki <[email protected]>
peripheral-id property should be eventually removed entirely.
For now set it as optional and allow skipping the usage
in GPIO driver.

Signed-off-by: Pawel Czarnecki <[email protected]>
peripheral-id property should be eventually removed.
For now set it as optional and allow skipping the usage
in UART driver.

Signed-off-by: Pawel Czarnecki <[email protected]>
@zephyrbot zephyrbot removed the DNM This PR should not be merged (Do Not Merge) label Dec 20, 2022
@lpawelcz
Copy link
Contributor Author

Hi @gmarull, @cfriedt, @alexanderwachter. HAL PR has been merged. I rebased the PR and updated HAL sha in west.yml. Please take another look at this PR. Thank you!

Copy link
Member

@cfriedt cfriedt left a comment

Choose a reason for hiding this comment

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

Just pointed out some required: false instances in Device Tree YAML, but not blocking. If you need to go through another rev then fix, otherwise, fix later.

peripheral-id:
type: int
required: true
required: false
Copy link
Member

Choose a reason for hiding this comment

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

This is redundant - should have been caught by CI ..

peripheral-id:
type: int
required: true
required: false
Copy link
Member

Choose a reason for hiding this comment

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

This is redundant as well.

@carlescufi carlescufi merged commit 0095eed into zephyrproject-rtos:main Dec 20, 2022
@stephanosio
Copy link
Member

@lpawelcz This seems to have broken multiple networking tests: https://github.com/zephyrproject-rtos/zephyr/pull/52852/checks?check_run_id=10231260430. Can you provide a fix?

@cfriedt
Copy link
Member

cfriedt commented Dec 21, 2022

@stephanosio I'll take a look if nobody else is working on it atm

@lpawelcz
Copy link
Contributor Author

@stephanosio @cfriedt I have the fix already. Give me a second and I will open a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.