From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.142.180.65 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796244969; b=FyV9GZTZOIMyWTmEM43tDzc4DEbMjnqoTOjBDXdGDx/Igwq6MP350axr5hhAte1EpWgQ k/h+ozbsh673Rs0OuZwR6g/FDZQo+tkyhuDZyQGD+s6s9vHvKYfMzPsdBUOI7hF1Y7rI6 V0rkCnjLl++jnPfvcK7PETtl3i5/GSmIXAbYzx+MMGt71Z8KCzmMgI181tbkbc7M1QcSN SvGpIJJOikiq2L7WfMS/sboNf8dFCARsz7ofKxizgXV/UAMjbTNPw/Cx9xh9Fce7Krah/ Bo+6Vcb1d++Zf/a52CDlDm5pEzz0xrEZqIs0SpSi2Rf8OkD+6MvPBCWG1LL4YT5L/Yg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796244969; h=DMARC-Filter:Received:Date:From:To:Subject:Message-ID:MIME-Version: Content-Type:Content-Disposition; bh=nYFXfJRpD1xe/ouz2XeaM7CMkJdhKS/TwmnEW5GYSdQ=; b=Jcegp9J/gUxT71WhYhRiTO8h4/53ts1KiBOh/lOxWOPhGtXpRjEQ9fFgHHo8iPBkhXD3 YJMHLXLN3GE2Fytz8ex+Is3xw2sjz6g83yP0FzorKu5AVts5kVqCLRZw6Gg/+X+hZ2oUi rmdBa5jKsXl1DWVVLXOlQAtnngEq/270GNnVtdNZAR3p9vU4P1RiuZ8D6Zy7aXuM/0PPd tResajAsT5HW4IQdnZyh7rUWhdpXt6pGNRcd9tue2T9hVYSb3HkmJjnRzuBRKSjPCs0I0 8dLYFC6Am3L2euMqYWKx72RY8XNb3xNDwCsTwmdykp6IYvCOY8cD7q4UzYArjQNh01A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=makrotopia.org; spf=pass smtp.mailfrom=makrotopia.org; arc=none smtp.remote-ip=185.142.180.65 Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 31FD8606A322; Wed, 2 Dec 2026 20:56:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 31FD8606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=makrotopia.org Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256:X25519MLKEM768) (Exim 4.100.1) (envelope-from ) id 1xYpll-000000004XZ-0OnQ; Wed, 02 Dec 2026 20:55:49 +0000 Date: Wed, 2 Dec 2026 20:55:45 +0000 From: Daniel Golle To: Greg Kroah-Hartman , Jiri Slaby , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Daniel Lezcano , Thomas Gleixner , Daniel Golle , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Stephen Boyd , Brian Masney , Jerome Brunet , Kees Cook , John Crispin , Songjun Wu , Yi xin Zhu , Rahul Tanwar , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH 0/6] x86: Initial support for MaxLinear Lightning Mountain Message-ID: X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline The MaxLinear (formerly Intel) Lightning Mountain SoCs, such as the URX641, are network processors built around Atom Airmont cores. They have no ACPI and no BIOS or UEFI: a U-Boot based boot loader passes a device tree to the kernel. Drivers for several of their peripherals have been in the tree for years (clk-lgm, reset-intel-gw, the Lantiq ASC UART, pinctrl-equilibrium, ...), while the tree has no device tree for any board using them. This series adds what is needed to boot the MxL25641-HDK-6 reference board (URX641, two cores) into a shell on the serial console: - clk-lgm probes with a clock controller node which follows its binding, which only allows the "intel,cgu-lgm" compatible - the "intel,lgm-asc" compatible, matched by the ASC driver, is documented - the HPET binding is converted to DT schema, so that the new device tree passes dtbs_check without warnings - root node compatibles, a platform Kconfig option and the device trees themselves, in arch/x86/boot/dts The x86 device tree code already sets up the local APIC, the I/O APIC, the HPET and the secondary CPU from this device tree, no change is needed there. Booting: the vendor U-Boot (2022.01-MXL) starts a bzImage with the standard boot protocol and passes the device tree as SETUP_DTB: tftpboot 0x8000000 mxl25641-hdk-6.dtb tftpboot 0x8200000 bzImage setenv fdtaddr 0x8000000 setenv bootargs mem=4G zboot 0x8200000 mem=4G is required with this boot loader, its e820 map reports RAM from 4 GiB to 17 GiB which the board does not have. The console is taken from stdout-path. Tested on a MxL25641-HDK-6 on top of next-20261127: boots into a busybox shell from an initramfs with both CPUs online, serial console input and output work, reboot resets the board through the RCU restart handler. dt_binding_check and dtbs_check are clean for the touched bindings and the new device tree. Known limitations, to be addressed separately: - a panic or emergency restart hangs, as native_machine_emergency_restart() never reaches the restart handler of the reset controller - the kernel probes for a CMOS RTC which the SoC does not have, which costs about a second during boot Tool use: An LLM coding assistant (Claude Code) was used to find out which of our downstream changes mainline still needs for a console boot, by booting unmodified linux-next on the board and analysing the failures, and it drafted the patches and changelogs of this series. I personally review every line of code before submission, and test manually on the hardware, then add my SoB. LLM is producing drafts queued for human review and submission. Daniel Golle (6): clk: mxl: Look up the CGU regmap by device node dt-bindings: serial: lantiq,asc: Add Lightning Mountain dt-bindings: timer: Convert intel,ce4100-hpet to DT schema dt-bindings: x86: Document MaxLinear Lightning Mountain x86/platform: Add MaxLinear Lightning Mountain SoC option x86/dts: Add MaxLinear MxL25641-HDK-6 board .../bindings/serial/lantiq,asc.yaml | 46 ++++++++-- .../bindings/timer/intel,ce4100-hpet.yaml | 37 ++++++++ .../devicetree/bindings/x86/maxlinear.yaml | 29 +++++++ .../devicetree/bindings/x86/timer.txt | 6 -- MAINTAINERS | 6 ++ arch/x86/Kconfig | 16 ++++ arch/x86/boot/dts/Makefile | 2 + arch/x86/boot/dts/maxlinear/Makefile | 2 + .../dts/maxlinear/lightning-mountain.dtsi | 87 +++++++++++++++++++ .../x86/boot/dts/maxlinear/mxl25641-hdk-6.dts | 26 ++++++ arch/x86/boot/dts/maxlinear/urx641.dtsi | 13 +++ drivers/clk/x86/clk-lgm.c | 2 +- 12 files changed, 257 insertions(+), 15 deletions(-) create mode 100644 Documentation/devicetree/bindings/timer/intel,ce4100-hpet.yaml create mode 100644 Documentation/devicetree/bindings/x86/maxlinear.yaml delete mode 100644 Documentation/devicetree/bindings/x86/timer.txt create mode 100644 arch/x86/boot/dts/Makefile create mode 100644 arch/x86/boot/dts/maxlinear/Makefile create mode 100644 arch/x86/boot/dts/maxlinear/lightning-mountain.dtsi create mode 100644 arch/x86/boot/dts/maxlinear/mxl25641-hdk-6.dts create mode 100644 arch/x86/boot/dts/maxlinear/urx641.dtsi base-commit: e5aad2bdbbee783611d32599f89cea3f12f9593d -- 2.56.1