soc: nordic: nrf53: deprecate all L|HFXO options
Devicetree should be used instead. Example DT snippets are provided to ease with the transition. Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
parent
6a2cbc7c87
commit
718007a038
1 changed files with 63 additions and 2 deletions
|
@ -204,8 +204,12 @@ if !TRUSTED_EXECUTION_NONSECURE || BUILD_WITH_TFM
|
|||
|
||||
config SOC_ENABLE_LFXO
|
||||
bool "LFXO"
|
||||
default y
|
||||
select DEPRECATED
|
||||
help
|
||||
This option is deprecated, use DT instead. For this option to apply,
|
||||
make sure to select either "internal" or "external" in the
|
||||
load-capacitors property.
|
||||
|
||||
Enable the low-frequency oscillator (LFXO) functionality on XL1 and
|
||||
XL2 pins.
|
||||
This option must be enabled if either application or network core is
|
||||
|
@ -215,19 +219,49 @@ config SOC_ENABLE_LFXO
|
|||
choice SOC_LFXO_LOAD_CAPACITANCE
|
||||
prompt "LFXO load capacitance"
|
||||
depends on SOC_ENABLE_LFXO
|
||||
default SOC_LFXO_CAP_INT_7PF
|
||||
|
||||
config SOC_LFXO_CAP_EXTERNAL
|
||||
bool "Use external load capacitors"
|
||||
select DEPRECATED
|
||||
help
|
||||
This option is deprecated, use DT instead. Example configuration:
|
||||
|
||||
&lfxo {
|
||||
load-capacitors = "external";
|
||||
};
|
||||
|
||||
config SOC_LFXO_CAP_INT_6PF
|
||||
bool "6 pF internal load capacitance"
|
||||
select DEPRECATED
|
||||
help
|
||||
This option is deprecated, use DT instead. Example configuration:
|
||||
|
||||
&lfxo {
|
||||
load-capacitors = "internal";
|
||||
load-capacitance-picofarad = <6>;
|
||||
};
|
||||
|
||||
config SOC_LFXO_CAP_INT_7PF
|
||||
bool "7 pF internal load capacitance"
|
||||
select DEPRECATED
|
||||
help
|
||||
This option is deprecated, use DT instead. Example configuration:
|
||||
|
||||
&lfxo {
|
||||
load-capacitors = "internal";
|
||||
load-capacitance-picofarad = <7>;
|
||||
};
|
||||
|
||||
config SOC_LFXO_CAP_INT_9PF
|
||||
bool "9 pF internal load capacitance"
|
||||
select DEPRECATED
|
||||
help
|
||||
This option is deprecated, use DT instead. Example configuration:
|
||||
|
||||
&lfxo {
|
||||
load-capacitors = "internal";
|
||||
load-capacitance-picofarad = <9>;
|
||||
};
|
||||
|
||||
endchoice
|
||||
|
||||
|
@ -238,6 +272,9 @@ choice SOC_HFXO_LOAD_CAPACITANCE
|
|||
config SOC_HFXO_CAP_DEFAULT
|
||||
bool "SoC default"
|
||||
help
|
||||
This option is deprecated, use DT instead. For this configuration to
|
||||
apply, no DT changes are required from the SoC DT file defaults.
|
||||
|
||||
When this option is used, the SoC initialization routine does not
|
||||
touch the XOSC32MCAPS register value, so the default setting for
|
||||
the SoC is in effect. Please note that this may not necessarily be
|
||||
|
@ -246,10 +283,27 @@ config SOC_HFXO_CAP_DEFAULT
|
|||
|
||||
config SOC_HFXO_CAP_EXTERNAL
|
||||
bool "Use external load capacitors"
|
||||
select DEPRECATED
|
||||
help
|
||||
This option is deprecated, use DT instead. Example configuration:
|
||||
|
||||
&hfxo {
|
||||
load-capacitors = "external";
|
||||
};
|
||||
|
||||
config SOC_HFXO_CAP_INTERNAL
|
||||
bool "Use internal load capacitors"
|
||||
depends on NRF_SOC_SECURE_SUPPORTED
|
||||
select DEPRECATED
|
||||
help
|
||||
This option is deprecated, use DT instead. Example configuration:
|
||||
|
||||
&hfxo {
|
||||
load-capacitors = "internal";
|
||||
...
|
||||
};
|
||||
|
||||
See CONFIG_SOC_HFXO_CAP_INT_VALUE_X2 for more information.
|
||||
|
||||
endchoice
|
||||
|
||||
|
@ -258,6 +312,13 @@ config SOC_HFXO_CAP_INT_VALUE_X2
|
|||
depends on SOC_HFXO_CAP_INTERNAL
|
||||
range 14 40
|
||||
help
|
||||
This option is deprecated, use DT instead. Example configuration:
|
||||
|
||||
&hfxo {
|
||||
load-capacitors = "internal";
|
||||
load-capacitance-femtofarad = <7000>;
|
||||
};
|
||||
|
||||
Internal capacitors ranging from 7.0 pF to 20.0 pF in 0.5 pF steps
|
||||
can be enabled on pins XC1 and XC2. This option specifies doubled
|
||||
capacitance value for the two capacitors. Set it to 14 to get 7.0 pF
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue