From: Daniel Golle <daniel@makrotopia.org>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Jiri Slaby <jirislaby@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Daniel Lezcano <daniel.lezcano@kernel.org>,
Thomas Gleixner <tglx@kernel.org>,
Daniel Golle <daniel@makrotopia.org>,
Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
Dave Hansen <dave.hansen@linux.intel.com>,
x86@kernel.org, "H. Peter Anvin" <hpa@zytor.com>,
Stephen Boyd <sboyd@kernel.org>,
Brian Masney <bmasney+clk@redhat.com>,
Jerome Brunet <jbrunet+clk@baylibre.com>,
Kees Cook <kees+treewide@kernel.org>,
John Crispin <john@phrozen.org>,
Songjun Wu <songjun.wu@linux.intel.com>,
Yi xin Zhu <yzhu@maxlinear.com>,
Rahul Tanwar <rtanwar@maxlinear.com>,
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
Date: Wed, 2 Dec 2026 20:55:45 +0000 [thread overview]
Message-ID: <cover.1796234065.git.daniel@makrotopia.org> (raw)
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
next reply other threads:[~2026-12-02 20:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 20:55 Daniel Golle [this message]
2026-12-02 20:56 ` [PATCH 1/6] clk: mxl: Look up the CGU regmap by device node Daniel Golle
2026-12-02 20:56 ` [PATCH 2/6] dt-bindings: serial: lantiq,asc: Add Lightning Mountain Daniel Golle
2026-12-02 21:01 ` sashiko-bot
2026-12-02 20:56 ` [PATCH 3/6] dt-bindings: timer: Convert intel,ce4100-hpet to DT schema Daniel Golle
2026-12-02 20:57 ` [PATCH 4/6] dt-bindings: x86: Document MaxLinear Lightning Mountain Daniel Golle
2026-12-02 20:57 ` [PATCH 5/6] x86/platform: Add MaxLinear Lightning Mountain SoC option Daniel Golle
2026-12-02 20:58 ` [PATCH 6/6] x86/dts: Add MaxLinear MxL25641-HDK-6 board Daniel Golle
2026-12-02 21:03 ` [PATCH 0/6] x86: Initial support for MaxLinear Lightning Mountain sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1796234065.git.daniel@makrotopia.org \
--to=daniel@makrotopia.org \
--cc=bmasney+clk@redhat.com \
--cc=bp@alien8.de \
--cc=conor+dt@kernel.org \
--cc=daniel.lezcano@kernel.org \
--cc=dave.hansen@linux.intel.com \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=hpa@zytor.com \
--cc=jbrunet+clk@baylibre.com \
--cc=jirislaby@kernel.org \
--cc=john@phrozen.org \
--cc=kees+treewide@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=robh@kernel.org \
--cc=rtanwar@maxlinear.com \
--cc=sboyd@kernel.org \
--cc=songjun.wu@linux.intel.com \
--cc=tglx@kernel.org \
--cc=x86@kernel.org \
--cc=yzhu@maxlinear.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox