Linux Serial subsystem development
 help / color / mirror / Atom feed
* [PATCH 1/6] clk: mxl: Look up the CGU regmap by device node
       [not found] <cover.1796234065.git.daniel@makrotopia.org>
@ 2026-12-02 20:56 ` Daniel Golle
  2026-12-02 20:56 ` [PATCH 2/6] dt-bindings: serial: lantiq,asc: Add Lightning Mountain Daniel Golle
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 19+ messages in thread
From: Daniel Golle @ 2026-12-02 20:56 UTC (permalink / raw)
  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, H. Peter Anvin,
	Stephen Boyd, Brian Masney, Jerome Brunet, Kees Cook,
	John Crispin, Songjun Wu, Yi xin Zhu, Rahul Tanwar, linux-kernel,
	linux-serial, devicetree, linux-clk

The CGU binding defines "intel,cgu-lgm" as the only compatible of the
clock controller node. syscon_node_to_regmap() creates a regmap only for
nodes which also carry the "syscon" compatible and fails for all others,
with -EPROBE_DEFER since commit b73d5593bfde ("mfd: syscon: Return
-EPROBE_DEFER if the syscon is not found"). The driver hence never
probes with a device tree which follows the binding, and the consumers
of its clocks, the console UART included, never probe either.

Use device_node_to_regmap(), which creates the regmap for the node of
the clock controller itself.

Fixes: 036177310bac ("clk: mxl: Switch from direct readl/writel based IO to regmap based IO")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
---
 drivers/clk/x86/clk-lgm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/x86/clk-lgm.c b/drivers/clk/x86/clk-lgm.c
index e3cad72431c3d..7d3c59437d963 100644
--- a/drivers/clk/x86/clk-lgm.c
+++ b/drivers/clk/x86/clk-lgm.c
@@ -434,7 +434,7 @@ static int lgm_cgu_probe(struct platform_device *pdev)
 
 	ctx->clk_data.num = CLK_NR_CLKS;
 
-	ctx->membase = syscon_node_to_regmap(np);
+	ctx->membase = device_node_to_regmap(np);
 	if (IS_ERR(ctx->membase)) {
 		dev_err(dev, "Failed to get clk CGU iomem\n");
 		return PTR_ERR(ctx->membase);
-- 
2.56.1

^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH 2/6] dt-bindings: serial: lantiq,asc: Add Lightning Mountain
       [not found] <cover.1796234065.git.daniel@makrotopia.org>
  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 ` 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
                   ` (6 subsequent siblings)
  8 siblings, 1 reply; 19+ messages in thread
From: Daniel Golle @ 2026-12-02 20:56 UTC (permalink / raw)
  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, H. Peter Anvin,
	Stephen Boyd, Brian Masney, Jerome Brunet, Kees Cook,
	John Crispin, Songjun Wu, Yi xin Zhu, Rahul Tanwar, linux-kernel,
	linux-serial, devicetree, linux-clk

The ASC of the Intel (now MaxLinear) Lightning Mountain SoC is matched
by the driver as "intel,lgm-asc". It signals TX, RX and errors through a
single interrupt and takes its frequency and gate clocks from the CGU.

Add the compatible, describe its single interrupt and require the
clocks for it.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
---
 .../bindings/serial/lantiq,asc.yaml           | 46 +++++++++++++++----
 1 file changed, 38 insertions(+), 8 deletions(-)

diff --git a/Documentation/devicetree/bindings/serial/lantiq,asc.yaml b/Documentation/devicetree/bindings/serial/lantiq,asc.yaml
index 96e8c79cb0478..1a7a6f8dfa104 100644
--- a/Documentation/devicetree/bindings/serial/lantiq,asc.yaml
+++ b/Documentation/devicetree/bindings/serial/lantiq,asc.yaml
@@ -10,21 +10,18 @@ maintainers:
   - John Crispin <john@phrozen.org>
   - Songjun Wu <songjun.wu@linux.intel.com>
 
-allOf:
-  - $ref: /schemas/serial/serial.yaml#
-
 properties:
   compatible:
-    const: lantiq,asc
+    enum:
+      - intel,lgm-asc
+      - lantiq,asc
 
   reg:
     maxItems: 1
 
   interrupts:
-    items:
-      - description: TX interrupt
-      - description: RX interrupt
-      - description: Error interrupt
+    minItems: 1
+    maxItems: 3
 
   clocks:
     items:
@@ -41,6 +38,29 @@ required:
   - reg
   - interrupts
 
+allOf:
+  - $ref: /schemas/serial/serial.yaml#
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: intel,lgm-asc
+    then:
+      properties:
+        interrupts:
+          items:
+            - description: Combined TX, RX and error interrupt
+      required:
+        - clocks
+        - clock-names
+    else:
+      properties:
+        interrupts:
+          items:
+            - description: TX interrupt
+            - description: RX interrupt
+            - description: Error interrupt
+
 unevaluatedProperties: false
 
 examples:
@@ -54,3 +74,13 @@ examples:
                      <GIC_SHARED 105 IRQ_TYPE_LEVEL_HIGH>,
                      <GIC_SHARED 106 IRQ_TYPE_LEVEL_HIGH>;
     };
+  - |
+    #include <dt-bindings/clock/intel,lgm-clk.h>
+
+    serial@e0a00000 {
+        compatible = "intel,lgm-asc";
+        reg = <0xe0a00000 0x1000>;
+        interrupts = <128 1>;
+        clocks = <&cgu0 LGM_CLK_NOC4>, <&cgu0 LGM_GCLK_ASC0>;
+        clock-names = "freq", "asc";
+    };
-- 
2.56.1

^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH 3/6] dt-bindings: timer: Convert intel,ce4100-hpet to DT schema
       [not found] <cover.1796234065.git.daniel@makrotopia.org>
  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 20:56 ` Daniel Golle
  2026-12-02 20:57 ` [PATCH 4/6] dt-bindings: x86: Document MaxLinear Lightning Mountain Daniel Golle
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 19+ messages in thread
From: Daniel Golle @ 2026-12-02 20:56 UTC (permalink / raw)
  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, H. Peter Anvin,
	Stephen Boyd, Brian Masney, Jerome Brunet, Kees Cook,
	John Crispin, Songjun Wu, Yi xin Zhu, Rahul Tanwar, linux-kernel,
	linux-serial, devicetree, linux-clk

Convert the binding of the HPET found in device tree described Intel
SoCs to DT schema, so that device trees using it can be validated. The
reg property, which the kernel reads to find the timer, becomes
required.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
---
 .../bindings/timer/intel,ce4100-hpet.yaml     | 37 +++++++++++++++++++
 .../devicetree/bindings/x86/timer.txt         |  6 ---
 2 files changed, 37 insertions(+), 6 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/timer/intel,ce4100-hpet.yaml
 delete mode 100644 Documentation/devicetree/bindings/x86/timer.txt

diff --git a/Documentation/devicetree/bindings/timer/intel,ce4100-hpet.yaml b/Documentation/devicetree/bindings/timer/intel,ce4100-hpet.yaml
new file mode 100644
index 0000000000000..bc89703ceb8f3
--- /dev/null
+++ b/Documentation/devicetree/bindings/timer/intel,ce4100-hpet.yaml
@@ -0,0 +1,37 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/timer/intel,ce4100-hpet.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Intel High Precision Event Timer (HPET)
+
+maintainers:
+  - Daniel Golle <daniel@makrotopia.org>
+
+description:
+  The HPET of Intel SoCs which are described by a device tree. Like other
+  generic devices of these SoCs it carries the ce4100 name in its compatible
+  because it first appeared in the CE4100 SoC.
+
+properties:
+  compatible:
+    const: intel,ce4100-hpet
+
+  reg:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    timer@fed00000 {
+        compatible = "intel,ce4100-hpet";
+        reg = <0xfed00000 0x200>;
+    };
+
+...
diff --git a/Documentation/devicetree/bindings/x86/timer.txt b/Documentation/devicetree/bindings/x86/timer.txt
deleted file mode 100644
index c688af58e3bdb..0000000000000
--- a/Documentation/devicetree/bindings/x86/timer.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-Timers
-------
-
-* High Precision Event Timer (HPET)
-  Required property:
-     compatible = "intel,ce4100-hpet";
-- 
2.56.1

^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH 4/6] dt-bindings: x86: Document MaxLinear Lightning Mountain
       [not found] <cover.1796234065.git.daniel@makrotopia.org>
                   ` (2 preceding siblings ...)
  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 ` Daniel Golle
  2026-12-02 20:57 ` [PATCH 5/6] x86/platform: Add MaxLinear Lightning Mountain SoC option Daniel Golle
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 19+ messages in thread
From: Daniel Golle @ 2026-12-02 20:57 UTC (permalink / raw)
  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, H. Peter Anvin,
	Stephen Boyd, Brian Masney, Jerome Brunet, Kees Cook,
	John Crispin, Songjun Wu, Yi xin Zhu, Rahul Tanwar, linux-kernel,
	linux-serial, devicetree, linux-clk

The MaxLinear (formerly Intel) Lightning Mountain SoCs are x86 based
network processors without ACPI, their boot loader passes a device tree
to the kernel.

Document the root node compatibles of the URX641 SoC and of the
MxL25641-HDK-6 reference board built around it.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
---
 .../devicetree/bindings/x86/maxlinear.yaml    | 29 +++++++++++++++++++
 MAINTAINERS                                   |  5 ++++
 2 files changed, 34 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/x86/maxlinear.yaml

diff --git a/Documentation/devicetree/bindings/x86/maxlinear.yaml b/Documentation/devicetree/bindings/x86/maxlinear.yaml
new file mode 100644
index 0000000000000..7031ac1cdbff2
--- /dev/null
+++ b/Documentation/devicetree/bindings/x86/maxlinear.yaml
@@ -0,0 +1,29 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/x86/maxlinear.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: MaxLinear Lightning Mountain SoC based Platforms
+
+maintainers:
+  - Daniel Golle <daniel@makrotopia.org>
+
+description:
+  Boards with a SoC of the x86 based MaxLinear (formerly Intel) Lightning
+  Mountain family shall have the following properties.
+
+properties:
+  $nodename:
+    const: '/'
+  compatible:
+    oneOf:
+      - items:
+          - enum:
+              - maxlinear,mxl25641-hdk-6
+          - const: maxlinear,urx641
+          - const: intel,lgm
+
+additionalProperties: true
+
+...
diff --git a/MAINTAINERS b/MAINTAINERS
index f2670f0547b2e..aaededbe26f0f 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -16726,6 +16726,11 @@ S:	Supported
 F:	drivers/net/phy/mxl-86110.c
 F:	drivers/net/phy/mxl-gpy.c
 
+MAXLINEAR LIGHTNING MOUNTAIN SOC SUPPORT
+M:	Daniel Golle <daniel@makrotopia.org>
+S:	Maintained
+F:	Documentation/devicetree/bindings/x86/maxlinear.yaml
+
 MAXLINEAR MXL862XX SWITCH DRIVER
 M:	Daniel Golle <daniel@makrotopia.org>
 L:	netdev@vger.kernel.org
-- 
2.56.1

^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH 5/6] x86/platform: Add MaxLinear Lightning Mountain SoC option
       [not found] <cover.1796234065.git.daniel@makrotopia.org>
                   ` (3 preceding siblings ...)
  2026-12-02 20:57 ` [PATCH 4/6] dt-bindings: x86: Document MaxLinear Lightning Mountain Daniel Golle
@ 2026-12-02 20:57 ` Daniel Golle
  2026-12-02 20:58 ` [PATCH 6/6] x86/dts: Add MaxLinear MxL25641-HDK-6 board Daniel Golle
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 19+ messages in thread
From: Daniel Golle @ 2026-12-02 20:57 UTC (permalink / raw)
  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, H. Peter Anvin,
	Stephen Boyd, Brian Masney, Jerome Brunet, Kees Cook,
	John Crispin, Songjun Wu, Yi xin Zhu, Rahul Tanwar, linux-kernel,
	linux-serial, devicetree, linux-clk

The MaxLinear (formerly Intel) Lightning Mountain SoC family, with the
URX641 as one member, is built around Atom Airmont cores and has no
ACPI. Its U-Boot based boot loader hands a device tree to the kernel,
from which the local APIC, the I/O APIC, the HPET and the CPUs are set
up by the existing x86 device tree code.

Add a platform option which selects device tree support, for the
device trees of boards with these SoCs to depend on.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
---
 arch/x86/Kconfig | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 289179c857333..97b396d8b1155 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -590,6 +590,7 @@ config X86_EXTENDED_PLATFORM
 		RDC R-321x SoC
 
 	  64-bit platforms (CONFIG_64BIT=y):
+		MaxLinear Lightning Mountain SoC
 		Numascale NumaChip
 		ScaleMP vSMP
 		SGI Ultraviolet
@@ -601,6 +602,21 @@ config X86_EXTENDED_PLATFORM
 
 # This is an alphabetically sorted list of 64 bit extended platforms
 # Please maintain the alphabetic order if and when there are additions
+config X86_MAXLINEAR_LGM
+	bool "MaxLinear Lightning Mountain SoC"
+	depends on X86_64
+	depends on X86_IO_APIC
+	depends on X86_EXTENDED_PLATFORM
+	select OF
+	select OF_EARLY_FLATTREE
+	help
+	  Select for the x86 based MaxLinear (formerly Intel) Lightning
+	  Mountain network processor SoC family, such as the URX641. These
+	  SoCs have no ACPI, their boot loader describes the hardware to
+	  the kernel with a device tree.
+
+	  If unsure, say N.
+
 config X86_NUMACHIP
 	bool "Numascale NumaChip"
 	depends on X86_64
-- 
2.56.1

^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH 6/6] x86/dts: Add MaxLinear MxL25641-HDK-6 board
       [not found] <cover.1796234065.git.daniel@makrotopia.org>
                   ` (4 preceding siblings ...)
  2026-12-02 20:57 ` [PATCH 5/6] x86/platform: Add MaxLinear Lightning Mountain SoC option Daniel Golle
@ 2026-12-02 20:58 ` Daniel Golle
  2026-12-02 21:03 ` [PATCH 0/6] x86: Initial support for MaxLinear Lightning Mountain sashiko-bot
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 19+ messages in thread
From: Daniel Golle @ 2026-12-02 20:58 UTC (permalink / raw)
  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, H. Peter Anvin,
	Stephen Boyd, Brian Masney, Jerome Brunet, Kees Cook,
	John Crispin, Songjun Wu, Yi xin Zhu, Rahul Tanwar, linux-kernel,
	linux-serial, devicetree, linux-clk

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 <daniel@makrotopia.org>
---
 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 <daniel@makrotopia.org>
 S:	Maintained
 F:	Documentation/devicetree/bindings/x86/maxlinear.yaml
+F:	arch/x86/boot/dts/maxlinear/
 
 MAXLINEAR MXL862XX SWITCH DRIVER
 M:	Daniel Golle <daniel@makrotopia.org>
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 <daniel@makrotopia.org>
+ */
+
+#include <dt-bindings/clock/intel,lgm-clk.h>
+
+/ {
+	#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 <daniel@makrotopia.org>
+ */
+
+/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 <daniel@makrotopia.org>
+ */
+
+#include "lightning-mountain.dtsi"
+
+/ {
+	cpus {
+		/delete-node/ cpu@8;
+		/delete-node/ cpu@a;
+	};
+};
-- 
2.56.1

^ permalink raw reply related	[flat|nested] 19+ messages in thread

* Re: [PATCH 2/6] dt-bindings: serial: lantiq,asc: Add Lightning Mountain
  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
  0 siblings, 0 replies; 19+ messages in thread
From: sashiko-bot @ 2026-12-02 21:01 UTC (permalink / raw)
  To: Daniel Golle, linux-serial, devicetree, linux-clk; +Cc: robh, conor+dt

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] dt-bindings: serial: lantiq,asc: interrupts listed before clocks
--

commit dfe99524d6819457c927271603303f61be3fd091
Author: Daniel Golle <daniel@makrotopia.org>

dt-bindings: serial: lantiq,asc: Add Lightning Mountain

This commit adds the intel,lgm-asc compatible string for the Lightning
Mountain SoC ASC serial controller, describing its single combined
interrupt and required clocks.

> diff --git a/Documentation/devicetree/bindings/serial/lantiq,asc.yaml b/Documentation/devicetree/bindings/serial/lantiq,asc.yaml
> index 96e8c79cb0478..1a7a6f8dfa104 100644
> --- a/Documentation/devicetree/bindings/serial/lantiq,asc.yaml
> +++ b/Documentation/devicetree/bindings/serial/lantiq,asc.yaml
> @@ -10,21 +10,18 @@ maintainers:
>    - John Crispin <john@phrozen.org>
>    - Songjun Wu <songjun.wu@linux.intel.com>
>  
> -allOf:
> -  - $ref: /schemas/serial/serial.yaml#
> -
>  properties:
>    compatible:
> -    const: lantiq,asc
> +    enum:
> +      - intel,lgm-asc
> +      - lantiq,asc
>  
>    reg:
>      maxItems: 1
>  
>    interrupts:
> -    items:
> -      - description: TX interrupt
> -      - description: RX interrupt
> -      - description: Error interrupt
> +    minItems: 1
> +    maxItems: 3
>  
>    clocks:
>      items:

[ ... ]

> @@ -54,3 +74,13 @@ examples:
>                       <GIC_SHARED 105 IRQ_TYPE_LEVEL_HIGH>,
>                       <GIC_SHARED 106 IRQ_TYPE_LEVEL_HIGH>;
>      };
> +  - |
> +    #include <dt-bindings/clock/intel,lgm-clk.h>
> +
> +    serial@e0a00000 {
> +        compatible = "intel,lgm-asc";
> +        reg = <0xe0a00000 0x1000>;
> +        interrupts = <128 1>;
> +        clocks = <&cgu0 LGM_CLK_NOC4>, <&cgu0 LGM_GCLK_ASC0>;
> +        clock-names = "freq", "asc";
> +    };

[Severity: Low]
In both the new serial@e0a00000 example node and the top-level properties
mapping, interrupts is listed before clocks and clock-names.  Should
interrupts be placed after clocks and clock-names to follow the standard
Device Tree property ordering (compatible, reg, clocks, clock-names,
interrupts)?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/cover.1796234065.git.daniel@makrotopia.org?part=2

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 0/6] x86: Initial support for MaxLinear Lightning Mountain
       [not found] <cover.1796234065.git.daniel@makrotopia.org>
                   ` (5 preceding siblings ...)
  2026-12-02 20:58 ` [PATCH 6/6] x86/dts: Add MaxLinear MxL25641-HDK-6 board Daniel Golle
@ 2026-12-02 21:03 ` sashiko-bot
  2026-12-03 14:39 ` Krzysztof Kozlowski
  2026-12-04 11:52 ` Andy Shevchenko
  8 siblings, 0 replies; 19+ messages in thread
From: sashiko-bot @ 2026-12-02 21:03 UTC (permalink / raw)
  To: Daniel Golle, linux-serial

Sashiko has finished reviewing this 6-patch series:

- Patches 1 and 3-6: no issues found.
- Patch 2 ("dt-bindings: serial: lantiq,asc: Add Lightning Mountain"): 1
  potential issue (1 Low)

A detailed review has been sent as a separate reply to patch 2.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/cover.1796234065.git.daniel@makrotopia.org

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 0/6] x86: Initial support for MaxLinear Lightning Mountain
       [not found] <cover.1796234065.git.daniel@makrotopia.org>
                   ` (6 preceding siblings ...)
  2026-12-02 21:03 ` [PATCH 0/6] x86: Initial support for MaxLinear Lightning Mountain sashiko-bot
@ 2026-12-03 14:39 ` Krzysztof Kozlowski
  2026-12-03 15:02   ` Dave Hansen
  2026-12-04 11:52 ` Andy Shevchenko
  8 siblings, 1 reply; 19+ messages in thread
From: Krzysztof Kozlowski @ 2026-12-03 14:39 UTC (permalink / raw)
  To: Daniel Golle, Greg Kroah-Hartman, Jiri Slaby, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Daniel Lezcano,
	Thomas Gleixner, Ingo Molnar, Borislav Petkov, Dave Hansen, x86,
	H. Peter Anvin, Stephen Boyd, Brian Masney, Jerome Brunet,
	Kees Cook, John Crispin, Songjun Wu, Yi xin Zhu, Rahul Tanwar,
	linux-kernel, linux-serial, devicetree, linux-clk, Arnd Bergmann

On 02/12/2026 21:55, Daniel Golle wrote:
> 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.

That's a DTS platform, so I propose it should be handled just like other
DTS platforms - via SoC tree. But regardless of that decision, DT
bindings rules are applicable, including clean dtbs_check.

Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 0/6] x86: Initial support for MaxLinear Lightning Mountain
  2026-12-03 14:39 ` Krzysztof Kozlowski
@ 2026-12-03 15:02   ` Dave Hansen
  2026-12-03 15:06     ` Krzysztof Kozlowski
  0 siblings, 1 reply; 19+ messages in thread
From: Dave Hansen @ 2026-12-03 15:02 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Daniel Golle, Greg Kroah-Hartman, Jiri Slaby,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Daniel Lezcano,
	Thomas Gleixner, Ingo Molnar, Borislav Petkov, Dave Hansen, x86,
	H. Peter Anvin, Stephen Boyd, Brian Masney, Jerome Brunet,
	Kees Cook, John Crispin, Songjun Wu, Yi xin Zhu, Rahul Tanwar,
	linux-kernel, linux-serial, devicetree, linux-clk, Arnd Bergmann

On 12/3/26 06:39, Krzysztof Kozlowski wrote:
> On 02/12/2026 21:55, Daniel Golle wrote:
>> 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.
> 
> That's a DTS platform, so I propose it should be handled just like other
> DTS platforms - via SoC tree. But regardless of that decision, DT
> bindings rules are applicable, including clean dtbs_check.

Do you mean the SoC being the one that funnels the code upstream? Or
does that imply a different location in the kernel tree?

I honestly don't have a strong feeling about it either way. Grepping
shows only one other existing .dts file in arch/x86 and it's from 2010,
so ancient history:

	arch/x86/platform/ce4100/falconfalls.dts

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 0/6] x86: Initial support for MaxLinear Lightning Mountain
  2026-12-03 15:02   ` Dave Hansen
@ 2026-12-03 15:06     ` Krzysztof Kozlowski
  2026-12-03 15:17       ` Dave Hansen
  0 siblings, 1 reply; 19+ messages in thread
From: Krzysztof Kozlowski @ 2026-12-03 15:06 UTC (permalink / raw)
  To: Dave Hansen, Daniel Golle, Greg Kroah-Hartman, Jiri Slaby,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Daniel Lezcano,
	Thomas Gleixner, Ingo Molnar, Borislav Petkov, Dave Hansen, x86,
	H. Peter Anvin, Stephen Boyd, Brian Masney, Jerome Brunet,
	Kees Cook, John Crispin, Songjun Wu, Yi xin Zhu, Rahul Tanwar,
	linux-kernel, linux-serial, devicetree, linux-clk, Arnd Bergmann

On 03/12/2026 16:02, Dave Hansen wrote:
> On 12/3/26 06:39, Krzysztof Kozlowski wrote:
>> On 02/12/2026 21:55, Daniel Golle wrote:
>>> 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.
>>
>> That's a DTS platform, so I propose it should be handled just like other
>> DTS platforms - via SoC tree. But regardless of that decision, DT
>> bindings rules are applicable, including clean dtbs_check.
> 
> Do you mean the SoC being the one that funnels the code upstream? Or
> does that imply a different location in the kernel tree?

The first, SoC tree handling the patches.

> 
> I honestly don't have a strong feeling about it either way. Grepping
> shows only one other existing .dts file in arch/x86 and it's from 2010,
> so ancient history:
> 
> 	arch/x86/platform/ce4100/falconfalls.dts

Thanks for pointing this - it should be moved to the same place, e.g.
arch/x86/boot/dts... or this code here should be moved to
arch/x86/platform/. The first option is however more common across
entire kernel.

Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 0/6] x86: Initial support for MaxLinear Lightning Mountain
  2026-12-03 15:06     ` Krzysztof Kozlowski
@ 2026-12-03 15:17       ` Dave Hansen
  2026-12-04 10:35         ` Arnd Bergmann
  0 siblings, 1 reply; 19+ messages in thread
From: Dave Hansen @ 2026-12-03 15:17 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Daniel Golle, Greg Kroah-Hartman, Jiri Slaby,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Daniel Lezcano,
	Thomas Gleixner, Ingo Molnar, Borislav Petkov, Dave Hansen, x86,
	H. Peter Anvin, Stephen Boyd, Brian Masney, Jerome Brunet,
	Kees Cook, John Crispin, Songjun Wu, Yi xin Zhu, Rahul Tanwar,
	linux-kernel, linux-serial, devicetree, linux-clk, Arnd Bergmann

On 12/3/26 07:06, Krzysztof Kozlowski wrote:
>> Do you mean the SoC being the one that funnels the code upstream? Or
>> does that imply a different location in the kernel tree?
> The first, SoC tree handling the patches.

I'm fine with that in principle.

>> I honestly don't have a strong feeling about it either way. Grepping
>> shows only one other existing .dts file in arch/x86 and it's from 2010,
>> so ancient history:
>>
>> 	arch/x86/platform/ce4100/falconfalls.dts
> Thanks for pointing this - it should be moved to the same place, e.g.
> arch/x86/boot/dts... or this code here should be moved to
> arch/x86/platform/. The first option is however more common across
> entire kernel.

Are we asking Daniel to move it, and then basically follow the pattern
that X86_INTEL_CE uses?

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 0/6] x86: Initial support for MaxLinear Lightning Mountain
  2026-12-03 15:17       ` Dave Hansen
@ 2026-12-04 10:35         ` Arnd Bergmann
  2026-12-04 11:46           ` Andy Shevchenko
  2026-12-04 12:02           ` Sebastian Andrzej Siewior
  0 siblings, 2 replies; 19+ messages in thread
From: Arnd Bergmann @ 2026-12-04 10:35 UTC (permalink / raw)
  To: Dave Hansen, Krzysztof Kozlowski, Daniel Golle,
	Greg Kroah-Hartman, Jiri Slaby, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Daniel Lezcano, Thomas Gleixner, Ingo Molnar,
	Borislav Petkov, Dave Hansen, x86, H. Peter Anvin, Stephen Boyd,
	Brian Masney, Jerome Brunet, Kees Cook, John Crispin, Songjun Wu,
	Yi xin Zhu, Rahul Tanwar, linux-kernel, linux-serial, devicetree,
	linux-clk, Sebastian Andrzej Siewior, Andy Shevchenko

On Thu, Dec 3, 2026, at 16:17, Dave Hansen wrote:
> On 12/3/26 07:06, Krzysztof Kozlowski wrote:
>>> I honestly don't have a strong feeling about it either way. Grepping
>>> shows only one other existing .dts file in arch/x86 and it's from 2010,
>>> so ancient history:
>>>
>>> 	arch/x86/platform/ce4100/falconfalls.dts
>>
>> Thanks for pointing this - it should be moved to the same place, e.g.
>> arch/x86/boot/dts... or this code here should be moved to
>> arch/x86/platform/. The first option is however more common across
>> entire kernel.
>
> Are we asking Daniel to move it, and then basically follow the pattern
> that X86_INTEL_CE uses?

We could also consider removing Sodaville/CE4100 altogether.
I looked at the platform a while ago while doing some patches for its
serial port and noticed that it was never actively maintained after
the initial merge and support for Groveland/CE4200 follow-up
never got merged. The later Evansport/CE5300 is a PC-style platform
rather than using fdt.

The only references I can find to Sodaville in products are for
the 2011 Google TV, which predates the upstream fdt port, so it
appears that neither Google/Sony/Logitech nor the aftermarket
hacks ever used what we have upstream.

    Arnd

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 0/6] x86: Initial support for MaxLinear Lightning Mountain
  2026-12-04 10:35         ` Arnd Bergmann
@ 2026-12-04 11:46           ` Andy Shevchenko
  2026-12-04 11:48             ` Andy Shevchenko
  2026-12-04 12:02           ` Sebastian Andrzej Siewior
  1 sibling, 1 reply; 19+ messages in thread
From: Andy Shevchenko @ 2026-12-04 11:46 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Dave Hansen, Krzysztof Kozlowski, Daniel Golle,
	Greg Kroah-Hartman, Jiri Slaby, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Daniel Lezcano, Thomas Gleixner, Ingo Molnar,
	Borislav Petkov, Dave Hansen, x86, H. Peter Anvin, Stephen Boyd,
	Brian Masney, Jerome Brunet, Kees Cook, John Crispin, Songjun Wu,
	Yi xin Zhu, Rahul Tanwar, linux-kernel, linux-serial, devicetree,
	linux-clk, Sebastian Andrzej Siewior

On Fri, Dec 04, 2026 at 11:35:28AM +0100, Arnd Bergmann wrote:
> On Thu, Dec 3, 2026, at 16:17, Dave Hansen wrote:
> > On 12/3/26 07:06, Krzysztof Kozlowski wrote:
> >>> I honestly don't have a strong feeling about it either way. Grepping
> >>> shows only one other existing .dts file in arch/x86 and it's from 2010,
> >>> so ancient history:
> >>>
> >>> 	arch/x86/platform/ce4100/falconfalls.dts
> >>
> >> Thanks for pointing this - it should be moved to the same place, e.g.
> >> arch/x86/boot/dts... or this code here should be moved to
> >> arch/x86/platform/. The first option is however more common across
> >> entire kernel.
> >
> > Are we asking Daniel to move it, and then basically follow the pattern
> > that X86_INTEL_CE uses?
> 
> We could also consider removing Sodaville/CE4100 altogether.
> I looked at the platform a while ago while doing some patches for its
> serial port and noticed that it was never actively maintained after
> the initial merge and support for Groveland/CE4200 follow-up
> never got merged. The later Evansport/CE5300 is a PC-style platform
> rather than using fdt.
> 
> The only references I can find to Sodaville in products are for
> the 2011 Google TV, which predates the upstream fdt port, so it
> appears that neither Google/Sony/Logitech nor the aftermarket
> hacks ever used what we have upstream.

There are few consumer electronic devices were available on the market based on
this SoC. I even have a device, but it uses some signed kernel and there is
some way to work it around, but I haven't had time to actually do something
about it. I have heard that there were platforms with easier way to run custom
kernels on it. If somebody finds a device, I would be ready to check what's
going on there.

