-
Notifications
You must be signed in to change notification settings - Fork 630
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[nrf noup] dts: nordic: Add support for BICR generation
This will be replaced by a different solution upstream (NCSDK-27673). Migrate the existing BICR bindings from NCS 2.4.99-cs3 to NCS 2.7.0. They are updated to remove obsoleted values. Enable generating bicr.hex for Application core by default. LFXO CLOAD value is a resualt of DK's characterization. The BICR LFOSC.LFXOCONFIG.MODE field supports disabling the usage of an external crystal oscillator to disable LFXO as LF clock source. Signed-off-by: Grzegorz Swiderski <[email protected]> Signed-off-by: Karol Lisak <[email protected]> Signed-off-by: Karsten Koenig <[email protected]>
- Loading branch information
1 parent
fad108a
commit 3bedb2d
Showing
9 changed files
with
224 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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,54 @@ | ||
/* | ||
* Copyright (c) 2024 Nordic Semiconductor ASA | ||
* | ||
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
*/ | ||
|
||
/ { | ||
bicr: bicr@fff87b0 { | ||
compatible = "nordic,nrf-bicr"; | ||
reg = <0xfff87b0 0x48>; | ||
|
||
power-vddao5v0 = "external"; | ||
power-vddao1v8 = "internal"; | ||
power-vdd1v0 = "internal"; | ||
power-vddrf1v0 = "shorted"; | ||
power-vddao0v8 = "internal"; | ||
power-vddvs0v8 = "internal"; | ||
|
||
inductor-present; | ||
|
||
ioport-power-rails = <&gpio1 2>, <&gpio2 2>, <&gpio6 2>, <&gpio7 2>, <&gpio9 4>; | ||
ioport-drivectrls = <&gpio6 50>, <&gpio7 50>; | ||
|
||
lfosc-mode = "crystal"; | ||
lfosc-loadcap = <15>; | ||
|
||
lfrc-autocalibration = <20 40 3>; | ||
|
||
hfxo-mode = "crystal"; | ||
hfxo-loadcap = <56>; | ||
}; | ||
}; | ||
|
||
&gpio1 { | ||
#ioport-power-rail-cells = <1>; | ||
}; | ||
|
||
&gpio2 { | ||
#ioport-power-rail-cells = <1>; | ||
}; | ||
|
||
&gpio6 { | ||
#ioport-power-rail-cells = <1>; | ||
#ioport-drivectrl-cells = <1>; | ||
}; | ||
|
||
&gpio7 { | ||
#ioport-power-rail-cells = <1>; | ||
#ioport-drivectrl-cells = <1>; | ||
}; | ||
|
||
&gpio9 { | ||
#ioport-power-rail-cells = <1>; | ||
}; |
This file contains 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 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 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,35 @@ | ||
# Copyright (c) 2024 Nordic Semiconductor ASA | ||
# SPDX-License-Identifier: LicenseRef-Nordic-4-Clause | ||
|
||
description: | | ||
Nordic Port Configs | ||
Hardware configurations that apply to IO ports. | ||
properties: | ||
ioport-power-rails: | ||
type: phandle-array | ||
description: | | ||
Power supply configurations for GPIO ports. The configuration is board- | ||
specific and stored in BICR. | ||
The property is encoded as <&phandle rail>, where: | ||
- phandle is the phandle of the associated GPIO port | ||
- rail is the 8-bit power rail configuration to apply to the port | ||
ioport-drivectrls: | ||
type: phandle-array | ||
description: | | ||
Drive control settings for GPIO ports. The configuration is board-specific | ||
and stored in BICR. | ||
The property is encoded as <&phandle resistance>, where: | ||
- phandle is the phandle of the associated GPIO port | ||
- resistance is the resistance in ohms to adjust in the port's drive | ||
control, and can be one of the following: [33, 40, 50, 66, 100]. | ||
ioport-power-rail-cells: | ||
- rail | ||
|
||
ioport-drivectrl-cells: | ||
- resistance |
This file contains 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,118 @@ | ||
# Copyright (c) 2024 Nordic Semiconductor ASA | ||
# SPDX-License-Identifier: LicenseRef-Nordic-4-Clause | ||
|
||
description: | | ||
Nordic Board Information Configuration Registers (BICR) | ||
compatible: "nordic,nrf-bicr" | ||
|
||
include: [base.yaml, "nordic,nrf-port-configs.yaml"] | ||
|
||
properties: | ||
power-vddao5v0: | ||
type: string | ||
description: VDD_AO_5V0 power rail configuration. | ||
enum: | ||
- "external" | ||
- "shorted" | ||
|
||
power-vddao1v8: | ||
type: string | ||
description: VDD_AO_1V8 power rail configuration. | ||
enum: | ||
- "internal" | ||
- "external" | ||
|
||
power-vdd1v0: | ||
type: string | ||
description: VDD_1V0 power rail configuration. | ||
enum: | ||
- "internal" | ||
- "external" | ||
|
||
power-vddrf1v0: | ||
type: string | ||
description: VDD_RF_1V0 power rail configuration. | ||
enum: | ||
- "external" | ||
- "shorted" | ||
|
||
power-vddao0v8: | ||
type: string | ||
description: VDD_AO_0V8 power rail configuration. | ||
enum: | ||
- "internal" | ||
- "external" | ||
|
||
power-vddvs0v8: | ||
type: string | ||
description: VDD_VS_0V8 power rail configuration. | ||
enum: | ||
- "internal" | ||
- "external" | ||
|
||
inductor-present: | ||
type: boolean | ||
description: DC/DC inductor present. | ||
|
||
lfosc-accuracy: | ||
type: int | ||
description: LFXO crystal or external signal accuracy in ppm. | ||
enum: | ||
- 500 | ||
- 250 | ||
- 150 | ||
- 100 | ||
- 75 | ||
- 50 | ||
- 30 | ||
- 20 | ||
|
||
lfosc-mode: | ||
type: string | ||
description: | | ||
LFXO operational mode. | ||
enum: | ||
- "crystal" | ||
- "external-sine" | ||
- "external-square" | ||
- "disabled" | ||
|
||
lfosc-loadcap: | ||
type: int | ||
description: | | ||
Built-in load capacitors selection in 1pF steps, up to 25pF max. If 0, | ||
only external capacitors will be used. | ||
lfosc-startup: | ||
type: int | ||
description: LFXO startup time in milliseconds. | ||
|
||
lfrc-autocalibration: | ||
type: array | ||
description: | | ||
A list of values pertaining to LFRC autocalibration settings. The prop | ||
is encoded as <temp-interval temp-delta interval-max-count>, where: | ||
- temp-interval is the temperature measurement interval in 0.25s steps | ||
- temp-delta is the temperature delta that should trigger a calibration | ||
in 0.25 degree steps | ||
- interval-max-count are the max number of temp-interval periods in | ||
between calibrations, independent of temperature changes. | ||
hfxo-mode: | ||
type: string | ||
description: | | ||
HFXO operational mode. | ||
enum: | ||
- "crystal" | ||
- "external-square" | ||
|
||
hfxo-loadcap: | ||
type: int | ||
description: | | ||
Built-in load capacitors selection in 0.25 pF steps, up to 25.75 pF max. | ||
If 0, only external capacitors will be used. | ||
hfxo-startup: | ||
type: int | ||
description: HFXO startup time in milliseconds. |
This file contains 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 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 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 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