Skip to content

Commit

Permalink
dts: arm: nordic: nrf53/nrf91: Fix GPREGRET register addresses
Browse files Browse the repository at this point in the history
Fixes an issue with the register addresses which was caused by a
missing `ranges;` option for the power peripheral

Signed-off-by: Jamie McCrae <[email protected]>
  • Loading branch information
nordicjm authored and fabiobaltieri committed Dec 5, 2023
1 parent afa1bd8 commit 3d3b287
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
9 changes: 5 additions & 4 deletions dts/arm/nordic/nrf5340_cpuapp_peripherals.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -32,24 +32,25 @@ clock: clock@5000 {
power: power@5000 {
compatible = "nordic,nrf-power";
reg = <0x5000 0x1000>;
ranges = <0x0 0x5000 0x1000>;
interrupts = <5 NRF_DEFAULT_IRQ_PRIORITY>;
status = "okay";
#address-cells = <1>;
#size-cells = <1>;

gpregret1: gpregret1@551c {
gpregret1: gpregret1@51c {
#address-cells = <1>;
#size-cells = <1>;
compatible = "nordic,nrf-gpregret";
reg = <0x551c 0x1>;
reg = <0x51c 0x1>;
status = "okay";
};

gpregret2: gpregret2@5520 {
gpregret2: gpregret2@520 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "nordic,nrf-gpregret";
reg = <0x5520 0x1>;
reg = <0x520 0x1>;
status = "okay";
};
};
Expand Down
9 changes: 5 additions & 4 deletions dts/arm/nordic/nrf91_peripherals.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -345,24 +345,25 @@ clock: clock@5000 {
power: power@5000 {
compatible = "nordic,nrf-power";
reg = <0x5000 0x1000>;
ranges = <0x0 0x5000 0x1000>;
interrupts = <5 NRF_DEFAULT_IRQ_PRIORITY>;
status = "okay";
#address-cells = <1>;
#size-cells = <1>;

gpregret1: gpregret1@551c {
gpregret1: gpregret1@51c {
#address-cells = <1>;
#size-cells = <1>;
compatible = "nordic,nrf-gpregret";
reg = <0x551c 0x1>;
reg = <0x51c 0x1>;
status = "okay";
};

gpregret2: gpregret2@5520 {
gpregret2: gpregret2@520 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "nordic,nrf-gpregret";
reg = <0x5520 0x1>;
reg = <0x520 0x1>;
status = "okay";
};
};
Expand Down

0 comments on commit 3d3b287

Please sign in to comment.