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=1796245133; b=pnuw8JNbbOxDN3GZGtDUsEFovdzU4ASu17DGdjyUoIDA3V6oqA7V5YXOgBAVuomHT6js i1io4LnFDw+757LkR+jpXYIG6XRMzQnEQ4DB9y83KvCRiBpyz6ckA3ePamHk95iHIU5hh qC2w7SEfJ2DrhWA1zX+LZmRHPKgpnONy0hkrRh1I5xwwCcuQObyDdSmQwjLUshLK8sX2N +g0ptdBi0XFIDpVK7/VJmj5GTGEeaw0Z1KUowjFKoVKeSZmKRevRr0LQl14vnllIIamHr vRCZ8GvzORfDmSAL/vx0CLOt6lwGPeVX4GwwUOHCustgoe1/GIUh67BwIiHR9jfwTLg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796245133; h=DMARC-Filter:Received:Date:From:To:Subject:Message-ID:References: MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=L3jsiUG+6X2Qxo5Cx7MoK1QzXTsv+IOBoU1r6NrtjQk=; b=fD2XNqhSgf8IX8BpzA+x55Yumfq8FnUAPqmnMXrRlLvaVhx0Jg4Lz3lKh1Io1jgAU+if avHXgjuBl/FlmgfuOhEUOs3RjeDxUMaV1WKi02F0pSWGELSm8rSvES8piODh3tdupOFPQ gstk9XLKN77jEPHtYNyGaGPm2xtrJXSRVGAv7kIhtDmToZ1pYICDHnWbNlFaIuS8Up3O4 5olNPaW2Z/B+KtAJLorcAWT/kJ19c+WtBJ5uJVUwKt699TNWiN5NaObmJpWGUJKpxKmy3 26lARkZMzQodppLz9bwNzf6GeRi4z3akUIvm9iIMUAZMgZAGGuimB0xW3uKGfEmoAgw== 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 BA466606A322; Wed, 2 Dec 2026 20:58:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org BA466606A322 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 1xYpod-000000004de-2yJU; Wed, 02 Dec 2026 20:58:47 +0000 Date: Wed, 2 Dec 2026 20:58:44 +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 6/6] x86/dts: Add MaxLinear MxL25641-HDK-6 board Message-ID: <3e045651bcb25b2852aa8703e94fd55fb0ebec95.1796234065.git.daniel@makrotopia.org> References: X-Mailing-List: linux-kernel@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 In-Reply-To: Add device trees for the Lightning Mountain SoC family, its two-core member URX641 and the MxL25641-HDK-6 reference board. They describe what is needed to reach a shell on the serial console: the CPUs, the local and I/O APIC, the HPET, the clock and reset controllers and the ASC UART. The device trees are placed in arch/x86/boot/dts, where the dtbs, dtbs_check and dtbs_install targets of the top level Makefile find them. The e820 map of the vendor boot loader reports RAM above 4 GiB which the board lacks, so mem=4G has to be passed on the kernel command line. Signed-off-by: Daniel Golle --- MAINTAINERS | 1 + 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 +++ 6 files changed, 131 insertions(+) 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 diff --git a/MAINTAINERS b/MAINTAINERS index aaededbe26f0f..7f8a6175334cf 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -16730,6 +16730,7 @@ MAXLINEAR LIGHTNING MOUNTAIN SOC SUPPORT M: Daniel Golle S: Maintained F: Documentation/devicetree/bindings/x86/maxlinear.yaml +F: arch/x86/boot/dts/maxlinear/ MAXLINEAR MXL862XX SWITCH DRIVER M: Daniel Golle diff --git a/arch/x86/boot/dts/Makefile b/arch/x86/boot/dts/Makefile new file mode 100644 index 0000000000000..d1ff013a06201 --- /dev/null +++ b/arch/x86/boot/dts/Makefile @@ -0,0 +1,2 @@ +# SPDX-License-Identifier: GPL-2.0 +subdir-y += maxlinear diff --git a/arch/x86/boot/dts/maxlinear/Makefile b/arch/x86/boot/dts/maxlinear/Makefile new file mode 100644 index 0000000000000..e4e8d079e4374 --- /dev/null +++ b/arch/x86/boot/dts/maxlinear/Makefile @@ -0,0 +1,2 @@ +# SPDX-License-Identifier: GPL-2.0 +dtb-$(CONFIG_X86_MAXLINEAR_LGM) += mxl25641-hdk-6.dtb diff --git a/arch/x86/boot/dts/maxlinear/lightning-mountain.dtsi b/arch/x86/boot/dts/maxlinear/lightning-mountain.dtsi new file mode 100644 index 0000000000000..fd430456c1c8e --- /dev/null +++ b/arch/x86/boot/dts/maxlinear/lightning-mountain.dtsi @@ -0,0 +1,87 @@ +// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +/* + * Copyright (C) 2026 Daniel Golle + */ + +#include + +/ { + #address-cells = <1>; + #size-cells = <1>; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + cpu0: cpu@0 { + device_type = "cpu"; + reg = <0x0>; + }; + + cpu1: cpu@2 { + device_type = "cpu"; + reg = <0x2>; + }; + + cpu2: cpu@8 { + device_type = "cpu"; + reg = <0x8>; + }; + + cpu3: cpu@a { + device_type = "cpu"; + reg = <0xa>; + }; + }; + + soc { + compatible = "simple-bus"; + ranges; + #address-cells = <1>; + #size-cells = <1>; + interrupt-parent = <&ioapic>; + + rcu: reset-controller@e0000000 { + compatible = "intel,rcu-lgm"; + reg = <0xe0000000 0x20000>; + #reset-cells = <2>; + intel,global-reset = <0x10 30>; + }; + + cgu: clock-controller@e0200000 { + compatible = "intel,cgu-lgm"; + reg = <0xe0200000 0x33c>; + #clock-cells = <1>; + }; + + asc0: serial@e0a00000 { + compatible = "intel,lgm-asc"; + reg = <0xe0a00000 0x1000>; + interrupts = <128 1>; + clocks = <&cgu LGM_CLK_NOC4>, <&cgu LGM_GCLK_ASC0>; + clock-names = "freq", "asc"; + + status = "disabled"; + }; + + ioapic: interrupt-controller@fec00000 { + compatible = "intel,ce4100-ioapic"; + reg = <0xfec00000 0x1000>; + interrupt-controller; + #interrupt-cells = <2>; + }; + + hpet: timer@fed00000 { + compatible = "intel,ce4100-hpet"; + reg = <0xfed00000 0x400>; + }; + + lapic: interrupt-controller@fee00000 { + compatible = "intel,ce4100-lapic"; + reg = <0xfee00000 0x1000>; + interrupt-controller; + #interrupt-cells = <2>; + intel,virtual-wire-mode; + }; + }; +}; diff --git a/arch/x86/boot/dts/maxlinear/mxl25641-hdk-6.dts b/arch/x86/boot/dts/maxlinear/mxl25641-hdk-6.dts new file mode 100644 index 0000000000000..16be62aa28357 --- /dev/null +++ b/arch/x86/boot/dts/maxlinear/mxl25641-hdk-6.dts @@ -0,0 +1,26 @@ +// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +/* + * Copyright (C) 2026 Daniel Golle + */ + +/dts-v1/; + +#include "urx641.dtsi" + +/ { + model = "MaxLinear MxL25641-HDK-6"; + compatible = "maxlinear,mxl25641-hdk-6", "maxlinear,urx641", + "intel,lgm"; + + aliases { + serial0 = &asc0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; +}; + +&asc0 { + status = "okay"; +}; diff --git a/arch/x86/boot/dts/maxlinear/urx641.dtsi b/arch/x86/boot/dts/maxlinear/urx641.dtsi new file mode 100644 index 0000000000000..9897e1fdbc2d8 --- /dev/null +++ b/arch/x86/boot/dts/maxlinear/urx641.dtsi @@ -0,0 +1,13 @@ +// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +/* + * Copyright (C) 2026 Daniel Golle + */ + +#include "lightning-mountain.dtsi" + +/ { + cpus { + /delete-node/ cpu@8; + /delete-node/ cpu@a; + }; +}; -- 2.56.1