Skip to content

Commit

Permalink
ARM: dts: bcm283x: Fix DTC warning for memory node
Browse files Browse the repository at this point in the history
Compiling the bcm283x DTS with W=1 leads to the following warning:

Warning (unit_address_vs_reg): /memory: node has a reg or ranges property,
but no unit name

Fix this by adding the unit address.

Signed-off-by: Stefan Wahren <[email protected]>
Tested-by: Peter Robinson <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
  • Loading branch information
lategoodbye committed Feb 1, 2019
1 parent 0040cf8 commit f090e1b
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/bcm2835-rpi.dtsi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <dt-bindings/power/raspberrypi-power.h>

/ {
memory {
memory@0 {
device_type = "memory";
reg = <0 0x10000000>;
};
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/bcm2836-rpi-2-b.dts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
compatible = "raspberrypi,2-model-b", "brcm,bcm2836";
model = "Raspberry Pi 2 Model B";

memory {
memory@0 {
reg = <0 0x40000000>;
};

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
stdout-path = "serial1:115200n8";
};

memory {
memory@0 {
reg = <0 0x20000000>;
};

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/bcm2837-rpi-3-b-plus.dts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
stdout-path = "serial1:115200n8";
};

memory {
memory@0 {
reg = <0 0x40000000>;
};

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/bcm2837-rpi-3-b.dts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
stdout-path = "serial1:115200n8";
};

memory {
memory@0 {
reg = <0 0x40000000>;
};

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/bcm2837-rpi-cm3.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "bcm2836-rpi.dtsi"

/ {
memory {
memory@0 {
reg = <0 0x40000000>;
};

Expand Down

0 comments on commit f090e1b

Please sign in to comment.