]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARM: dts: imx6ul-kontron: Simplify devicetree structure
authorFrieder Schrempf <frieder.schrempf@kontron.de>
Mon, 15 Aug 2022 08:28:11 +0000 (10:28 +0200)
committerShawn Guo <shawnguo@kernel.org>
Mon, 22 Aug 2022 02:22:34 +0000 (10:22 +0800)
There is no need in differentiating between the different SoM versions
that only differ in memory size, etc. It's much cleaner to simplify
the devicetrees and let them be more generic.

If necessary the bootloader will update the devicetree dynamically
to contain the correct size of the memory.

We also get rid of the N6xxx notation in the compatibles and file
names, as they are not really used anymore and often result in
confusion.

This is a breaking change, but the impact shouldn't be too big and it
makes usage and maintenance easier in the future.

Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
13 files changed:
arch/arm/boot/dts/Makefile
arch/arm/boot/dts/imx6ul-kontron-bl-43.dts [moved from arch/arm/boot/dts/imx6ul-kontron-n6310-s-43.dts with 93% similarity]
arch/arm/boot/dts/imx6ul-kontron-bl-common.dtsi [moved from arch/arm/boot/dts/imx6ul-kontron-n6x1x-s.dtsi with 100% similarity]
arch/arm/boot/dts/imx6ul-kontron-bl.dts [moved from arch/arm/boot/dts/imx6ul-kontron-n6310-s.dts with 52% similarity]
arch/arm/boot/dts/imx6ul-kontron-n6310-som.dtsi [deleted file]
arch/arm/boot/dts/imx6ul-kontron-n6311-s.dts [deleted file]
arch/arm/boot/dts/imx6ul-kontron-n6311-som.dtsi [deleted file]
arch/arm/boot/dts/imx6ul-kontron-sl-common.dtsi [moved from arch/arm/boot/dts/imx6ul-kontron-n6x1x-som-common.dtsi with 90% similarity]
arch/arm/boot/dts/imx6ul-kontron-sl.dtsi [new file with mode: 0644]
arch/arm/boot/dts/imx6ull-kontron-bl.dts [new file with mode: 0644]
arch/arm/boot/dts/imx6ull-kontron-n6411-s.dts [deleted file]
arch/arm/boot/dts/imx6ull-kontron-n6411-som.dtsi [deleted file]
arch/arm/boot/dts/imx6ull-kontron-sl.dtsi [new file with mode: 0644]

index 05d8aef6e5d252b9cb2be1d23fc47b282cf16258..b151133801e8b5a62bc16e712806c3b6e5ee2e3d 100644 (file)
@@ -706,8 +706,8 @@ dtb-$(CONFIG_SOC_IMX6UL) += \
        imx6ul-geam.dtb \
        imx6ul-isiot-emmc.dtb \
        imx6ul-isiot-nand.dtb \
-       imx6ul-kontron-n6310-s.dtb \
-       imx6ul-kontron-n6310-s-43.dtb \
+       imx6ul-kontron-bl.dtb \
+       imx6ul-kontron-bl-43.dtb \
        imx6ul-liteboard.dtb \
        imx6ul-tqma6ul1-mba6ulx.dtb \
        imx6ul-tqma6ul2-mba6ulx.dtb \
similarity index 93%
rename from arch/arm/boot/dts/imx6ul-kontron-n6310-s-43.dts
rename to arch/arm/boot/dts/imx6ul-kontron-bl-43.dts
index 5bfad4655b22008558e10c2625407c6cf7f6de5b..0c643706a158be9ea2aff6493a0b0eeff59cf0aa 100644 (file)
@@ -5,12 +5,12 @@
  * Copyright (c) 2019 Krzysztof Kozlowski <krzk@kernel.org>
  */
 
-#include "imx6ul-kontron-n6310-s.dts"
+#include "imx6ul-kontron-bl.dts"
 
 / {
-       model = "Kontron N6310 S 43";
-       compatible = "kontron,imx6ul-n6310-s-43", "kontron,imx6ul-n6310-s",
-                    "kontron,imx6ul-n6310-som", "fsl,imx6ul";
+       model = "Kontron BL i.MX6UL 43 (N631X S 43)";
+       compatible = "kontron,bl-imx6ul-43", "kontron,bl-imx6ul",
+                    "kontron,sl-imx6ul", "fsl,imx6ul";
 
        backlight {
                compatible = "pwm-backlight";
similarity index 52%
rename from arch/arm/boot/dts/imx6ul-kontron-n6310-s.dts
rename to arch/arm/boot/dts/imx6ul-kontron-bl.dts
index 5a3e06d6219b4ae7428e99db5e56b8894c810ad8..dadf6d3d5f5212403250d8fc8f09211c47a59a56 100644 (file)
@@ -7,11 +7,10 @@
 
 /dts-v1/;
 
-#include "imx6ul-kontron-n6310-som.dtsi"
-#include "imx6ul-kontron-n6x1x-s.dtsi"
+#include "imx6ul-kontron-sl.dtsi"
+#include "imx6ul-kontron-bl-common.dtsi"
 
 / {
-       model = "Kontron N6310 S";
-       compatible = "kontron,imx6ul-n6310-s", "kontron,imx6ul-n6310-som",
-                    "fsl,imx6ul";
+       model = "Kontron BL i.MX6UL (N631X S)";
+       compatible = "kontron,bl-imx6ul", "kontron,sl-imx6ul", "fsl,imx6ul";
 };
diff --git a/arch/arm/boot/dts/imx6ul-kontron-n6310-som.dtsi b/arch/arm/boot/dts/imx6ul-kontron-n6310-som.dtsi
deleted file mode 100644 (file)
index acd9365..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-/*
- * Copyright (C) 2017 exceet electronics GmbH
- * Copyright (C) 2018 Kontron Electronics GmbH
- * Copyright (c) 2019 Krzysztof Kozlowski <krzk@kernel.org>
- */
-
-#include "imx6ul.dtsi"
-#include "imx6ul-kontron-n6x1x-som-common.dtsi"
-
-/ {
-       model = "Kontron N6310 SOM";
-       compatible = "kontron,imx6ul-n6310-som", "fsl,imx6ul";
-
-       memory@80000000 {
-               reg = <0x80000000 0x10000000>;
-               device_type = "memory";
-       };
-};
-
-&qspi {
-       flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
-               compatible = "spi-nand";
-               spi-max-frequency = <108000000>;
-               spi-tx-bus-width = <4>;
-               spi-rx-bus-width = <4>;
-               reg = <0>;
-
-               partition@0 {
-                       label = "ubi1";
-                       reg = <0x00000000 0x08000000>;
-               };
-
-               partition@8000000 {
-                       label = "ubi2";
-                       reg = <0x08000000 0x08000000>;
-               };
-       };
-};
diff --git a/arch/arm/boot/dts/imx6ul-kontron-n6311-s.dts b/arch/arm/boot/dts/imx6ul-kontron-n6311-s.dts
deleted file mode 100644 (file)
index 239a1af..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-/*
- * Copyright (C) 2017 exceet electronics GmbH
- * Copyright (C) 2018 Kontron Electronics GmbH
- */
-
-/dts-v1/;
-
-#include "imx6ul-kontron-n6311-som.dtsi"
-#include "imx6ul-kontron-n6x1x-s.dtsi"
-
-/ {
-       model = "Kontron N6311 S";
-       compatible = "kontron,imx6ul-n6311-s", "kontron,imx6ul-n6311-som",
-                    "fsl,imx6ul";
-};
diff --git a/arch/arm/boot/dts/imx6ul-kontron-n6311-som.dtsi b/arch/arm/boot/dts/imx6ul-kontron-n6311-som.dtsi
deleted file mode 100644 (file)
index 29ed38d..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-/*
- * Copyright (C) 2017 exceet electronics GmbH
- * Copyright (C) 2018 Kontron Electronics GmbH
- */
-
-#include "imx6ul.dtsi"
-#include "imx6ul-kontron-n6x1x-som-common.dtsi"
-
-/ {
-       model = "Kontron N6311 SOM";
-       compatible = "kontron,imx6ul-n6311-som", "fsl,imx6ul";
-
-       memory@80000000 {
-               reg = <0x80000000 0x20000000>;
-               device_type = "memory";
-       };
-};
-
-&qspi {
-       flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
-               compatible = "spi-nand";
-               spi-max-frequency = <104000000>;
-               spi-tx-bus-width = <4>;
-               spi-rx-bus-width = <4>;
-               reg = <0>;
-
-               partition@0 {
-                       label = "ubi1";
-                       reg = <0x00000000 0x08000000>;
-               };
-
-               partition@8000000 {
-                       label = "ubi2";
-                       reg = <0x08000000 0x18000000>;
-               };
-       };
-};
similarity index 90%
rename from arch/arm/boot/dts/imx6ul-kontron-n6x1x-som-common.dtsi
rename to arch/arm/boot/dts/imx6ul-kontron-sl-common.dtsi
index 09a83dbdf651059b603f3b5d0028d621625fcbed..dcf88f6103466f1afaef092b6dbae5e062ffa063 100644 (file)
        chosen {
                stdout-path = &uart4;
        };
+
+       memory@80000000 {
+               reg = <0x80000000 0x10000000>;
+               device_type = "memory";
+       };
 };
 
 &ecspi2 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_qspi>;
        status = "okay";
+
+       spi-flash@0 {
+               #address-cells = <1>;
+               #size-cells = <1>;
+               compatible = "spi-nand";
+               spi-max-frequency = <104000000>;
+               spi-tx-bus-width = <4>;
+               spi-rx-bus-width = <4>;
+               reg = <0>;
+       };
 };
 
 &wdog1 {
diff --git a/arch/arm/boot/dts/imx6ul-kontron-sl.dtsi b/arch/arm/boot/dts/imx6ul-kontron-sl.dtsi
new file mode 100644 (file)
index 0000000..0580d04
--- /dev/null
@@ -0,0 +1,14 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2017 exceet electronics GmbH
+ * Copyright (C) 2018 Kontron Electronics GmbH
+ * Copyright (c) 2019 Krzysztof Kozlowski <krzk@kernel.org>
+ */
+
+#include "imx6ul.dtsi"
+#include "imx6ul-kontron-sl-common.dtsi"
+
+/ {
+       model = "Kontron SL i.MX6UL (N631X SOM)";
+       compatible = "kontron,sl-imx6ul", "fsl,imx6ul";
+};
diff --git a/arch/arm/boot/dts/imx6ull-kontron-bl.dts b/arch/arm/boot/dts/imx6ull-kontron-bl.dts
new file mode 100644 (file)
index 0000000..fa01646
--- /dev/null
@@ -0,0 +1,15 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2017 exceet electronics GmbH
+ * Copyright (C) 2019 Kontron Electronics GmbH
+ */
+
+/dts-v1/;
+
+#include "imx6ull-kontron-sl.dtsi"
+#include "imx6ul-kontron-bl-common.dtsi"
+
+/ {
+       model = "Kontron BL i.MX6ULL (N641X S)";
+       compatible = "kontron,bl-imx6ull", "kontron,sl-imx6ull", "fsl,imx6ull";
+};
diff --git a/arch/arm/boot/dts/imx6ull-kontron-n6411-s.dts b/arch/arm/boot/dts/imx6ull-kontron-n6411-s.dts
deleted file mode 100644 (file)
index 57588a5..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-/*
- * Copyright (C) 2017 exceet electronics GmbH
- * Copyright (C) 2019 Kontron Electronics GmbH
- */
-
-/dts-v1/;
-
-#include "imx6ull-kontron-n6411-som.dtsi"
-#include "imx6ul-kontron-n6x1x-s.dtsi"
-
-/ {
-       model = "Kontron N6411 S";
-       compatible = "kontron,imx6ull-n6411-s", "kontron,imx6ull-n6411-som",
-                    "fsl,imx6ull";
-};
diff --git a/arch/arm/boot/dts/imx6ull-kontron-n6411-som.dtsi b/arch/arm/boot/dts/imx6ull-kontron-n6411-som.dtsi
deleted file mode 100644 (file)
index d000606..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-/*
- * Copyright (C) 2017 exceet electronics GmbH
- * Copyright (C) 2018 Kontron Electronics GmbH
- */
-
-#include "imx6ull.dtsi"
-#include "imx6ul-kontron-n6x1x-som-common.dtsi"
-
-/ {
-       model = "Kontron N6411 SOM";
-       compatible = "kontron,imx6ull-n6311-som", "fsl,imx6ull";
-
-       memory@80000000 {
-               reg = <0x80000000 0x20000000>;
-               device_type = "memory";
-       };
-};
-
-&qspi {
-       flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
-               compatible = "spi-nand";
-               spi-max-frequency = <104000000>;
-               spi-tx-bus-width = <4>;
-               spi-rx-bus-width = <4>;
-               reg = <0>;
-
-               partition@0 {
-                       label = "ubi1";
-                       reg = <0x00000000 0x08000000>;
-               };
-
-               partition@8000000 {
-                       label = "ubi2";
-                       reg = <0x08000000 0x18000000>;
-               };
-       };
-};
diff --git a/arch/arm/boot/dts/imx6ull-kontron-sl.dtsi b/arch/arm/boot/dts/imx6ull-kontron-sl.dtsi
new file mode 100644 (file)
index 0000000..93f10eb
--- /dev/null
@@ -0,0 +1,13 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2017 exceet electronics GmbH
+ * Copyright (C) 2018 Kontron Electronics GmbH
+ */
+
+#include "imx6ull.dtsi"
+#include "imx6ul-kontron-sl-common.dtsi"
+
+/ {
+       model = "Kontron SL i.MX6ULL (N641X SOM)";
+       compatible = "kontron,sl-imx6ull", "fsl,imx6ull";
+};