mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] ARM: dts: drop skeleton.dtsi
@ 2019-09-10 10:06 Uwe Kleine-König
  2019-09-10 10:06 ` [PATCH 2/2] ARM: dts: imx25-karo-tx25: include Linux dts instead of duplicating it Uwe Kleine-König
  2019-09-12  6:20 ` [PATCH 1/2] ARM: dts: drop skeleton.dtsi Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Uwe Kleine-König @ 2019-09-10 10:06 UTC (permalink / raw)
  To: barebox

In the Linux dts files skeleton.dtsi was dropped (in commit abe60a3a7afb
("ARM: dts: Kill off skeleton{64}.dtsi") for v5.1-rc1). At least one
reason for this also applies for barebox: memory nodes are supposed to have
a unit address and so adding a memory node without address isn't sensible.

There are only four dtsi files that use skeleton.dtsi. Add some of the
nodes and properties defined in skeleton.dtsi to its includers. I dropped
adding empty alias nodes as neither barebox nor Linux depend on its
presence. All consumers override reg in the memory node, so add the
device_type property there. The remaining properties are added unchanged.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 arch/arm/dts/canon-a1100.dts     |  1 +
 arch/arm/dts/digic4.dtsi         |  7 +++++--
 arch/arm/dts/dm365.dtsi          |  7 +++++--
 arch/arm/dts/imx25-karo-tx25.dts |  1 +
 arch/arm/dts/imx25.dtsi          |  6 +++++-
 arch/arm/dts/k1879hb1ya.dtsi     | 11 +++++++++--
 arch/arm/dts/skeleton.dtsi       | 13 -------------
 arch/arm/dts/virt2real.dts       |  1 +
 8 files changed, 27 insertions(+), 20 deletions(-)
 delete mode 100644 arch/arm/dts/skeleton.dtsi

diff --git a/arch/arm/dts/canon-a1100.dts b/arch/arm/dts/canon-a1100.dts
index a88eacf4d4af..18ba495bcf7d 100644
--- a/arch/arm/dts/canon-a1100.dts
+++ b/arch/arm/dts/canon-a1100.dts
@@ -7,6 +7,7 @@
 	compatible = "canon,a1100";
 
 	memory {
+		device_type = "memory";
 		reg = <0x00000000 0x04000000>;
 	};
 
diff --git a/arch/arm/dts/digic4.dtsi b/arch/arm/dts/digic4.dtsi
index 21b004d4a293..2db9393b330a 100644
--- a/arch/arm/dts/digic4.dtsi
+++ b/arch/arm/dts/digic4.dtsi
@@ -1,8 +1,11 @@
-/include/ "skeleton.dtsi"
-
 / {
+	#address-cells = <1>;
+	#size-cells = <1>;
+
 	compatible = "canon,digic4";
 
+	chosen { };
+
 	timer0: timer@c0210000 {
 		compatible = "canon,digic-timer";
 		reg = <0xc0210000 0x1c>;
diff --git a/arch/arm/dts/dm365.dtsi b/arch/arm/dts/dm365.dtsi
index ea69007fa892..b03cc3efa9a9 100644
--- a/arch/arm/dts/dm365.dtsi
+++ b/arch/arm/dts/dm365.dtsi
@@ -1,6 +1,9 @@
-#include "skeleton.dtsi"
-
 / {
+	#address-cells = <1>;
+	#size-cells = <1>;
+
+	chosen { };
+
 	soc {
 		compatible = "simple-bus";
 		model = "TI TMS320DM365";
diff --git a/arch/arm/dts/imx25-karo-tx25.dts b/arch/arm/dts/imx25-karo-tx25.dts
index 9296e90b078a..35464e3a5c20 100644
--- a/arch/arm/dts/imx25-karo-tx25.dts
+++ b/arch/arm/dts/imx25-karo-tx25.dts
@@ -41,6 +41,7 @@
 	};
 
 	memory {
+		device_type = "memory";
 		reg = <0x80000000 0x02000000 0x90000000 0x02000000>;
 	};
 };
diff --git a/arch/arm/dts/imx25.dtsi b/arch/arm/dts/imx25.dtsi
index eb3046178031..033ffa50a035 100644
--- a/arch/arm/dts/imx25.dtsi
+++ b/arch/arm/dts/imx25.dtsi
@@ -9,10 +9,14 @@
  * http://www.gnu.org/copyleft/gpl.html
  */
 
-#include "skeleton.dtsi"
 #include <arm/imx25.dtsi>
 
 / {
+	#address-cells = <1>;
+	#size-cells = <1>;
+
+	chosen { };
+
 	aliases {
 		mmc0 = &esdhc1;
 		mmc2 = &esdhc2;
diff --git a/arch/arm/dts/k1879hb1ya.dtsi b/arch/arm/dts/k1879hb1ya.dtsi
index 83ba7fb399c7..7bbc31efc5ad 100644
--- a/arch/arm/dts/k1879hb1ya.dtsi
+++ b/arch/arm/dts/k1879hb1ya.dtsi
@@ -1,6 +1,13 @@
-#include "skeleton.dtsi"
-
 / {
+	#address-cells = <1>;
+	#size-cells = <1>;
+
+	chosen { };
+
+	memory {
+		device_type = "memory";
+	};
+
 	soc {
 		compatible = "simple-bus";
 		model = "RC Module K1879HB1YA";
diff --git a/arch/arm/dts/skeleton.dtsi b/arch/arm/dts/skeleton.dtsi
deleted file mode 100644
index b41d241de2cd..000000000000
--- a/arch/arm/dts/skeleton.dtsi
+++ /dev/null
@@ -1,13 +0,0 @@
-/*
- * Skeleton device tree; the bare minimum needed to boot; just include and
- * add a compatible value.  The bootloader will typically populate the memory
- * node.
- */
-
-/ {
-	#address-cells = <1>;
-	#size-cells = <1>;
-	chosen { };
-	aliases { };
-	memory { device_type = "memory"; reg = <0 0>; };
-};
diff --git a/arch/arm/dts/virt2real.dts b/arch/arm/dts/virt2real.dts
index 09aec1f722fe..8f8c65ba7a74 100644
--- a/arch/arm/dts/virt2real.dts
+++ b/arch/arm/dts/virt2real.dts
@@ -6,6 +6,7 @@
 	model = "virt2real";
 
 	memory {
+		device_type = "memory";
 		reg = <0x82000000 0x01000000>;
 	};
 
-- 
2.23.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-09-12  6:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-10 10:06 [PATCH 1/2] ARM: dts: drop skeleton.dtsi Uwe Kleine-König
2019-09-10 10:06 ` [PATCH 2/2] ARM: dts: imx25-karo-tx25: include Linux dts instead of duplicating it Uwe Kleine-König
2019-09-12  6:20 ` [PATCH 1/2] ARM: dts: drop skeleton.dtsi Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox