imx: kernel: backport additional upstream patches
authorTim Harvey <[email protected]>
Thu, 19 Jun 2025 23:58:11 +0000 (16:58 -0700)
committerRobert Marko <[email protected]>
Wed, 25 Jun 2025 19:02:35 +0000 (21:02 +0200)
Backport some additional upstream patches to resolves some issues when using
dt overlays on gw72xx-0x and gw73xx-0x:
 - 6.13-arm64-dts-imx8mm-venice-gw73xx-remove-compatible-in-overlay-files.patch
 - 6.12-arm64-dts-imx8mm-venice-gw72xx-remove-compatible-in-overlay-files.patch

Signed-off-by: Tim Harvey <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/19218
Signed-off-by: Robert Marko <[email protected]>
target/linux/imx/patches-6.6/505-6.13-arm64-dts-imx8mm-venice-gw73xx-remove-compatible-in-overlay-files.patch [new file with mode: 0644]
target/linux/imx/patches-6.6/506-6.12-arm64-dts-imx8mm-venice-gw72xx-remove-compatible-in-overlay-files.patch [new file with mode: 0644]

diff --git a/target/linux/imx/patches-6.6/505-6.13-arm64-dts-imx8mm-venice-gw73xx-remove-compatible-in-overlay-files.patch b/target/linux/imx/patches-6.6/505-6.13-arm64-dts-imx8mm-venice-gw73xx-remove-compatible-in-overlay-files.patch
new file mode 100644 (file)
index 0000000..52b673e
--- /dev/null
@@ -0,0 +1,56 @@
+From d3fdc7ae2ca9cb93d634e84a2b90ebf340d6e622 Mon Sep 17 00:00:00 2001
+From: Frank Li <[email protected]>
+Date: Fri, 18 Oct 2024 14:28:23 -0400
+Subject: [PATCH] arm64: dts: imx8mm-venice-gw73xx: remove compatible in
+ overlay file
+
+Remove compatible string in overlay file to fix below warning:
+'gw,imx8mm-gw73xx-0x' is not one of ['fsl,ls1043a-rdb', 'fsl,ls1043a-qds']
+
+Signed-off-by: Frank Li <[email protected]>
+Signed-off-by: Shawn Guo <[email protected]>
+---
+ .../boot/dts/freescale/imx8mm-venice-gw73xx-0x-rs232-rts.dtso | 4 ----
+ .../boot/dts/freescale/imx8mm-venice-gw73xx-0x-rs422.dtso     | 4 ----
+ .../boot/dts/freescale/imx8mm-venice-gw73xx-0x-rs485.dtso     | 4 ----
+ 3 files changed, 12 deletions(-)
+
+--- a/arch/arm64/boot/dts/freescale/imx8mm-venice-gw73xx-0x-rs232-rts.dtso
++++ b/arch/arm64/boot/dts/freescale/imx8mm-venice-gw73xx-0x-rs232-rts.dtso
+@@ -15,10 +15,6 @@
+ /dts-v1/;
+ /plugin/;
+-&{/} {
+-      compatible = "gw,imx8mm-gw73xx-0x";
+-};
+-
+ &gpio4 {
+       rs485_en {
+               gpio-hog;
+--- a/arch/arm64/boot/dts/freescale/imx8mm-venice-gw73xx-0x-rs422.dtso
++++ b/arch/arm64/boot/dts/freescale/imx8mm-venice-gw73xx-0x-rs422.dtso
+@@ -18,10 +18,6 @@
+ /dts-v1/;
+ /plugin/;
+-&{/} {
+-      compatible = "gw,imx8mm-gw73xx-0x";
+-};
+-
+ &gpio4 {
+       rs485_en {
+               gpio-hog;
+--- a/arch/arm64/boot/dts/freescale/imx8mm-venice-gw73xx-0x-rs485.dtso
++++ b/arch/arm64/boot/dts/freescale/imx8mm-venice-gw73xx-0x-rs485.dtso
+@@ -18,10 +18,6 @@
+ /dts-v1/;
+ /plugin/;
+-&{/} {
+-      compatible = "gw,imx8mm-gw73xx-0x";
+-};
+-
+ &gpio4 {
+       rs485_en {
+               gpio-hog;
diff --git a/target/linux/imx/patches-6.6/506-6.12-arm64-dts-imx8mm-venice-gw72xx-remove-compatible-in-overlay-files.patch b/target/linux/imx/patches-6.6/506-6.12-arm64-dts-imx8mm-venice-gw72xx-remove-compatible-in-overlay-files.patch
new file mode 100644 (file)
index 0000000..bd88e35
--- /dev/null
@@ -0,0 +1,60 @@
+From f384d2828f0d5be67fcd69a7c4756f82465a7f2a Mon Sep 17 00:00:00 2001
+From: Fabio Estevam <[email protected]>
+Date: Mon, 1 Jul 2024 20:12:29 -0300
+Subject: [PATCH] arm64: dts: imx8mm-venice-gw72xx-0x: Remove compatible from
+ dtso
+
+There is no need to describe the compatible string inside
+a dtso file.
+
+dt-schema produces super verbose warnings about that.
+
+Signed-off-by: Fabio Estevam <[email protected]>
+Acked-by: Parthiban Nallathambi <[email protected]>
+Acked-by: Tim Harvey <[email protected]>
+Signed-off-by: Shawn Guo <[email protected]>
+---
+ .../boot/dts/freescale/imx8mm-venice-gw72xx-0x-rs232-rts.dtso | 4 ----
+ .../boot/dts/freescale/imx8mm-venice-gw72xx-0x-rs422.dtso     | 4 ----
+ .../boot/dts/freescale/imx8mm-venice-gw72xx-0x-rs485.dtso     | 4 ----
+ 3 files changed, 12 deletions(-)
+
+--- a/arch/arm64/boot/dts/freescale/imx8mm-venice-gw72xx-0x-rs232-rts.dtso
++++ b/arch/arm64/boot/dts/freescale/imx8mm-venice-gw72xx-0x-rs232-rts.dtso
+@@ -15,10 +15,6 @@
+ /dts-v1/;
+ /plugin/;
+-&{/} {
+-      compatible = "gw,imx8mm-gw72xx-0x";
+-};
+-
+ &gpio4 {
+       rs485_en {
+               gpio-hog;
+--- a/arch/arm64/boot/dts/freescale/imx8mm-venice-gw72xx-0x-rs422.dtso
++++ b/arch/arm64/boot/dts/freescale/imx8mm-venice-gw72xx-0x-rs422.dtso
+@@ -18,10 +18,6 @@
+ /dts-v1/;
+ /plugin/;
+-&{/} {
+-      compatible = "gw,imx8mm-gw72xx-0x";
+-};
+-
+ &gpio4 {
+       rs485_en {
+               gpio-hog;
+--- a/arch/arm64/boot/dts/freescale/imx8mm-venice-gw72xx-0x-rs485.dtso
++++ b/arch/arm64/boot/dts/freescale/imx8mm-venice-gw72xx-0x-rs485.dtso
+@@ -18,10 +18,6 @@
+ /dts-v1/;
+ /plugin/;
+-&{/} {
+-      compatible = "gw,imx8mm-gw72xx-0x";
+-};
+-
+ &gpio4 {
+       rs485_en {
+               gpio-hog;