-- 
With Best Regards,
Andy Shevchenko



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 0/6] x86: Initial support for MaxLinear Lightning Mountain
  2026-12-04 11:46           ` Andy Shevchenko
@ 2026-12-04 11:48             ` Andy Shevchenko
  2026-12-04 12:26               ` Arnd Bergmann
  0 siblings, 1 reply; 19+ messages in thread
From: Andy Shevchenko @ 2026-12-04 11:48 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Dave Hansen, Krzysztof Kozlowski, Daniel Golle,
	Greg Kroah-Hartman, Jiri Slaby, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Daniel Lezcano, Thomas Gleixner, Ingo Molnar,
	Borislav Petkov, Dave Hansen, x86, H. Peter Anvin, Stephen Boyd,
	Brian Masney, Jerome Brunet, Kees Cook, John Crispin, Songjun Wu,
	Yi xin Zhu, Rahul Tanwar, linux-kernel, linux-serial, devicetree,
	linux-clk, Sebastian Andrzej Siewior

On Fri, Dec 04, 2026 at 01:46:56PM +0200, Andy Shevchenko wrote:
> On Fri, Dec 04, 2026 at 11:35:28AM +0100, Arnd Bergmann wrote:
> > On Thu, Dec 3, 2026, at 16:17, Dave Hansen wrote:
> > > On 12/3/26 07:06, Krzysztof Kozlowski wrote:
> > >>> I honestly don't have a strong feeling about it either way. Grepping
> > >>> shows only one other existing .dts file in arch/x86 and it's from 2010,
> > >>> so ancient history:
> > >>>
> > >>> 	arch/x86/platform/ce4100/falconfalls.dts
> > >>
> > >> Thanks for pointing this - it should be moved to the same place, e.g.
> > >> arch/x86/boot/dts... or this code here should be moved to
> > >> arch/x86/platform/. The first option is however more common across
> > >> entire kernel.
> > >
> > > Are we asking Daniel to move it, and then basically follow the pattern
> > > that X86_INTEL_CE uses?
> > 
> > We could also consider removing Sodaville/CE4100 altogether.
> > I looked at the platform a while ago while doing some patches for its
> > serial port and noticed that it was never actively maintained after
> > the initial merge and support for Groveland/CE4200 follow-up
> > never got merged. The later Evansport/CE5300 is a PC-style platform
> > rather than using fdt.
> > 
> > The only references I can find to Sodaville in products are for
> > the 2011 Google TV, which predates the upstream fdt port, so it
> > appears that neither Google/Sony/Logitech nor the aftermarket
> > hacks ever used what we have upstream.
> 
> There are few consumer electronic devices were available on the market based on
> this SoC. I even have a device, but it uses some signed kernel and there is
> some way to work it around, but I haven't had time to actually do something
> about it. I have heard that there were platforms with easier way to run custom
> kernels on it. If somebody finds a device, I would be ready to check what's
> going on there.

Also note, it was not the single x86 with DT. There were OLPC and the most
recent one (from 2017?) SpreadTrum x86-based SoC.

-- 
With Best Regards,
Andy Shevchenko



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 0/6] x86: Initial support for MaxLinear Lightning Mountain
       [not found] <cover.1796234065.git.daniel@makrotopia.org>
                   ` (7 preceding siblings ...)
  2026-12-03 14:39 ` Krzysztof Kozlowski
@ 2026-12-04 11:52 ` Andy Shevchenko
  8 siblings, 0 replies; 19+ messages in thread
From: Andy Shevchenko @ 2026-12-04 11:52 UTC (permalink / raw)
  To: Daniel Golle
  Cc: Greg Kroah-Hartman, Jiri Slaby, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Daniel Lezcano, Thomas Gleixner, Ingo Molnar,
	Borislav Petkov, Dave Hansen, x86, H. Peter Anvin, Stephen Boyd,
	Brian Masney, Jerome Brunet, Kees Cook, John Crispin, Songjun Wu,
	Yi xin Zhu, Rahul Tanwar, linux-kernel, linux-serial, devicetree,
	linux-clk

On Wed, Dec 02, 2026 at 08:55:45PM +0000, Daniel Golle wrote:
> 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.

Wow! Nice to see a more or less modern x86 HW with DT!
Please, Cc me on this series in the future.

> 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

The similar case I believe is for Intel MID. Perhaps we may find a common
solution for it?

> 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.

-- 
With Best Regards,
Andy Shevchenko



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 0/6] x86: Initial support for MaxLinear Lightning Mountain
  2026-12-04 10:35         ` Arnd Bergmann
  2026-12-04 11:46           ` Andy Shevchenko
@ 2026-12-04 12:02           ` Sebastian Andrzej Siewior
  2026-12-04 12:28             ` Arnd Bergmann
  1 sibling, 1 reply; 19+ messages in thread
From: Sebastian Andrzej Siewior @ 2026-12-04 12:02 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Dave Hansen, Krzysztof Kozlowski, Daniel Golle,
	Greg Kroah-Hartman, Jiri Slaby, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Daniel Lezcano, Thomas Gleixner, Ingo Molnar,
	Borislav Petkov, Dave Hansen, x86, H. Peter Anvin, Stephen Boyd,
	Brian Masney, Jerome Brunet, Kees Cook, John Crispin, Songjun Wu,
	Yi xin Zhu, Rahul Tanwar, linux-kernel, linux-serial, devicetree,
	linux-clk, Andy Shevchenko

On 2026-12-04 11:35:28 [+0100], Arnd Bergmann wrote:
> On Thu, Dec 3, 2026, at 16:17, Dave Hansen wrote:
> > On 12/3/26 07:06, Krzysztof Kozlowski wrote:
> >>> I honestly don't have a strong feeling about it either way. Grepping
> >>> shows only one other existing .dts file in arch/x86 and it's from 2010,
> >>> so ancient history:
> >>>
> >>> 	arch/x86/platform/ce4100/falconfalls.dts
> >>
> >> Thanks for pointing this - it should be moved to the same place, e.g.
> >> arch/x86/boot/dts... or this code here should be moved to
> >> arch/x86/platform/. The first option is however more common across
> >> entire kernel.
> >
> > Are we asking Daniel to move it, and then basically follow the pattern
> > that X86_INTEL_CE uses?
> 
> We could also consider removing Sodaville/CE4100 altogether.
> I looked at the platform a while ago while doing some patches for its
> serial port and noticed that it was never actively maintained after
> the initial merge and support for Groveland/CE4200 follow-up
> never got merged. The later Evansport/CE5300 is a PC-style platform
> rather than using fdt.

I've been told by some folks that they (at the time) use "forks" of
Sodaville and are glad to have device-tree support on x86. Also others
(unrelated to Sodaville) mentioned they use DT for their own designs.
So maybe keep the device-tree support on x86 since there might be usage.

>     Arnd

Sebastian

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 0/6] x86: Initial support for MaxLinear Lightning Mountain
  2026-12-04 11:48             ` Andy Shevchenko
@ 2026-12-04 12:26               ` Arnd Bergmann
  0 siblings, 0 replies; 19+ messages in thread
From: Arnd Bergmann @ 2026-12-04 12:26 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Dave Hansen, Krzysztof Kozlowski, Daniel Golle,
	Greg Kroah-Hartman, Jiri Slaby, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Daniel Lezcano, Thomas Gleixner, Ingo Molnar,
	Borislav Petkov, Dave Hansen, x86, H. Peter Anvin, Stephen Boyd,
	Brian Masney, Jerome Brunet, Kees Cook, John Crispin, Songjun Wu,
	Yi xin Zhu, Rahul Tanwar, linux-kernel, linux-serial, devicetree,
	linux-clk, Sebastian Andrzej Siewior

On Fri, Dec 4, 2026, at 12:48, Andy Shevchenko wrote:
> On Fri, Dec 04, 2026 at 01:46:56PM +0200, Andy Shevchenko wrote:
>> On Fri, Dec 04, 2026 at 11:35:28AM +0100, Arnd Bergmann wrote:
>> 
>> There are few consumer electronic devices were available on the market based on
>> this SoC. I even have a device, but it uses some signed kernel and there is
>> some way to work it around, but I haven't had time to actually do something
>> about it. I have heard that there were platforms with easier way to run custom
>> kernels on it. If somebody finds a device, I would be ready to check what's
>> going on there.

Apparently there was a way to get around the signing on the Google TV
I mentioned, but OTOH the upstream kernel does not seem to have a driver
for the GMA500 variant in it, which in turn limits the usefulness as
a TV appliance.

> Also note, it was not the single x86 with DT. There were OLPC and the most
> recent one (from 2017?) SpreadTrum x86-based SoC.

Neither of those use upstream dts files though: OLPC had actual Open Firmware,
while the SoFIA was never anywhere close to upstreaming: the source code
was old 32-bit arch/arm/ kernel code ported to x86 in a way that would
would prevent using the same kernel across multiple machines, the Android
never saw any updates, and both the Rockchip and Unisoc chips got discontinued
a short time after the release.

    Arnd

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 0/6] x86: Initial support for MaxLinear Lightning Mountain
  2026-12-04 12:02           ` Sebastian Andrzej Siewior
@ 2026-12-04 12:28             ` Arnd Bergmann
  0 siblings, 0 replies; 19+ messages in thread
From: Arnd Bergmann @ 2026-12-04 12:28 UTC (permalink / raw)
  To: Sebastian Andrzej Siewior
  Cc: Dave Hansen, Krzysztof Kozlowski, Daniel Golle,
	Greg Kroah-Hartman, Jiri Slaby, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Daniel Lezcano, Thomas Gleixner, Ingo Molnar,
	Borislav Petkov, Dave Hansen, x86, H. Peter Anvin, Stephen Boyd,
	Brian Masney, Jerome Brunet, Kees Cook, John Crispin, Songjun Wu,
	Yi xin Zhu, Rahul Tanwar, linux-kernel, linux-serial, devicetree,
	linux-clk, Andy Shevchenko

On Fri, Dec 4, 2026, at 13:02, Sebastian Andrzej Siewior wrote:
> On 2026-12-04 11:35:28 [+0100], Arnd Bergmann wrote:

>> We could also consider removing Sodaville/CE4100 altogether.
>> I looked at the platform a while ago while doing some patches for its
>> serial port and noticed that it was never actively maintained after
>> the initial merge and support for Groveland/CE4200 follow-up
>> never got merged. The later Evansport/CE5300 is a PC-style platform
>> rather than using fdt.
>
> I've been told by some folks that they (at the time) use "forks" of
> Sodaville and are glad to have device-tree support on x86. Also others
> (unrelated to Sodaville) mentioned they use DT for their own designs.
> So maybe keep the device-tree support on x86 since there might be usage.

The context here is adding another DT based platform, so we'd keep
at least one of them around either way. We probably don't need to worry
too much about consistency between the two though, and could remove
the old one if it gets in the way of the new one.

     Arnd

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2026-12-04 12:30 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <cover.1796234065.git.daniel@makrotopia.org>
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
2026-12-03 14:39 ` Krzysztof Kozlowski
2026-12-03 15:02   ` Dave Hansen
2026-12-03 15:06     ` Krzysztof Kozlowski
2026-12-03 15:17       ` Dave Hansen
2026-12-04 10:35         ` Arnd Bergmann
2026-12-04 11:46           ` Andy Shevchenko
2026-12-04 11:48             ` Andy Shevchenko
2026-12-04 12:26               ` Arnd Bergmann
2026-12-04 12:02           ` Sebastian Andrzej Siewior
2026-12-04 12:28             ` Arnd Bergmann
2026-12-04 11:52 ` Andy Shevchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox