From 7bf3b29a5650495d3777292eeb4f13f34837e10d Mon Sep 17 00:00:00 2001 From: Tim Harvey Date: Thu, 19 Jun 2025 16:58:11 -0700 Subject: [PATCH] imx: kernel: backport additional upstream patches 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 Link: https://github.com/openwrt/openwrt/pull/19218 Signed-off-by: Robert Marko --- ...x-remove-compatible-in-overlay-files.patch | 56 +++++++++++++++++ ...x-remove-compatible-in-overlay-files.patch | 60 +++++++++++++++++++ 2 files changed, 116 insertions(+) create mode 100644 target/linux/imx/patches-6.6/505-6.13-arm64-dts-imx8mm-venice-gw73xx-remove-compatible-in-overlay-files.patch create mode 100644 target/linux/imx/patches-6.6/506-6.12-arm64-dts-imx8mm-venice-gw72xx-remove-compatible-in-overlay-files.patch 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 index 0000000000..52b673e9b5 --- /dev/null +++ b/target/linux/imx/patches-6.6/505-6.13-arm64-dts-imx8mm-venice-gw73xx-remove-compatible-in-overlay-files.patch @@ -0,0 +1,56 @@ +From d3fdc7ae2ca9cb93d634e84a2b90ebf340d6e622 Mon Sep 17 00:00:00 2001 +From: Frank Li +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 +Signed-off-by: Shawn Guo +--- + .../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 index 0000000000..bd88e35260 --- /dev/null +++ b/target/linux/imx/patches-6.6/506-6.12-arm64-dts-imx8mm-venice-gw72xx-remove-compatible-in-overlay-files.patch @@ -0,0 +1,60 @@ +From f384d2828f0d5be67fcd69a7c4756f82465a7f2a Mon Sep 17 00:00:00 2001 +From: Fabio Estevam +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 +Acked-by: Parthiban Nallathambi +Acked-by: Tim Harvey +Signed-off-by: Shawn Guo +--- + .../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; -- 2.30.2