lantiq: move dts-v1 statement to top-level DTSI files
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Thu, 1 Oct 2020 16:08:17 +0000 (18:08 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Thu, 1 Oct 2020 16:08:17 +0000 (18:08 +0200)
The "/dts-v1/;" identifier is supposed to be present once at the
top of a device tree file after the includes have been processed.

In lantiq, we therefore requested to have in the DTS files so far,
and omit it in the DTSI files. However, essentially the syntax of
the parent SoC-based DTSI files already determines the DTS
version, so putting it into the DTS files is just a useless repetition.

Consequently, this patch puts the dts-v1 statement into the top-level
SoC-based DTSI files, and removes all other occurences.
Since the dts-v1 statement needs to be before any other definitions,
this also moves the includes accordingly where necessary.

Changes are applied to files-5.4 only, files-4.19 remains untouched.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
71 files changed:
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/amazonse.dtsi
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/amazonse_allnet_all0333cj.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/amazonse_netgear_dgn1000b.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/ar9.dtsi
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/ar9_avm_fritz7312.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/ar9_avm_fritz7320.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/ar9_bt_homehub-v3a.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/ar9_buffalo_wbmr-hp-g300h.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/ar9_netgear_dgn3500.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/ar9_netgear_dgn3500b.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/ar9_zte_h201l.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/ar9_zyxel_p-2601hn.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/danube.dtsi
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/danube_arcadyan_arv4510pw.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/danube_arcadyan_arv4518pwr01.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/danube_arcadyan_arv4518pwr01a.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/danube_arcadyan_arv4519pw.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/danube_arcadyan_arv4520pw.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/danube_arcadyan_arv4525pw.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/danube_arcadyan_arv452cqw.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/danube_arcadyan_arv7506pw11.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/danube_arcadyan_arv7510pw22.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/danube_arcadyan_arv7518pw.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/danube_arcadyan_arv7519pw.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/danube_arcadyan_arv7525pw.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/danube_arcadyan_arv752dpw.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/danube_arcadyan_arv752dpw22.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/danube_arcadyan_arv8539pw22.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/danube_audiocodes_mp-252.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/danube_bt_homehub-v2b.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/danube_lantiq_easy50712.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/danube_siemens_gigaset-sx76x.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/falcon.dtsi
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/falcon_lantiq_easy88388.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/falcon_lantiq_easy88444.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/falcon_lantiq_easy98000-nand.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/falcon_lantiq_easy98000-nor.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/falcon_lantiq_easy98000-sflash.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/falcon_lantiq_easy98000.dtsi
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/falcon_lantiq_easy98020-v18.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/falcon_lantiq_easy98020.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/falcon_lantiq_easy98021.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/falcon_lantiq_easy98035synce.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/falcon_lantiq_easy98035synce1588.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/falcon_lantiq_falcon-mdu.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/falcon_lantiq_falcon-sfp.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/vr9.dtsi
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/vr9_alphanetworks_asl56026.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/vr9_arcadyan_arv7519rw22.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/vr9_arcadyan_vg3503j.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/vr9_arcadyan_vgv7510kw22-brn.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/vr9_arcadyan_vgv7510kw22-nor.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/vr9_arcadyan_vgv7519-brn.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/vr9_arcadyan_vgv7519-nor.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/vr9_avm_fritz3370-rev2-hynix.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/vr9_avm_fritz3370-rev2-micron.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/vr9_avm_fritz7360-v2.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/vr9_avm_fritz7360sl.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/vr9_avm_fritz7362sl.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/vr9_avm_fritz7412.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/vr9_bt_homehub-v5a.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/vr9_buffalo_wbmr-300hpd.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/vr9_lantiq_easy80920-nand.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/vr9_lantiq_easy80920-nor.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/vr9_netgear_dm200.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/vr9_tplink_tdw8970.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/vr9_tplink_tdw8980.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/vr9_tplink_vr200.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/vr9_tplink_vr200v.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/vr9_zyxel_p-2812hnu-f1.dts
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/vr9_zyxel_p-2812hnu-f3.dts

index f2845ee4acd3c7d637c59de5f7d3e014d82343d7..c477473a0630e3ce7215c8b48553f334aef12278 100644 (file)
@@ -1,3 +1,5 @@
+/dts-v1/;
+
 #include <dt-bindings/gpio/gpio.h>
 
 / {
index d4afd23f7b18df5182e549abb00d975c1b129e2f..362ecaa90cbf45c37830cfe2e1578a110659d133 100644 (file)
@@ -1,3 +1,5 @@
+/dts-v1/;
+
 #include <dt-bindings/gpio/gpio.h>
 
 / {
index 0f635127f8598baa806fab8c82bd8c147b0f0ed5..6cb693b2e212e472cb5e080a152378b33c5f9edb 100644 (file)
@@ -1,5 +1,3 @@
-/dts-v1/;
-
 #include "ar9.dtsi"
 
 #include <dt-bindings/input/input.h>
index 424b778bb46068dd61b6f100a3bb9f4fc0b0895b..74c8add71c9ef57101f72cedd2d38b576f4b97f2 100644 (file)
@@ -1,5 +1,3 @@
-/dts-v1/;
-
 #include "ar9.dtsi"
 
 #include <dt-bindings/input/input.h>
index 9c1ebf42f0814ac31ad691ca87d4740a1d50b505..40d1e597c5a4df2f85db7817447735beaee42baf 100644 (file)
@@ -1,5 +1,3 @@
-/dts-v1/;
-
 #include "ar9.dtsi"
 
 #include <dt-bindings/input/input.h>
index 95df8ed04834966a461a7eb1a47545e37d3ee964..f19ce3ef8bfa468a012df39b1af1c7690fc0a639 100644 (file)
@@ -1,5 +1,3 @@
-/dts-v1/;
-
 #include "ar9.dtsi"
 
 #include <dt-bindings/input/input.h>
index 81ce539930cafb80d848ade071dfd32e19f4b069..888c053763df2221989f9e8312bbeed84d22cd84 100644 (file)
@@ -1,5 +1,3 @@
-/dts-v1/;
-
 #include "ar9.dtsi"
 
 #include <dt-bindings/input/input.h>
index eae613e008d76e522a6c28d3d2944a78c4872c36..ced3e3bcb44884b8ec54d4d3c07064ab2c005691 100644 (file)
@@ -1,3 +1,5 @@
+/dts-v1/;
+
 #include <dt-bindings/gpio/gpio.h>
 
 / {
index cf9b33ea9365a21d619a9ac0c09d7b7098b16529..2f5557c0c7806e0a9952474b80ed46c7fc35a69a 100644 (file)
@@ -1,3 +1,5 @@
+/dts-v1/;
+
 / {
        #address-cells = <1>;
        #size-cells = <1>;
index 22ce8caced1e8e71bb1efea52a65a35cd345a7d8..c4f74dad9419dc5eaa07c81fb44d0c73ab8a9662 100644 (file)
@@ -1,9 +1,8 @@
-/dts-v1/;
-
-#include <dt-bindings/gpio/gpio.h>
 #include "falcon.dtsi"
 #include "falcon_sflash-16m.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+
 / {
        model = "Lantiq Falcon FTTDP8 Reference Board";
        compatible = "lantiq,easy88388", "lantiq,falcon";
index fa331450bf062a5ae3afc4afd5a8b87a19103adf..13530177cf260b54060704567dddf6c042a92d2a 100644 (file)
@@ -1,9 +1,8 @@
-/dts-v1/;
-
-#include <dt-bindings/gpio/gpio.h>
 #include "falcon.dtsi"
 #include "falcon_sflash-16m.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+
 / {
        model = "Lantiq Falcon FTTdp G.FAST Reference Board";
        compatible = "lantiq,easy88444", "lantiq,falcon";
index 5821c51defcb52b8fac1e628d0c3e7881342d7d2..9fc7630f22c5ccdba97bc646b66873fa43ae5630 100644 (file)
@@ -1,8 +1,8 @@
+#include "falcon.dtsi"
+
 #include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/gpio/gpio.h>
 
-#include "falcon.dtsi"
-
 / {
        compatible = "lantiq,easy98000", "lantiq,falcon";
 
index 773a49001993d8e96723ddf67a0c18f3f3e97458..0b5181e374dc563e59fff7df448f9df02edfdc78 100644 (file)
@@ -1,10 +1,8 @@
-/dts-v1/;
-
-#include <dt-bindings/gpio/gpio.h>
-
 #include "falcon.dtsi"
 #include "falcon_sflash-16m.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+
 / {
        model = "Lantiq Falcon Reference Board V1.8";
        compatible = "lantiq,easy98020-v18", "lantiq,easy98020", "lantiq,falcon";
index 397764aac4badfd76dbb53828b5444fb9809fbab..29456da3c5332e131af2133fb9f46a060ceddf27 100644 (file)
@@ -1,10 +1,8 @@
-/dts-v1/;
-
-#include <dt-bindings/gpio/gpio.h>
-
 #include "falcon.dtsi"
 #include "falcon_sflash-16m.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+
 / {
        model = "Lantiq Falcon Reference Board";
        compatible = "lantiq,easy98020", "lantiq,falcon";
index aa632681499ace1f9df843d200a2b5c6a5ab9990..57484ca6d44e77ecf6a858198494a18fc6121828 100644 (file)
@@ -1,10 +1,8 @@
-/dts-v1/;
-
-#include <dt-bindings/gpio/gpio.h>
-
 #include "falcon.dtsi"
 #include "falcon_sflash-16m.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+
 / {
        model = "Lantiq Falcon HGU Reference Board";
        compatible = "lantiq,easy98021", "lantiq,easy98020", "lantiq,falcon";
index 130d49ebd709db0d4021c30af29bf4d28306850b..09ac4f5490a22eb040ebfb8db1dd4fbdc3de8fa2 100644 (file)
@@ -1,10 +1,8 @@
-/dts-v1/;
-
-#include <dt-bindings/gpio/gpio.h>
-
 #include "falcon.dtsi"
 #include "falcon_sflash-16m.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+
 / {
        model = "Lantiq Falcon / Vinax MDU Board";
        compatible = "lantiq,falcon-mdu", "lantiq,falcon";
index 19f42d8c844dd2b67aa0e7eca870869e23691964..60f7f7a4c0a21106d1880a173a9063827be5585d 100644 (file)
@@ -1,3 +1,5 @@
+/dts-v1/;
+
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/phy/phy-lantiq-vrx200-pcie.h>
 
index a2e4bc929291163934f11156144649eef715641f..309f402df2ebd1eb96c1b285efd25cad9ffe4529 100644 (file)
@@ -1,5 +1,4 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-/dts-v1/;
 
 #include "vr9_avm_fritz736x.dtsi"
 
index e4c74d443f451d27429397d29239941f7e176f80..758a5b9814c43a32811b201e174f8c16066cc280 100644 (file)
@@ -1,5 +1,4 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-/dts-v1/;
 
 #include "vr9_avm_fritz736x.dtsi"
 
index 0cfdb802e2607de4fb5838b7e956202322169879..959cb80ef4249beab5399845a38f8a7e6e71acd0 100644 (file)
@@ -1,5 +1,4 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-/dts-v1/;
 
 #include "vr9_avm_fritz736x.dtsi"
 
index 85fb3368c6db33c7ad65bd7f3e0b89385e56252f..2518cb8b129ed7b3fd955cfb360364070ae51cc4 100644 (file)
@@ -1,5 +1,4 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-/dts-v1/;
 
 #include "vr9.dtsi"
 
index a506b7dd13013b09a503b254b38a35ee786956ad..db4d02d167bde42a7e9741d7c0197c53c81810f3 100644 (file)
@@ -1,5 +1,3 @@
-/dts-v1/;
-
 #include "vr9.dtsi"
 
 #include <dt-bindings/input/input.h>
index d6dd5edfe4049fd50aa9fe3d40869ee91ef6ddce..bd72fab6301f738ecf0112557752aaf21372f16e 100644 (file)
@@ -1,5 +1,3 @@
-/dts-v1/;
-
 #include "vr9.dtsi"
 
 #include <dt-bindings/input/input.h>