Skip to contentSkip to conversation

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

PATCH Superseded Vincent Jardin 3 participants 29 messages Aug 17 – Aug 20 Arm (32-bit)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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). U-Boot is the BL33 payload of TF-A: BL2 trains the DDR, BL31 hands over, and U-Boot boots a FIT image (kernel + MC firmware + DPC/DPL) from a single FlexSPI NOR. The module plugs onto several carrier boards (NBV30, NBV32, etc.) that share one kernel image but differ in their device tree and DPAA2 data path.

The port is modelled on the LX2160ARDB / QDS boards and lives next to them under board/nxp/lx2160a/, reusing their SoC level code. Board specific behaviour is wired through EVENT_SPY hooks rather than weak symbol overrides, and the dependencies each hook needs are forced on by hidden default-y Kconfig bools under if TARGET_NBXV3, so a hook cannot silently turn into a no-op.

The series is in three stages:

1. Base port and documentation (patches 1-2): TARGET_NBXV3, the defconfig, a minimal device tree, the MAINTAINERS entry, the Ethernet wiring file and doc/board/nxp/nbxv3.rst.

2. Board code (patches 3-9): DPAA2 Ethernet on DPMAC17 through the RTL8211FD PHY; the +0V8_VDD core rail (MPS MPQ8785 PMBus regulator snapshot, PMBus PSU snapshot, VID fuse driven voltage trim through UCLASS_REGULATOR); the ${carrier} selection that lets one FIT carry a DPC/DPL/DTB set per carrier; the ZL30733 / ZL30643 DPLL traces; the +3V3_FAN rail hook.

3. Build and device tree settings (patches 10-23): one small commit per peripheral or features, each enabling its DT nodes and defconfig symbols.

Vincent Jardin (23):
board: nxp: add Nodebox v3 CPU Module (LX2160A) base port
doc: board: nxp: add the Nodebox v3 CPU Module (nbxv3)
board: nbxv3: enable RTL8211FD PHY for 1G DPAA2
board: nbxv3: add MPQ8785 PMBus traces + DT regulator
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
arm: dts: layerscape: nbxv3: enable UART0..UART3
board: nbxv3: enable FlexSPI boot NOR (GD55LB02GF) and FIT boot
board: nbxv3: store the environment in the boot NOR
board: nbxv3: enable eMMC on eSDHC2
board: nbxv3: enable PCIe root complexes (PCIE3..PCIE6)
board: nbxv3: enable both USB host controllers
board: nbxv3: describe the I2C buses and their on module devices
arm: dts: nbxv3: add the +3V3_FAN regulator
board: nbxv3: enable JC42 + QorIQ TMU + PMBus thermal
board: nbxv3: enable HW crypto (CAAM) and rng command
arm: dts: nbxv3: bump SBSA watchdog timeout to 120s
board: nbxv3: add operator commands and JTAG semihosting
board: nbxv3: enable GPIO controllers with line names and hogs
board: nbxv3: add the boot environment (FIT over MC, MC memory, PS1)

 arch/arm/Kconfig                       |  12 +
 arch/arm/dts/Makefile                  |   1 +
 arch/arm/dts/fsl-lx2160a-nbxv3.dts     | 531 +++++++++++++++++++++++++
 board/nxp/lx2160a/Kconfig              |  45 +++
 board/nxp/lx2160a/MAINTAINERS          |   9 +
 board/nxp/lx2160a/Makefile             |   1 +
 board/nxp/lx2160a/nbxv3/Makefile       |  11 +
 board/nxp/lx2160a/nbxv3/carrier.c      |  87 ++++
 board/nxp/lx2160a/nbxv3/carrier.h      |  17 +
 board/nxp/lx2160a/nbxv3/dpll_zl30733.c | 183 +++++++++
 board/nxp/lx2160a/nbxv3/eth_nbxv3.c    |  77 ++++
 board/nxp/lx2160a/nbxv3/fan_power.c    |  32 ++
 board/nxp/lx2160a/nbxv3/mps_pmbus.c    | 107 +++++
 board/nxp/lx2160a/nbxv3/psu_pmbus.c    |  80 ++++
 board/nxp/lx2160a/nbxv3/vid_handoff.c  | 146 +++++++
 configs/nbxv3_tfa_defconfig            | 106 +++++
 doc/board/nxp/index.rst                |   1 +
 doc/board/nxp/nbxv3.rst                | 255 ++++++++++++
 include/configs/nbxv3.h                |  57 +++
 19 files changed, 1758 insertions(+)
 create mode 100644 arch/arm/dts/fsl-lx2160a-nbxv3.dts
 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: 527115ef6783cec49e5610c523c124b399011361
branch: for-upstream/nbxv3-v1

Signature · 1 line
2.43.0
#1 lore raw

PATCH 1/23 board: nxp: add Nodebox v3 CPU Module (LX2160A) base port

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

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

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

---

 arch/arm/Kconfig                    | 12 ++++++
 arch/arm/dts/Makefile               |  1 +
 arch/arm/dts/fsl-lx2160a-nbxv3.dts  | 16 +++++++
 board/nxp/lx2160a/Kconfig           | 21 +++++++++
 board/nxp/lx2160a/MAINTAINERS       |  8 ++++
 board/nxp/lx2160a/Makefile          |  1 +
 board/nxp/lx2160a/nbxv3/Makefile    |  5 +++
 board/nxp/lx2160a/nbxv3/eth_nbxv3.c | 67 +++++++++++++++++++++++++++++
 configs/nbxv3_tfa_defconfig         | 38 ++++++++++++++++
 include/configs/nbxv3.h             | 13 ++++++
 10 files changed, 182 insertions(+)
 create mode 100644 arch/arm/dts/fsl-lx2160a-nbxv3.dts
 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.dts new file +16 -0
new file mode 100644
index 00000000000..32f0c207a59
@@ -0,0 +1,16 @@
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * Copyright 2026 Free Mobile - Vincent Jardin
+ *
+ * Nodebox v3 CPU Module (LX2160A). Base port; no peripheral
+ * controllers enabled.
+ */
+
+/dts-v1/;
+
+#include "fsl-lx2160a.dtsi"
+
+/ {
+	model = "Free Mobile Nodebox v3 CPU Module (LX2160A)";
+	compatible = "freemobile,nbxv3", "fsl,lx2160a";
+};
board/nxp/lx2160a/Kconfig +21 -0
index 5764c83ab08..37e8f7ff717 100644
@@ -45,3 +45,24 @@ config SYS_CONFIG_NAME
 	default "lx2162aqds"
 
 endif
+
+if TARGET_NBXV3
+
+config SYS_BOARD
+	default "lx2160a"
+
+config SYS_VENDOR
+	default "nxp"
+
+config SYS_SOC
+	default "fsl-layerscape"
+
+config SYS_CONFIG_NAME
+	default "nbxv3"
+
+config NBXV3_DM_EVENT
+	bool
+	default y
+	select DM_EVENT
+
+endif
board/nxp/lx2160a/MAINTAINERS +8 -0
index abdac1372d2..6f78e6e45d1 100644
@@ -53,3 +53,11 @@ 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
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 +67 -0

67 lines not on this page · raw message

configs/nbxv3_tfa_defconfig new file +38 -0
new file mode 100644
index 00000000000..86b5b44ec09
@@ -0,0 +1,38 @@
+CONFIG_ARM=y
+CONFIG_SKIP_LOWLEVEL_INIT=y
+CONFIG_GIC_V3_ITS=y
+CONFIG_TARGET_NBXV3=y
+CONFIG_TFABOOT=y
+CONFIG_TEXT_BASE=0x82000000
+CONFIG_SYS_MALLOC_LEN=0x202000
+CONFIG_SYS_MALLOC_F_LEN=0x6000
+CONFIG_NR_DRAM_BANKS=3
+CONFIG_ENV_SIZE=0x4000
+CONFIG_DM_GPIO=y
+CONFIG_DEFAULT_DEVICE_TREE="fsl-lx2160a-nbxv3"
+CONFIG_SYS_MONITOR_LEN=958464
+CONFIG_ARMV8_SEC_FIRMWARE_SUPPORT=y
+CONFIG_SEC_FIRMWARE_ARMV8_PSCI=y
+CONFIG_OF_BOARD_FIXUP=y
+CONFIG_SYS_FSL_NUM_CC_PLLS=4
+CONFIG_REMAKE_ELF=y
+CONFIG_MP=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
+# CONFIG_EFI_LOADER is not set
+CONFIG_OF_BOARD_SETUP=y
+CONFIG_SYS_PBSIZE=532
+# CONFIG_ID_EEPROM is not set
+CONFIG_CMDLINE_PS_SUPPORT=y
+CONFIG_CMD_HISTORY=y
+CONFIG_CMD_LOG=y
+CONFIG_OF_CONTROL=y
+CONFIG_DYNAMIC_DDR_CLK_FREQ=y
+CONFIG_DDR_ECC=y
+CONFIG_ECC_INIT_VIA_DDRCONTROLLER=y
+CONFIG_SYS_FSL_DDR_INTLV_256B=y
+CONFIG_DM_I2C=y
+# CONFIG_FSL_MC_ENET is not set
+CONFIG_DM_SERIAL=y
+CONFIG_PL01X_SERIAL=y
+CONFIG_WDT=y
+CONFIG_WDT_SBSA=y
include/configs/nbxv3.h new file +13 -0
new file mode 100644
index 00000000000..6ed86639a3c
@@ -0,0 +1,13 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright 2026 Free Mobile - Vincent Jardin
+ *
+ * Nodebox v3 CPU Module config header.
+ */
+
+#ifndef __NBXV3_H
+#define __NBXV3_H
+
+#include "lx2160a_common.h"
+
+#endif /* __NBXV3_H */
Signature · 1 line
2.43.0
#2 lore raw

PATCH 2/23 doc: board: nxp: add the Nodebox v3 CPU Module (nbxv3)

In reply to Vincent Jardin

Document the Free Mobile Nodebox v3 CPU Module: how the port is laid out next to the LX2160ARDB / QDS boards, the module overview, the boot NOR layout, the kernel FIT that carries the management complex artefacts per carrier, the boot flow (mcinitcmd at initr_net, lazy DPL apply, provisioning over JTAG semihosting) and the environment variables an operator is expected to touch (carrier, mcmemsize, nbxv3_vdd_mv, the fsl_bootcmd_mcinitcmd_set sentinel).

---

 board/nxp/lx2160a/MAINTAINERS |   1 +
 doc/board/nxp/index.rst       |   1 +
 doc/board/nxp/nbxv3.rst       | 255 ++++++++++++++++++++++++++++++++++
 3 files changed, 257 insertions(+)
 create mode 100644 doc/board/nxp/nbxv3.rst
board/nxp/lx2160a/MAINTAINERS +1 -0
index 6f78e6e45d1..64e48823dfe 100644
@@ -61,3 +61,4 @@ F:	board/nxp/lx2160a/nbxv3/
 F:	include/configs/nbxv3.h
 F:	configs/nbxv3_tfa_defconfig
 F:	arch/arm/dts/fsl-lx2160a-nbxv3.dts
+F:	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 +255 -0

255 lines not on this page · raw message

Signature · 1 line
2.43.0
#3 lore raw

PATCH 3/23 board: nbxv3: enable RTL8211FD PHY for 1G DPAA2

In reply to Vincent Jardin

The on module 1G management port uses a Realtek RTL8211FD-CG.

With the DTS, enable the management complex/DPAA2 stack and describe the on module management port: DPMAC17 wired through RGMII1 to the RTL8211FD-CG.

The MC firmware itself is started by ${mcinitcmd}, which comes with the boot environment: until then mc_env_boot() is a no-op.

---

 arch/arm/dts/fsl-lx2160a-nbxv3.dts | 26 ++++++++++++++++++++++++++
 configs/nbxv3_tfa_defconfig        |  5 ++++-
 2 files changed, 30 insertions(+), 1 deletion(-)
arch/arm/dts/fsl-lx2160a-nbxv3.dts +26 -0
index 32f0c207a59..8caea051bed 100644
@@ -14,3 +14,29 @@
 	model = "Free Mobile Nodebox v3 CPU Module (LX2160A)";
 	compatible = "freemobile,nbxv3", "fsl,lx2160a";
 };
+
+/*
+ * E-MDIO buses.
+ * SMI1 (&emdio1) carries the on module RTL8211FD-CG,
+ * SMI2 (&emdio2) is wired to the carrier.
+ */
+&emdio1 {
+	status = "okay";
+
+	rtl8211fd: ethernet-phy@6 {
+		compatible = "ethernet-phy-id001c.c916",
+			     "ethernet-phy-ieee802.3-c22";
+		reg = <6>;
+	};
+};
+
+&emdio2 {
+	status = "okay";
+};
+
+&dpmac17 { /* DPMAC17 to RGMII1 to RTL8211FD-CG. */
+	status = "okay";
+	phy-handle = <&rtl8211fd>;
+	phy-connection-type = "rgmii-id";
+	u-boot,nickname = "lanconsole0";
+};
configs/nbxv3_tfa_defconfig +4 -1
index 86b5b44ec09..cb6043f3278 100644
@@ -22,6 +22,7 @@ CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_SYS_PBSIZE=532
 # CONFIG_ID_EEPROM is not set
+CONFIG_RESET_PHY_R=y
 CONFIG_CMDLINE_PS_SUPPORT=y
 CONFIG_CMD_HISTORY=y
 CONFIG_CMD_LOG=y
@@ -31,7 +32,9 @@ CONFIG_DDR_ECC=y
 CONFIG_ECC_INIT_VIA_DDRCONTROLLER=y
 CONFIG_SYS_FSL_DDR_INTLV_256B=y
 CONFIG_DM_I2C=y
-# CONFIG_FSL_MC_ENET is not set
+CONFIG_PHYLIB=y
+CONFIG_PHY_REALTEK=y
+CONFIG_SYS_MEMAC_LITTLE_ENDIAN=y
 CONFIG_DM_SERIAL=y
 CONFIG_PL01X_SERIAL=y
 CONFIG_WDT=y
Signature · 1 line
2.43.0
#4 lore raw

PATCH 4/23 board: nbxv3: add MPQ8785 PMBus traces + DT regulator

In reply to Vincent Jardin

Bind through the tree-level PMBus framework and add a board-local EVT_LAST_STAGE_INIT spy that prints the traces to the serial console.

---

 arch/arm/dts/fsl-lx2160a-nbxv3.dts  |  17 +++++
 board/nxp/lx2160a/Kconfig           |  11 +++
 board/nxp/lx2160a/nbxv3/Makefile    |   1 +
 board/nxp/lx2160a/nbxv3/mps_pmbus.c | 107 ++++++++++++++++++++++++++++
 4 files changed, 136 insertions(+)
 create mode 100644 board/nxp/lx2160a/nbxv3/mps_pmbus.c
arch/arm/dts/fsl-lx2160a-nbxv3.dts +17 -0
index 8caea051bed..8e336a622f3 100644
@@ -40,3 +40,20 @@
 	phy-connection-type = "rgmii-id";
 	u-boot,nickname = "lanconsole0";
 };
+
+&i2c0 { /* IIC1: on module management bus */
+	status = "okay";
+
+	regulator@10 {
+		compatible = "mps,mpq8785";
+		reg = <0x10>;
+		regulator-name = "+0V8_VDD";
+		regulator-min-microvolt = < 600000>;
+		regulator-max-microvolt = <1100000>;
+		/* MPQ8785 datasheet rating: continuous 40 A output (IOUT). */
+		regulator-min-microamp = <       0>;
+		regulator-max-microamp = <40000000>;
+		regulator-boot-on;
+		regulator-always-on;
+	};
+};
board/nxp/lx2160a/Kconfig +11 -0
index 37e8f7ff717..e46223d1b43 100644
@@ -65,4 +65,15 @@ config NBXV3_DM_EVENT
 	default y
 	select DM_EVENT
 
+config NBXV3_PMBUS
+	bool
+	default y
+	select PMBUS
+	select CMD_PMBUS
+	select DM_REGULATOR
+	select DM_REGULATOR_PMBUS_HELPER
+	select DM_REGULATOR_MPQ8785
+	select DM_REGULATOR_PMBUS_GENERIC
+	select CMD_REGULATOR
+
 endif
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 +107 -0

107 lines not on this page · raw message

Signature · 1 line
2.43.0
#5 lore raw

PATCH 5/23 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.

The PSU is a carrier device: its DT node
compatible = "pmbus",
regulator-name = "psu-48v",
pmbus,num-pages = <2>

sits behind the carrier SMBus mux tree, described with the I2C buses later in this series. Until then no generic PMBus regulator is bound and the hook prints nothing.

---

 board/nxp/lx2160a/nbxv3/Makefile    |  1 +
 board/nxp/lx2160a/nbxv3/psu_pmbus.c | 80 +++++++++++++++++++++++++++++
 2 files changed, 81 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 +80 -0

80 lines not on this page · raw message

Signature · 1 line
2.43.0
#6 lore raw

PATCH 6/23 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

Hooked at EVT_LAST_STAGE_INIT so the rail is at the VID-correct voltage before the kernel regulator framework probes the chip.

Set nbxv3_vdd_mv to a millivolt integer in [600, 1100] to bypass the VID fuse and pin the rail at the wanted voltage. Useful for bench characterisation.

---

 board/nxp/lx2160a/nbxv3/Makefile      |   1 +
 board/nxp/lx2160a/nbxv3/vid_handoff.c | 146 ++++++++++++++++++++++++++
 2 files changed, 147 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 +146 -0

146 lines not on this page · raw message

Signature · 1 line
2.43.0
#7 lore raw

PATCH 7/23 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 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}

---

 board/nxp/lx2160a/nbxv3/Makefile    |  1 +
 board/nxp/lx2160a/nbxv3/carrier.c   | 87 +++++++++++++++++++++++++++++
 board/nxp/lx2160a/nbxv3/carrier.h   | 17 ++++++
 board/nxp/lx2160a/nbxv3/eth_nbxv3.c | 10 ++++
 4 files changed, 115 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..4ce2508249d 100644
@@ -3,6 +3,7 @@
 #
 
 obj-y += eth_nbxv3.o
+obj-y += carrier.o
 obj-y += mps_pmbus.o
 obj-y += psu_pmbus.o
 obj-y += vid_handoff.o
board/nxp/lx2160a/nbxv3/carrier.c new file +87 -0

87 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 eb91d47add5..58bf8246aa0 100644
@@ -21,6 +21,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)
@@ -31,6 +33,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 defined(CONFIG_FSL_MC_ENET)
 	mc_env_boot();
 #endif
Signature · 1 line
2.43.0
#8 lore raw

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

In reply to Vincent Jardin

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

Linux: full DPLL configuration (clock tree programming, output enables, holdover policy, line side rates) is the job of the Linux DPLL driver at runtime. U-Boot only verifies presence and identity, it does not program any output.

---

 arch/arm/dts/fsl-lx2160a-nbxv3.dts     |   8 ++
 board/nxp/lx2160a/Kconfig              |   7 +
 board/nxp/lx2160a/nbxv3/Makefile       |   1 +
 board/nxp/lx2160a/nbxv3/dpll_zl30733.c | 183 +++++++++++++++++++++++++
 4 files changed, 199 insertions(+)
 create mode 100644 board/nxp/lx2160a/nbxv3/dpll_zl30733.c
arch/arm/dts/fsl-lx2160a-nbxv3.dts +8 -0
index 8e336a622f3..9dcc1bf1d5e 100644
@@ -57,3 +57,11 @@
 		regulator-always-on;
 	};
 };
+
+&dspi0 { /* DSPI1: on module management SPI */
+	dpll@0 {
+		compatible = "microchip,zl30733";
+		reg = <0>;
+		spi-max-frequency = <12500000>;
+	};
+};
board/nxp/lx2160a/Kconfig +7 -0
index e46223d1b43..12d2e418aa5 100644
@@ -76,4 +76,11 @@ config NBXV3_PMBUS
 	select DM_REGULATOR_PMBUS_GENERIC
 	select CMD_REGULATOR
 
+config NBXV3_DPLL
+	bool
+	default y
+	select SPI
+	select DM_SPI
+	select FSL_DSPI
+
 endif
board/nxp/lx2160a/nbxv3/Makefile +1 -0
index 4ce2508249d..c8a676fb708 100644
@@ -4,6 +4,7 @@
 
 obj-y += eth_nbxv3.o
 obj-y += carrier.o
+obj-y += dpll_zl30733.o
 obj-y += mps_pmbus.o
 obj-y += psu_pmbus.o
 obj-y += vid_handoff.o
board/nxp/lx2160a/nbxv3/dpll_zl30733.c new file +183 -0

183 lines not on this page · raw message

Signature · 1 line
2.43.0
#9 lore raw

PATCH 9/23 board: nbxv3: enable +3V3_FAN rail fixed regulator

In reply to Vincent Jardin

Probes the +3V3_FAN fixed regulator

The rail is regulator-always-on, so the probe drives it on and the FAN daughterboard's EMC2305 / TMP411 / EEPROM become visible to
i2c probe

---

 board/nxp/lx2160a/Kconfig           |  6 ++++++
 board/nxp/lx2160a/nbxv3/Makefile    |  1 +
 board/nxp/lx2160a/nbxv3/fan_power.c | 32 +++++++++++++++++++++++++++++
 3 files changed, 39 insertions(+)
 create mode 100644 board/nxp/lx2160a/nbxv3/fan_power.c
board/nxp/lx2160a/Kconfig +6 -0
index 12d2e418aa5..efd245bb68a 100644
@@ -83,4 +83,10 @@ config NBXV3_DPLL
 	select DM_SPI
 	select FSL_DSPI
 
+config NBXV3_FAN
+	bool
+	default y
+	select DM_REGULATOR
+	select DM_REGULATOR_FIXED
+
 endif
board/nxp/lx2160a/nbxv3/Makefile +1 -0
index c8a676fb708..82063017432 100644
@@ -8,3 +8,4 @@ obj-y += dpll_zl30733.o
 obj-y += mps_pmbus.o
 obj-y += psu_pmbus.o
 obj-y += vid_handoff.o
+obj-y += fan_power.o
board/nxp/lx2160a/nbxv3/fan_power.c new file +32 -0
new file mode 100644
index 00000000000..faa882b8bf8
@@ -0,0 +1,32 @@
+// 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
#10 lore raw

PATCH 10/23 arm: dts: layerscape: nbxv3: enable UART0..UART3

In reply to Vincent Jardin

&uart0 (LX2160ARM UART1, MMIO 0x021c0000) is the console. The remaining three (&uart1..&uart3) are available for applications at the U-Boot prompt.

Numbering note: the LX2160A has four PL011 UARTs on chip. The reference manual labels them 1 indexed (UART1..UART4); the device tree is 0 indexed (&uart0..&uart3).
The mapping is constant across the family:

 - &uart0   LX2160ARM UART1   MMIO 0x021c0000   (console)
 - &uart1   LX2160ARM UART2   MMIO 0x021d0000
 - &uart2   LX2160ARM UART3   MMIO 0x021e0000
 - &uart3   LX2160ARM UART4   MMIO 0x021f0000

TF-A also uses &uart0 for its own boot log.

U-Boot console is at 115200 8N1.

---

 arch/arm/dts/fsl-lx2160a-nbxv3.dts | 20 ++++++++++++++++++++
 configs/nbxv3_tfa_defconfig        |  1 +
 2 files changed, 21 insertions(+)
arch/arm/dts/fsl-lx2160a-nbxv3.dts +20 -0
index 9dcc1bf1d5e..9b79d2c3253 100644
@@ -13,6 +13,26 @@
 / {
 	model = "Free Mobile Nodebox v3 CPU Module (LX2160A)";
 	compatible = "freemobile,nbxv3", "fsl,lx2160a";
+
+	aliases {
+		serial0 = &uart0;
+	};
+};
+
+&uart0 {
+	status = "okay";
+};
+
+&uart1 {
+	status = "okay";
+};
+
+&uart2 {
+	status = "okay";
+};
+
+&uart3 {
+	status = "okay";
 };
 
 /*
configs/nbxv3_tfa_defconfig +1 -0
index cb6043f3278..6d55a808a76 100644
@@ -20,6 +20,7 @@ CONFIG_MP=y
 CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 # CONFIG_EFI_LOADER is not set
 CONFIG_OF_BOARD_SETUP=y
+CONFIG_OF_STDOUT_VIA_ALIAS=y
 CONFIG_SYS_PBSIZE=532
 # CONFIG_ID_EEPROM is not set
 CONFIG_RESET_PHY_R=y
Signature · 1 line
2.43.0
#11 lore raw

PATCH 11/23 board: nbxv3: enable FlexSPI boot NOR (GD55LB02GF) and FIT boot

In reply to Vincent Jardin

Enable the SPI controllers used on the module and attach the boot NOR:

- &fspi (FlexSPI) supports the 256 MiB GigaDevice GD55LB02GF boot NOR
- &dspi0 (lx2160a DSPI1, on module management SPI, already carrying the ZL30733 DPLL) and &dspi2 (DSPI3, it is the carrier general purpose SPI) are enabled.

SPI bus alias map, so the boot NOR is always sf probe 3:0:
spi0 = &dspi0,
spi2 = &dspi2,
spi3 = &fspi.

defconfig: add the needed dependencies for loading FIT images.

---

 arch/arm/dts/fsl-lx2160a-nbxv3.dts | 23 +++++++++++++++++++++++
 configs/nbxv3_tfa_defconfig        |  8 ++++++++
 2 files changed, 31 insertions(+)
arch/arm/dts/fsl-lx2160a-nbxv3.dts +23 -0
index 9b79d2c3253..fad6e3c292a 100644
@@ -16,6 +16,9 @@
 
 	aliases {
 		serial0 = &uart0;
+		spi0 = &dspi0;
+		spi2 = &dspi2;
+		spi3 = &fspi;
 	};
 };
 
@@ -79,9 +82,29 @@
 };
 
 &dspi0 { /* DSPI1: on module management SPI */
+	status = "okay";
+
 	dpll@0 {
 		compatible = "microchip,zl30733";
 		reg = <0>;
 		spi-max-frequency = <12500000>;
 	};
 };
+
+&fspi {
+	status = "okay";
+
+	flash@0 {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		compatible = "gigadevice,gd55lb02gf", "jedec,spi-nor";
+		reg = <0>;
+		spi-max-frequency = <150000000>;
+		spi-rx-bus-width = <1>;
+		spi-tx-bus-width = <1>;
+	};
+};
+
+&dspi2 {
+	status = "okay";
+};
configs/nbxv3_tfa_defconfig +8 -0
index 6d55a808a76..9cdf11b9975 100644
@@ -10,6 +10,7 @@ CONFIG_NR_DRAM_BANKS=3
 CONFIG_ENV_SIZE=0x4000
 CONFIG_DM_GPIO=y
 CONFIG_DEFAULT_DEVICE_TREE="fsl-lx2160a-nbxv3"
+CONFIG_FSPI_AHB_EN_4BYTE=y
 CONFIG_SYS_MONITOR_LEN=958464
 CONFIG_ARMV8_SEC_FIRMWARE_SUPPORT=y
 CONFIG_SEC_FIRMWARE_ARMV8_PSCI=y
@@ -19,6 +20,7 @@ CONFIG_REMAKE_ELF=y
 CONFIG_MP=y
 CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 # CONFIG_EFI_LOADER is not set
+CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
 CONFIG_SYS_PBSIZE=532
@@ -26,6 +28,7 @@ CONFIG_SYS_PBSIZE=532
 CONFIG_RESET_PHY_R=y
 CONFIG_CMDLINE_PS_SUPPORT=y
 CONFIG_CMD_HISTORY=y
+CONFIG_CMD_SPI=y
 CONFIG_CMD_LOG=y
 CONFIG_OF_CONTROL=y
 CONFIG_DYNAMIC_DDR_CLK_FREQ=y
@@ -33,10 +36,15 @@ CONFIG_DDR_ECC=y
 CONFIG_ECC_INIT_VIA_DDRCONTROLLER=y
 CONFIG_SYS_FSL_DDR_INTLV_256B=y
 CONFIG_DM_I2C=y
+CONFIG_MTD=y
+CONFIG_DM_SPI_FLASH=y
+CONFIG_SPI_FLASH_GIGADEVICE=y
 CONFIG_PHYLIB=y
 CONFIG_PHY_REALTEK=y
 CONFIG_SYS_MEMAC_LITTLE_ENDIAN=y
 CONFIG_DM_SERIAL=y
 CONFIG_PL01X_SERIAL=y
+CONFIG_NXP_FSPI=y
 CONFIG_WDT=y
 CONFIG_WDT_SBSA=y
+CONFIG_ZSTD=y
Signature · 1 line
2.43.0
#12 lore raw

PATCH 12/23 board: nbxv3: store the environment in the boot NOR

In reply to Vincent Jardin

Set the environment to the FlexSPI boot NOR:
ENV_IS_IN_SPI_FLASH on bus 3
CONFIG_ENV_OFFSET 0x500000
with a 64 KiB CONFIG_ENV_SECT_SIZE, and CONFIG_ENV_ADDR set to NXP_FLEXSPI_FLASH_ADDR (0x20000000) + offset so AHB mapped readers reach it.

The 0x500000 slot is reserved for the env in the boot NOR layout.

---

 configs/nbxv3_tfa_defconfig | 5 +++++
 1 file changed, 5 insertions(+)
configs/nbxv3_tfa_defconfig +5 -0
index 9cdf11b9975..6684fecf3a4 100644
@@ -8,12 +8,15 @@ CONFIG_SYS_MALLOC_LEN=0x202000
 CONFIG_SYS_MALLOC_F_LEN=0x6000
 CONFIG_NR_DRAM_BANKS=3
 CONFIG_ENV_SIZE=0x4000
+CONFIG_ENV_OFFSET=0x500000
+CONFIG_ENV_SECT_SIZE=0x20000
 CONFIG_DM_GPIO=y
 CONFIG_DEFAULT_DEVICE_TREE="fsl-lx2160a-nbxv3"
 CONFIG_FSPI_AHB_EN_4BYTE=y
 CONFIG_SYS_MONITOR_LEN=958464
 CONFIG_ARMV8_SEC_FIRMWARE_SUPPORT=y
 CONFIG_SEC_FIRMWARE_ARMV8_PSCI=y
+CONFIG_ENV_ADDR=0x20500000
 CONFIG_OF_BOARD_FIXUP=y
 CONFIG_SYS_FSL_NUM_CC_PLLS=4
 CONFIG_REMAKE_ELF=y
@@ -31,6 +34,8 @@ CONFIG_CMD_HISTORY=y
 CONFIG_CMD_SPI=y
 CONFIG_CMD_LOG=y
 CONFIG_OF_CONTROL=y
+CONFIG_ENV_IS_IN_SPI_FLASH=y
+CONFIG_ENV_SPI_BUS=3
 CONFIG_DYNAMIC_DDR_CLK_FREQ=y
 CONFIG_DDR_ECC=y
 CONFIG_ECC_INIT_VIA_DDRCONTROLLER=y
Signature · 1 line
2.43.0
#13 lore raw

PATCH 13/23 board: nbxv3: enable eMMC on eSDHC2

In reply to Vincent Jardin

Attach the eMMC to the second eSDHC controller of
the LX2160A.

defconfig:

- CONFIG_FSL_ESDHC=y for the controller driver.
- CONFIG_CMD_MMC=y to expose the mmc command at the prompt.
- CONFIG_MMC_HS400_SUPPORT=y for the high speed.
- CONFIG_SUPPORT_EMMC_RPMB=y to access the chip's replay protected memory block partition for secure storage.

---

 arch/arm/dts/fsl-lx2160a-nbxv3.dts | 8 ++++++++
 configs/nbxv3_tfa_defconfig        | 4 ++++
 2 files changed, 12 insertions(+)
arch/arm/dts/fsl-lx2160a-nbxv3.dts +8 -0
index fad6e3c292a..a7e9628d948 100644
@@ -108,3 +108,11 @@
 &dspi2 {
 	status = "okay";
 };
+
+&esdhc1 {
+	status = "okay";
+	bus-width = <8>;
+	non-removable;
+	mmc-hs200-1_8v;
+	mmc-hs400-1_8v;
+};
configs/nbxv3_tfa_defconfig +4 -0
index 6684fecf3a4..626f4181812 100644
@@ -31,6 +31,7 @@ CONFIG_SYS_PBSIZE=532
 CONFIG_RESET_PHY_R=y
 CONFIG_CMDLINE_PS_SUPPORT=y
 CONFIG_CMD_HISTORY=y
+CONFIG_CMD_MMC=y
 CONFIG_CMD_SPI=y
 CONFIG_CMD_LOG=y
 CONFIG_OF_CONTROL=y
@@ -41,6 +42,9 @@ CONFIG_DDR_ECC=y
 CONFIG_ECC_INIT_VIA_DDRCONTROLLER=y
 CONFIG_SYS_FSL_DDR_INTLV_256B=y
 CONFIG_DM_I2C=y
+CONFIG_SUPPORT_EMMC_RPMB=y
+CONFIG_MMC_HS400_SUPPORT=y
+CONFIG_FSL_ESDHC=y
 CONFIG_MTD=y
 CONFIG_DM_SPI_FLASH=y
 CONFIG_SPI_FLASH_GIGADEVICE=y
Signature · 1 line
2.43.0
#14 lore raw

PATCH 14/23 board: nbxv3: enable PCIe root complexes (PCIE3..PCIE6)

In reply to Vincent Jardin

Enable the four PCIe root complex controllers of the board.

Set the hotplug since the PCIe devices can be attached after Linux start.

---

 arch/arm/dts/fsl-lx2160a-nbxv3.dts | 5 +++++
 configs/nbxv3_tfa_defconfig        | 6 ++++++
 include/configs/nbxv3.h            | 6 ++++++
 3 files changed, 17 insertions(+)
arch/arm/dts/fsl-lx2160a-nbxv3.dts +5 -0
index a7e9628d948..08d3aee62a7 100644
@@ -116,3 +116,8 @@
 	mmc-hs200-1_8v;
 	mmc-hs400-1_8v;
 };
+
+&pcie3 { status = "okay"; };
+&pcie4 { status = "okay"; };
+&pcie5 { status = "okay"; };
+&pcie6 { status = "okay"; };
configs/nbxv3_tfa_defconfig +6 -0
index 626f4181812..e87373a52c3 100644
@@ -17,6 +17,7 @@ CONFIG_SYS_MONITOR_LEN=958464
 CONFIG_ARMV8_SEC_FIRMWARE_SUPPORT=y
 CONFIG_SEC_FIRMWARE_ARMV8_PSCI=y
 CONFIG_ENV_ADDR=0x20500000
+CONFIG_PCI=y
 CONFIG_OF_BOARD_FIXUP=y
 CONFIG_SYS_FSL_NUM_CC_PLLS=4
 CONFIG_REMAKE_ELF=y
@@ -28,10 +29,12 @@ CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
 CONFIG_SYS_PBSIZE=532
 # CONFIG_ID_EEPROM is not set
+CONFIG_PCI_INIT_R=y
 CONFIG_RESET_PHY_R=y
 CONFIG_CMDLINE_PS_SUPPORT=y
 CONFIG_CMD_HISTORY=y
 CONFIG_CMD_MMC=y
+CONFIG_CMD_PCI=y
 CONFIG_CMD_SPI=y
 CONFIG_CMD_LOG=y
 CONFIG_OF_CONTROL=y
@@ -51,6 +54,9 @@ CONFIG_SPI_FLASH_GIGADEVICE=y
 CONFIG_PHYLIB=y
 CONFIG_PHY_REALTEK=y
 CONFIG_SYS_MEMAC_LITTLE_ENDIAN=y
+CONFIG_PCIE_LAYERSCAPE_RC=y
+CONFIG_PCI_IOMMU_EXTRA_MAPPINGS=y
+CONFIG_PCIE_LAYERSCAPE_GEN4=y
 CONFIG_DM_SERIAL=y
 CONFIG_PL01X_SERIAL=y
 CONFIG_NXP_FSPI=y
include/configs/nbxv3.h +6 -0
index 6ed86639a3c..287f4110a7c 100644
@@ -10,4 +10,10 @@
 
 #include "lx2160a_common.h"
 
+#define CFG_EXTRA_ENV_SETTINGS						\
+	"pci_iommu_extra=pci@0x3600000,1.0.0,hp,"			\
+		"pci@0x3700000,1.0.0,hp,"				\
+		"pci@0x3800000,1.0.0,hp,"				\
+		"pci@0x3900000,1.0.0,hp\0"
+
 #endif /* __NBXV3_H */
Signature · 1 line
2.43.0
#15 lore raw

PATCH 15/23 board: nbxv3: enable both USB host controllers

In reply to Vincent Jardin

Enable the two USB host controllers on the LX2160A.

The dts nodes are already enabled by default in fsl-lx2160a.dtsi.

---

 configs/nbxv3_tfa_defconfig | 5 +++++
 1 file changed, 5 insertions(+)
configs/nbxv3_tfa_defconfig +5 -0
index e87373a52c3..7043c5c0df6 100644
@@ -36,6 +36,7 @@ CONFIG_CMD_HISTORY=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_PCI=y
 CONFIG_CMD_SPI=y
+CONFIG_CMD_USB=y
 CONFIG_CMD_LOG=y
 CONFIG_OF_CONTROL=y
 CONFIG_ENV_IS_IN_SPI_FLASH=y
@@ -60,6 +61,10 @@ CONFIG_PCIE_LAYERSCAPE_GEN4=y
 CONFIG_DM_SERIAL=y
 CONFIG_PL01X_SERIAL=y
 CONFIG_NXP_FSPI=y
+CONFIG_USB=y
+CONFIG_USB_XHCI_HCD=y
+CONFIG_USB_XHCI_DWC3=y
+CONFIG_USB_MAX_CONTROLLER_COUNT=2
 CONFIG_WDT=y
 CONFIG_WDT_SBSA=y
 CONFIG_ZSTD=y
Signature · 1 line
2.43.0
#16 lore raw

PATCH 16/23 board: nbxv3: describe the I2C buses and their on module devices

In reply to Vincent Jardin

Enable the remaining I2C controllers and set the devices on those bus.

- &i2c0 (IIC1, on CPU module management)
- &i2c1 (IIC2, carrier), &i2c2 (IIC3, carrier devices), &i2c3 (IIC4, carrier logics).
- &i2c5 (IIC6, carrier SMBus, SFPs, etc.)

The purpose is to help i2c bus and i2c probe to see the same topology than the kernel.

defconfig:
- CONFIG_CMD_I2C and CONFIG_I2C_SET_DEFAULT_BUS_NUM for the prompt
- CONFIG_MISC + CONFIG_I2C_EEPROM + CONFIG_CMD_EEPROM with the board ID EEPROM geometry
- CONFIG_DM_PCA953X for the TCA9539s
- CONFIG_I2C_MUX and CONFIG_I2C_MUX_PCA954x for the mux tree

---

 arch/arm/dts/fsl-lx2160a-nbxv3.dts | 219 +++++++++++++++++++++++++++++
 configs/nbxv3_tfa_defconfig        |  12 ++
 2 files changed, 231 insertions(+)
arch/arm/dts/fsl-lx2160a-nbxv3.dts +219 -0
index 08d3aee62a7..3b87ee32d94 100644
@@ -66,6 +66,49 @@
 
 &i2c0 { /* IIC1: on module management bus */
 	status = "okay";
+	bootph-all;
+	label = "iic1-onmodule-mgmt";
+
+	eeprom@52 { /* Board ID EEPROM */
+		compatible = "atmel,24c32";
+		reg = <0x52>;
+		pagesize = <32>;
+	};
+
+	gpio@74 {
+		compatible = "ti,tca9539";
+		reg = <0x74>;
+		#gpio-cells = <2>;
+		gpio-controller;
+		gpio-line-names =
+			"boardid-0x0001", "boardid-0x0002",
+			"boardid-0x0004", "boardid-0x0008",
+			"boardid-0x0010", "boardid-0x0020",
+			"boardid-0x0040", "boardid-0x0080",
+			"boardid-0x0100", "boardid-0x0200",
+			"boardid-0x0400", "boardid-0x0800",
+			"boardid-0x1000", "boardid-0x2000",
+			"boardid-0x4000", "boardid-0x8000";
+	};
+
+	u800: gpio@75 {
+		compatible = "ti,tca9539";
+		reg = <0x75>;
+		#gpio-cells = <2>;
+		gpio-controller;
+		#interrupt-cells = <2>;
+		interrupt-controller;
+		gpio-line-names =
+			"fap-rst#",
+			"fap-int#",
+			"fap-pcie-rst#",
+			"dpll-fap-rdy#",
+			"dpll-fap-rst#",
+			"carrier-gpio5",  "carrier-gpio6", "carrier-gpio7",
+			"carrier-gpio8",  "carrier-gpio9",
+			"carrier-gpio10", "carrier-gpio11",
+			"", "", "", "";
+	};
 
 	regulator@10 {
 		compatible = "mps,mpq8785";
@@ -121,3 +164,179 @@
 &pcie4 { status = "okay"; };
 &pcie5 { status = "okay"; };
 &pcie6 { status = "okay"; };
+
+&i2c1 {
+	status = "okay";
+	label = "iic2-carrier-i2c0";
+};
+
+&i2c2 {
+	status = "okay";
+	label = "iic3-fap-mgmt";
+};
+
+&i2c3 {
+	status = "okay";
+	label = "iic4-carrier-mcu";
+};
+
+&i2c5 {
+	status = "okay";
+	label = "iic6-carrier-smbus";
+	#address-cells = <1>;
+	#size-cells = <0>;
+
+	eeprom@57 {
+		compatible = "atmel,24c64";
+		reg = <0x57>;
+		pagesize = <32>;
+	};
+
+	pca9548@70 {
+		compatible = "nxp,pca9548";
+		reg = <0x70>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		i2c-mux-idle-disconnect;
+
+		i2c@1 {
+			reg = <1>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			tmp411@4c { compatible = "ti,tmp411"; reg = <0x4c>; };
+			tmp411@4d { compatible = "ti,tmp411"; reg = <0x4d>; };
+		};
+
+		i2c@2 {
+			reg = <2>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			pmic@15  {
+				compatible = "pmbus";
+				reg = <0x15>;
+				regulator-name = "psu-48v";
+				pmbus,num-pages = <2>;
+			};
+			eeprom@50 { compatible = "atmel,24c32"; reg = <0x50>; };
+		};
+
+		i2c@3 {
+			reg = <3>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+		};
+
+		i2c@4 {
+			reg = <4>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			tmp411@4c { compatible = "ti,tmp411"; reg = <0x4c>; };
+			tmp411@4d { compatible = "ti,tmp411"; reg = <0x4d>; };
+
+			gpio@75 {
+				compatible = "ti,tca9539";
+				reg = <0x75>;
+				#gpio-cells = <2>;
+				gpio-controller;
+			};
+
+			carrier_u186: gpio@76 {
+				compatible = "ti,tca9539";
+				reg = <0x76>;
+				#gpio-cells = <2>;
+				gpio-controller;
+				/* P0_4 = fan-en-pwr -- FAN power rail enable, U186.P0_4 */
+			};
+		};
+
+		i2c@5 {
+			reg = <5>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			pca9548@71 {
+				compatible = "nxp,pca9548";
+				reg = <0x71>;
+				#address-cells = <1>;
+				#size-cells = <0>;
+				i2c-mux-idle-disconnect;
+
+				i2c@0 { reg = <0>; #address-cells = <1>; #size-cells = <0>; };
+				i2c@1 { reg = <1>; #address-cells = <1>; #size-cells = <0>; };
+				i2c@2 { reg = <2>; #address-cells = <1>; #size-cells = <0>; };
+				i2c@3 { reg = <3>; #address-cells = <1>; #size-cells = <0>; };
+				i2c@4 { reg = <4>; #address-cells = <1>; #size-cells = <0>; };
+				i2c@5 { reg = <5>; #address-cells = <1>; #size-cells = <0>; };
+				i2c@6 { reg = <6>; #address-cells = <1>; #size-cells = <0>; };
+				i2c@7 { reg = <7>; #address-cells = <1>; #size-cells = <0>; };
+			};
+		};
+
+		i2c@6 {
+			reg = <6>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			pca9548@71 {
+				compatible = "nxp,pca9548";
+				reg = <0x71>;
+				#address-cells = <1>;
+				#size-cells = <0>;
+				i2c-mux-idle-disconnect;
+
+				i2c@0 { reg = <0>; #address-cells = <1>; #size-cells = <0>; };
+				i2c@1 { reg = <1>; #address-cells = <1>; #size-cells = <0>; };
+				i2c@2 { reg = <2>; #address-cells = <1>; #size-cells = <0>; };
+				i2c@3 { reg = <3>; #address-cells = <1>; #size-cells = <0>; };
+				i2c@4 { reg = <4>; #address-cells = <1>; #size-cells = <0>; };
+				i2c@5 { reg = <5>; #address-cells = <1>; #size-cells = <0>; };
+				i2c@6 { reg = <6>; #address-cells = <1>; #size-cells = <0>; };
+				i2c@7 { reg = <7>; #address-cells = <1>; #size-cells = <0>; };
+			};
+		};
+
+		i2c@7 {
+			reg = <7>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			pca9548@71 {
+				compatible = "nxp,pca9548";
+				reg = <0x71>;
+				#address-cells = <1>;
+				#size-cells = <0>;
+				i2c-mux-idle-disconnect;
+
+				i2c@0 {
+					reg = <0>;
+					#address-cells = <1>;
+					#size-cells = <0>;
+
+					fan-controller@2c { compatible = "microchip,emc2305"; reg = <0x2c>; };
+					eeprom@50         { compatible = "atmel,24c32";       reg = <0x50>; };
+					tmp411@4c         { compatible = "ti,tmp411";          reg = <0x4c>; };
+					tmp411@4d         { compatible = "ti,tmp411";          reg = <0x4d>; };
+				};
+
+				i2c@1 { reg = <1>; #address-cells = <1>; #size-cells = <0>; };
+				i2c@2 { reg = <2>; #address-cells = <1>; #size-cells = <0>; };
+
+				i2c@3 {
+					reg = <3>;
+					#address-cells = <1>;
+					#size-cells = <0>;
+
+					regulator@1f { compatible = "mps,mpq8785"; reg = <0x1f>; };
+					tmp411@4c    { compatible = "ti,tmp411";   reg = <0x4c>; };
+				};
+
+				i2c@5 { reg = <5>; #address-cells = <1>; #size-cells = <0>; };
+				i2c@6 { reg = <6>; #address-cells = <1>; #size-cells = <0>; };
+				i2c@7 { reg = <7>; #address-cells = <1>; #size-cells = <0>; };
+			};
+		};
+	};
+};
configs/nbxv3_tfa_defconfig +12 -0
index 7043c5c0df6..7af9124bc6e 100644
@@ -33,6 +33,11 @@ CONFIG_PCI_INIT_R=y
 CONFIG_RESET_PHY_R=y
 CONFIG_CMDLINE_PS_SUPPORT=y
 CONFIG_CMD_HISTORY=y
+CONFIG_CMD_EEPROM=y
+CONFIG_SYS_I2C_EEPROM_ADDR_LEN=2
+CONFIG_SYS_EEPROM_PAGE_WRITE_BITS=5
+CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS=5
+CONFIG_CMD_I2C=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_PCI=y
 CONFIG_CMD_SPI=y
@@ -45,7 +50,14 @@ CONFIG_DYNAMIC_DDR_CLK_FREQ=y
 CONFIG_DDR_ECC=y
 CONFIG_ECC_INIT_VIA_DDRCONTROLLER=y
 CONFIG_SYS_FSL_DDR_INTLV_256B=y
+CONFIG_DM_PCA953X=y
 CONFIG_DM_I2C=y
+CONFIG_I2C_SET_DEFAULT_BUS_NUM=y
+CONFIG_I2C_MUX=y
+CONFIG_I2C_MUX_PCA954x=y
+CONFIG_MISC=y
+CONFIG_I2C_EEPROM=y
+CONFIG_SYS_I2C_EEPROM_ADDR=0x52
 CONFIG_SUPPORT_EMMC_RPMB=y
 CONFIG_MMC_HS400_SUPPORT=y
 CONFIG_FSL_ESDHC=y
Signature · 1 line
2.43.0
#17 lore raw

PATCH 17/23 arm: dts: nbxv3: add the +3V3_FAN regulator

In reply to Vincent Jardin

Declare the +3V3_FAN fixed regulator (fan-en-pwr) on the carrier chassis management expander of the IIC6 mux tree.

---

 arch/arm/dts/fsl-lx2160a-nbxv3.dts | 22 +++++++++++++++++-----
 1 file changed, 17 insertions(+), 5 deletions(-)
arch/arm/dts/fsl-lx2160a-nbxv3.dts +17 -5
index 3b87ee32d94..2047709f5b7 100644
@@ -8,6 +8,7 @@
 
 /dts-v1/;
 
+#include <dt-bindings/gpio/gpio.h>
 #include "fsl-lx2160a.dtsi"
 
 / {
@@ -248,7 +249,6 @@
 				reg = <0x76>;
 				#gpio-cells = <2>;
 				gpio-controller;
-				/* P0_4 = fan-en-pwr -- FAN power rail enable, U186.P0_4 */
 			};
 		};
 
@@ -315,10 +315,10 @@
 					#address-cells = <1>;
 					#size-cells = <0>;
 
-					fan-controller@2c { compatible = "microchip,emc2305"; reg = <0x2c>; };
-					eeprom@50         { compatible = "atmel,24c32";       reg = <0x50>; };
-					tmp411@4c         { compatible = "ti,tmp411";          reg = <0x4c>; };
-					tmp411@4d         { compatible = "ti,tmp411";          reg = <0x4d>; };
+					fan-controller@2c { compatible = "microchip,emc2305"; reg = <0x2c>; vcc-supply = <&fan_3v3>; };
+					eeprom@50         { compatible = "atmel,24c32";       reg = <0x50>; vcc-supply = <&fan_3v3>; };
+					tmp411@4c         { compatible = "ti,tmp411";          reg = <0x4c>; vcc-supply = <&fan_3v3>; };
+					tmp411@4d         { compatible = "ti,tmp411";          reg = <0x4d>; vcc-supply = <&fan_3v3>; };
 				};
 
 				i2c@1 { reg = <1>; #address-cells = <1>; #size-cells = <0>; };
@@ -340,3 +340,15 @@
 		};
 	};
 };
+
+/ {
+	fan_3v3: regulator-fan-3v3 {
+		compatible = "regulator-fixed";
+		regulator-name = "+3V3_FAN";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		gpio = <&carrier_u186 4 GPIO_ACTIVE_HIGH>;
+		enable-active-high;
+		regulator-always-on;
+	};
+};
Signature · 1 line
2.43.0
#18 lore raw

PATCH 18/23 board: nbxv3: enable JC42 + QorIQ TMU + PMBus thermal

In reply to Vincent Jardin

Add the U-Boot temperature command on Nodebox v3 across the various thermal sources the board supports:
- the JC42 SPD temperature sensors of the two DDR4 SODIMMs
- the QorIQ TMU of the lx2160a
- the MPQ8785 die temperature, spawned by the PMBus regulator driver

---

 arch/arm/dts/fsl-lx2160a-nbxv3.dts | 12 ++++++++++++
 configs/nbxv3_tfa_defconfig        |  5 +++++
 2 files changed, 17 insertions(+)
arch/arm/dts/fsl-lx2160a-nbxv3.dts +12 -0
index 2047709f5b7..ad10326ad48 100644
@@ -111,6 +111,18 @@
 			"", "", "", "";
 	};
 
+	temp@18 {
+		compatible = "jedec,jc-42.4-temp";
+		reg = <0x18>;
+		label = "ddr-top";
+	};
+
+	temp@19 {
+		compatible = "jedec,jc-42.4-temp";
+		reg = <0x19>;
+		label = "ddr-bottom";
+	};
+
 	regulator@10 {
 		compatible = "mps,mpq8785";
 		reg = <0x10>;
configs/nbxv3_tfa_defconfig +5 -0
index 7af9124bc6e..8113e51c672 100644
@@ -41,6 +41,7 @@ CONFIG_CMD_I2C=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_PCI=y
 CONFIG_CMD_SPI=y
+CONFIG_CMD_TEMPERATURE=y
 CONFIG_CMD_USB=y
 CONFIG_CMD_LOG=y
 CONFIG_OF_CONTROL=y
@@ -73,6 +74,10 @@ CONFIG_PCIE_LAYERSCAPE_GEN4=y
 CONFIG_DM_SERIAL=y
 CONFIG_PL01X_SERIAL=y
 CONFIG_NXP_FSPI=y
+CONFIG_DM_THERMAL=y
+CONFIG_IMX_TMU=y
+CONFIG_DM_THERMAL_JC42=y
+CONFIG_PMBUS_THERMAL=y
 CONFIG_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
Signature · 1 line
2.43.0
#19 lore raw

PATCH 19/23 board: nbxv3: enable HW crypto (CAAM) and rng command

In reply to Vincent Jardin

Enable the LX2160A on chip CAAM (hash, rng).

---

 configs/nbxv3_tfa_defconfig | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
configs/nbxv3_tfa_defconfig +3 -1
index 8113e51c672..554e0bf20ac 100644
@@ -43,10 +43,12 @@ CONFIG_CMD_PCI=y
 CONFIG_CMD_SPI=y
 CONFIG_CMD_TEMPERATURE=y
 CONFIG_CMD_USB=y
+CONFIG_CMD_RNG=y
 CONFIG_CMD_LOG=y
 CONFIG_OF_CONTROL=y
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_ENV_SPI_BUS=3
+CONFIG_FSL_CAAM=y
 CONFIG_DYNAMIC_DDR_CLK_FREQ=y
 CONFIG_DDR_ECC=y
 CONFIG_ECC_INIT_VIA_DDRCONTROLLER=y
@@ -56,7 +58,6 @@ CONFIG_DM_I2C=y
 CONFIG_I2C_SET_DEFAULT_BUS_NUM=y
 CONFIG_I2C_MUX=y
 CONFIG_I2C_MUX_PCA954x=y
-CONFIG_MISC=y
 CONFIG_I2C_EEPROM=y
 CONFIG_SYS_I2C_EEPROM_ADDR=0x52
 CONFIG_SUPPORT_EMMC_RPMB=y
@@ -71,6 +72,7 @@ CONFIG_SYS_MEMAC_LITTLE_ENDIAN=y
 CONFIG_PCIE_LAYERSCAPE_RC=y
 CONFIG_PCI_IOMMU_EXTRA_MAPPINGS=y
 CONFIG_PCIE_LAYERSCAPE_GEN4=y
+CONFIG_DM_RNG=y
 CONFIG_DM_SERIAL=y
 CONFIG_PL01X_SERIAL=y
 CONFIG_NXP_FSPI=y
Signature · 1 line
2.43.0
#20 lore raw

PATCH 20/23 arm: dts: nbxv3: bump SBSA watchdog timeout to 120s

In reply to Vincent Jardin

The shared fsl-lx2160a.dtsi sets timeout-sec = 30 on the SBSA generic watchdog. 30s can be too short on various slow boot paths.

---

 arch/arm/dts/fsl-lx2160a-nbxv3.dts | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/dts/fsl-lx2160a-nbxv3.dts +4 -0
index ad10326ad48..d2e4cb53bf1 100644
@@ -364,3 +364,7 @@
 		regulator-always-on;
 	};
 };
+
+&wdt0 {
+	timeout-sec = <120>;
+};
Signature · 1 line
2.43.0
#21 lore raw

PATCH 21/23 board: nbxv3: add operator commands and JTAG semihosting

In reply to Vincent Jardin

Extend the u-boot prompt with few helpers:
- CONFIG_CMD_DM, CONFIG_CMD_CACHE, CONFIG_CMD_WDT, CONFIG_CMD_GREPENV:
driver model tree, cache control, watchdog control, environment grep.

- CONFIG_SEMIHOSTING with CONFIG_SEMIHOSTING_FALLBACK: a module with a blank NOR is provisioned over JTAG (load hostfs - <addr> <file> from the debugger host, used by the provision_openocd_fit macro of the boot environment).

- CONFIG_LAST_STAGE_INIT: the board hooks run on EVT_LAST_STAGE_INIT (already dispatched since DM_EVENT selects EVENT); make the intent explicit in the configuration.

---

 configs/nbxv3_tfa_defconfig | 6 ++++++
 1 file changed, 6 insertions(+)
configs/nbxv3_tfa_defconfig +6 -0
index 554e0bf20ac..040353c4a03 100644
@@ -28,21 +28,26 @@ CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
 CONFIG_SYS_PBSIZE=532
+CONFIG_LAST_STAGE_INIT=y
 # CONFIG_ID_EEPROM is not set
 CONFIG_PCI_INIT_R=y
 CONFIG_RESET_PHY_R=y
 CONFIG_CMDLINE_PS_SUPPORT=y
 CONFIG_CMD_HISTORY=y
+CONFIG_CMD_GREPENV=y
 CONFIG_CMD_EEPROM=y
 CONFIG_SYS_I2C_EEPROM_ADDR_LEN=2
 CONFIG_SYS_EEPROM_PAGE_WRITE_BITS=5
 CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS=5
+CONFIG_CMD_DM=y
 CONFIG_CMD_I2C=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_PCI=y
 CONFIG_CMD_SPI=y
 CONFIG_CMD_TEMPERATURE=y
 CONFIG_CMD_USB=y
+CONFIG_CMD_WDT=y
+CONFIG_CMD_CACHE=y
 CONFIG_CMD_RNG=y
 CONFIG_CMD_LOG=y
 CONFIG_OF_CONTROL=y
@@ -86,4 +91,5 @@ CONFIG_USB_XHCI_DWC3=y
 CONFIG_USB_MAX_CONTROLLER_COUNT=2
 CONFIG_WDT=y
 CONFIG_WDT_SBSA=y
+CONFIG_SEMIHOSTING=y
 CONFIG_ZSTD=y
Signature · 1 line
2.43.0
#22 lore raw

PATCH 22/23 board: nbxv3: enable GPIO controllers with line names and hogs

In reply to Vincent Jardin

Label every pin via gpio-line-names so gpio status prints meaningful names.

Most pads on this module are alt function consumed (UART, IIC, SDHC, XSPI, RGMII); those keep an "altfn:" prefixed name, not connected pins "nc", and the lines with a real GPIO identity.

defconfig: CONFIG_MPC8XXX_GPIO ("fsl,qoriq-gpio" driver), CONFIG_CMD_GPIO, and CONFIG_GPIO_HOG so the hogs can be applied.

---

 arch/arm/dts/fsl-lx2160a-nbxv3.dts | 161 +++++++++++++++++++++++++++++
 configs/nbxv3_tfa_defconfig        |   3 +
 2 files changed, 164 insertions(+)
arch/arm/dts/fsl-lx2160a-nbxv3.dts +161 -0
index d2e4cb53bf1..40b76cec333 100644
@@ -368,3 +368,164 @@
 &wdt0 {
 	timeout-sec = <120>;
 };
+
+/* GPIO misc helper namings based on lx2160arm documentation */
+&gpio0 {
+	gpio-line-names =
+		"nc", "nc",
+		"altfn:iic1-scl",
+		"altfn:iic1-sda",
+		"altfn:uart4-sin",
+		"altfn:uart4-sout",
+		"altfn:uart2-sin",
+		"altfn:uart2-sout-cfg-rcw-src0",
+		"altfn:uart3-sin",
+		"altfn:uart3-sout",
+		"altfn:uart1-sin",
+		"altfn:uart1-sout-cfg-rcw-src1",
+		"altfn:spi3-pcs3",
+		"altfn:spi3-pcs2",
+		"altfn:spi3-pcs1",
+		"altfn:spi3-pcs0",
+		"altfn:spi1-sck",
+		"altfn:spi1-sin",
+		"altfn:spi1-pcs2",
+		"altfn:spi1-pcs1",
+		"altfn:spi1-pcs0-u1700-zl30733",
+		"altfn:spi1-sout",
+		"altfn:iic6-sda",
+		"altfn:iic6-scl",
+		"altfn:spi3-sin",
+		"altfn:spi3-sout",
+		"altfn:iic4-sda",
+		"altfn:iic4-scl",
+		"altfn:iic3-sda",
+		"altfn:iic3-scl",
+		"altfn:iic2-sda",
+		"altfn:iic2-scl";
+};
+
+&gpio1 {
+	gpio-line-names =
+		"nc", "nc", "nc", "nc", "nc", "nc",
+		"cfg-rcw-src2",
+		"cfg-rcw-src3",
+		"reset-req-b",
+		"altfn:sdhc2-clk-u700-emmc",
+		"altfn:sdhc2-ds-u700-emmc",
+		"altfn:sdhc2-dat0-u700-emmc",
+		"altfn:sdhc2-dat1-u700-emmc",
+		"altfn:sdhc2-dat2-u700-emmc",
+		"altfn:sdhc2-dat3-u700-emmc",
+		"altfn:sdhc2-dat4-u700-emmc",
+		"altfn:sdhc2-dat5-u700-emmc",
+		"altfn:sdhc2-dat6-u700-emmc",
+		"altfn:sdhc2-dat7-u700-emmc",
+		"altfn:sdhc2-cmd-u700-emmc",
+		"cfg-svr1",
+		"altfn:xspi1-cs0-u1000-u1100-gd55lb02gf",
+		"altfn:xspi1-sck-cfg-eng-use0",
+		"thermtrip",
+		"altfn:xspi1-data0-mosi",
+		"altfn:xspi1-data1-miso",
+		"nc",
+		"nc",
+		"u1000-u1100-gd55lb02gf-reset#",
+		"pltrst#",
+		"nc",
+		"ethsw-reset#";
+
+	pltrst-hog {
+		gpio-hog;
+		gpios = <29 1>;
+		output-low;
+		line-name = "pltrst-deassert";
+	};
+
+	thermtrip-hog {
+		gpio-hog;
+		gpios = <23 0>;
+		output-low;
+		line-name = "thermtrip-deassert";
+	};
+
+	flash-reset-hog {
+		gpio-hog;
+		gpios = <28 1>;
+		output-low;
+		line-name = "flash-reset-deassert";
+	};
+
+	ethsw-reset-hog {
+		gpio-hog;
+		gpios = <31 0>;
+		output-high;
+		line-name = "ethsw-reset-deassert";
+	};
+};
+
+&gpio2 {
+	gpio-line-names =
+		"irq00#",
+		"i2c2-alert#",
+		"i2c4-alert#",
+		"i2c6-alert#",
+		"u800-tca9539-int#",
+		"spi3-alert#",
+		"wake0",
+		"wake1",
+		"carrier-hot#",
+		"u1300-rtl8211fd-int#",
+		"ethsw-int#",
+		"nc",
+		"nc",
+		"u1700-zl30733-clk-gpio0",
+		"u1700-zl30733-clk-gpio1",
+		"u1700-zl30733-clk-gpio2",
+		"u1700-zl30733-clk-gpio3",
+		"nc", "nc", "nc", "nc", "nc", "nc", "nc", "nc",
+		"nc", "nc", "nc", "nc", "nc", "nc", "nc";
+};
+
+&gpio3 {
+	gpio-line-names =
+		"altfn:ec1-txd3-rgmii1",
+		"altfn:ec1-txd2-rgmii1",
+		"altfn:ec1-txd1-rgmii1",
+		"altfn:ec1-txd0-rgmii1",
+		"altfn:ec1-tx-en-rgmii1",
+		"altfn:ec1-gtx-clk-rgmii1",
+		"altfn:ec1-rxd3-rgmii1",
+		"altfn:ec1-rxd2-rgmii1",
+		"altfn:ec1-rxd1-rgmii1",
+		"altfn:ec1-rxd0-rgmii1",
+		"altfn:ec1-rx-clk-rgmii1",
+		"altfn:ec1-rx-dv-rgmii1",
+		"nc",
+		"nc",
+		"ptp-refclk-in",
+		"nc",
+		"nc",
+		"nc",
+		"nc",
+		"nc",
+		"nc",
+		"nc",
+		"nc",
+		"u1700-zl30733-pps-out",
+		"nc",
+		"ethsw-mdio-en",
+		"usb01-oc#",
+		"nc",
+		"usb01-oc#",
+		"altfn:spi3-sck",
+		"nc",
+		"nc";
+
+	ethsw-mdio-en-hog {
+		gpio-hog;
+		gpios = <25 0>;
+		output-low;
+		line-name = "ethsw-mdio-en";
+	};
+};
configs/nbxv3_tfa_defconfig +3 -0
index 040353c4a03..a4c8419f0c3 100644
@@ -40,6 +40,7 @@ CONFIG_SYS_I2C_EEPROM_ADDR_LEN=2
 CONFIG_SYS_EEPROM_PAGE_WRITE_BITS=5
 CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS=5
 CONFIG_CMD_DM=y
+CONFIG_CMD_GPIO=y
 CONFIG_CMD_I2C=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_PCI=y
@@ -58,7 +59,9 @@ CONFIG_DYNAMIC_DDR_CLK_FREQ=y
 CONFIG_DDR_ECC=y
 CONFIG_ECC_INIT_VIA_DDRCONTROLLER=y
 CONFIG_SYS_FSL_DDR_INTLV_256B=y
+CONFIG_GPIO_HOG=y
 CONFIG_DM_PCA953X=y
+CONFIG_MPC8XXX_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_I2C_SET_DEFAULT_BUS_NUM=y
 CONFIG_I2C_MUX=y
Signature · 1 line
2.43.0
#23 lore raw

PATCH 23/23 board: nbxv3: add the boot environment (FIT over MC, MC memory, PS1)

In reply to Vincent Jardin

Add the production boot environment in CFG_EXTRA_ENV_SETTINGS. The kernel FIT at NOR offset 0x1000000 carries the kernel, DTB, optional ramdisk and the LX2160A management complex artefacts (mc, dpc-<carrier>, dpl-<carrier>) as sub-images.

The usage of those variables is described in doc/board/nxp/nbxv3.rst.

---

 configs/nbxv3_tfa_defconfig |  8 ++++++++
 include/configs/nbxv3.h     | 40 ++++++++++++++++++++++++++++++++++++-
 2 files changed, 47 insertions(+), 1 deletion(-)
configs/nbxv3_tfa_defconfig +8 -0
index a4c8419f0c3..bc90bb0594c 100644
@@ -25,8 +25,12 @@ CONFIG_MP=y
 CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 # CONFIG_EFI_LOADER is not set
 CONFIG_FIT_VERBOSE=y
+CONFIG_BOOTDELAY=3
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
+CONFIG_USE_BOOTARGS=y
+CONFIG_BOOTARGS="console=ttyAMA0,115200 earlycon=pl011,mmio32,0x21c0000 nokaslr"
+CONFIG_USE_PREBOOT=y
 CONFIG_SYS_PBSIZE=532
 CONFIG_LAST_STAGE_INIT=y
 # CONFIG_ID_EEPROM is not set
@@ -52,8 +56,12 @@ CONFIG_CMD_CACHE=y
 CONFIG_CMD_RNG=y
 CONFIG_CMD_LOG=y
 CONFIG_OF_CONTROL=y
+CONFIG_ENV_OVERWRITE=y
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_ENV_SPI_BUS=3
+CONFIG_USE_ETHPRIME=y
+CONFIG_ETHPRIME="lanconsole0"
+CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_FSL_CAAM=y
 CONFIG_DYNAMIC_DDR_CLK_FREQ=y
 CONFIG_DDR_ECC=y
include/configs/nbxv3.h +39 -1
index 287f4110a7c..c266e0f9fe2 100644
@@ -14,6 +14,44 @@
 	"pci_iommu_extra=pci@0x3600000,1.0.0,hp,"			\
 		"pci@0x3700000,1.0.0,hp,"				\
 		"pci@0x3800000,1.0.0,hp,"				\
-		"pci@0x3900000,1.0.0,hp\0"
+		"pci@0x3900000,1.0.0,hp\0"				\
+	"kernel_addr_r=0xc0000000\0"					\
+	"fit_nor_offset=0x1000000\0"					\
+	"fit_nor_size=0x1000000\0"					\
+	"mcmemsize=0x70000000\0"					\
+	"mcinitcmd="							\
+		"sf probe 3:0 && "					\
+		"sf read ${kernel_addr_r} ${fit_nor_offset} ${fit_nor_size} && "\
+		"imxtract ${kernel_addr_r} mc 0xa8000000 && "		\
+		"imxtract ${kernel_addr_r} dpc-${carrier} 0xa9000000 && "\
+		"imxtract ${kernel_addr_r} dpl-${carrier} 0xaa000000 && "\
+		"fsl_mc start mc 0xa8000000 0xa9000000 && "		\
+		"fsl_mc lazyapply dpl 0xaa000000\0"			\
+	"mc_init=bootm ${kernel_addr_r}#conf-${carrier}\0"		\
+	"linux_boot_fit="						\
+		"sf probe 3:0 && "					\
+		"sf read ${kernel_addr_r} ${fit_nor_offset} ${fit_nor_size} && "\
+		"bootm ${kernel_addr_r}#conf-${carrier}\0"		\
+	"host_boot="							\
+		"load semihosting - ${kernel_addr_r} fit.itb && "	\
+		"bootm ${kernel_addr_r}#conf-${carrier}\0"		\
+	"provision_openocd_fit="					\
+		"load semihosting - ${kernel_addr_r} fit.itb && "	\
+		"sf probe 3:0 && "					\
+		"sf erase ${fit_nor_offset} ${fit_nor_size} && "	\
+		"sf write ${kernel_addr_r} ${fit_nor_offset} ${filesize} && "\
+		"reset\0"						\
+	"xspi_bootcmd="							\
+		"cp.b 0x21000000 ${kernel_addr_r} ${fit_nor_size} && "	\
+		"bootm ${kernel_addr_r}#conf-${carrier}\0"		\
+	"fsl_bootcmd_mcinitcmd_set=y\0"					\
+	"bootcmd=run mc_init || run provision_openocd_fit\0"		\
+	"mdio_list="							\
+		"echo === Nbxv3 probed PHYs === && "			\
+		"mdio list\0"						\
+	"PS1=nbxv3> \0"							\
+	"ps_refresh="							\
+		"setenv PS1 \"nbxv3 ${ethact} ${ipaddr}> \"\0"		\
+	"preboot=run mdio_list ; run ps_refresh\0"
 
 #endif /* __NBXV3_H */
Signature · 1 line
2.43.0
#24 lore raw
In reply to Vincent Jardin
Quoted 9 lines · Vincent Jardin

This series adds the Free Mobile Nodebox v3 CPU Module, an NXP LX2160A based board (16x Cortex-A72, DPAA2). U-Boot is the BL33 payload of TF-A: BL2 trains the DDR, BL31 hands over, and U-Boot boots a FIT image (kernel + MC firmware + DPC/DPL) from a single FlexSPI NOR. The module plugs onto several carrier boards (NBV30, NBV32, etc.) that share one kernel image but differ in their device tree and DPAA2 data path.

Why just FIT and not UEFI?

Quoted 20 lines

The port is modelled on the LX2160ARDB / QDS boards and lives next to them under board/nxp/lx2160a/, reusing their SoC level code. Board specific behaviour is wired through EVENT_SPY hooks rather than weak symbol overrides, and the dependencies each hook needs are forced on by hidden default-y Kconfig bools under if TARGET_NBXV3, so a hook cannot silently turn into a no-op.

The series is in three stages:

1. Base port and documentation (patches 1-2): TARGET_NBXV3, the defconfig, a minimal device tree, the MAINTAINERS entry, the Ethernet wiring file and doc/board/nxp/nbxv3.rst.

2. Board code (patches 3-9): DPAA2 Ethernet on DPMAC17 through the RTL8211FD PHY; the +0V8_VDD core rail (MPS MPQ8785 PMBus regulator snapshot, PMBus PSU snapshot, VID fuse driven voltage trim through UCLASS_REGULATOR); the ${carrier} selection that lets one FIT carry a DPC/DPL/DTB set per carrier; the ZL30733 / ZL30643 DPLL traces; the +3V3_FAN rail hook.

Quoted 3 lines

3. Build and device tree settings (patches 10-23): one small commit per peripheral or features, each enabling its DT nodes and defconfig symbols.

The device tree should be sent upstream to the Linux kernel and then I think most of 10-23 should be compacted to a single patch.

Quoted 68 lines

Vincent Jardin (23):
board: nxp: add Nodebox v3 CPU Module (LX2160A) base port
doc: board: nxp: add the Nodebox v3 CPU Module (nbxv3)
board: nbxv3: enable RTL8211FD PHY for 1G DPAA2
board: nbxv3: add MPQ8785 PMBus traces + DT regulator
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
arm: dts: layerscape: nbxv3: enable UART0..UART3
board: nbxv3: enable FlexSPI boot NOR (GD55LB02GF) and FIT boot
board: nbxv3: store the environment in the boot NOR
board: nbxv3: enable eMMC on eSDHC2
board: nbxv3: enable PCIe root complexes (PCIE3..PCIE6)
board: nbxv3: enable both USB host controllers
board: nbxv3: describe the I2C buses and their on module devices
arm: dts: nbxv3: add the +3V3_FAN regulator
board: nbxv3: enable JC42 + QorIQ TMU + PMBus thermal
board: nbxv3: enable HW crypto (CAAM) and rng command
arm: dts: nbxv3: bump SBSA watchdog timeout to 120s
board: nbxv3: add operator commands and JTAG semihosting
board: nbxv3: enable GPIO controllers with line names and hogs
board: nbxv3: add the boot environment (FIT over MC, MC memory, PS1)

 arch/arm/Kconfig                       |  12 +
 arch/arm/dts/Makefile                  |   1 +
 arch/arm/dts/fsl-lx2160a-nbxv3.dts     | 531 +++++++++++++++++++++++++
 board/nxp/lx2160a/Kconfig              |  45 +++
 board/nxp/lx2160a/MAINTAINERS          |   9 +
 board/nxp/lx2160a/Makefile             |   1 +
 board/nxp/lx2160a/nbxv3/Makefile       |  11 +
 board/nxp/lx2160a/nbxv3/carrier.c      |  87 ++++
 board/nxp/lx2160a/nbxv3/carrier.h      |  17 +
 board/nxp/lx2160a/nbxv3/dpll_zl30733.c | 183 +++++++++
 board/nxp/lx2160a/nbxv3/eth_nbxv3.c    |  77 ++++
 board/nxp/lx2160a/nbxv3/fan_power.c    |  32 ++
 board/nxp/lx2160a/nbxv3/mps_pmbus.c    | 107 +++++
 board/nxp/lx2160a/nbxv3/psu_pmbus.c    |  80 ++++
 board/nxp/lx2160a/nbxv3/vid_handoff.c  | 146 +++++++
 configs/nbxv3_tfa_defconfig            | 106 +++++
 doc/board/nxp/index.rst                |   1 +
 doc/board/nxp/nbxv3.rst                | 255 ++++++++++++
 include/configs/nbxv3.h                |  57 +++
 19 files changed, 1758 insertions(+)
 create mode 100644 arch/arm/dts/fsl-lx2160a-nbxv3.dts
 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: 527115ef6783cec49e5610c523c124b399011361
branch: for-upstream/nbxv3-v1

--
2.43.0

#25 lore raw

Hi Peter,

Thanks for the feedbacks, see below.

Quoted 11 lines · Peter Robinson
Quoted 9 lines · Vincent Jardin

This series adds the Free Mobile Nodebox v3 CPU Module, an NXP LX2160A based board (16x Cortex-A72, DPAA2). U-Boot is the BL33 payload of TF-A: BL2 trains the DDR, BL31 hands over, and U-Boot boots a FIT image (kernel + MC firmware + DPC/DPL) from a single FlexSPI NOR. The module plugs onto several carrier boards (NBV30, NBV32, etc.) that share one kernel image but differ in their device tree and DPAA2 data path.

Quoted 1 line

Why just FIT and not UEFI?

Because this layerscape platform shall not support UEFI by design.

Quoted 20 lines
Quoted 20 lines

The port is modelled on the LX2160ARDB / QDS boards and lives next to them under board/nxp/lx2160a/, reusing their SoC level code. Board specific behaviour is wired through EVENT_SPY hooks rather than weak symbol overrides, and the dependencies each hook needs are forced on by hidden default-y Kconfig bools under if TARGET_NBXV3, so a hook cannot silently turn into a no-op.

The series is in three stages:

1. Base port and documentation (patches 1-2): TARGET_NBXV3, the defconfig, a minimal device tree, the MAINTAINERS entry, the Ethernet wiring file and doc/board/nxp/nbxv3.rst.

2. Board code (patches 3-9): DPAA2 Ethernet on DPMAC17 through the RTL8211FD PHY; the +0V8_VDD core rail (MPS MPQ8785 PMBus regulator snapshot, PMBus PSU snapshot, VID fuse driven voltage trim through UCLASS_REGULATOR); the ${carrier} selection that lets one FIT carry a DPC/DPL/DTB set per carrier; the ZL30733 / ZL30643 DPLL traces; the +3V3_FAN rail hook.

Quoted 6 lines
Quoted 3 lines

3. Build and device tree settings (patches 10-23): one small commit per peripheral or features, each enabling its DT nodes and defconfig symbols.

The device tree should be sent upstream to the Linux kernel and then I think most of 10-23 should be compacted to a single patch.

I get your point of Linux first and uboot policy, however, this board follow the legacy support of other NXP's lx2160/layerscape boards. For example,

arch/arm/dts/fsl-lx2160a-rdb.dts
arch/arm/dts/fsl-lx2160a-qds.dts
arch/arm/dts/fsl-lx2162a-qds.dts
...

and LX2160A defconfigs currently use CONFIG_DEFAULT_DEVICE_TREE without CONFIG_OF_UPSTREAM.

Moreover, per https://docs.u-boot.org/en/latest/develop/devicetree/control.html,
"Configuration" section: it says that SoC/board maintainers are encouraged to migrate to dts/upstream/, but also says that when dts/upstream/ has not yet received the device tree for newly added board support, one option is to add it as:
arch/<arch>/dts/<name>.dts
with CONFIG_OF_UPSTREAM disabled.

So how would it be acceptable to have fsl-lx2160a-nbxv3.dts under arch/arm/dts/, consistently with the existing LX2160A boards and the option described in the U-Boot documentation?

Should those patches 10-23 be 1 commit, I can squash them too: I wanted to record the logics of each feature sets.

Best regards,
Vincent

#26 lore raw

Hi Vincent,

Quoted 11 lines
Quoted 9 lines
Quoted 7 lines

This series adds the Free Mobile Nodebox v3 CPU Module, an NXP LX2160A based board (16x Cortex-A72, DPAA2). U-Boot is the BL33 payload of TF-A: BL2 trains the DDR, BL31 hands over, and U-Boot boots a FIT image (kernel + MC firmware + DPC/DPL) from a single FlexSPI NOR. The module plugs onto several carrier boards (NBV30, NBV32, etc.) that share one kernel image but differ in their device tree and DPAA2 data path.

Why just FIT and not UEFI?

Because this layerscape platform shall not support UEFI by design.

Really? I have a clearfog LX2 platform that boots and runs with UEFI just fine. Generally this is where the Linux ecosystem is going so for a new board going upstream I would expect it to at least be an option.

Quoted 27 lines
Quoted 20 lines
Quoted 20 lines

The port is modelled on the LX2160ARDB / QDS boards and lives next to them under board/nxp/lx2160a/, reusing their SoC level code. Board specific behaviour is wired through EVENT_SPY hooks rather than weak symbol overrides, and the dependencies each hook needs are forced on by hidden default-y Kconfig bools under if TARGET_NBXV3, so a hook cannot silently turn into a no-op.

The series is in three stages:

1. Base port and documentation (patches 1-2): TARGET_NBXV3, the defconfig, a minimal device tree, the MAINTAINERS entry, the Ethernet wiring file and doc/board/nxp/nbxv3.rst.

2. Board code (patches 3-9): DPAA2 Ethernet on DPMAC17 through the RTL8211FD PHY; the +0V8_VDD core rail (MPS MPQ8785 PMBus regulator snapshot, PMBus PSU snapshot, VID fuse driven voltage trim through UCLASS_REGULATOR); the ${carrier} selection that lets one FIT carry a DPC/DPL/DTB set per carrier; the ZL30733 / ZL30643 DPLL traces; the +3V3_FAN rail hook.

Quoted 6 lines
Quoted 3 lines

3. Build and device tree settings (patches 10-23): one small commit per peripheral or features, each enabling its DT nodes and defconfig symbols.

The device tree should be sent upstream to the Linux kernel and then I think most of 10-23 should be compacted to a single patch.

Quoted 7 lines

I get your point of Linux first and uboot policy, however, this board follow the legacy support of other NXP's lx2160/layerscape boards. For example,

arch/arm/dts/fsl-lx2160a-rdb.dts
arch/arm/dts/fsl-lx2160a-qds.dts
arch/arm/dts/fsl-lx2162a-qds.dts

There's a number of fsl-lx216x boards with upstream linux DTs.

Quoted 2 lines

and LX2160A defconfigs currently use CONFIG_DEFAULT_DEVICE_TREE without CONFIG_OF_UPSTREAM.

But those boards still have upstream device trees.

Quoted 6 lines

Moreover, per https://docs.u-boot.org/en/latest/develop/devicetree/control.html,
"Configuration" section: it says that SoC/board maintainers are encouraged to migrate to dts/upstream/, but also says that when dts/upstream/ has not yet received the device tree for newly added board support, one option is to add it as:
arch/<arch>/dts/<name>.dts
with CONFIG_OF_UPSTREAM disabled.

Even boards that don't use OF_UPSTREAM because of outlying deltas still typically have their DTs upstream and there's syncs between them. see the lists archives over the years for numerous examples.

So yes, board maintainers are encouraged to migrate to upstream, but you've missed my point generally. Boards are generally required to have an upstream DT even if in U-Boot they don't use the OF_UPSTREAM infrastructure. That is to ensure that the DT has some level of review and sanity and isn't just thrown over the fence. Hence why I asked.

Quoted 3 lines

So how would it be acceptable to have fsl-lx2160a-nbxv3.dts under arch/arm/dts/, consistently with the existing LX2160A boards and the option described in the U-Boot documentation?

No, please get review of the DT upstream even if you end up putting it in arch/arm/dts/ to ensure we end up with something that is maintainable.

Quoted 5 lines

Should those patches 10-23 be 1 commit, I can squash them too: I wanted to record the logics of each feature sets.

Best regards,
Vincent

#27 lore raw

Hi Peter,

Quoted 11 lines · Peter Robinson

Hi Vincent,

Quoted 8 lines
Quoted 8 lines
Quoted 7 lines

This series adds the Free Mobile Nodebox v3 CPU Module, an NXP LX2160A based board (16x Cortex-A72, DPAA2). U-Boot is the BL33 payload of TF-A: BL2 trains the DDR, BL31 hands over, and U-Boot boots a FIT image (kernel + MC firmware + DPC/DPL) from a single FlexSPI NOR. The module plugs onto several carrier boards (NBV30, NBV32, etc.) that share one kernel image but differ in their device tree and DPAA2 data path.

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

Why just FIT and not UEFI?

Because this layerscape platform shall not support UEFI by design.

Really? I have a clearfog LX2 platform that boots and runs with UEFI just fine. Generally this is where the Linux ecosystem is going so for a new board going upstream I would expect it to at least be an option.

Generally this is where certain people are pushing Embedded Linux to go, but that doesn't mean it makes any sense to do so. UEFI requires a lot of extra code and complexity, 100K+ in U-Boot alone, not to mention GRUB, etc. It doesn't support embedded things like FPGA images. FIT is a good solution and as an industry we should be innovating on that, not forcing UEFI everywhere. If you need OS selection, Boot Loader Specification (with FIT) is a good option.

Note that I write this not as someone opposed to EFI protocols (which I have expended a lot of effort implementing and reviewing). Horses for courses.

[..]

Regards,
Simon

#28 lore raw
Quoted 23 lines · Simon Glass

Hi Peter,

Quoted 11 lines · Peter Robinson

Hi Vincent,

Quoted 8 lines
Quoted 8 lines
Quoted 7 lines

This series adds the Free Mobile Nodebox v3 CPU Module, an NXP LX2160A based board (16x Cortex-A72, DPAA2). U-Boot is the BL33 payload of TF-A: BL2 trains the DDR, BL31 hands over, and U-Boot boots a FIT image (kernel + MC firmware + DPC/DPL) from a single FlexSPI NOR. The module plugs onto several carrier boards (NBV30, NBV32, etc.) that share one kernel image but differ in their device tree and DPAA2 data path.

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

Why just FIT and not UEFI?

Because this layerscape platform shall not support UEFI by design.

Really? I have a clearfog LX2 platform that boots and runs with UEFI just fine. Generally this is where the Linux ecosystem is going so for a new board going upstream I would expect it to at least be an option.

Quoted 7 lines

Generally this is where certain people are pushing Embedded Linux to go, but that doesn't mean it makes any sense to do so. UEFI requires a lot of extra code and complexity, 100K+ in U-Boot alone, not to mention GRUB, etc. It doesn't support embedded things like FPGA images. FIT is a good solution and as an industry we should be innovating on that, not forcing UEFI everywhere. If you need OS selection, Boot Loader Specification (with FIT) is a good option.

Simon, I am well aware of all of that, I have been involved in the arm ecosystem for well over 15 years.

Quoted 8 lines

Note that I write this not as someone opposed to EFI protocols (which I have expended a lot of effort implementing and reviewing). Horses for courses.

[..]

Regards,
Simon