Skip to content

Commit

Permalink
ARM: dts: Kill off skeleton{64}.dtsi
Browse files Browse the repository at this point in the history
Remove the usage of skeleton.dtsi in the remaining dts files. It was
deprecated since commit 9c0da3c ("ARM: dts: explicitly mark
skeleton.dtsi as deprecated"). This will make adding a unit-address to
memory nodes easier.

The main tricky part to removing skeleton.dtsi is we could end up with
no /memory node at all when a bootloader depends on one being present. I
hacked up dtc to check for this condition.

Acked-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
Acked-by: Antoine Tenart <antoine.tenart@bootlin.com>
Acked-by: Alexandre TORGUE <alexandre.torgue@st.com>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Acked-by: Vladimir Zapolskiy <vz@mleia.com>
Tested-by: Kevin Hilman <khilman@baylibre.com>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Tested-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Tested-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
  • Loading branch information
Rob Herring authored and Arnd Bergmann committed Jan 30, 2019
1 parent 6569df3 commit abe60a3
Show file tree
Hide file tree
Showing 141 changed files with 309 additions and 141 deletions.
3 changes: 2 additions & 1 deletion arch/arm/boot/dts/alphascale-asm9260.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
* Licensed under the X11 license or the GPL v2 (or later)
*/

#include "skeleton.dtsi"
#include <dt-bindings/clock/alphascale,asm9260.h>

/ {
#address-cells = <1>;
#size-cells = <1>;
interrupt-parent = <&icoll>;

memory {
Expand Down
8 changes: 7 additions & 1 deletion arch/arm/boot/dts/alpine.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,18 @@
*/

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include "skeleton64.dtsi"

/ {
#address-cells = <2>;
#size-cells = <2>;
/* SOC compatibility */
compatible = "al,alpine";

memory {
device_type = "memory";
reg = <0 0 0 0>;
};

/* CPU Configuration */
cpus {
#address-cells = <1>;
Expand Down
4 changes: 3 additions & 1 deletion arch/arm/boot/dts/arm-realview-eb.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
#include "skeleton.dtsi"

/ {
#address-cells = <1>;
#size-cells = <1>;
compatible = "arm,realview-eb";

chosen { };
Expand All @@ -38,6 +39,7 @@
};

memory {
device_type = "memory";
/* 128 MiB memory @ 0x0 */
reg = <0x00000000 0x08000000>;
};
Expand Down
4 changes: 3 additions & 1 deletion arch/arm/boot/dts/arm-realview-pb1176.dts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@
/dts-v1/;
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
#include "skeleton.dtsi"

/ {
#address-cells = <1>;
#size-cells = <1>;
model = "ARM RealView PB1176";
compatible = "arm,realview-pb1176";

Expand All @@ -40,6 +41,7 @@
};

memory {
device_type = "memory";
/* 128 MiB memory @ 0x0 */
reg = <0x00000000 0x08000000>;
};
Expand Down
4 changes: 3 additions & 1 deletion arch/arm/boot/dts/arm-realview-pb11mp.dts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@
/dts-v1/;
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
#include "skeleton.dtsi"

/ {
#address-cells = <1>;
#size-cells = <1>;
model = "ARM RealView PB11MPcore";
compatible = "arm,realview-pb11mp";

Expand All @@ -39,6 +40,7 @@
};

memory {
device_type = "memory";
/*
* The PB11MPCore has 512 MiB memory @ 0x70000000
* and the first 256 are also remapped @ 0x00000000
Expand Down
4 changes: 3 additions & 1 deletion arch/arm/boot/dts/arm-realview-pbx.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
#include "skeleton.dtsi"

/ {
#address-cells = <1>;
#size-cells = <1>;
compatible = "arm,realview-pbx";

chosen { };
Expand All @@ -39,6 +40,7 @@
};

memory {
device_type = "memory";
/* 128 MiB memory @ 0x0 */
reg = <0x00000000 0x08000000>;
};
Expand Down
4 changes: 3 additions & 1 deletion arch/arm/boot/dts/armada-38x.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@
* Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
*/

#include "skeleton.dtsi"
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>

#define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16))

/ {
#address-cells = <1>;
#size-cells = <1>;

model = "Marvell Armada 38x family SoC";
compatible = "marvell,armada380";

Expand Down
3 changes: 2 additions & 1 deletion arch/arm/boot/dts/armada-39x.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@
* Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
*/

#include "skeleton.dtsi"
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>

#define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16))

/ {
#address-cells = <1>;
#size-cells = <1>;
model = "Marvell Armada 39x family SoC";
compatible = "marvell,armada390";

Expand Down
3 changes: 2 additions & 1 deletion arch/arm/boot/dts/artpec6.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/dma/nbpfaxi.h>
#include <dt-bindings/clock/axis,artpec6-clkctrl.h>
#include "skeleton.dtsi"

/ {
#address-cells = <1>;
#size-cells = <1>;
compatible = "axis,artpec6";
interrupt-parent = <&intc>;

Expand Down
4 changes: 3 additions & 1 deletion arch/arm/boot/dts/at91rm9200.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@
* Licensed under GPLv2 or later.
*/

#include "skeleton.dtsi"
#include <dt-bindings/pinctrl/at91.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/clock/at91.h>

/ {
#address-cells = <1>;
#size-cells = <1>;
model = "Atmel AT91RM9200 family SoC";
compatible = "atmel,at91rm9200";
interrupt-parent = <&aic>;
Expand Down Expand Up @@ -49,6 +50,7 @@
};

memory {
device_type = "memory";
reg = <0x20000000 0x04000000>;
};

Expand Down
4 changes: 3 additions & 1 deletion arch/arm/boot/dts/at91sam9260.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@
* Licensed under GPLv2 or later.
*/

#include "skeleton.dtsi"
#include <dt-bindings/pinctrl/at91.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/clock/at91.h>

/ {
#address-cells = <1>;
#size-cells = <1>;
model = "Atmel AT91SAM9260 family SoC";
compatible = "atmel,at91sam9260";
interrupt-parent = <&aic>;
Expand Down Expand Up @@ -46,6 +47,7 @@
};

memory {
device_type = "memory";
reg = <0x20000000 0x04000000>;
};

Expand Down
4 changes: 3 additions & 1 deletion arch/arm/boot/dts/at91sam9261.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@
* Licensed under GPLv2 only.
*/

#include "skeleton.dtsi"
#include <dt-bindings/pinctrl/at91.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/clock/at91.h>

/ {
#address-cells = <1>;
#size-cells = <1>;
model = "Atmel AT91SAM9261 family SoC";
compatible = "atmel,at91sam9261";
interrupt-parent = <&aic>;
Expand Down Expand Up @@ -43,6 +44,7 @@
};

memory {
device_type = "memory";
reg = <0x20000000 0x08000000>;
};

Expand Down
4 changes: 3 additions & 1 deletion arch/arm/boot/dts/at91sam9263.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@
* Licensed under GPLv2 only.
*/

#include "skeleton.dtsi"
#include <dt-bindings/pinctrl/at91.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/clock/at91.h>

/ {
#address-cells = <1>;
#size-cells = <1>;
model = "Atmel AT91SAM9263 family SoC";
compatible = "atmel,at91sam9263";
interrupt-parent = <&aic>;
Expand Down Expand Up @@ -45,6 +46,7 @@
};

memory {
device_type = "memory";
reg = <0x20000000 0x08000000>;
};

Expand Down
4 changes: 3 additions & 1 deletion arch/arm/boot/dts/at91sam9g45.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@
* Licensed under GPLv2 or later.
*/

#include "skeleton.dtsi"
#include <dt-bindings/dma/at91.h>
#include <dt-bindings/pinctrl/at91.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/clock/at91.h>

/ {
#address-cells = <1>;
#size-cells = <1>;
model = "Atmel AT91SAM9G45 family SoC";
compatible = "atmel,at91sam9g45";
interrupt-parent = <&aic>;
Expand Down Expand Up @@ -51,6 +52,7 @@
};

memory {
device_type = "memory";
reg = <0x70000000 0x10000000>;
};

Expand Down
4 changes: 3 additions & 1 deletion arch/arm/boot/dts/at91sam9n12.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@
* Licensed under GPLv2 or later.
*/

#include "skeleton.dtsi"
#include <dt-bindings/dma/at91.h>
#include <dt-bindings/pinctrl/at91.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/clock/at91.h>

/ {
#address-cells = <1>;
#size-cells = <1>;
model = "Atmel AT91SAM9N12 SoC";
compatible = "atmel,at91sam9n12";
interrupt-parent = <&aic>;
Expand Down Expand Up @@ -47,6 +48,7 @@
};

memory {
device_type = "memory";
reg = <0x20000000 0x10000000>;
};

Expand Down
4 changes: 3 additions & 1 deletion arch/arm/boot/dts/at91sam9rl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@
* Licensed under GPLv2 or later.
*/

#include "skeleton.dtsi"
#include <dt-bindings/pinctrl/at91.h>
#include <dt-bindings/clock/at91.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pwm/pwm.h>

/ {
#address-cells = <1>;
#size-cells = <1>;
model = "Atmel AT91SAM9RL family SoC";
compatible = "atmel,at91sam9rl", "atmel,at91sam9";
interrupt-parent = <&aic>;
Expand Down Expand Up @@ -48,6 +49,7 @@
};

memory {
device_type = "memory";
reg = <0x20000000 0x04000000>;
};

Expand Down
4 changes: 3 additions & 1 deletion arch/arm/boot/dts/at91sam9x5.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@
* Licensed under GPLv2 or later.
*/

#include "skeleton.dtsi"
#include <dt-bindings/dma/at91.h>
#include <dt-bindings/pinctrl/at91.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/clock/at91.h>

/ {
#address-cells = <1>;
#size-cells = <1>;
model = "Atmel AT91SAM9x5 family SoC";
compatible = "atmel,at91sam9x5";
interrupt-parent = <&aic>;
Expand Down Expand Up @@ -49,6 +50,7 @@
};

memory {
device_type = "memory";
reg = <0x20000000 0x10000000>;
};

Expand Down
1 change: 1 addition & 0 deletions arch/arm/boot/dts/atlas6-evb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
compatible = "sirf,atlas6-cb", "sirf,atlas6";

memory {
device_type = "memory";
reg = <0x00000000 0x20000000>;
};

Expand Down
1 change: 0 additions & 1 deletion arch/arm/boot/dts/atlas6.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* Licensed under GPLv2 or later.
*/

/include/ "skeleton.dtsi"
/ {
compatible = "sirf,atlas6";
#address-cells = <1>;
Expand Down
1 change: 0 additions & 1 deletion arch/arm/boot/dts/atlas7.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* Licensed under GPLv2 or later.
*/

/include/ "skeleton.dtsi"
/ {
compatible = "sirf,atlas7";
#address-cells = <1>;
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/boot/dts/axm55xx.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/lsi,axm5516-clks.h>

#include "skeleton64.dtsi"

/ {
#address-cells = <2>;
#size-cells = <2>;
interrupt-parent = <&gic>;

aliases {
Expand Down
Loading

0 comments on commit abe60a3

Please sign in to comment.