-
Notifications
You must be signed in to change notification settings - Fork 786
Clock separation #3495
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
Open
mif1-nordic
wants to merge
7
commits into
nrfconnect:main
Choose a base branch
from
mif1-nordic:clock_separation
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Clock separation #3495
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
d634796
[nrf fromtree] samples: net: sockets: echo_client: Add support for nR…
PavelVPV 90cc808
[nrf fromtree] boards: beagle: beagleconnect_freedom: Add rev C5 support
Ayush1325 366447b
[nrf fromtree] drivers: entropy: Add support for architectural entrop…
chbusold 86425bc
[nrf fromlist] drivers: clock_control: Added common functions for sep…
mif1-nordic 2bab957
[nrf fromlist] drivers: clock_control: Renamed nrf2 to nrf_common.
mif1-nordic c0d6f23
[nrf fromlist] dts: Added split clocks to dts.
mif1-nordic e75665c
[nrf fromlist] drivers: clock_control: split clock control into indiv…
mif1-nordic File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -192,3 +192,8 @@ | |
| }; | ||
| }; | ||
| }; | ||
|
|
||
| &lfclk { | ||
| k32src = "rc"; | ||
| k32src-accuracy-ppm = <250>; | ||
| }; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,4 @@ | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| zephyr_library() | ||
| zephyr_library_sources( | ||
| board_antenna.c | ||
| ) | ||
|
|
||
| zephyr_library_compile_definitions("DeviceFamily_CC13X2X7") | ||
| zephyr_library_sources(board_antenna.c) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
boards/beagle/beagleconnect_freedom/beagleconnect_freedom_cc1352p.dts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| /* | ||
| * Copyright (c) 2025 Ayush Singh, BeagleBoard.org Foundation | ||
| * | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| */ | ||
|
|
||
| /dts-v1/; | ||
|
|
||
| #include <ti/cc1352r.dtsi> | ||
| #include "beagleconnect_freedom-common.dtsi" | ||
|
|
||
| &flash0 { | ||
| partitions { | ||
| compatible = "fixed-partitions"; | ||
| #address-cells = <1>; | ||
| #size-cells = <1>; | ||
|
|
||
| /* Allocate 40 KiB for mcuboot */ | ||
| boot_partition: partition@0 { | ||
| label = "mcuboot"; | ||
| reg = <0x00000000 DT_SIZE_K(40)>; | ||
| }; | ||
|
|
||
| /* Allocate 304 KiB for application */ | ||
| slot0_partition: partition@a000 { | ||
| label = "image-0"; | ||
| reg = <0x0000a000 DT_SIZE_K(304)>; | ||
| }; | ||
|
|
||
| /* (avoid touching CCFG) */ | ||
| }; | ||
| }; | ||
|
|
||
| &spi_flash0 { | ||
| partitions { | ||
| compatible = "fixed-partitions"; | ||
| #address-cells = <1>; | ||
| #size-cells = <1>; | ||
|
|
||
| /* Allocate 304 KiB for application */ | ||
| slot1_partition: partition@0 { | ||
| label = "image-1"; | ||
| reg = <0x00000000 DT_SIZE_K(304)>; | ||
| }; | ||
|
|
||
| /* Allocate 16 KiB scratch for image swap */ | ||
| scratch_partition: partition@4c000 { | ||
| label = "image-scratch"; | ||
| reg = <0x0004c000 DT_SIZE_K(16)>; | ||
| }; | ||
|
|
||
| storage_partition: partition@50000 { | ||
| label = "storage"; | ||
| reg = <0x00050000 DT_SIZE_K(1728)>; | ||
| }; | ||
| }; | ||
| }; |
57 changes: 57 additions & 0 deletions
57
boards/beagle/beagleconnect_freedom/beagleconnect_freedom_cc1352p7.dts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| /* | ||
| * Copyright (c) 2025 Ayush Singh, BeagleBoard.org Foundation | ||
| * | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| */ | ||
|
|
||
| /dts-v1/; | ||
|
|
||
| #include <ti/cc1352r7.dtsi> | ||
| #include "beagleconnect_freedom-common.dtsi" | ||
|
|
||
| &flash0 { | ||
| partitions { | ||
| compatible = "fixed-partitions"; | ||
| #address-cells = <1>; | ||
| #size-cells = <1>; | ||
|
|
||
| /* Allocate 56 KiB for mcuboot */ | ||
| boot_partition: partition@0 { | ||
| label = "mcuboot"; | ||
| reg = <0x00000000 DT_SIZE_K(56)>; | ||
| }; | ||
|
|
||
| /* Allocate 640 KiB for application */ | ||
| slot0_partition: partition@e000 { | ||
| label = "image-0"; | ||
| reg = <0x0000e000 DT_SIZE_K(640)>; | ||
| }; | ||
|
|
||
| /* (avoid touching CCFG) */ | ||
| }; | ||
| }; | ||
|
|
||
| &spi_flash0 { | ||
| partitions { | ||
| compatible = "fixed-partitions"; | ||
| #address-cells = <1>; | ||
| #size-cells = <1>; | ||
|
|
||
| /* Allocate 640 KiB for application */ | ||
| slot1_partition: partition@0 { | ||
| label = "image-1"; | ||
| reg = <0x00000000 DT_SIZE_K(640)>; | ||
| }; | ||
|
|
||
| /* Allocate 128 KiB scratch for image swap */ | ||
| scratch_partition: partition@a0000 { | ||
| label = "image-scratch"; | ||
| reg = <0x000a0000 DT_SIZE_K(128)>; | ||
| }; | ||
|
|
||
| storage_partition: partition@c0000 { | ||
| label = "storage"; | ||
| reg = <0x000c0000 DT_SIZE_K(1280)>; | ||
| }; | ||
| }; | ||
| }; |
4 changes: 2 additions & 2 deletions
4
...onnect_freedom/beagleconnect_freedom.yaml → ...om/beagleconnect_freedom_cc1352p7_C7.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
19 changes: 19 additions & 0 deletions
19
boards/beagle/beagleconnect_freedom/beagleconnect_freedom_cc1352p_C5.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| identifier: beagleconnect_freedom@C5/cc1352p | ||
| name: BeagleConnect Freedom C5 | ||
| type: mcu | ||
| arch: arm | ||
| ram: 80 | ||
| flash: 352 | ||
| toolchain: | ||
| - zephyr | ||
| - gnuarmemb | ||
| supported: | ||
| - gpio | ||
| - i2c | ||
| - spi | ||
| - uart | ||
| - hwinfo | ||
| - adc | ||
| - pwm | ||
| - flash | ||
| vendor: beagle |
23 changes: 23 additions & 0 deletions
23
boards/beagle/beagleconnect_freedom/beagleconnect_freedom_cc1352p_defconfig
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| # | ||
| # Copyright (c) 2020 Erik Larson | ||
| # Copyright (c) 2020 Jason Kridner, BeagleBoard.org Foundation | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # | ||
|
|
||
| CONFIG_GPIO=y | ||
|
|
||
| CONFIG_BUILD_OUTPUT_HEX=y | ||
| # custom callback for the antenna switch | ||
| CONFIG_CC13X2_CC26X2_HAS_CUSTOM_RF_HWATTRS=y | ||
| CONFIG_CC13X2_CC26X2_BOOTLOADER_ENABLE=y | ||
| CONFIG_CC13X2_CC26X2_BOOTLOADER_BACKDOOR_ENABLE=y | ||
| CONFIG_CC13X2_CC26X2_BOOTLOADER_BACKDOOR_PIN=15 | ||
| # Enable MPU and hardware stack protection | ||
| CONFIG_ARM_MPU=y | ||
| CONFIG_HW_STACK_PROTECTION=y | ||
|
|
||
| # Enable default uart console | ||
| CONFIG_SERIAL=y | ||
| CONFIG_CONSOLE=y | ||
| CONFIG_UART_CONSOLE=y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| set(BOARD_REVISIONS "C5" "C7") | ||
|
|
||
| if(NOT BOARD_REVISION IN_LIST BOARD_REVISIONS) | ||
| message(FATAL_ERROR "${BOARD_REVISION} is not a valid revision for BeagleConnect Freedom. Accepted revisions: ${BOARD_REVISIONS}") | ||
| endif() | ||
|
|
||
| if("${BOARD_QUALIFIERS}" MATCHES "^/cc1352p7$" AND "${BOARD_REVISION}" STREQUAL "C5") | ||
| message(FATAL_ERROR "C5 only supports CC1352P. Use C7 instead.") | ||
| endif() | ||
|
|
||
| if("${BOARD_QUALIFIERS}" MATCHES "^/cc1352p$" AND "${BOARD_REVISION}" STREQUAL "C7") | ||
| message(FATAL_ERROR "C7 only supports CC1352P7. Use C5 instead.") | ||
| endif() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -179,3 +179,8 @@ | |
| }; | ||
| }; | ||
| }; | ||
|
|
||
| &lfclk { | ||
| k32src = "rc"; | ||
| k32src-accuracy-ppm = <500>; | ||
| }; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -155,3 +155,8 @@ | |
| }; | ||
| }; | ||
| }; | ||
|
|
||
| &lfclk { | ||
| k32src = "xtal"; | ||
| k32src-accuracy-ppm = <150>; | ||
| }; | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.