Skip to content

fboss-lite: Share the AST2700 SoC support with other machines - #315

Open
louis-nexthop wants to merge 2 commits into
meta:heliumfrom
nexthop-ai:ast2700-shared-soc-support
Open

louis-nexthop wants to merge 2 commits into
meta:heliumfrom
nexthop-ai:ast2700-shared-soc-support

Conversation

@louis-nexthop

@louis-nexthop louis-nexthop commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Description

Move the AST2700 SoC support that only aristabmc carries into shared layers, so other fboss-lite AST2700 machines build on the same copy.

  • Kernel: the JTAG, 8250 UART/UDMA, UART routing, DTS peripheral and split-UART pinctrl patches move to common/recipes-kernel/linux/6.18 (2716-2720), applied for openbmc-fb-fboss:aspeed-g7.
  • U-Boot: the WDTA reload and relocation-limit patches move to meta-aspeed for aspeed-g7; fboss-lite enables the WDTA timer.
  • Zephyr: the SDK, BootMCU, SSP and TSP recipes move to meta-fboss-lite's zephyrcore dynamic layer.
  • aristabmc keeps only its board patches and takes the same set as before. Other machines, including the lf-openbmc AST2700 ones, are unchanged.

Two commits, to keep the move reviewable:

  1. 44b297108 The move. 2719 is a pure rename of aristabmc's 0003.
  2. 60c38bec7 Rebases 2719 onto the aspeed-g7-soc0/soc1 split in the dev-6.18 that helium pins (0d8c77ef5, v6.18.63). The old copy targets aspeed-g7-common.dtsi, which no longer exists, so aristabmc's kernel already fails do_patch on helium. The SPI2 reset and MDIO0 reg hunks drop out because the tree already has them.
%%{init: {"flowchart": {"curve": "linear"}}}%%
flowchart LR
  AR["meta-aristabmc<br/>board patches only"] --> SH
  NH["meta-nexthopbmca7c<br/>Nexthop AST2720, follow-up PR"] -.-> SH
  subgraph SH["shared by fboss-lite AST2700 machines"]
    direction TB
    CO["common<br/>kernel 2716-2720"]
    G7["meta-aspeed<br/>aspeed-g7 U-Boot 0500, 0501"]
    FL["meta-fboss-lite<br/>Zephyr recipes, WDTA timer"]
  end
  A7["meta-rainiera7, meta-ventura2a7, meta-yosemite5a7<br/>lf-openbmc AST2700"] --> LF["common/lfopenbmc<br/>unchanged"]
Loading

Motivation

Another fboss-lite AST2700 machine, e.g. the AST2720 variant of Nexthop's BMC, needs the same SoC support. Sharing it avoids two copies drifting apart.

Test Plan

Tested on the AST2720 variant of Nexthop's BMC with these patches. Board name and addresses elided.

Kernel patches: JTAG, the AST2700 UART and UART-routing drivers bind, and the consoles come up on the 8250 driver.

root@bmc:~# tr -d "\0" < /proc/device-tree/model; echo
Facebook Nexthopbmc BMC AST2700
root@bmc:~# ls /dev/jtag* 2>&1; ls /sys/bus/platform/drivers | grep -iE "jtag|uart|8250|routing"
/dev/jtag0
aspeed-uart
aspeed-uart-routing
dw-apb-uart
jtag-aspeed
serial8250
root@bmc:~# ls /sys/bus/platform/devices | grep -iE "uart_routing|uart-routing|jtag|ssp|tsp" | head
14c09000.jtag
root@bmc:~# dmesg | grep -iE "jtag|udma|ttyS[0-9]+ at|uart.?rout|pinctrl" | head -n 25
[    0.300604] pinctrl core: initialized pinctrl subsystem
[    0.468380] 14c33100.serial: ttyS1 at MMIO 0x14c33100 (irq = 32, base_baud = 115384) is a 16550A
[    0.469359] 14c33b00.serial: ttyS12 at MMIO 0x14c33b00 (irq = 33, base_baud = 115384) is a 16550A

U-Boot relocation limit (0501), same board, env and MAC, with and without the patch. Above DRAM base + 3.75 GiB, MAC0 cannot transmit:

# with this PR (0501 applied)
relocaddr   = 0x00000004efe12000
<board>-boot=> dhcp
ftgmac@14050000: link up, 1000 Mbps full-duplex mac:e8:e4:9d:40:2d:09
BOOTP broadcast 1
DHCP client bound to address <ip> (21 ms)

# same tree without 0501
relocaddr   = 0x00000004ffe12000
<board>-boot=> dhcp
ftgmac@14050000: link up, 1000 Mbps full-duplex mac:e8:e4:9d:40:2d:09
BOOTP broadcast 1
BOOTP broadcast 2
ftgmac100 ftgmac@14050000: no TX descriptor available
...
BOOTP broadcast 16
ftgmac100 ftgmac@14050000: no TX descriptor available
Retry time exceeded; starting again

U-Boot banner on the same board:

U-Boot 2023.10 <version string elided> (Jun 25 2026 - 09:50:22 +0000)

SOC: AST2720-A2
RST: Power On
Model: Facebook Nexthopbmc BMC AST2700
DRAM:  4 GiB

Patch series against the pinned sources (linux dev-6.18 0d8c77ef5, v6.18.63; AspeedTech u-boot 03a8c087), in recipe order:

kernel, this PR: common 6.18 list incl. 2716-2720, then aristabmc 0005
  120 patches: 119 apply as-is, 0241 needs fuzz 2 (same on helium)
kernel, helium today: common 6.18 list, then aristabmc 0000-0005
  120 patches: 0241 needs fuzz 2, aristabmc 0003 fails
$ patch -p1 --dry-run < 0003-arm64-dts-aspeed-update-AST2700-platform-peripherals.patch
can't find file to patch at input line 29
$ ls arch/arm64/boot/dts/aspeed/ | grep aspeed-g7
aspeed-g7-a35.dtsi
aspeed-g7-soc0.dtsi
aspeed-g7-soc0-pinctrl.dtsi
aspeed-g7-soc1.dtsi
aspeed-g7-soc1-pinctrl.dtsi
u-boot, this PR: 0001-rsa, 0500, 0501, aristabmc 0001, 0002
  all apply cleanly

@meta-cla meta-cla Bot added the CLA Signed label Nov 13, 2026
@louis-nexthop
louis-nexthop marked this pull request as draft November 13, 2026 23:53
@louis-nexthop
louis-nexthop force-pushed the ast2700-shared-soc-support branch from 6f1b862 to b3fc93e Compare November 13, 2026 23:58
@louis-nexthop
louis-nexthop marked this pull request as ready for review November 14, 2026 00:02
Move the AST2700 SoC support that only aristabmc carries into shared
layers, so other fboss-lite AST2700 machines build on the same copy:

- Kernel: the JTAG, 8250 UART/UDMA, UART routing, DTS peripheral and
  split-UART pinctrl patches move unchanged to
  common/recipes-kernel/linux/6.18 (2716-2720) for
  openbmc-fb-fboss:aspeed-g7.
- U-Boot: the WDTA reload and relocation-limit patches move to
  meta-aspeed for aspeed-g7; fboss-lite enables the WDTA timer.
- Zephyr: the SDK, BootMCU, SSP and TSP recipes move to meta-fboss-lite's
  zephyrcore dynamic layer.

aristabmc keeps only its board patches. lf-openbmc machines are unchanged.

Signed-off-by: Louis Maliyam <louis@nexthop.ai>
dev-6.18 split aspeed-g7-common.dtsi and aspeed-g7-pinctrl.dtsi into
aspeed-g7-soc0.dtsi, aspeed-g7-soc1.dtsi and their -pinctrl files, so
2719 no longer applies and the kernel fails do_patch.

Make the same peripheral changes in aspeed-g7-soc0.dtsi,
aspeed-g7-soc1.dtsi and aspeed-g7-soc1-pinctrl.dtsi. The SPI2 reset and
the MDIO0 reg change are already in the tree and drop out.

Signed-off-by: Louis Maliyam <louis@nexthop.ai>
@louis-nexthop
louis-nexthop force-pushed the ast2700-shared-soc-support branch from b3fc93e to 60c38be Compare November 14, 2026 02:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant