ARM: NXP: Drop NOMMU platform support
Subsystems (12)
cover ARM: NXP: Drop NOMMU platform support
Commercial users and hardware vendors migrated to Zephyr or other RTOS solutions years ago, leaving the NOMMU platform support effectively unused and unmaintained.
Remove the obsolete support to reduce maintenance burden and simplify the Freescale/nxp platform code.
Some driver code still be kept and may clean up later since it is possible reused by other SoC.
---
Frank Li (11):
ARM: dts: vf610m4: Remove NOMMU platform support
ARM: dts: imxrt1050: Remove NOMMU platform support
ARM: imx: Remove NOMMU platform support
clk: imx: imxrt1050: Remove NOMMU platform support
pinctrl: freescale: IMXRT: Remove NOMMU platform support
ARM: imxrt_defconfig: Remove NOMMU platform support
ARM: dts: lpc: Remove NOMMU platform support
ARM: mach-lpc: Remove NOMMU platform support
ARM: configs: lpc*: Remove NOMMU platform support
clk: nxp: lpc: Remove NOMMU platform support
pinctrl: nxp: lpc: Remove NOMMU platform support
.../devicetree/bindings/pinctrl/fsl,imxrt1050.yaml | 79 - .../devicetree/bindings/pinctrl/fsl,imxrt1170.yaml | 77 - arch/arm/Kconfig | 12 - arch/arm/Makefile | 2 - arch/arm/boot/dts/nxp/Makefile | 1 - arch/arm/boot/dts/nxp/imx/Makefile | 2 - arch/arm/boot/dts/nxp/imx/imxrt1050-evk.dts | 72 - arch/arm/boot/dts/nxp/imx/imxrt1050-pinfunc.h | 993 ------------ arch/arm/boot/dts/nxp/imx/imxrt1050.dtsi | 160 -- arch/arm/boot/dts/nxp/imx/imxrt1170-pinfunc.h | 1561 ------------------- arch/arm/boot/dts/nxp/lpc/Makefile | 9 - arch/arm/boot/dts/nxp/lpc/lpc18xx.dtsi | 543 ------- arch/arm/boot/dts/nxp/lpc/lpc3250-ea3250.dts | 273 ---- arch/arm/boot/dts/nxp/lpc/lpc3250-phy3250.dts | 236 --- arch/arm/boot/dts/nxp/lpc/lpc32xx.dtsi | 540 ------- arch/arm/boot/dts/nxp/lpc/lpc4337-ciaa.dts | 221 --- arch/arm/boot/dts/nxp/lpc/lpc4350-hitex-eval.dts | 485 ------ arch/arm/boot/dts/nxp/lpc/lpc4350.dtsi | 48 - .../arm/boot/dts/nxp/lpc/lpc4357-ea4357-devkit.dts | 624 -------- arch/arm/boot/dts/nxp/lpc/lpc4357-myd-lpc4357.dts | 621 -------- arch/arm/boot/dts/nxp/lpc/lpc4357.dtsi | 52 - arch/arm/boot/dts/nxp/vf/Makefile | 2 - arch/arm/boot/dts/nxp/vf/vf610m4-colibri.dts | 61 - arch/arm/boot/dts/nxp/vf/vf610m4-cosmic.dts | 88 -- arch/arm/boot/dts/nxp/vf/vf610m4.dtsi | 61 - arch/arm/configs/imxrt_defconfig | 35 - arch/arm/configs/lpc18xx_defconfig | 158 -- arch/arm/configs/lpc32xx_defconfig | 192 --- arch/arm/mach-imx/Kconfig | 7 - arch/arm/mach-imx/Makefile | 2 - arch/arm/mach-imx/mach-imxrt.c | 19 - arch/arm/mach-lpc18xx/Makefile | 2 - arch/arm/mach-lpc18xx/board-dt.c | 19 - arch/arm/mach-lpc32xx/Kconfig | 13 - arch/arm/mach-lpc32xx/Makefile | 8 - arch/arm/mach-lpc32xx/common.c | 125 -- arch/arm/mach-lpc32xx/common.h | 32 - arch/arm/mach-lpc32xx/lpc32xx.h | 717 --------- arch/arm/mach-lpc32xx/phy3250.c | 92 -- arch/arm/mach-lpc32xx/pm.c | 135 -- arch/arm/mach-lpc32xx/serial.c | 148 -- arch/arm/mach-lpc32xx/suspend.S | 148 -- drivers/clk/Kconfig | 7 - drivers/clk/Makefile | 1 - drivers/clk/imx/Kconfig | 6 - drivers/clk/imx/Makefile | 1 - drivers/clk/imx/clk-imxrt1050.c | 182 --- drivers/clk/nxp/Makefile | 5 - drivers/clk/nxp/clk-lpc18xx-ccu.c | 301 ---- drivers/clk/nxp/clk-lpc18xx-cgu.c | 668 -------- drivers/clk/nxp/clk-lpc18xx-creg.c | 225 --- drivers/clk/nxp/clk-lpc32xx.c | 1591 -------------------- drivers/pinctrl/Kconfig | 9 - drivers/pinctrl/Makefile | 1 - drivers/pinctrl/freescale/Kconfig | 16 - drivers/pinctrl/freescale/Makefile | 2 - drivers/pinctrl/freescale/pinctrl-imxrt1050.c | 309 ---- drivers/pinctrl/freescale/pinctrl-imxrt1170.c | 349 ----- drivers/pinctrl/pinctrl-lpc18xx.c | 1382 ----------------- include/dt-bindings/clock/imxrt1050-clock.h | 72 - 60 files changed, 13802 deletions(-)
---
base-commit: 598c7067dd8b65b93f3ccada47e9014a13137f1b
change-id: 20260618-dts_cleanup_arm_mcore-e7e933da798a
Best regards,
Signature · 1 line
Frank Li <[email protected]>
PATCH 1/11 ARM: dts: vf610m4: Remove NOMMU platform support
From: Frank Li <[email protected]>
The Vybrid M4 NOMMU platform support was added as a proof-of-concept and has not seen practical use in production systems.
Commercial users and hardware vendors migrated to Zephyr or other RTOS solutions years ago, leaving the NOMMU platform support effectively unused and unmaintained.
Remove the obsolete support to reduce maintenance burden and simplify the code.
---
Cc: Stefan Agner <[email protected]>
--- arch/arm/boot/dts/nxp/vf/Makefile | 2 - arch/arm/boot/dts/nxp/vf/vf610m4-colibri.dts | 61 ------------------- arch/arm/boot/dts/nxp/vf/vf610m4-cosmic.dts | 88 ---------------------------- arch/arm/boot/dts/nxp/vf/vf610m4.dtsi | 61 ------------------- 4 files changed, 212 deletions(-)
arch/arm/boot/dts/nxp/vf/Makefile +0 -2
@@ -3,9 +3,7 @@ dtb-$(CONFIG_SOC_VF610) += \ vf500-colibri-eval-v3.dtb \ vf610-bk4.dtb \ vf610-colibri-eval-v3.dtb \ - vf610m4-colibri.dtb \ vf610-cosmic.dtb \ - vf610m4-cosmic.dtb \ vf610-twr.dtb \ vf610-zii-cfu1.dtb \ vf610-zii-dev-rev-b.dtb \
arch/arm/boot/dts/nxp/vf/vf610m4-colibri.dts deleted +0 -61
61 lines not on this page · raw message
arch/arm/boot/dts/nxp/vf/vf610m4-cosmic.dts deleted +0 -88
88 lines not on this page · raw message
arch/arm/boot/dts/nxp/vf/vf610m4.dtsi deleted +0 -61
61 lines not on this page · raw message
Signature · 1 line
2.43.0
[email protected]
AI reviewRe: [PATCH 01/11] ARM: dts: vf610m4: Remove NOMMU platform support
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Medium] Incomplete removal of VF610 Cortex-M4 NOMMU platform support leaves orphaned code and…
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] Incomplete removal of VF610 Cortex-M4 NOMMU platform support leaves orphaned code and configuration. --
commit 47df1414ffdd1b53077023f0d62226535c747e2a
Author: Frank Li <[email protected]>
ARM: dts: vf610m4: Remove NOMMU platform support
This commit removes the device tree files for the obsolete Vybrid M4 NOMMU platform to reduce maintenance burden.
Quoted 2 lines
Remove the obsolete support to reduce maintenance burden and simplify the code.
[Severity: Medium]
Since the goal is to fully remove the VF610 Cortex-M4 NOMMU platform support, does this patch leave behind orphaned configurations and code?
There appear to be several remaining references that might need cleaning up to completely simplify the codebase:
- The dedicated arch/arm/configs/vf610m4_defconfig file
- The fsl,vf610m4 compatible string in the vf610_dt_compat array in arch/arm/mach-imx/mach-vf610.c
- The fsl,vf610m4 binding in Documentation/devicetree/bindings/arm/fsl.yaml
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
PATCH 2/11 ARM: dts: imxrt1050: Remove NOMMU platform support
In reply to [email protected]From: Frank Li <[email protected]>
Commercial users and hardware vendors migrated to Zephyr or other RTOS solutions years ago, leaving the NOMMU platform support effectively unused and unmaintained.
Remove the obsolete support to reduce maintenance burden and simplify the i.MX platform code.
--- arch/arm/boot/dts/nxp/imx/Makefile | 2 - arch/arm/boot/dts/nxp/imx/imxrt1050-evk.dts | 72 -- arch/arm/boot/dts/nxp/imx/imxrt1050-pinfunc.h | 993 ---------------- arch/arm/boot/dts/nxp/imx/imxrt1050.dtsi | 160 --- arch/arm/boot/dts/nxp/imx/imxrt1170-pinfunc.h | 1561 ------------------------- 5 files changed, 2788 deletions(-)
arch/arm/boot/dts/nxp/imx/Makefile +0 -2
@@ -455,5 +455,3 @@ dtb-$(CONFIG_SOC_IMX7D) += \ dtb-$(CONFIG_SOC_IMX7ULP) += \ imx7ulp-com.dtb \ imx7ulp-evk.dtb -dtb-$(CONFIG_SOC_IMXRT) += \ - imxrt1050-evk.dtb
arch/arm/boot/dts/nxp/imx/imxrt1050-evk.dts deleted +0 -72
72 lines not on this page · raw message
arch/arm/boot/dts/nxp/imx/imxrt1050-pinfunc.h deleted +0 -993
993 lines not on this page · raw message
arch/arm/boot/dts/nxp/imx/imxrt1050.dtsi deleted +0 -160
160 lines not on this page · raw message
arch/arm/boot/dts/nxp/imx/imxrt1170-pinfunc.h deleted +0 -1561
1,561 lines not on this page · raw message
Signature · 1 line
2.43.0
PATCH 3/11 ARM: imx: Remove NOMMU platform support
In reply to [email protected]From: Frank Li <[email protected]>
Commercial users and hardware vendors migrated to Zephyr or other RTOS solutions years ago, leaving the NOMMU platform support effectively unused and unmaintained.
Remove the obsolete support to reduce maintenance burden and simplify the i.MX platform code.
--- arch/arm/mach-imx/Kconfig | 7 ------- arch/arm/mach-imx/Makefile | 2 -- arch/arm/mach-imx/mach-imxrt.c | 19 ------------------- 3 files changed, 28 deletions(-)
arch/arm/mach-imx/Kconfig +0 -7
@@ -213,13 +213,6 @@ config SOC_IMX7ULP help This enables support for Freescale i.MX7 Ultra Low Power processor. -config SOC_IMXRT - bool "i.MXRT support" - depends on ARM_SINGLE_ARMV7M - select ARMV7M_SYSTICK if ARM_SINGLE_ARMV7M - help - This enables support for Freescale i.MXRT Crossover processor. - config SOC_VF610 bool "Vybrid Family VF610 support" select ARM_GIC if ARCH_MULTI_V7
arch/arm/mach-imx/Makefile +0 -2
@@ -60,8 +60,6 @@ obj-$(CONFIG_SOC_IMX50) += mach-imx50.o obj-$(CONFIG_SOC_IMX51) += mach-imx51.o obj-$(CONFIG_SOC_IMX53) += mach-imx53.o -obj-$(CONFIG_SOC_IMXRT) += mach-imxrt.o - obj-$(CONFIG_SOC_VF610) += mach-vf610.o obj-$(CONFIG_SOC_LS1021A) += mach-ls1021a.o
arch/arm/mach-imx/mach-imxrt.c deleted +0 -19
@@ -1,19 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0 -/* -* Copyright (C) 2019 -* Author(s): Giulio Benetti <[email protected]> -*/ - -#include <linux/kernel.h> -#include <asm/mach/arch.h> -#include <asm/v7m.h> - -static const char *const imxrt_compat[]__initconst = { -"fsl,imxrt1050" , -NULL -}; - -DT_MACHINE_START (IMXRTDT ,"IMXRT (Device Tree Support)" ) - .dt_compat = imxrt_compat, - .restart = armv7m_restart, -MACHINE_END
Signature · 1 line
2.43.0
PATCH 4/11 clk: imx: imxrt1050: Remove NOMMU platform support
In reply to [email protected]From: Frank Li <[email protected]>
Commercial users and hardware vendors migrated to Zephyr or other RTOS solutions years ago, leaving the NOMMU platform support effectively unused and unmaintained.
Remove the obsolete support to reduce maintenance burden and simplify the i.MX platform code.
--- drivers/clk/imx/Kconfig | 6 - drivers/clk/imx/Makefile | 1 - drivers/clk/imx/clk-imxrt1050.c | 182 ---------------------------- include/dt-bindings/clock/imxrt1050-clock.h | 72 ----------- 4 files changed, 261 deletions(-)
drivers/clk/imx/Kconfig +0 -6
@@ -123,9 +123,3 @@ config CLK_IMX95_BLK_CTL help Build the clock driver for i.MX95 BLK CTL -config CLK_IMXRT1050 - tristate "IMXRT1050 CCM Clock Driver" - depends on SOC_IMXRT || COMPILE_TEST - select MXC_CLK - help - Build the driver for i.MXRT1050 CCM Clock Driver
drivers/clk/imx/Makefile +0 -1
@@ -56,5 +56,4 @@ obj-$(CONFIG_CLK_IMX6SX) += clk-imx6sx.o obj-$(CONFIG_CLK_IMX6UL) += clk-imx6ul.o obj-$(CONFIG_CLK_IMX7D) += clk-imx7d.o obj-$(CONFIG_CLK_IMX7ULP) += clk-imx7ulp.o -obj-$(CONFIG_CLK_IMXRT1050) += clk-imxrt1050.o obj-$(CONFIG_CLK_VF610) += clk-vf610.o
drivers/clk/imx/clk-imxrt1050.c deleted +0 -182
182 lines not on this page · raw message
include/dt-bindings/clock/imxrt1050-clock.h deleted +0 -72
72 lines not on this page · raw message
Signature · 1 line
2.43.0
[email protected]
AI reviewRe: [PATCH 04/11] clk: imx: imxrt1050: Remove NOMMU platform support
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider: - [Low] Deleting the `include/dt-bindings/clock/imxrt1050-clock.h` header breaks `make dt_binding_check`…
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Low] Deleting the include/dt-bindings/clock/imxrt1050-clock.h header breaks make dt_binding_check because the header is still included in the YAML binding example.
- [Low] Incomplete cleanup: Defconfig for the removed vf610m4 platform was left behind.
--
commit 19efb4118fc745b70a599c1f992b0e4fad42b13c
Author: Frank Li <[email protected]>
clk: imx: imxrt1050: Remove NOMMU platform support
This commit removes the IMXRT1050 CCM clock driver and its device tree binding header. This is part of dropping unused NOMMU platform support from the kernel.
Quoted 6 lines
include/dt-bindings/clock/imxrt1050-clock.h deleted +0
-0
include/dt-bindings/clock/imxrt1050-clock.h line 8
Quoted 8 lines
include/dt-bindings/clock/imxrt1050-clock.h deleted +0
-8@@ -1,72 +0,0 @@ -/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ -/* -* Copyright(C) 2019 -* Author(s): Giulio Benetti <[email protected]> -*/ - -#ifndef __DT_BINDINGS_CLOCK_IMXRT1050_H -#define __DT_BINDINGS_CLOCK_IMXRT1050_H
[Severity: Low]
Does deleting this header break make dt_binding_check?
The Documentation/devicetree/bindings/clock/imxrt1050-clock.yaml file still includes this header in its examples section:
Documentation/devicetree/bindings/clock/imxrt1050-clock.yaml:examples()
examples:
- |
#include <dt-bindings/clock/imxrt1050-clock.h>
If the YAML file is not removed or updated, make dt_binding_check will fail with a missing file error when extracting and building the example.
[ ... ]
[Severity: Low]
Does this series miss cleaning up the vf610m4_defconfig file?
Since the patch series removes NOMMU platform support, including the vf610m4 device tree files, should arch/arm/configs/vf610m4_defconfig also be removed? It configures the kernel for the vf610m4 NOMMU platform and appears to be left behind as an unused configuration.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=4
PATCH 5/11 pinctrl: freescale: IMXRT: Remove NOMMU platform support
In reply to [email protected]From: Frank Li <[email protected]>
Commercial users and hardware vendors migrated to Zephyr or other RTOS solutions years ago, leaving the NOMMU platform support effectively unused and unmaintained.
Remove the obsolete support to reduce maintenance burden and simplify the i.MX platform code.
--- .../devicetree/bindings/pinctrl/fsl,imxrt1050.yaml | 79 ----- .../devicetree/bindings/pinctrl/fsl,imxrt1170.yaml | 77 ----- drivers/pinctrl/freescale/Kconfig | 16 - drivers/pinctrl/freescale/Makefile | 2 - drivers/pinctrl/freescale/pinctrl-imxrt1050.c | 309 ------------------ drivers/pinctrl/freescale/pinctrl-imxrt1170.c | 349 --------------------- 6 files changed, 832 deletions(-)
Documentation/devicetree/bindings/pinctrl/fsl,imxrt1050.yaml deleted +0 -79
@@ -1,79 +0,0 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/fsl,imxrt1050.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Freescale IMXRT1050 IOMUX Controller - -maintainers: - - Giulio Benetti <[email protected]> - - Jesse Taube <[email protected]> - -description: - Please refer to fsl,imx-pinctrl.txt and pinctrl-bindings.txt in this directory - for common binding part and usage. - -properties: - compatible: - const: fsl,imxrt1050-iomuxc - - reg: - maxItems: 1 - -# Client device subnode's properties -patternProperties: - 'grp$': - type: object - description: - Pinctrl node's client devices use subnodes for desired pin configuration. - Client device subnodes use below standard properties. - - properties: - fsl,pins: - description: - each entry consists of 6 integers and represents the mux and config - setting for one pin. The first 5 integers <mux_reg conf_reg input_reg - mux_val input_val> are specified using a PIN_FUNC_ID macro, which can - be found in <arch/arm/boot/dts/imxrt1050-pinfunc.h>. The last - integer CONFIG is the pad setting value like pull-up on this pin. Please - refer to i.MXRT1050 Reference Manual for detailed CONFIG settings. - $ref: /schemas/types.yaml#/definitions/uint32-matrix - items: - items: - - description: | - "mux_reg" indicates the offset of mux register. - - description: | - "conf_reg" indicates the offset of pad configuration register. - - description: | - "input_reg" indicates the offset of select input register. - - description: | - "mux_val" indicates the mux value to be applied. - - description: | - "input_val" indicates the select input value to be applied. - - description: | - "pad_setting" indicates the pad configuration value to be applied. - - required: - - fsl,pins - - additionalProperties: false - -required: - - compatible - - reg - -additionalProperties: false - -examples: - - | - iomuxc: iomuxc@401f8000 { - compatible = "fsl,imxrt1050-iomuxc"; - reg = <0x401f8000 0x4000>; - - pinctrl_lpuart1: lpuart1grp { - fsl,pins = - <0x0EC 0x2DC 0x000 0x2 0x0 0xf1>, - <0x0F0 0x2E0 0x000 0x2 0x0 0xf1>; - }; - };
Documentation/devicetree/bindings/pinctrl/fsl,imxrt1170.yaml deleted +0 -77
77 lines not on this page · raw message
drivers/pinctrl/freescale/Kconfig +0 -16
@@ -229,15 +229,6 @@ config PINCTRL_IMX8ULP help Say Y here to enable the imx8ulp pinctrl driver -config PINCTRL_IMXRT1050 - bool "IMXRT1050 pinctrl driver" - depends on OF - depends on SOC_IMXRT || COMPILE_TEST - default SOC_IMXRT - select PINCTRL_IMX - help - Say Y here to enable the imxrt1050 pinctrl driver - config PINCTRL_IMX91 tristate "IMX91 pinctrl driver" depends on ARCH_MXC
@@ -276,10 +267,3 @@ config PINCTRL_IMX28 bool select PINCTRL_MXS -config PINCTRL_IMXRT1170 - bool "IMXRT1170 pinctrl driver" - depends on OF - depends on SOC_IMXRT || COMPILE_TEST - select PINCTRL_IMX - help - Say Y here to enable the imxrt1170 pinctrl driver
drivers/pinctrl/freescale/Makefile +0 -2
@@ -33,5 +33,3 @@ obj-$(CONFIG_PINCTRL_MXS) += pinctrl-mxs.o obj-$(CONFIG_PINCTRL_IMX23) += pinctrl-imx23.o obj-$(CONFIG_PINCTRL_IMX25) += pinctrl-imx25.o obj-$(CONFIG_PINCTRL_IMX28) += pinctrl-imx28.o -obj-$(CONFIG_PINCTRL_IMXRT1050) += pinctrl-imxrt1050.o -obj-$(CONFIG_PINCTRL_IMXRT1170) += pinctrl-imxrt1170.o
drivers/pinctrl/freescale/pinctrl-imxrt1050.c deleted +0 -309
309 lines not on this page · raw message
drivers/pinctrl/freescale/pinctrl-imxrt1170.c deleted +0 -349
349 lines not on this page · raw message
Signature · 1 line
2.43.0
Re: [PATCH 05/11] pinctrl: freescale: IMXRT: Remove NOMMU platform support
Quoted 10 lines · On Fri, 19 Jun 2026 11:41:02 -0400, [email protected] wrote:
From: Frank Li <[email protected]>
Commercial users and hardware vendors migrated to Zephyr or other RTOS solutions years ago, leaving the NOMMU platform support effectively unused and unmaintained.
Remove the obsolete support to reduce maintenance burden and simplify the i.MX platform code.
Signed-off-by Frank Li <[email protected]>
Quoted 9 lines
--- .../devicetree/bindings/pinctrl/fsl,imxrt1050.yaml | 79 ----- .../devicetree/bindings/pinctrl/fsl,imxrt1170.yaml | 77 ----- drivers/pinctrl/freescale/Kconfig | 16 - drivers/pinctrl/freescale/Makefile | 2 - drivers/pinctrl/freescale/pinctrl-imxrt1050.c | 309 ------------------ drivers/pinctrl/freescale/pinctrl-imxrt1170.c | 349 --------------------- 6 files changed, 832 deletions(-)
PATCH 6/11 ARM: imxrt_defconfig: Remove NOMMU platform support
In reply to [email protected]From: Frank Li <[email protected]>
Commercial users and hardware vendors migrated to Zephyr or other RTOS solutions years ago, leaving the NOMMU platform support effectively unused and unmaintained.
Remove the obsolete support to reduce maintenance burden and simplify the i.MX platform code.
--- arch/arm/configs/imxrt_defconfig | 35 ----------------------------------- 1 file changed, 35 deletions(-)
arch/arm/configs/imxrt_defconfig deleted +0 -35
@@ -1,35 +0,0 @@ -# CONFIG_LOCALVERSION_AUTO is not set -CONFIG_BPF_SYSCALL=y -CONFIG_SCHED_AUTOGROUP=y -# CONFIG_MMU is not set -CONFIG_ARCH_MXC=y -CONFIG_SOC_IMXRT=y -CONFIG_SET_MEM_PARAM=y -CONFIG_DRAM_BASE=0x80000000 -CONFIG_DRAM_SIZE=0x02000000 -CONFIG_BINFMT_FLAT=y -CONFIG_UEVENT_HELPER=y -CONFIG_DEVTMPFS=y -CONFIG_DEVTMPFS_MOUNT=y -CONFIG_IMX_WEIM=y -CONFIG_LEGACY_PTY_COUNT=2 -CONFIG_SERIAL_FSL_LPUART=y -CONFIG_SERIAL_FSL_LPUART_CONSOLE=y -CONFIG_SERIAL_DEV_BUS=y -CONFIG_PINCTRL_IMXRT1050=y -CONFIG_GPIO_MXC=y -CONFIG_MMC=y -CONFIG_MMC_SDHCI=y -CONFIG_MMC_SDHCI_PLTFM=y -CONFIG_MMC_SDHCI_ESDHC_IMX=y -CONFIG_DMADEVICES=y -CONFIG_FSL_EDMA=y -CONFIG_CLK_IMXRT1050=y -CONFIG_EXT4_FS=y -CONFIG_EXT4_FS_POSIX_ACL=y -CONFIG_EXT4_FS_SECURITY=y -CONFIG_VFAT_FS=y -CONFIG_FAT_DEFAULT_UTF8=y -CONFIG_EXFAT_FS=y -CONFIG_NLS_ASCII=y -CONFIG_NLS_UTF8=y
Signature · 1 line
2.43.0
[email protected]
AI reviewRe: [PATCH 06/11] ARM: imxrt_defconfig: Remove NOMMU platform support
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider: - [Medium] Leftover references, platform-specific structures, compatible strings, and early console…
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] Leftover references, platform-specific structures, compatible strings, and early console declarations for the removed i.MXRT and VF610M4 platforms remain in multiple drivers and DT bindings.
- [Low] Deleted clock dt-binding header is still included in the imxrt1050-clock.yaml dt-binding YAML example, breaking dt_binding_check.
--
commit 3968f192513e74f4358aed03401b5e2ab20e266b
Author: Frank Li <[email protected]>
ARM: imxrt_defconfig: Remove NOMMU platform support
Commercial users and hardware vendors migrated to Zephyr or other RTOS solutions years ago, leaving the NOMMU platform support effectively unused and unmaintained.
Quoted 2 lines
Remove the obsolete support to reduce maintenance burden and simplify the i.MX platform code.
[Severity: Medium]
Since this series removes the NOMMU platform support for i.MXRT and VF610M4, should the remaining platform-specific structures and references also be cleaned up?
There are leftover configurations such as usdhc_imxrt1050_data in drivers/mmc/host/sdhci-esdhc-imx.c:
static struct esdhc_soc_data usdhc_imxrt1050_data = {imxrt1050_data in drivers/tty/serial/fsl_lpuart.c:
static const struct lpuart_soc_data imxrt1050_data = {early console declarations in drivers/tty/serial/fsl_lpuart.c:
OF_EARLYCON_DECLARE(lpuart32, "fsl,imxrt1050-lpuart", lpuart32_imx_early_console_setup);
and the fsl,vf610m4 compatibility string in arch/arm/mach-imx/mach-vf610.c:
"fsl,vf610m4",
Because the core architecture files and Kconfigs are removed, these remnants become unreachable orphaned dead code.
[Severity: Low]
Does this series also need to update the dt-binding examples?
The deleted include/dt-bindings/clock/imxrt1050-clock.h header is still included in the Documentation/devicetree/bindings/clock/imxrt1050-clock.yaml example block:
#include <dt-bindings/clock/imxrt1050-clock.h>
When the dt_binding_check target attempts to preprocess this YAML example, the C preprocessor fails with a "No such file or directory" error.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=6
PATCH 7/11 ARM: dts: lpc: Remove NOMMU platform support
In reply to [email protected]From: Frank Li <[email protected]>
Commercial users and hardware vendors migrated to Zephyr or other RTOS solutions years ago, leaving the NOMMU platform support effectively unused and unmaintained.
Remove the obsolete support to reduce maintenance burden and simplify the i.MX platform code.
--- arch/arm/boot/dts/nxp/Makefile | 1 - arch/arm/boot/dts/nxp/lpc/Makefile | 9 - arch/arm/boot/dts/nxp/lpc/lpc18xx.dtsi | 543 ------------------ arch/arm/boot/dts/nxp/lpc/lpc3250-ea3250.dts | 273 --------- arch/arm/boot/dts/nxp/lpc/lpc3250-phy3250.dts | 236 -------- arch/arm/boot/dts/nxp/lpc/lpc32xx.dtsi | 540 ------------------ arch/arm/boot/dts/nxp/lpc/lpc4337-ciaa.dts | 221 -------- arch/arm/boot/dts/nxp/lpc/lpc4350-hitex-eval.dts | 485 ---------------- arch/arm/boot/dts/nxp/lpc/lpc4350.dtsi | 48 -- .../arm/boot/dts/nxp/lpc/lpc4357-ea4357-devkit.dts | 624 --------------------- arch/arm/boot/dts/nxp/lpc/lpc4357-myd-lpc4357.dts | 621 -------------------- arch/arm/boot/dts/nxp/lpc/lpc4357.dtsi | 52 -- 12 files changed, 3653 deletions(-)
arch/arm/boot/dts/nxp/Makefile +0 -1
@@ -1,6 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 subdir-y += imx -subdir-y += lpc subdir-y += ls subdir-y += mxs subdir-y += vf
arch/arm/boot/dts/nxp/lpc/Makefile deleted +0 -9
@@ -1,9 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0 -dtb-$(CONFIG_ARCH_LPC18XX) += \ - lpc4337-ciaa.dtb \ - lpc4350-hitex-eval.dtb \ - lpc4357-ea4357-devkit.dtb \ - lpc4357-myd-lpc4357.dtb -dtb-$(CONFIG_ARCH_LPC32XX) += \ - lpc3250-ea3250.dtb \ - lpc3250-phy3250.dtb
arch/arm/boot/dts/nxp/lpc/lpc18xx.dtsi deleted +0 -543
543 lines not on this page · raw message
arch/arm/boot/dts/nxp/lpc/lpc3250-ea3250.dts deleted +0 -273
273 lines not on this page · raw message
arch/arm/boot/dts/nxp/lpc/lpc3250-phy3250.dts deleted +0 -236
236 lines not on this page · raw message
arch/arm/boot/dts/nxp/lpc/lpc32xx.dtsi deleted +0 -540
540 lines not on this page · raw message
arch/arm/boot/dts/nxp/lpc/lpc4337-ciaa.dts deleted +0 -221
221 lines not on this page · raw message
arch/arm/boot/dts/nxp/lpc/lpc4350-hitex-eval.dts deleted +0 -485
485 lines not on this page · raw message
arch/arm/boot/dts/nxp/lpc/lpc4350.dtsi deleted +0 -48
48 lines not on this page · raw message
arch/arm/boot/dts/nxp/lpc/lpc4357-ea4357-devkit.dts deleted +0 -624
624 lines not on this page · raw message
arch/arm/boot/dts/nxp/lpc/lpc4357-myd-lpc4357.dts deleted +0 -621
15 lines not on this page · raw message
arch/arm/boot/dts/nxp/lpc/lpc4357.dtsi deleted +0 -52
52 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.43.0
Part of the diff is not shown here. View the raw message.
[email protected]
AI reviewRe: [PATCH 07/11] ARM: dts: lpc: Remove NOMMU platform support
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [High] Unintended removal of the MMU-capable LPC32xx platform under the false premise of removing NOMMU…
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] Unintended removal of the MMU-capable LPC32xx platform under the false premise of removing NOMMU support, along with an inaccurate commit message. --
commit d19b47e78b74813c8413198ab7ec32784181d8d8
Author: Frank Li <[email protected]>
Subject: ARM: dts: lpc: Remove NOMMU platform support
This commit removes the arch/arm/boot/dts/nxp/lpc directory, stating the intention is to remove unused NOMMU platform support. It drops the build targets for LPC platforms to simplify the codebase.
Quoted 8 lines
ARM: dts: lpc: Remove NOMMU platform support
Commercial users and hardware vendors migrated to Zephyr or other RTOS solutions years ago, leaving the NOMMU platform support effectively unused and unmaintained.
Remove the obsolete support to reduce maintenance burden and simplify the i.MX platform code.
[Severity: High]
Does this commit unintentionally remove the MMU-capable LPC32xx platform? While the LPC18xx and LPC43xx series are Cortex-M NOMMU parts, the LPC32xx series uses an ARM926EJ-S processor, which features a full MMU and runs a standard Linux kernel.
This mistake appears to cascade through the rest of the patch series, where mach-lpc32xx is also deleted under the same 'NOMMU' premise.
Also, this isn't a bug, but there appears to be a copy-paste error in the commit message where it mentions simplifying the "i.MX platform code" instead of LPC.
Quoted 6 lines
arch/arm/boot/dts/nxp/lpc/Makefile deleted +0
-0
arch/arm/boot/dts/nxp/lpc/Makefile line 9
Quoted 9 lines
arch/arm/boot/dts/nxp/lpc/Makefile deleted +0
-9@@ -1,9 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0 -dtb-$(CONFIG_ARCH_LPC18XX) += \ - lpc4337-ciaa.dtb \ - lpc4350-hitex-eval.dtb \ - lpc4357-ea4357-devkit.dtb \ - lpc4357-myd-lpc4357.dtb -dtb-$(CONFIG_ARCH_LPC32XX) += \ - lpc3250-ea3250.dtb \ - lpc3250-phy3250.dtb
[Severity: High]
Does the removal of these targets improperly disable the LPC32XX platform, which relies on an MMU-capable core?
Quoted 6 lines
arch/arm/boot/dts/nxp/lpc/lpc32xx.dtsi deleted +0
-0@@ -1,540 +0,0 @@
[ ... ]
arch/arm/boot/dts/nxp/lpc/lpc32xx.dtsi line 27
Quoted 10 lines
arch/arm/boot/dts/nxp/lpc/lpc32xx.dtsi deleted +0
-10- cpus { - #address-cells = <1>; - #size-cells = <0>; - - cpu@0 { - compatible = "arm,arm926ej-s"; - device_type = "cpu"; - reg = <0x0>; - }; - };
[Severity: High]
Since this node defines cpu@0 as an ARM926EJ-S, a core that features a full MMU, does this contradict the commit's justification for removing this platform as 'NOMMU'?
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=7
PATCH 8/11 ARM: mach-lpc: Remove NOMMU platform support
In reply to [email protected]From: Frank Li <[email protected]>
Commercial users and hardware vendors migrated to Zephyr or other RTOS solutions years ago, leaving the NOMMU platform support effectively unused and unmaintained.
Remove the obsolete support to reduce maintenance burden and simplify the NXP/Freescale platform code.
--- arch/arm/Kconfig | 12 - arch/arm/Makefile | 2 - arch/arm/mach-lpc18xx/Makefile | 2 - arch/arm/mach-lpc18xx/board-dt.c | 19 -- arch/arm/mach-lpc32xx/Kconfig | 13 - arch/arm/mach-lpc32xx/Makefile | 8 - arch/arm/mach-lpc32xx/common.c | 125 ------- arch/arm/mach-lpc32xx/common.h | 32 -- arch/arm/mach-lpc32xx/lpc32xx.h | 717 --------------------------------------- arch/arm/mach-lpc32xx/phy3250.c | 92 ----- arch/arm/mach-lpc32xx/pm.c | 135 -------- arch/arm/mach-lpc32xx/serial.c | 148 -------- arch/arm/mach-lpc32xx/suspend.S | 148 -------- 13 files changed, 1453 deletions(-)
arch/arm/Kconfig +0 -12
@@ -401,8 +401,6 @@ source "arch/arm/mach-ixp4xx/Kconfig" source "arch/arm/mach-keystone/Kconfig" -source "arch/arm/mach-lpc32xx/Kconfig" - source "arch/arm/mach-mediatek/Kconfig" source "arch/arm/mach-meson/Kconfig"
@@ -470,16 +468,6 @@ source "arch/arm/mach-zte/Kconfig" source "arch/arm/mach-zynq/Kconfig" # ARMv7-M architecture -config ARCH_LPC18XX - bool "NXP LPC18xx/LPC43xx" - depends on ARM_SINGLE_ARMV7M - select ARCH_HAS_RESET_CONTROLLER - select ARM_AMBA - select CLKSRC_LPC32XX - select PINCTRL - help - Support for NXP's LPC18xx Cortex-M3 and LPC43xx Cortex-M4 - high performance microcontrollers. config ARCH_MPS2 bool "ARM MPS2 platform"
arch/arm/Makefile +0 -2
@@ -191,8 +191,6 @@ machine-$(CONFIG_ARCH_HIGHBANK) += highbank machine-$(CONFIG_ARCH_HISI) += hisi machine-$(CONFIG_ARCH_IXP4XX) += ixp4xx machine-$(CONFIG_ARCH_KEYSTONE) += keystone -machine-$(CONFIG_ARCH_LPC18XX) += lpc18xx -machine-$(CONFIG_ARCH_LPC32XX) += lpc32xx machine-$(CONFIG_ARCH_MESON) += meson machine-$(CONFIG_ARCH_MMP) += mmp machine-$(CONFIG_ARCH_MV78XX0) += mv78xx0
arch/arm/mach-lpc18xx/Makefile deleted +0 -2
@@ -1,2 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-only -obj-y += board-dt.o
arch/arm/mach-lpc18xx/board-dt.c deleted +0 -19
@@ -1,19 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-only -/* -* Device Tree board file for NXP LPC18xx/43xx -* -* Copyright (C) 2015 Joachim Eastwood <[email protected]> -*/ - -#include <asm/mach/arch.h> - -static const char *const lpc18xx_43xx_compat[]__initconst = { -"nxp,lpc1850" , -"nxp,lpc4350" , -"nxp,lpc4370" , -NULL -}; - -DT_MACHINE_START (LPC18XXDT ,"NXP LPC18xx/43xx (Device Tree)" ) - .dt_compat = lpc18xx_43xx_compat, -MACHINE_END
arch/arm/mach-lpc32xx/Kconfig deleted +0 -13
@@ -1,13 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-only - -config ARCH_LPC32XX - bool "NXP LPC32XX" - depends on ARCH_MULTI_V5 - depends on CPU_LITTLE_ENDIAN - select ARM_AMBA - select CLKSRC_LPC32XX - select CPU_ARM926T - select GPIOLIB - select LPC32XX_DMAMUX if AMBA_PL08X - help - Support for the NXP LPC32XX family of processors
arch/arm/mach-lpc32xx/Makefile deleted +0 -8
@@ -1,8 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-only -# -# Makefile for the linux kernel. -# - -obj-y := common.o serial.o -obj-y += pm.o suspend.o -obj-y += phy3250.o
arch/arm/mach-lpc32xx/common.c deleted +0 -125
125 lines not on this page · raw message
arch/arm/mach-lpc32xx/common.h deleted +0 -32
@@ -1,32 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* -* arch/arm/mach-lpc32xx/common.h -* -* Author: Kevin Wells <[email protected]> -* -* Copyright (C) 2009-2010 NXP Semiconductors -*/ - -#ifndef __LPC32XX_COMMON_H -#define __LPC32XX_COMMON_H - -#include <linux/init.h> - -/* -* Other arch specific structures and functions -*/ -extern void __init lpc32xx_map_io (void ); -extern void __init lpc32xx_serial_init (void ); - -/* -* Returns the LPC32xx unique 128-bit chip ID -*/ -extern void lpc32xx_get_uid (u32 devid[4 ]); - -/* -* Pointers used for sizing and copying suspend function data -*/ -extern int lpc32xx_sys_suspend (void ); -extern int lpc32xx_sys_suspend_sz; - -#endif
arch/arm/mach-lpc32xx/lpc32xx.h deleted +0 -717
717 lines not on this page · raw message
arch/arm/mach-lpc32xx/phy3250.c deleted +0 -92
92 lines not on this page · raw message
arch/arm/mach-lpc32xx/pm.c deleted +0 -135
135 lines not on this page · raw message
arch/arm/mach-lpc32xx/serial.c deleted +0 -148
148 lines not on this page · raw message
arch/arm/mach-lpc32xx/suspend.S deleted +0 -148
148 lines not on this page · raw message
Signature · 1 line
2.43.0
[email protected]
AI reviewRe: [PATCH 08/11] ARM: mach-lpc: Remove NOMMU platform support
Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider:
Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider:
New issues:
- [High] Incorrect removal of an active MMU platform (LPC32xx) under the false premise of removing NOMMU platforms.
- [High] Incomplete Kconfig cleanup leaves dangling dependencies across the kernel, violating Kconfig subsystem rules.
Pre-existing issues:
- [High] Forcing the fallback stub for lpc32xx_return_iram() exposes a NULL pointer dereference and a zero-sized DMA allocation bug in lpc_eth.c. --
commit 19639a4680fe193e3e1ece890c77d5f80c446705
Author: Frank Li <[email protected]>
ARM: mach-lpc: Remove NOMMU platform support
Commercial users and hardware vendors migrated to Zephyr or other RTOS solutions years ago, leaving the NOMMU platform support effectively unused and unmaintained.
Remove the obsolete support to reduce maintenance burden and simplify the NXP/Freescale platform code.
Quoted 4 lines
arch/arm/Kconfig +0
-0
[ ... ]
arch/arm/Kconfig source "arch/arm/mach-ixp4xx/Kconfig" · line 405
Quoted 6 lines
arch/arm/Kconfig +0
-2@@ -401,8 +401,6 @@ source "arch/arm/mach-ixp4xx/Kconfig" source "arch/arm/mach-keystone/Kconfig" -source "arch/arm/mach-lpc32xx/Kconfig" -
[Severity: High]
Does this removal leave dangling dependencies in other subsystems?
For example, drivers/net/ethernet/nxp/Kconfig has:
depends on ARCH_LPC32XX || COMPILE_TEST
And arch/arm/Kconfig.debug has:
depends on ARCH_LPC32XX
Since this patch deletes ARCH_LPC18XX and ARCH_LPC32XX but doesn't clean up the references to them, will these become dead code that violate Kconfig subsystem rules?
Quoted 3 lines
arch/arm/Kconfig +0
-0source "arch/arm/mach-mediatek/Kconfig" source "arch/arm/mach-meson/Kconfig"
[ ... ]
Quoted 6 lines
arch/arm/mach-lpc32xx/Kconfig deleted +0
-0
arch/arm/mach-lpc32xx/Kconfig line 9
Quoted 9 lines
arch/arm/mach-lpc32xx/Kconfig deleted +0
-9@@ -1,13 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-only - -config ARCH_LPC32XX - bool "NXP LPC32XX" - depends on ARCH_MULTI_V5 - depends on CPU_LITTLE_ENDIAN - select ARM_AMBA - select CLKSRC_LPC32XX - select CPU_ARM926T
[Severity: High]
Is LPC32XX actually a NOMMU platform?
Looking at the definition being removed here, it selects CPU_ARM926T and depends on ARCH_MULTI_V5.
Since ARM926EJ-S features an MMU and runs standard Linux, does removing this under the premise of removing NOMMU platforms accidentally delete an active, MMU-equipped SoC?
[ ... ]
Quoted 5 lines
arch/arm/mach-lpc32xx/common.c deleted +0
-0
[ ... ]
arch/arm/mach-lpc32xx/common.c line 36
Quoted 3 lines
arch/arm/mach-lpc32xx/common.c deleted +0
-3-static u32 iram_size; -u32 lpc32xx_return_iram (void __iomem **mapbase,dma_addr_t *dmaaddr) -{
[Severity: High]
This is a pre-existing issue, but does removing ARCH_LPC32XX permanently expose a bug in the lpc32xx_return_iram() fallback stub?
When the platform is removed, include/linux/soc/nxp/lpc32xx-misc.h forces the use of the dummy implementation:
static inline u32 lpc32xx_return_iram(void __iomem **mapbase,
dma_addr_t *dmaaddr)
{
*mapbase = NULL;
*dmaaddr = 0;
return 0;
}This unconditionally dereferences the pointer arguments.
In drivers/net/ethernet/nxp/lpc_eth.c:lpc_eth_drv_remove(), the driver passes NULL for these arguments:
if (!use_iram_for_net(&pldat->pdev->dev) ||
pldat->dma_buff_size > lpc32xx_return_iram(NULL, NULL))Will forcing the fallback stub cause a NULL pointer dereference here?
Additionally, since the stub returns 0, lpc_eth_drv_probe() sets the buffer size to 0:
if (pldat->dma_buff_size >
lpc32xx_return_iram(&pldat->dma_buff_base_v, &dma_handle)) {
pldat->dma_buff_base_v = NULL;
pldat->dma_buff_size = 0;Could this result in a zero-sized DMA allocation being used as an array for descriptors?
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=8
PATCH 9/11 ARM: configs: lpc*: Remove NOMMU platform support
In reply to [email protected]From: Frank Li <[email protected]>
Commercial users and hardware vendors migrated to Zephyr or other RTOS solutions years ago, leaving the NOMMU platform support effectively unused and unmaintained.
Remove the obsolete support to reduce maintenance burden and simplify the NXP/Freescale platform code.
--- arch/arm/configs/lpc18xx_defconfig | 158 ------------------------------ arch/arm/configs/lpc32xx_defconfig | 192 ------------------------------------- 2 files changed, 350 deletions(-)
arch/arm/configs/lpc18xx_defconfig deleted +0 -158
@@ -1,158 +0,0 @@ -CONFIG_HIGH_RES_TIMERS=y -CONFIG_PREEMPT=y -CONFIG_BLK_DEV_INITRD=y -# CONFIG_RD_BZIP2 is not set -# CONFIG_RD_LZMA is not set -# CONFIG_RD_XZ is not set -# CONFIG_RD_LZO is not set -# CONFIG_RD_LZ4 is not set -CONFIG_CC_OPTIMIZE_FOR_SIZE=y -# CONFIG_UID16 is not set -CONFIG_BASE_SMALL=y -# CONFIG_FUTEX is not set -# CONFIG_EPOLL is not set -# CONFIG_SIGNALFD is not set -# CONFIG_EVENTFD is not set -# CONFIG_AIO is not set -CONFIG_EXPERT=y -# CONFIG_MMU is not set -CONFIG_ARCH_LPC18XX=y -CONFIG_SET_MEM_PARAM=y -CONFIG_DRAM_BASE=0x28000000 -CONFIG_DRAM_SIZE=0x02000000 -CONFIG_FLASH_MEM_BASE=0x1b000000 -CONFIG_FLASH_SIZE=0x00080000 -CONFIG_ARM_APPENDED_DTB=y -CONFIG_BINFMT_FLAT=y -CONFIG_BINFMT_ZFLAT=y -# CONFIG_COREDUMP is not set -# CONFIG_VM_EVENT_COUNTERS is not set -CONFIG_NET=y -CONFIG_PACKET=y -CONFIG_UNIX=y -CONFIG_INET=y -# CONFIG_INET_XFRM_MODE_TRANSPORT is not set -# CONFIG_INET_XFRM_MODE_TUNNEL is not set -# CONFIG_INET_XFRM_MODE_BEET is not set -# CONFIG_INET_DIAG is not set -# CONFIG_IPV6 is not set -# CONFIG_WIRELESS is not set -CONFIG_DEVTMPFS=y -CONFIG_DEVTMPFS_MOUNT=y -# CONFIG_FW_LOADER is not set -CONFIG_MTD=y -CONFIG_MTD_BLOCK=y -CONFIG_MTD_CFI=y -CONFIG_MTD_CFI_INTELEXT=y -CONFIG_MTD_CFI_AMDSTD=y -CONFIG_MTD_CFI_STAA=y -CONFIG_MTD_PHYSMAP=y -CONFIG_MTD_PHYSMAP_OF=y -CONFIG_MTD_SPI_NOR=y -# CONFIG_MTD_SPI_NOR_USE_4K_SECTORS is not set -CONFIG_SPI_NXP_SPIFI=y -CONFIG_BLK_DEV_RAM=y -CONFIG_SRAM=y -CONFIG_EEPROM_AT24=y -CONFIG_SCSI=y -CONFIG_BLK_DEV_SD=y -# CONFIG_BLK_DEV_BSG is not set -# CONFIG_SCSI_LOWLEVEL is not set -CONFIG_NETDEVICES=y -# CONFIG_NET_VENDOR_ARC is not set -# CONFIG_NET_VENDOR_BROADCOM is not set -# CONFIG_NET_VENDOR_CIRRUS is not set -# CONFIG_NET_VENDOR_FARADAY is not set -# CONFIG_NET_VENDOR_HISILICON is not set -# CONFIG_NET_VENDOR_INTEL is not set -# CONFIG_NET_VENDOR_MARVELL is not set -# CONFIG_NET_VENDOR_MICREL is not set -# CONFIG_NET_VENDOR_MICROCHIP is not set -# CONFIG_NET_VENDOR_NATSEMI is not set -# CONFIG_NET_VENDOR_QUALCOMM is not set -# CONFIG_NET_VENDOR_ROCKER is not set -# CONFIG_NET_VENDOR_SAMSUNG is not set -# CONFIG_NET_VENDOR_SEEQ is not set -# CONFIG_NET_VENDOR_SMSC is not set -CONFIG_STMMAC_ETH=y -# CONFIG_NET_VENDOR_VIA is not set -# CONFIG_NET_VENDOR_WIZNET is not set -CONFIG_SMSC_PHY=y -# CONFIG_USB_NET_DRIVERS is not set -# CONFIG_WLAN is not set -CONFIG_INPUT_EVDEV=y -# CONFIG_KEYBOARD_ATKBD is not set -CONFIG_KEYBOARD_GPIO=y -CONFIG_KEYBOARD_GPIO_POLLED=y -# CONFIG_INPUT_MOUSE is not set -# CONFIG_SERIO is not set -# CONFIG_VT is not set -# CONFIG_UNIX98_PTYS is not set -# CONFIG_LEGACY_PTYS is not set -CONFIG_SERIAL_8250=y -CONFIG_SERIAL_8250_CONSOLE=y -CONFIG_SERIAL_OF_PLATFORM=y -CONFIG_SERIAL_NONSTANDARD=y -# CONFIG_HW_RANDOM is not set -CONFIG_I2C_LPC2K=y -CONFIG_SPI=y -CONFIG_SPI_PL022=y -CONFIG_GPIOLIB=y -CONFIG_GPIO_SYSFS=y -CONFIG_GPIO_74XX_MMIO=y -CONFIG_GPIO_PCF857X=y -CONFIG_SENSORS_JC42=y -CONFIG_SENSORS_LM75=y -CONFIG_WATCHDOG=y -CONFIG_LPC18XX_WATCHDOG=y -CONFIG_REGULATOR=y -CONFIG_REGULATOR_FIXED_VOLTAGE=y -CONFIG_DRM=y -CONFIG_DRM_PL111=y -CONFIG_FB_MODE_HELPERS=y -CONFIG_USB=y -CONFIG_USB_EHCI_HCD=y -CONFIG_USB_EHCI_ROOT_HUB_TT=y -CONFIG_USB_EHCI_HCD_PLATFORM=y -CONFIG_USB_STORAGE=y -CONFIG_MMC=y -CONFIG_MMC_DW=y -CONFIG_NEW_LEDS=y -CONFIG_LEDS_CLASS=y -CONFIG_LEDS_PCA9532=y -CONFIG_LEDS_PCA9532_GPIO=y -CONFIG_LEDS_GPIO=y -CONFIG_LEDS_TRIGGERS=y -CONFIG_LEDS_TRIGGER_HEARTBEAT=y -CONFIG_RTC_CLASS=y -CONFIG_RTC_DRV_LPC24XX=y -CONFIG_DMADEVICES=y -CONFIG_AMBA_PL08X=y -CONFIG_LPC18XX_DMAMUX=y -CONFIG_MEMORY=y -CONFIG_ARM_PL172_MPMC=y -CONFIG_IIO=y -CONFIG_MMA7455_I2C=y -CONFIG_LPC18XX_ADC=y -CONFIG_LPC18XX_DAC=y -CONFIG_IIO_SYSFS_TRIGGER=y -CONFIG_PWM=y -CONFIG_PWM_LPC18XX_SCT=y -CONFIG_PHY_LPC18XX_USB_OTG=y -CONFIG_NVMEM_LPC18XX_EEPROM=y -CONFIG_EXT2_FS=y -# CONFIG_FILE_LOCKING is not set -# CONFIG_DNOTIFY is not set -# CONFIG_INOTIFY_USER is not set -CONFIG_JFFS2_FS=y -# CONFIG_NETWORK_FILESYSTEMS is not set -CONFIG_PRINTK_TIME=y -# CONFIG_ENABLE_MUST_CHECK is not set -# CONFIG_DEBUG_BUGVERBOSE is not set -CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y -CONFIG_MAGIC_SYSRQ=y -CONFIG_DEBUG_FS=y -# CONFIG_SLUB_DEBUG is not set -# CONFIG_SCHED_DEBUG is not set -CONFIG_DEBUG_LL=y -CONFIG_EARLY_PRINTK=y
arch/arm/configs/lpc32xx_defconfig deleted +0 -192
192 lines not on this page · raw message
Signature · 1 line
2.43.0
[email protected]
AI reviewRe: [PATCH 09/11] ARM: configs: lpc*: Remove NOMMU platform support
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [High] The commit message incorrectly categorizes LPC32xx as a NOMMU platform, using this false premise…
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] The commit message incorrectly categorizes LPC32xx as a NOMMU platform, using this false premise to justify deleting its defconfig and support. --
commit dd95b6d6b05d88a43de62ac58a8d3da5f10168ac
Author: Frank Li <[email protected]>
ARM: configs: lpc*: Remove NOMMU platform support
This commit removes the lpc18xx and lpc32xx default configurations, justifying the removal by stating that commercial users of these NOMMU platforms have migrated to RTOS solutions.
Quoted 3 lines
Commercial users and hardware vendors migrated to Zephyr or other RTOS solutions years ago, leaving the NOMMU platform support effectively unused and unmaintained.
[ ... ]
Quoted 7 lines
arch/arm/configs/lpc32xx_defconfig deleted +0
-1@@ -1,192 +0,0 @@ -CONFIG_SYSVIPC=y
[ ... ]
arch/arm/configs/lpc32xx_defconfig line 12
Quoted 3 lines
arch/arm/configs/lpc32xx_defconfig deleted +0
-3-CONFIG_EXPERT=y -# CONFIG_ARCH_MULTI_V7 is not set -CONFIG_ARCH_LPC32XX=y
[Severity: High]
Is the commit message description accurate for LPC32xx?
While LPC18xx is a NOMMU platform, LPC32xx is based on the ARM926EJ-S processor which features a Memory Management Unit (MMU) and runs standard Linux rather than an RTOS.
Unlike lpc18xx_defconfig which explicitly unsets CONFIG_MMU, this configuration leaves CONFIG_MMU enabled by default and relies on standard Linux features like CONFIG_SYSVIPC.
Could removing an MMU-capable platform under the assumption that it is a deprecated NOMMU target bypass the proper evaluation process for standard Linux platforms?
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=9
PATCH 10/11 clk: nxp: lpc: Remove NOMMU platform support
In reply to [email protected]From: Frank Li <[email protected]>
Commercial users and hardware vendors migrated to Zephyr or other RTOS solutions years ago, leaving the NOMMU platform support effectively unused and unmaintained.
Remove the obsolete support to reduce maintenance burden and simplify the NXP/Freescale platform code.
The clock driver is highly SoC-specific and provides little opportunity for reuse on future hardware.
--- drivers/clk/Kconfig | 7 - drivers/clk/Makefile | 1 - drivers/clk/nxp/Makefile | 5 - drivers/clk/nxp/clk-lpc18xx-ccu.c | 301 ------- drivers/clk/nxp/clk-lpc18xx-cgu.c | 668 --------------- drivers/clk/nxp/clk-lpc18xx-creg.c | 225 ----- drivers/clk/nxp/clk-lpc32xx.c | 1591 ------------------------------------ 7 files changed, 2798 deletions(-)
drivers/clk/Kconfig +0 -7
@@ -367,13 +367,6 @@ config COMMON_CLK_LOONGSON2 peripherals within the SoC. Say Y here to support Loongson-2 SoC clock driver. -config COMMON_CLK_NXP - def_bool COMMON_CLK && (ARCH_LPC18XX || ARCH_LPC32XX) - select REGMAP_MMIO if ARCH_LPC32XX - select MFD_SYSCON if ARCH_LPC18XX - help - Support for clock providers on NXP platforms. - config COMMON_CLK_PALMAS tristate "Clock driver for TI Palmas devices" depends on MFD_PALMAS
drivers/clk/Makefile +0 -1
@@ -136,7 +136,6 @@ obj-y += mstar/ obj-y += mvebu/ obj-$(CONFIG_ARCH_MXS) += mxs/ obj-$(CONFIG_ARCH_MA35) += nuvoton/ -obj-$(CONFIG_COMMON_CLK_NXP) += nxp/ obj-$(CONFIG_COMMON_CLK_PISTACHIO) += pistachio/ obj-$(CONFIG_COMMON_CLK_PXA) += pxa/ obj-$(CONFIG_COMMON_CLK_QCOM) += qcom/
drivers/clk/nxp/Makefile deleted +0 -5
@@ -1,5 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-only -obj-$(CONFIG_ARCH_LPC18XX) += clk-lpc18xx-cgu.o -obj-$(CONFIG_ARCH_LPC18XX) += clk-lpc18xx-ccu.o -obj-$(CONFIG_ARCH_LPC18XX) += clk-lpc18xx-creg.o -obj-$(CONFIG_ARCH_LPC32XX) += clk-lpc32xx.o
drivers/clk/nxp/clk-lpc18xx-ccu.c deleted +0 -301
301 lines not on this page · raw message
drivers/clk/nxp/clk-lpc18xx-cgu.c deleted +0 -668
668 lines not on this page · raw message
drivers/clk/nxp/clk-lpc18xx-creg.c deleted +0 -225
225 lines not on this page · raw message
drivers/clk/nxp/clk-lpc32xx.c deleted +0 -1591
1,591 lines not on this page · raw message
Signature · 1 line
2.43.0
[email protected]
AI reviewRe: [PATCH 10/11] clk: nxp: lpc: Remove NOMMU platform support
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider: - [High] Mischaracterized platform deletion: LPC32xx is an MMU-enabled platform, not NOMMU. - [Low]…
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [High] Mischaracterized platform deletion: LPC32xx is an MMU-enabled platform, not NOMMU.
- [Low] Incomplete architecture removal leaves orphaned peripheral drivers as dead code. --
commit 6253e432d16195a0666c33f89bdf6509acf7cdf3
Author: Frank Li <[email protected]>
clk: nxp: lpc: Remove NOMMU platform support
This commit removes the NXP LPC clock drivers to reduce maintenance burden, stating that the NOMMU platform support is obsolete, unused, and unmaintained as users have migrated to other RTOS solutions.
Quoted 5 lines
clk: nxp: lpc: Remove NOMMU platform support
Commercial users and hardware vendors migrated to Zephyr or other RTOS solutions years ago, leaving the NOMMU platform support effectively unused and unmaintained.
[ ... ]
drivers/clk/nxp/Makefile line 5
Quoted 11 lines
drivers/clk/nxp/Makefile deleted +0
-5@@ -1,5 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-only -obj-$(CONFIG_ARCH_LPC18XX) += clk-lpc18xx-cgu.o -obj-$(CONFIG_ARCH_LPC18XX) += clk-lpc18xx-ccu.o -obj-$(CONFIG_ARCH_LPC18XX) += clk-lpc18xx-creg.o -obj-$(CONFIG_ARCH_LPC32XX) += clk-lpc32xx.o
[Severity: High]
Is this justification accurate for all removed platforms? The commit message states this is removing NOMMU platform support, but the LPC32xx platform uses an ARM926EJ-S core. This core features a full Memory Management Unit (MMU) and runs standard virtual-memory Linux.
Was LPC32xx swept up by mistake because it resided in the same directory as the NOMMU LPC18xx platform, or is the commit message mischaracterizing an MMU platform deletion?
[ ... ]
drivers/clk/Makefile obj-y += mstar/ · line 139
Quoted 9 lines
drivers/clk/Makefile +0
-1@@ -136,7 +136,6 @@ obj-y += mstar/ obj-y += mvebu/ obj-$(CONFIG_ARCH_MXS) += mxs/ obj-$(CONFIG_ARCH_MA35) += nuvoton/ -obj-$(CONFIG_COMMON_CLK_NXP) += nxp/
[Severity: Low]
Does this incomplete architecture removal leave orphaned peripheral drivers as dead code elsewhere in the tree?
Because the ARCH_LPC18XX and ARCH_LPC32XX Kconfig symbols have been deleted, their associated peripheral drivers (e.g., in drivers/gpio, drivers/pwm, drivers/net, drivers/iio) can now only be built when COMPILE_TEST is enabled and will never be executed. Could these peripheral drivers be removed atomically alongside the platform deletion?
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=10
PATCH 11/11 pinctrl: nxp: lpc: Remove NOMMU platform support
In reply to [email protected]From: Frank Li <[email protected]>
Commercial users and hardware vendors migrated to Zephyr or other RTOS solutions years ago, leaving the NOMMU platform support effectively unused and unmaintained.
Remove the obsolete support to reduce maintenance burden and simplify the NXP/Freescale platform code.
The pinctrl driver is highly SoC-specific and provides little opportunity for reuse on future hardware
--- drivers/pinctrl/Kconfig | 9 - drivers/pinctrl/Makefile | 1 - drivers/pinctrl/pinctrl-lpc18xx.c | 1382 ------------------------------------- 3 files changed, 1392 deletions(-)
drivers/pinctrl/Kconfig +0 -9
@@ -364,15 +364,6 @@ config PINCTRL_XWAY depends on SOC_TYPE_XWAY depends on PINCTRL_LANTIQ -config PINCTRL_LPC18XX - bool "NXP LPC18XX/43XX SCU pinctrl driver" - depends on OF && (ARCH_LPC18XX || COMPILE_TEST) - default ARCH_LPC18XX - select PINMUX - select GENERIC_PINCONF - help - Pinctrl driver for NXP LPC18xx/43xx System Control Unit (SCU). - config PINCTRL_MAX7360 tristate "MAX7360 Pincontrol support" depends on MFD_MAX7360
drivers/pinctrl/Makefile +0 -1
@@ -38,7 +38,6 @@ obj-$(CONFIG_PINCTRL_LANTIQ) += pinctrl-lantiq.o obj-$(CONFIG_PINCTRL_FALCON) += pinctrl-falcon.o obj-$(CONFIG_PINCTRL_LOONGSON2) += pinctrl-loongson2.o obj-$(CONFIG_PINCTRL_XWAY) += pinctrl-xway.o -obj-$(CONFIG_PINCTRL_LPC18XX) += pinctrl-lpc18xx.o obj-$(CONFIG_PINCTRL_MAX7360) += pinctrl-max7360.o obj-$(CONFIG_PINCTRL_MAX77620) += pinctrl-max77620.o obj-$(CONFIG_PINCTRL_MCP23S08_I2C) += pinctrl-mcp23s08_i2c.o
drivers/pinctrl/pinctrl-lpc18xx.c deleted +0 -1382
1,382 lines not on this page · raw message
Signature · 1 line
2.43.0
Hello Frank.
Quoted 11 lines · On 6/19/26 18:40, [email protected] wrote:
Commercial users and hardware vendors migrated to Zephyr or other RTOS solutions years ago, leaving the NOMMU platform support effectively unused and unmaintained.
Remove the obsolete support to reduce maintenance burden and simplify the Freescale/nxp platform code.
Some driver code still be kept and may clean up later since it is possible reused by other SoC.
Signed-off-by Frank Li <[email protected]>
This change is a bit too early to happen, I prefer to get it orchestrated by Arnd. So, as for today I NAK the change for its NXP LPC part.
Quoted 14 lines
---
Frank Li (11):
ARM: dts: vf610m4: Remove NOMMU platform support
ARM: dts: imxrt1050: Remove NOMMU platform support
ARM: imx: Remove NOMMU platform support
clk: imx: imxrt1050: Remove NOMMU platform support
pinctrl: freescale: IMXRT: Remove NOMMU platform support
ARM:imxrt_defconfig: Remove NOMMU platform support
ARM: dts: lpc: Remove NOMMU platform support
ARM: mach-lpc: Remove NOMMU platform support
ARM: configs: lpc*: Remove NOMMU platform support
clk: nxp: lpc: Remove NOMMU platform support
pinctrl: nxp: lpc: Remove NOMMU platform support
Quoted 15 lines
.../devicetree/bindings/pinctrl/fsl,imxrt1050.yaml | 79 - .../devicetree/bindings/pinctrl/fsl,imxrt1170.yaml | 77 - arch/arm/Kconfig | 12 - arch/arm/Makefile | 2 - arch/arm/boot/dts/nxp/Makefile | 1 - arch/arm/boot/dts/nxp/imx/Makefile | 2 - arch/arm/boot/dts/nxp/imx/imxrt1050-evk.dts | 72 - arch/arm/boot/dts/nxp/imx/imxrt1050-pinfunc.h | 993 ------------ arch/arm/boot/dts/nxp/imx/imxrt1050.dtsi | 160 -- arch/arm/boot/dts/nxp/imx/imxrt1170-pinfunc.h | 1561 ------------------- arch/arm/boot/dts/nxp/lpc/Makefile | 9 - arch/arm/boot/dts/nxp/lpc/lpc18xx.dtsi | 543 ------- arch/arm/boot/dts/nxp/lpc/lpc3250-ea3250.dts | 273 ---- arch/arm/boot/dts/nxp/lpc/lpc3250-phy3250.dts | 236 --- arch/arm/boot/dts/nxp/lpc/lpc32xx.dtsi | 540 -------
NXP LPC32xx is ARMv5 and it has MMU, hence it's plainly out of scope of the proposed "dropping NOMMU platform support".
Signature · 2 lines
Best wishes, Vladimir
Quoted 10 lines · Vladimir Zapolskiy
Quoted 9 lines · On 6/19/26 18:40, [email protected] wrote:
Commercial users and hardware vendors migrated to Zephyr or other RTOS solutions years ago, leaving the NOMMU platform support effectively unused and unmaintained.
Remove the obsolete support to reduce maintenance burden and simplify the Freescale/nxp platform code.
Some driver code still be kept and may clean up later since it is possible reused by other SoC.
Thanks a lot for going through these already!
Quoted 4 lines
Quoted 1 line
Signed-off-by Frank Li <[email protected]>This change is a bit too early to happen, I prefer to get it orchestrated by Arnd. So, as for today I NAK the change for its NXP LPC part.
I am planning to post a series of deprecation notices for platforms that I would like to remove for one reason or another. Since it's only one more merge before the next (S)LTS kernel, my idea was to post the series once v7.2-rc1 is out, merge it into 7.3-LTS and remove the deprecated code early next year once the LTS release is announced.
I have rebased uploaded my current draft to
https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git/log/?h=rfc-arm-deprecation-7.2
None of those are finalized of course, and we can do any part of it earlier or later (or not at all) if there is a good reason.
If you to remove the vf610m4/imx7d-cm4/lpc43xx/lpc18xx portions earlier, that is definitely fine with me. For imxrt1050, there a slightly higher chance that this is still used, so I would prefer to wait for the LTS kernel on that one.
Quoted 14 lines
Quoted 4 lines
Frank Li (11):
ARM: dts: vf610m4: Remove NOMMU platform support
ARM: dts: imxrt1050: Remove NOMMU platform support
ARM: imx: Remove NOMMU platform supportQuoted 8 lines
clk: imx: imxrt1050: Remove NOMMU platform support
pinctrl: freescale: IMXRT: Remove NOMMU platform support
ARM:imxrt_defconfig: Remove NOMMU platform support
ARM: dts: lpc: Remove NOMMU platform support
ARM: mach-lpc: Remove NOMMU platform support
ARM: configs: lpc*: Remove NOMMU platform support
clk: nxp: lpc: Remove NOMMU platform support
pinctrl: nxp: lpc: Remove NOMMU platform support
Quoted 2 lines
NXP LPC32xx is ARMv5 and it has MMU, hence it's plainly out of scope of the proposed "dropping NOMMU platform support".
Agreed. There are a few more platforms with MMU that I would like to drop because they were never converted to devicetree support, but there is nothing wrong with lpc32xx.
Arnd