Skip to content

Commit e6410da

Browse files
committed
[nrf noup] dts: nordic: Update BICR generation
nrf-squash! [nrf noup] dts: nordic: Add support for BICR generation - Extend the DT binding with lfosc-mode "disabled". - Skip extra args when generating the BICR for now. Signed-off-by: Grzegorz Swiderski <[email protected]>
1 parent 64796d7 commit e6410da

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

dts/bindings/misc/nordic,nrf-bicr.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ properties:
7676
- "crystal"
7777
- "external-sine"
7878
- "external-square"
79+
- "disabled"
7980

8081
lfosc-loadcap:
8182
type: int

modules/hal_nordic/nrf-regtool/nrf-regtoolConfig.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ function(nrf_regtool_generate_hex_from_dts peripheral)
1010
list(TRANSFORM CACHED_DTS_ROOT_BINDINGS PREPEND "--bindings-dir;" OUTPUT_VARIABLE bindings_dirs)
1111
separate_arguments(extra_args UNIX_COMMAND "${CONFIG_NRF_REGTOOL_EXTRA_GENERATE_ARGS}")
1212

13+
if(NOT peripheral STREQUAL "UICR")
14+
unset(extra_args)
15+
endif()
16+
1317
set(generated_hex_file ${PROJECT_BINARY_DIR}/${generated_hex_name})
1418
execute_process(
1519
COMMAND ${NRF_REGTOOL} ${verbosity} generate

0 commit comments

Comments
 (0)