Skip to contentSkip to conversation

board: nxp: add the Free Mobile Nodebox v3 CPU Module (LX2160A)

PATCH New Vincent Jardin 1 participant 9 messages Sep 7 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

v2 cover board: nxp: add the Free Mobile Nodebox v3 CPU Module (LX2160A)

This series adds the Free Mobile Nodebox v3 CPU Module, an NXP LX2160A based board (16x Cortex-A72, DPAA2).

The port is modelled on the LX2160ARDB and QDS boards and lives next to them under board/nxp/lx2160a/, reusing their SoC level code.

The board specific behaviour is using EVENT_SPY hooks. The default-y Kconfig bools are under if TARGET_NBXV3.

The v1 review raised two device-tree points, both addressed here (v1: https://lore.kernel.org/r/[email protected]):

- The DTS is sent to the Linux kernel list
https://lore.kernel.org/all/[email protected]/
and U-Boot keeps its copy. Did I capture it right ?

- The per-peripheral patches (v1 10-23) are folded into the base port

Boot is FIT only by default. The review also asked about UEFI. CONFIG_EFI_LOADER is a defconfig option with no device-tree impact and can be enabled, it is left off here for footprint that is critical on this system.

The series is now:

1. Base port and full device tree (this patch).
2. Documentation.
3-8. Board code: MPQ8785 PMBus core-rail readback, PMBus PSU
telemetry, VID fuse driven core voltage, per-carrier selection, DPLL presence probe, +3V3_FAN rail hook.

Changes in v2:
- Device tree: the board DT fsl-lx2160a-nbxv3.dtsi is now shared with Linux too, sent in parallel to the kernel list for review
https://lore.kernel.org/all/[email protected]/
- Squashed the former per-peripheral patches 10-23 into this base port to align with the new DT approach.
- FIT stays the default boot path; CONFIG_EFI_LOADER is left off for footprint
- checkpatch: IS_ENABLED() for the MC boot call in eth_nbxv3.c
- VID handoff: fix voltage table per the doc and avoid manual correction since the MPQ devices does it on its own.

Vincent Jardin (8):
board: nxp: add Nodebox v3 CPU Module (LX2160A)
doc: board: nxp: add the Nodebox v3 CPU Module
board: nbxv3: add MPQ8785 PMBus core-rail readback
board: nbxv3: add boot-time PMBus PSU traces
board: nbxv3: add VID-fuse driven core voltage
board: nbxv3: select carrier at boot
board: nbxv3: add DPLL status (ZL30733, ZL30643)
board: nbxv3: enable +3V3_FAN rail fixed regulator

 arch/arm/Kconfig                           |  12 +
 arch/arm/dts/Makefile                      |   1 +
 arch/arm/dts/fsl-lx2160a-nbxv3-u-boot.dtsi |  67 ++++
 arch/arm/dts/fsl-lx2160a-nbxv3.dts         |  16 +
 arch/arm/dts/fsl-lx2160a-nbxv3.dtsi        | 342 +++++++++++++++++++++
 board/nxp/lx2160a/Kconfig                  |  45 +++
 board/nxp/lx2160a/MAINTAINERS              |  11 +
 board/nxp/lx2160a/Makefile                 |   1 +
 board/nxp/lx2160a/nbxv3/Makefile           |  11 +
 board/nxp/lx2160a/nbxv3/carrier.c          |  64 ++++
 board/nxp/lx2160a/nbxv3/carrier.h          |  17 +
 board/nxp/lx2160a/nbxv3/dpll_zl30733.c     | 184 +++++++++++
 board/nxp/lx2160a/nbxv3/eth_nbxv3.c        |  63 ++++
 board/nxp/lx2160a/nbxv3/fan_power.c        |  33 ++
 board/nxp/lx2160a/nbxv3/mps_pmbus.c        |  99 ++++++
 board/nxp/lx2160a/nbxv3/psu_pmbus.c        |  72 +++++
 board/nxp/lx2160a/nbxv3/vid_handoff.c      | 144 +++++++++
 configs/nbxv3_tfa_defconfig                | 106 +++++++
 doc/board/nxp/index.rst                    |   1 +
 doc/board/nxp/nbxv3.rst                    | 212 +++++++++++++
 include/configs/nbxv3.h                    |  57 ++++
 21 files changed, 1558 insertions(+)
 create mode 100644 arch/arm/dts/fsl-lx2160a-nbxv3-u-boot.dtsi
 create mode 100644 arch/arm/dts/fsl-lx2160a-nbxv3.dts
 create mode 100644 arch/arm/dts/fsl-lx2160a-nbxv3.dtsi
 create mode 100644 board/nxp/lx2160a/nbxv3/Makefile
 create mode 100644 board/nxp/lx2160a/nbxv3/carrier.c
 create mode 100644 board/nxp/lx2160a/nbxv3/carrier.h
 create mode 100644 board/nxp/lx2160a/nbxv3/dpll_zl30733.c
 create mode 100644 board/nxp/lx2160a/nbxv3/eth_nbxv3.c
 create mode 100644 board/nxp/lx2160a/nbxv3/fan_power.c
 create mode 100644 board/nxp/lx2160a/nbxv3/mps_pmbus.c
 create mode 100644 board/nxp/lx2160a/nbxv3/psu_pmbus.c
 create mode 100644 board/nxp/lx2160a/nbxv3/vid_handoff.c
 create mode 100644 configs/nbxv3_tfa_defconfig
 create mode 100644 doc/board/nxp/nbxv3.rst
 create mode 100644 include/configs/nbxv3.h

---
base-commit: 509312dc5386ff4c5adabf53a573abca0aac4ce5
branch: for-upstream/nbxv3-v2

Signature · 1 line
2.43.0
#1 lore raw

PATCH v2 1/8 board: nxp: add Nodebox v3 CPU Module (LX2160A)

Introduce TARGET_NBXV3 for the Free Mobile Nodebox v3 CPU Module, an LX2160A based platform.

eth_nbxv3 renames the DPAA2 Ethernet devices from a "u-boot,nickname" DT property (EVT_DM_PRE_PROBE spy) to something more user friendly.

Currently CONFIG_ID_EEPROM is not set since the NXP format is not used on this board.

---

Changes in v2:
- Device tree: the board DT fsl-lx2160a-nbxv3.dtsi is now shared with Linux too, sent in parallel to the kernel list for review
https://lore.kernel.org/all/[email protected]/
- Squashed the former per-peripheral patches 10-23 into this base port to align with the new DT approach.
- FIT stays the default boot path; CONFIG_EFI_LOADER is left off for footprint
- checkpatch: IS_ENABLED() for the MC boot call in eth_nbxv3.c
- VID handoff: fix voltage table per the doc and avoid manual correction since the MPQ devices does it on its own.

 arch/arm/Kconfig                           |  12 +
 arch/arm/dts/Makefile                      |   1 +
 arch/arm/dts/fsl-lx2160a-nbxv3-u-boot.dtsi |  67 ++++
 arch/arm/dts/fsl-lx2160a-nbxv3.dts         |  16 +
 arch/arm/dts/fsl-lx2160a-nbxv3.dtsi        | 342 +++++++++++++++++++++
 board/nxp/lx2160a/Kconfig                  |  45 +++
 board/nxp/lx2160a/MAINTAINERS              |  11 +
 board/nxp/lx2160a/Makefile                 |   1 +
 board/nxp/lx2160a/nbxv3/Makefile           |   5 +
 board/nxp/lx2160a/nbxv3/eth_nbxv3.c        |  53 ++++
 configs/nbxv3_tfa_defconfig                | 106 +++++++
 include/configs/nbxv3.h                    |  57 ++++
 12 files changed, 716 insertions(+)
 create mode 100644 arch/arm/dts/fsl-lx2160a-nbxv3-u-boot.dtsi
 create mode 100644 arch/arm/dts/fsl-lx2160a-nbxv3.dts
 create mode 100644 arch/arm/dts/fsl-lx2160a-nbxv3.dtsi
 create mode 100644 board/nxp/lx2160a/nbxv3/Makefile
 create mode 100644 board/nxp/lx2160a/nbxv3/eth_nbxv3.c
 create mode 100644 configs/nbxv3_tfa_defconfig
 create mode 100644 include/configs/nbxv3.h
arch/arm/Kconfig +12 -0
index 1b474a346bf..fe4045548b1 100644
@@ -1572,6 +1572,18 @@ config TARGET_LX2162AQDS
 	  Support for NXP LX2162AQDS platform.
 	  The lx2162aqds support is based on LX2160A Layerscape Architecture processor.
 
+config TARGET_NBXV3
+	bool "Support Nodebox v3 CPU Module (LX2160A)"
+	select ARCH_LX2160A
+	select ARM64
+	select ARMV8_MULTIENTRY
+	select ARCH_SUPPORT_TFABOOT
+	select BOARD_LATE_INIT
+	select GPIO_EXTRA_HEADER
+	help
+	  Support for the Free Mobile Nodebox v3 CPU Module, an LX2160A
+	  based platform.
+
 config TARGET_HIKEY
 	bool "Support HiKey 96boards Consumer Edition Platform"
 	select ARM64
arch/arm/dts/Makefile +1 -0
index a02dad22f27..a1b4e283584 100644
@@ -470,6 +470,7 @@ dtb-$(CONFIG_FSL_LSCH3) += fsl-ls2080a-qds.dtb \
 	fsl-ls1028a-qds-duart.dtb \
 	fsl-ls1028a-qds-lpuart.dtb \
 	fsl-lx2160a-rdb.dtb \
+	fsl-lx2160a-nbxv3.dtb \
 	fsl-lx2160a-qds.dtb \
 	fsl-lx2160a-qds-3-x-x.dtb \
 	fsl-lx2160a-qds-3-11-x.dtb \
arch/arm/dts/fsl-lx2160a-nbxv3-u-boot.dtsi new file +67 -0

67 lines not on this page · raw message

arch/arm/dts/fsl-lx2160a-nbxv3.dts new file +16 -0
new file mode 100644
index 00000000000..258d3a1a83e
@@ -0,0 +1,16 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Free Mobile Nodebox v3 CPU Module (LX2160A)
+ *
+ * Copyright 2026 Free Mobile, Vincent Jardin
+ */
+
+/dts-v1/;
+
+#include "fsl-lx2160a.dtsi"
+#include "fsl-lx2160a-nbxv3.dtsi"
+
+/ {
+	model = "Free Mobile Nodebox v3 CPU Module (LX2160A)";
+	compatible = "freemobile,nbxv3", "fsl,lx2160a";
+};
arch/arm/dts/fsl-lx2160a-nbxv3.dtsi new file +342 -0

342 lines not on this page · raw message

board/nxp/lx2160a/Kconfig +45 -0

48 lines not on this page · raw message

board/nxp/lx2160a/MAINTAINERS +11 -0
index abdac1372d2..eebda365d00 100644
@@ -53,3 +53,14 @@ LX2162AQDS_VERIFIED_BOOT BOARD
 M:	Manish Tomar <[email protected]>
 S:	Maintained
 F:	configs/lx2162aqds_tfa_verified_boot_defconfig
+
+NBXV3 BOARD
+M:	Vincent Jardin <[email protected]>
+S:	Maintained
+F:	board/nxp/lx2160a/nbxv3/
+F:	include/configs/nbxv3.h
+F:	configs/nbxv3_tfa_defconfig
+F:	arch/arm/dts/fsl-lx2160a-nbxv3.dts
+F:	arch/arm/dts/fsl-lx2160a-nbxv3.dtsi
+F:	arch/arm/dts/fsl-lx2160a-nbxv3-u-boot.dtsi
+F:	doc/board/nxp/nbxv3.rst
board/nxp/lx2160a/Makefile +1 -0
index c9561bfadea..9a617a1f094 100644
@@ -9,3 +9,4 @@ obj-y += ddr.o
 obj-$(CONFIG_TARGET_LX2160ARDB) += eth_lx2160ardb.o
 obj-$(CONFIG_TARGET_LX2160AQDS) += eth_lx2160aqds.o
 obj-$(CONFIG_TARGET_LX2162AQDS) += eth_lx2162aqds.o
+obj-$(CONFIG_TARGET_NBXV3) += nbxv3/
board/nxp/lx2160a/nbxv3/Makefile new file +5 -0
new file mode 100644
index 00000000000..90ef2734eec
@@ -0,0 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0+
+# Copyright 2026 Free Mobile - Vincent Jardin
+#
+
+obj-y += eth_nbxv3.o
board/nxp/lx2160a/nbxv3/eth_nbxv3.c new file +53 -0

53 lines not on this page · raw message

configs/nbxv3_tfa_defconfig new file +106 -0

106 lines not on this page · raw message

include/configs/nbxv3.h new file +57 -0

57 lines not on this page · raw message

Signature · 1 line
2.43.0
#2 lore raw

PATCH v2 2/8 doc: board: nxp: add the Nodebox v3 CPU Module

In reply to Vincent Jardin

Document the Free Mobile Nodebox v3 CPU Module

---

(no changes since v1)

 doc/board/nxp/index.rst |   1 +
 doc/board/nxp/nbxv3.rst | 212 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 213 insertions(+)
 create mode 100644 doc/board/nxp/nbxv3.rst
doc/board/nxp/index.rst +1 -0
index b28e5b6ceb9..125df6e86de 100644
@@ -29,6 +29,7 @@ NXP Semiconductors
    mx6sabresd
    mx6ul_14x14_evk
    mx6ullevk
+   nbxv3
    rproc
    psb
    quickboot
doc/board/nxp/nbxv3.rst new file +212 -0

212 lines not on this page · raw message

Signature · 1 line
2.43.0
#3 lore raw

PATCH v2 3/8 board: nbxv3: add MPQ8785 PMBus core-rail readback

In reply to Vincent Jardin

Bind the +0V8_VDD core rail (MPS MPQ8646, MPQ8785 core) through the tree-level PMBus framework and add a board-local EVT_LAST_STAGE_INIT spy that prints its telemetry to the serial console.

---

(no changes since v1)

 board/nxp/lx2160a/nbxv3/Makefile    |  1 +
 board/nxp/lx2160a/nbxv3/mps_pmbus.c | 99 +++++++++++++++++++++++++++++
 2 files changed, 100 insertions(+)
 create mode 100644 board/nxp/lx2160a/nbxv3/mps_pmbus.c
board/nxp/lx2160a/nbxv3/Makefile +1 -0
index 90ef2734eec..e4aa5309804 100644
@@ -3,3 +3,4 @@
 #
 
 obj-y += eth_nbxv3.o
+obj-y += mps_pmbus.o
board/nxp/lx2160a/nbxv3/mps_pmbus.c new file +99 -0

99 lines not on this page · raw message

Signature · 1 line
2.43.0
#4 lore raw

PATCH v2 4/8 board: nbxv3: add boot-time PMBus PSU traces

In reply to Vincent Jardin

Reuses the shared
pmbus_print_telemetry() / pmbus_print_status_word() helpers,
for the 48V->12V Flex PSU reports.

---

(no changes since v1)

 board/nxp/lx2160a/nbxv3/Makefile    |  1 +
 board/nxp/lx2160a/nbxv3/psu_pmbus.c | 72 +++++++++++++++++++++++++++++
 2 files changed, 73 insertions(+)
 create mode 100644 board/nxp/lx2160a/nbxv3/psu_pmbus.c
board/nxp/lx2160a/nbxv3/Makefile +1 -0
index e4aa5309804..24874138833 100644
@@ -4,3 +4,4 @@
 
 obj-y += eth_nbxv3.o
 obj-y += mps_pmbus.o
+obj-y += psu_pmbus.o
board/nxp/lx2160a/nbxv3/psu_pmbus.c new file +72 -0

72 lines not on this page · raw message

Signature · 1 line
2.43.0
#5 lore raw

PATCH v2 5/8 board: nbxv3: add VID-fuse driven core voltage

In reply to Vincent Jardin

Read the LX2160A DCFG_FUSESR.ALTVID / VID fuses, look up the binned target voltage, and command the rail through the UCLASS_REGULATOR set_value op

The rail is set ONCE to exactly the fused voltage.

---

(no changes since v1)

 board/nxp/lx2160a/nbxv3/Makefile      |   1 +
 board/nxp/lx2160a/nbxv3/vid_handoff.c | 144 ++++++++++++++++++++++++++
 2 files changed, 145 insertions(+)
 create mode 100644 board/nxp/lx2160a/nbxv3/vid_handoff.c
board/nxp/lx2160a/nbxv3/Makefile +1 -0
index 24874138833..68fab9bf18f 100644
@@ -5,3 +5,4 @@
 obj-y += eth_nbxv3.o
 obj-y += mps_pmbus.o
 obj-y += psu_pmbus.o
+obj-y += vid_handoff.o
board/nxp/lx2160a/nbxv3/vid_handoff.c new file +144 -0

144 lines not on this page · raw message

Signature · 1 line
2.43.0
#6 lore raw

PATCH v2 6/8 board: nbxv3: select carrier at boot

In reply to Vincent Jardin

The Nodebox v3 CPU module runs on several carriers. They share one kernel Image but they need different DTBs and different DPAA2 DPC/DPL, so the kernel FIT carries every carrier's set as fdt-<c> / dpc-<c> / dpl-<c> with a conf-<c> configuration each, and U-Boot picks one:

  mcinitcmd   imxtract ... dpc-${carrier} / dpl-${carrier}
  mc_init     bootm ${kernel_addr_r}#conf-${carrier}

---

(no changes since v1)

 board/nxp/lx2160a/nbxv3/Makefile    |  1 +
 board/nxp/lx2160a/nbxv3/carrier.c   | 64 +++++++++++++++++++++++++++++
 board/nxp/lx2160a/nbxv3/carrier.h   | 17 ++++++++
 board/nxp/lx2160a/nbxv3/eth_nbxv3.c | 10 +++++
 4 files changed, 92 insertions(+)
 create mode 100644 board/nxp/lx2160a/nbxv3/carrier.c
 create mode 100644 board/nxp/lx2160a/nbxv3/carrier.h
board/nxp/lx2160a/nbxv3/Makefile +1 -0
index 68fab9bf18f..f6df35ed7c5 100644
@@ -6,3 +6,4 @@ obj-y += eth_nbxv3.o
 obj-y += mps_pmbus.o
 obj-y += psu_pmbus.o
 obj-y += vid_handoff.o
+obj-y += carrier.o
board/nxp/lx2160a/nbxv3/carrier.c new file +64 -0

64 lines not on this page · raw message

board/nxp/lx2160a/nbxv3/carrier.h new file +17 -0
new file mode 100644
index 00000000000..e7eb42265e4
@@ -0,0 +1,17 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright 2026 Free Mobile - Vincent Jardin
+ */
+
+#ifndef __NBXV3_CARRIER_H
+#define __NBXV3_CARRIER_H
+
+/*
+ * Ensure ${carrier} is set before anything consumes it.
+ * It is idempotent, and it never overrides a value already present
+ * in the uboot's environment.
+ * It shall run after initr_env and before ${mcinitcmd} is evaluated.
+ */
+void nbxv3_carrier_env_init(void);
+
+#endif /* __NBXV3_CARRIER_H */
board/nxp/lx2160a/nbxv3/eth_nbxv3.c +10 -0
index 8aec68c571f..a8d249c5cac 100644
@@ -14,6 +14,8 @@
 #include <exports.h>
 #include <fsl-mc/fsl_mc.h>
 
+#include "carrier.h"
+
 DECLARE_GLOBAL_DATA_PTR;
 
 int board_eth_init(struct bd_info *bis)
@@ -24,6 +26,14 @@ int board_eth_init(struct bd_info *bis)
 #if defined(CONFIG_RESET_PHY_R)
 void reset_phy(void)
 {
+	/*
+	 * MUST come first: mc_env_boot() evaluates ${mcinitcmd}, which
+	 * imxtracts dpc-${carrier} / dpl-${carrier} out of the FIT. If
+	 * ${carrier} is still unset a subimage named "dpc-" and the MC
+	 * firmware never starts.
+	 */
+	nbxv3_carrier_env_init();
+
 	if (IS_ENABLED(CONFIG_FSL_MC_ENET))
 		mc_env_boot();
 }
Signature · 1 line
2.43.0
#7 lore raw

PATCH v2 7/8 board: nbxv3: add DPLL status (ZL30733, ZL30643)

In reply to Vincent Jardin

Add a boot time probe/trace for each Microsemi/Microchip DPLL on the board:
- ZL30733
- ZL30643

The dpll_info command is board code built only for this target, so it has no sandbox test.

---

(no changes since v1)

 board/nxp/lx2160a/nbxv3/Makefile       |   1 +
 board/nxp/lx2160a/nbxv3/dpll_zl30733.c | 184 +++++++++++++++++++++++++
 2 files changed, 185 insertions(+)
 create mode 100644 board/nxp/lx2160a/nbxv3/dpll_zl30733.c
board/nxp/lx2160a/nbxv3/Makefile +1 -0
index f6df35ed7c5..bea6b0aae8b 100644
@@ -7,3 +7,4 @@ obj-y += mps_pmbus.o
 obj-y += psu_pmbus.o
 obj-y += vid_handoff.o
 obj-y += carrier.o
+obj-y += dpll_zl30733.o
board/nxp/lx2160a/nbxv3/dpll_zl30733.c new file +184 -0

184 lines not on this page · raw message

Signature · 1 line
2.43.0
#8 lore raw

PATCH v2 8/8 board: nbxv3: enable +3V3_FAN rail fixed regulator

In reply to Vincent Jardin

Add an EVT_LAST_STAGE_INIT hook that drives the +3V3_FAN fixed regulator on, so the FAN daughterboard's EMC2305 / TMP411 / EEPROM become visible with the "i2c probe" command.

---

(no changes since v1)

 board/nxp/lx2160a/nbxv3/Makefile    |  1 +
 board/nxp/lx2160a/nbxv3/fan_power.c | 33 +++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+)
 create mode 100644 board/nxp/lx2160a/nbxv3/fan_power.c
board/nxp/lx2160a/nbxv3/Makefile +1 -0
index bea6b0aae8b..9c93965dc95 100644
@@ -8,3 +8,4 @@ obj-y += psu_pmbus.o
 obj-y += vid_handoff.o
 obj-y += carrier.o
 obj-y += dpll_zl30733.o
+obj-y += fan_power.o
board/nxp/lx2160a/nbxv3/fan_power.c new file +33 -0
new file mode 100644
index 00000000000..b569b695ae7
@@ -0,0 +1,33 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright 2026 Free Mobile - Vincent Jardin
+ *
+ * Enforce Nodebox v3 FAN-daughterboard enable.
+ *
+ * Note: it tequires CONFIG_DM_REGULATOR_FIXED
+ */
+
+#include <dm.h>
+#include <event.h>
+#include <power/regulator.h>
+
+/* `regulator-name = "+3V3_FAN"` in the nbxv3 DTS. */
+#define NBXV3_FAN_REGULATOR_NAME	"+3V3_FAN"
+
+static int nbxv3_fan_power_last_stage_init(void)
+{
+	struct udevice *reg = NULL;
+	int ret;
+
+	if (regulator_get_by_platname(NBXV3_FAN_REGULATOR_NAME, &reg) || !reg)
+		return 0;
+
+	ret = regulator_set_enable_if_allowed(reg, true);
+	if (ret)
+		printf("nbxv3: %s enable failed (%d)\n",
+		       NBXV3_FAN_REGULATOR_NAME, ret);
+
+	return 0;
+}
+
+EVENT_SPY_SIMPLE(EVT_LAST_STAGE_INIT, nbxv3_fan_power_last_stage_init);
Signature · 1 line
2.43.0