Skip to content

Commit fc2756c

Browse files
mbolivar-nordicgalak
authored andcommitted
dts: nordic: add QSPI XIP area registers for nordic devices
There is currently no information available about the XIP addresses for the nRF52840 and nRF5340. Add this via a new 'reg' block in the relevant QSPI nodes, along with names for the register blocks so they are easier to retrieve. Signed-off-by: Håkon Øye Amundsen <[email protected]> Signed-off-by: Martí Bolívar <[email protected]>
1 parent 77a403c commit fc2756c

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

dts/arm/nordic/nrf52840.dtsi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,8 @@
413413
compatible = "nordic,nrf-qspi";
414414
#address-cells = <1>;
415415
#size-cells = <0>;
416-
reg = <0x40029000 0x1000>;
416+
reg = <0x40029000 0x1000>, <0x12000000 0x8000000>;
417+
reg-names = "qspi", "qspi_mm";
417418
interrupts = <41 NRF_DEFAULT_IRQ_PRIORITY>;
418419
status = "disabled";
419420
label = "QSPI";

dts/arm/nordic/nrf5340_cpuapp_peripherals.dtsi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,8 @@ qspi: qspi@2b000 {
382382
compatible = "nordic,nrf-qspi";
383383
#address-cells = <1>;
384384
#size-cells = <0>;
385-
reg = <0x2b000 0x1000>;
385+
reg = <0x2b000 0x1000>, <0x10000000 0x10000000>;
386+
reg-names = "qspi", "qspi_mm";
386387
interrupts = <43 NRF_DEFAULT_IRQ_PRIORITY>;
387388
status = "disabled";
388389
label = "QSPI";

dts/bindings/flash_controller/nordic,nrf-qspi.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,21 @@
44
description: |
55
Properties defining the interface for the Nordic QSPI peripheral.
66
7+
The reg property describes two register blocks: one for the memory
8+
corresponding to the QSPI peripheral registers, and another for
9+
the memory mapped XIP area:
10+
11+
qspi: qspi@2b000 {
12+
compatible = "nordic,nrf-qspi";
13+
reg = <0x2b000 0x1000>, <0x10000000 0x10000000>;
14+
reg-names = "qspi", "qspi_mm";
15+
...
16+
};
17+
18+
Above, the register block with base address 0x2b000 and name
19+
"qspi" are the QSPI peripheral registers. The register block with
20+
base address 0x10000000 and name "qspi_mm" is the XIP area.
21+
722
compatible: "nordic,nrf-qspi"
823

924
include: flash-controller.yaml

0 commit comments

Comments
 (0)