Re: [PATCH 1/6] ARM: dts: bcm283x: Fix DTC warning for memory node

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Jan 12, 2019 at 12:44 PM Stefan Wahren <stefan.wahren@xxxxxxxx> wrote:
>
> 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 <stefan.wahren@xxxxxxxx>
Tested-by: Peter Robinson <pbrobinson@xxxxxxxxx>

Tested building RPi bcm283[67] dtb with W=1

> ---
>  arch/arm/boot/dts/bcm2835-rpi.dtsi         | 2 +-
>  arch/arm/boot/dts/bcm2836-rpi-2-b.dts      | 2 +-
>  arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dts | 2 +-
>  arch/arm/boot/dts/bcm2837-rpi-3-b-plus.dts | 2 +-
>  arch/arm/boot/dts/bcm2837-rpi-3-b.dts      | 2 +-
>  arch/arm/boot/dts/bcm2837-rpi-cm3.dtsi     | 2 +-
>  6 files changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/arch/arm/boot/dts/bcm2835-rpi.dtsi b/arch/arm/boot/dts/bcm2835-rpi.dtsi
> index c6e2b23..e490f2a 100644
> --- a/arch/arm/boot/dts/bcm2835-rpi.dtsi
> +++ b/arch/arm/boot/dts/bcm2835-rpi.dtsi
> @@ -1,7 +1,7 @@
>  #include <dt-bindings/power/raspberrypi-power.h>
>
>  / {
> -       memory {
> +       memory@0 {
>                 device_type = "memory";
>                 reg = <0 0x10000000>;
>         };
> diff --git a/arch/arm/boot/dts/bcm2836-rpi-2-b.dts b/arch/arm/boot/dts/bcm2836-rpi-2-b.dts
> index ac4408b..871fc4a 100644
> --- a/arch/arm/boot/dts/bcm2836-rpi-2-b.dts
> +++ b/arch/arm/boot/dts/bcm2836-rpi-2-b.dts
> @@ -9,7 +9,7 @@
>         compatible = "raspberrypi,2-model-b", "brcm,bcm2836";
>         model = "Raspberry Pi 2 Model B";
>
> -       memory {
> +       memory@0 {
>                 reg = <0 0x40000000>;
>         };
>
> diff --git a/arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dts b/arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dts
> index e9fadd3..7f4437a 100644
> --- a/arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dts
> +++ b/arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dts
> @@ -13,7 +13,7 @@
>                 stdout-path = "serial1:115200n8";
>         };
>
> -       memory {
> +       memory@0 {
>                 reg = <0 0x20000000>;
>         };
>
> diff --git a/arch/arm/boot/dts/bcm2837-rpi-3-b-plus.dts b/arch/arm/boot/dts/bcm2837-rpi-3-b-plus.dts
> index 42bb090..7d65013 100644
> --- a/arch/arm/boot/dts/bcm2837-rpi-3-b-plus.dts
> +++ b/arch/arm/boot/dts/bcm2837-rpi-3-b-plus.dts
> @@ -14,7 +14,7 @@
>                 stdout-path = "serial1:115200n8";
>         };
>
> -       memory {
> +       memory@0 {
>                 reg = <0 0x40000000>;
>         };
>
> diff --git a/arch/arm/boot/dts/bcm2837-rpi-3-b.dts b/arch/arm/boot/dts/bcm2837-rpi-3-b.dts
> index 0c155dd..9abb9c5 100644
> --- a/arch/arm/boot/dts/bcm2837-rpi-3-b.dts
> +++ b/arch/arm/boot/dts/bcm2837-rpi-3-b.dts
> @@ -14,7 +14,7 @@
>                 stdout-path = "serial1:115200n8";
>         };
>
> -       memory {
> +       memory@0 {
>                 reg = <0 0x40000000>;
>         };
>
> diff --git a/arch/arm/boot/dts/bcm2837-rpi-cm3.dtsi b/arch/arm/boot/dts/bcm2837-rpi-cm3.dtsi
> index 4a89a18..81399b2 100644
> --- a/arch/arm/boot/dts/bcm2837-rpi-cm3.dtsi
> +++ b/arch/arm/boot/dts/bcm2837-rpi-cm3.dtsi
> @@ -4,7 +4,7 @@
>  #include "bcm2836-rpi.dtsi"
>
>  / {
> -       memory {
> +       memory@0 {
>                 reg = <0 0x40000000>;
>         };
>
> --
> 2.7.4
>



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux