Skip to content

qualcommbe: add IPQ53xx subtarget - #23161

Open
tk154 wants to merge 9 commits into
openwrt:mainfrom
tk154:ubi-u7-pro-xgs
Open

tk154 wants to merge 9 commits into
openwrt:mainfrom
tk154:ubi-u7-pro-xgs

Conversation

@tk154

@tk154 tk154 commented Apr 29, 2026 •

Copy link
Copy Markdown
Contributor

This PR introduces the new ipq53xx subtarget required for IPQ5332-based devices.

The series includes:

Depends on #26120, #26122

@tk154 tk154 changed the title qualcommbe: ipq53xx: add Ubiquiti UniFi 7 Pro XGS support qualcommbe: ipq53xx: add support for Ubiquiti UniFi 7 Pro XGS Apr 29, 2026
@github-actions github-actions Bot added kernel pull request/issue with Linux kernel related changes core packages pull request/issue for core (in-tree) packages target/qualcommbe pull request/issue for qualcommbe target labels Apr 29, 2026
@pktpls

pktpls commented May 1, 2026

Copy link
Copy Markdown

About the rtl8261 thing, have you tried the new driver from #22563

@tk154
tk154 force-pushed the ubi-u7-pro-xgs branch from d328e36 to f37ccca Compare May 2, 2026 13:56
@tk154

tk154 commented May 2, 2026

Copy link
Copy Markdown
Contributor Author

Thanks, I had missed that. I'm now using the PHY driver from this PR, so my quirk is no longer needed.

@github-actions github-actions Bot added target/mediatek pull request/issue for mediatek target target/realtek pull request/issue for realtek target target/airoha pull request/issue for airoha target labels May 2, 2026

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the new IPQ53xx subtarget and U7 Pro XGS device support. Three inline issues flagged below — the most impactful is the DTS PCIe child-node shape (qcom,mhi@N with all-zero reg) which deviates from the existing in-tree convention and will trip dtc unit-address warnings; the other two are about the DT board_id mask in the new ath12k patch and the #pwm-cells override that contradicts the binding added in patch 0374.

Did not flag commit-message scope mismatches in 92ac002/c70a188/5b49dff — those come from the dependency PR #22563 and belong on that PR rather than this one.


Generated by Claude Code

@tk154
tk154 force-pushed the ubi-u7-pro-xgs branch from f37ccca to f18033a Compare May 2, 2026 19:01

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the changes since the last review (rebase plus updates to the U7 Pro XGS DTS and the ath12k DT board_id override patch). The DTS now uses wifi@0,0 with proper PCI reg cells and 3-cell pwms references; the override-#pwm-cells line is gone. The ath12k patch correctly skips the OTP mask on the DT path and falls through to the OTP register read otherwise; <linux/of.h> is reachable transitively through core.h, and of_property_read_u32(NULL, ...) is safe for non-DT systems. No new issues found.


Generated by Claude Code

@tk154
tk154 force-pushed the ubi-u7-pro-xgs branch from f18033a to f1d95bd Compare May 25, 2026 14:54

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the changes since the last review: the 10-commit series was rebased onto current main, an ipq-wifi source bump (firmware date 2026-05-18, includes the ubnt_u7-pro-xgs board data), and one new patch 0395-net-ethernet-qualcomm-ppe-force-XGMAC-TX-queue-0-store-and-forward.patch was added to commit 636ec2f68e ("qualcommbe: 6.12: add IPQ5332 PPE support"). The XGMAC TSF workaround matches the rationale in the PR body (small-packet tx_underflow_err), the hunk header @@ -770,10 +770,19 @@ is internally consistent, and the new XGMAC_MTL_TXQ_OPMODE(_q)/XGMAC_MTL_TXQ_TSF macros line up with the DWXGMAC MTL register layout. No new issues found.


Generated by Claude Code

@tk154
tk154 force-pushed the ubi-u7-pro-xgs branch from f1d95bd to 54a3f42 Compare May 27, 2026 16:42

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the change since the last review: the board compatible/model was renamed from qcom,ipq5332-ap-mi01.2-qcn9160-c1-u7-pro-xgs to ubnt,u7-pro-xgs (with model = "Ubiquiti UniFi 7 Pro XGS"). The new compatible is applied consistently across the DTS, the SUPPORTED_DEVICES entry in image/ipq53xx.mk, board.d/01_leds, board.d/02_network, and all three platform.sh case labels, and matches the vendor-friendly naming convention used by other ubnt,* devices. No new issues found.


Generated by Claude Code

@tk154

tk154 commented Jun 12, 2026

Copy link
Copy Markdown
Contributor Author

I just adjusted and added kernel patches for testing kernel 6.18

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the new commits since the last review: the series was rebased and the IPQ5332 patches are now carried for both kernels (patches-6.12 and the new patches-6.18 set), plus a PPE statistics patch refresh and the U7 Pro XGS device support.

I compared the dual-version patch sets in detail: the shared IPQ5332 patches are byte-identical between 6.12 and 6.18, the hunks apply cleanly, and the apparent gaps are intentional and correct — the base PCIe patches (uniphy-28lp driver, pcie-related-nodes) are absent from 6.18 because they are already mainline in v6.18, and the EDMA/PPE-driver and ethernet-dma node-name divergences track the differing driver base each kernel carries (the 6.18-only 0370 reset-all-EDMA-controls is matched by 6.12's name-loop in edma_hw_reset). No backport defects there. Two DTS issues flagged inline.

Commit checks

  • 3f7f052 (qualcommbe: add support for Ubiquiti UniFi 7 Pro XGS) — this is new-device support (adds a .dts and a define Device/ block) but the commit message is missing the MAC address layout section (where each interface's MAC is sourced from, one line per interface). The Device specification and flashing instructions are otherwise well-detailed. This is reinforced by the all-zero local-mac-address flagged inline.

Generated by Claude Code

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the change since the last review: the only new edit is in the U7 Pro XGS DTS &mdio node — the PHY reset was moved from phy-reset-gpio on the bus node to the ethernet-phy@0 child node (the correct location), and the board now pins MDIO with pinctrl-0 = <&mdio1_pins>. The pinctrl part looks fine (mdio1_pins is defined by patch 0382/0357). One issue flagged inline: the reset property landed as the singular reset-gpio, which phylib does not consume — it should be reset-gpios.


Generated by Claude Code

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the change since the last review: the series was rebased onto current main (the odhcpd PKG_SOURCE bump in the diff comes from the new base, not from this PR). The only PR-authored change is in the U7 Pro XGS DTS ethernet-phy@0 node — the reset property was renamed from the singular reset-gpio to reset-gpios, which is the form phylib actually consumes. That resolves the issue flagged in the previous review. No new issues found.


Generated by Claude Code

@tk154

tk154 commented Jun 23, 2026

Copy link
Copy Markdown
Contributor Author

I just updated the commit and added WSI endpoints for the PCIe radios.
Without them, MLO wouldn't work across both PCIe radios.
Luckily, this also fixed the firmware crashes with the latest QCN9274 firmware, so I think this PR is now ready to go.

@tk154
tk154 marked this pull request as ready for review June 23, 2026 08:30
@jonasjelonek

Copy link
Copy Markdown
Member

6.18 is default for qualcommbe now, please rebase your branch

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 8 new commits; no new issues found.


Generated by Claude Code

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 8 new commits; no new issues found.


Generated by Claude Code

@perceival

Copy link
Copy Markdown

I'm preparing GL-BE9300 (GL.iNet Flint 3) support on top of this subtarget and can test it on hardware. Is there a maintainer view on the latest run's qualcommax/ipq50xx failure (the new QCOMTEE prompt during kernel syncconfig)? It looks unrelated to the ipq53xx changes. Happy to test any respin on a BE9300.

@tk154

tk154 commented Oct 21, 2026

Copy link
Copy Markdown
Contributor Author

Upstream recently added IPQ5424 PPE support (https://lore.kernel.org/netdev/[email protected]/) to net-next.

I’ve backported that series and reworked the IPQ5332 support to use its per-SoC configuration hooks, with IPQ5332-specific buffer-management, queue-management and scheduler settings based on QSDK.

With the updated configuration, I no longer observe rx_fifo_overflow errors in my testing at 200 MHz, so I’ve removed the 300 MHz workaround and switched the PPE clock back to 200 MHz.

@jonasjelonek

Copy link
Copy Markdown
Member

Maybe submit the first four commits as dedicated PRs each. Those are rather general prerequisites which can be reviewed independently. This PR already moved quite down the list so I think without pinging specific reviewers, there won't be much feedback.

Some vendor eMMC boot flows use inline FIT images with an embedded
root filesystem and expose the selected image through the rootdisk DT
property. The existing fitblk code is too strict for those images and
fails in several ways: it requires u-boot,version, it limits the
temporary FIT buffer too aggressively, it only accepts external-data
subimages, and it maps the writable remainder before the end of the full
FIT blob.

Add the missing pieces required for those inline FIT images:
- make u-boot,version optional when rootdisk is present
- allow larger FIT indexes and use kvmalloc() for the temporary buffer
- accept subimages stored in the inline data property
- map /dev/fitrw only after the full FIT image on disk

This keeps the existing external-data flow unchanged while making inline
squashfs FIT images usable for first boot and sysupgrade on eMMC based
targets.

Signed-off-by: Til Kaiser <[email protected]>
tk154 added 8 commits October 22, 2026 22:03
Backport the IPQ5424 PPE series, including the EDMA reset binding
split, multicast queue table fix, and per-SoC platform, buffer, queue,
scheduler, service-code and debugfs configuration.

These changes provide the shared infrastructure for PPE support on
qualcommbe boards.

Signed-off-by: Til Kaiser <[email protected]>
Refresh the qualcommbe PPE patches to account for the IPQ5424
backport changing their context.

Signed-off-by: Til Kaiser <[email protected]>
Disable missing kernel symbols that were prompted while
building all kernel modules.

Signed-off-by: Til Kaiser <[email protected]>
Add the missing IPQ5332 DTS nodes for the PWM block used by
front-panel LEDs and for the MDIO bus used by external Ethernet PHYs.

Signed-off-by: Til Kaiser <[email protected]>
Add the IPQ5332 NSSCC bindings, clock definitions,
interconnect updates, clock controller driver, and DTS nodes
from the v5 mailing-list series.

Link: https://lore.kernel.org/all/[email protected]/
Signed-off-by: Til Kaiser <[email protected]>
Add the IPQ5332 specific PCS, PPE, and NSS clock changes needed
to bring up the integrated Ethernet datapath on IPQ5332 based boards.

Signed-off-by: Til Kaiser <[email protected]>
Add the IPQ5332 specific changes required to use the second PCIe
controller, including the shared reset and mux handling in the UNIPHY
driver and the corresponding DTS nodes.

Signed-off-by: Til Kaiser <[email protected]>
Add the IPQ53xx subtarget to qualcommbe together with the
default kernel configuration needed by IPQ5332 based boards.

This also includes the ipq53xx image recipe using fit-inline-rootfs,
which builds a Flattened Image Tree (FIT) with an inline SquashFS
root filesystem aligned to a 4KB boundary.

Signed-off-by: Til Kaiser <[email protected]>
@tk154

tk154 commented Oct 22, 2026

Copy link
Copy Markdown
Contributor Author

I’ve opened separate PRs for the fitblk changes (#26120) and the IPQ5424 PPE backport (#26122).

I’ve also dropped the custom PCS clock-rate handling, which wasn’t needed in my testing, and the ath12k board ID override in favor of the split-PHY support introduced in d022263.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core packages pull request/issue for core (in-tree) packages kernel pull request/issue with Linux kernel related changes target/airoha pull request/issue for airoha target target/mediatek pull request/issue for mediatek target target/qualcommbe pull request/issue for qualcommbe target target/realtek pull request/issue for realtek target

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants