netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 00/11] arm64: dts: mediatek: Add Openwrt One AP functionality
@ 2025-11-15 20:58 Sjoerd Simons
  2025-11-15 20:58 ` [PATCH v4 01/11] dt-bindings: mfd: syscon: Add mt7981-topmisc Sjoerd Simons
                   ` (12 more replies)
  0 siblings, 13 replies; 23+ messages in thread
From: Sjoerd Simons @ 2025-11-15 20:58 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
	AngeloGioacchino Del Regno, Ryder Lee, Jianjun Wang,
	Bjorn Helgaas, Lorenzo Pieralisi, Krzysztof Wilczyński,
	Manivannan Sadhasivam, Chunfeng Yun, Vinod Koul,
	Kishon Vijay Abraham I, Lee Jones, Andrew Lunn, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Lorenzo Bianconi,
	Felix Fietkau
  Cc: kernel, devicetree, linux-kernel, linux-arm-kernel,
	linux-mediatek, linux-pci, linux-phy, netdev, Daniel Golle,
	Bryan Hinton, Sjoerd Simons, Conor Dooley

Significant changes in V4:
  * Drop patches that were picked up
  * Improve mediatek,net dt bindings:
    - Move back to V2 version (widening global constraint, constraining
      per compatible)
    - Ensure all compatibles are constraint in the amount of WEDs (2 for
      everything apart from mt7981). Specifically adding constraints for
      mediatek,mt7622-eth and ralink,rt5350-eth
Significant changes in V3:
  * Drop patches that were picked up
  * Re-order patches so changes that don't require dt binding changes
    come first (Requested by Angelo)
  * Specify drive power directly rather then using MTK_DRIVE_...
  * Simply mediatek,net binding changes to avoid accidental changes to
    other compatibles then mediatek,mt7981-eth
Significant changes in V2:
  * https://lore.kernel.org/lkml/20251016-openwrt-one-network-v1-0-de259719b6f2@collabora.com/
  * Only introduce labels in mt7981b.dtsi when required
  * Switch Airoha EN8811H phy irq to level rather then edge triggered
  * Move uart0 pinctrl from board dts to soc dtsi
  * Only overwrite constraints with non-default values in MT7981 bindings
  * Make SPI NOR nvmem cell labels more meaningfull
  * Seperate fixing and disable-by-default for the mt7981 in seperate
    patches

This series add various peripherals to the Openwrt One, to make it
actually useful an access point:

* Pcie express (tested with nvme storage)
* Wired network interfaces
* Wireless network interfaces (2.4g, 5ghz wifi)
* Status leds
* SPI NOR for factory data

Unsurprisingly the series is a mix of dt binding updates, extensions of
the mt7981b and the openwrt one dtb. All driver support required is
already available.

Sadly during testing i've found various quirks requiring kernel
arguments. Documenting those here both as note to self and making it
easier for others to test :)

* fw_devlink=permissive: the nvmem fixed-layout doesn't create a layout
  device, so doesn't trigger fw_devlink
* clk_ignore_unused: Needed when building CONFIG_NET_MEDIATEK_SOC as a
  module. If the ethernet related clocks (gp1/gp2) get disabled the
  mac ends up in a weird state causing it not to function correctly.
* pcie_aspm: ASPM is forced to enabled in 6.18-rc1, unfortunately
  enabling ASPM L1.1 ends up triggering unrecoverable AERs.

Patches are against the mediatek trees for-next branch

Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
---
Sjoerd Simons (11):
      dt-bindings: mfd: syscon: Add mt7981-topmisc
      dt-bindings: PCI: mediatek-gen3: Add MT7981 PCIe compatible
      dt-bindings: phy: mediatek,tphy: Add support for MT7981
      arm64: dts: mediatek: mt7981b: Add PCIe and USB support
      arm64: dts: mediatek: mt7981b-openwrt-one: Enable PCIe and USB
      dt-bindings: net: mediatek,net: Correct bindings for MT7981
      arm64: dts: mediatek: mt7981b: Add Ethernet and WiFi offload support
      arm64: dts: mediatek: mt7981b-openwrt-one: Enable Ethernet
      arm64: dts: mediatek: mt7981b: Disable wifi by default
      arm64: dts: mediatek: mt7981b: Add wifi memory region
      arm64: dts: mediatek: mt7981b-openwrt-one: Enable wifi

 Documentation/devicetree/bindings/mfd/syscon.yaml  |   1 +
 .../devicetree/bindings/net/mediatek,net.yaml      |  26 ++-
 .../bindings/pci/mediatek-pcie-gen3.yaml           |   1 +
 .../devicetree/bindings/phy/mediatek,tphy.yaml     |   1 +
 .../boot/dts/mediatek/mt7981b-openwrt-one.dts      | 125 ++++++++++++
 arch/arm64/boot/dts/mediatek/mt7981b.dtsi          | 222 ++++++++++++++++++++-
 6 files changed, 371 insertions(+), 5 deletions(-)
---
base-commit: 67ed5843a67b7ba63d79f2ba3fd21bee151d3138
change-id: 20251016-openwrt-one-network-40bc9ac1b25c

Best regards,
-- 
Sjoerd Simons <sjoerd@collabora.com>


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

end of thread, other threads:[~2025-11-20 17:11 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-15 20:58 [PATCH v4 00/11] arm64: dts: mediatek: Add Openwrt One AP functionality Sjoerd Simons
2025-11-15 20:58 ` [PATCH v4 01/11] dt-bindings: mfd: syscon: Add mt7981-topmisc Sjoerd Simons
2025-11-20 15:41   ` (subset) " Lee Jones
2025-11-15 20:58 ` [PATCH v4 02/11] dt-bindings: PCI: mediatek-gen3: Add MT7981 PCIe compatible Sjoerd Simons
2025-11-15 20:58 ` [PATCH v4 03/11] dt-bindings: phy: mediatek,tphy: Add support for MT7981 Sjoerd Simons
2025-11-15 20:58 ` [PATCH v4 04/11] arm64: dts: mediatek: mt7981b: Add PCIe and USB support Sjoerd Simons
2025-11-15 20:58 ` [PATCH v4 05/11] arm64: dts: mediatek: mt7981b-openwrt-one: Enable PCIe and USB Sjoerd Simons
2025-11-15 20:58 ` [PATCH v4 06/11] dt-bindings: net: mediatek,net: Correct bindings for MT7981 Sjoerd Simons
2025-11-19 18:42   ` Conor Dooley
2025-11-15 20:58 ` [PATCH v4 07/11] arm64: dts: mediatek: mt7981b: Add Ethernet and WiFi offload support Sjoerd Simons
2025-11-15 20:58 ` [PATCH v4 08/11] arm64: dts: mediatek: mt7981b-openwrt-one: Enable Ethernet Sjoerd Simons
2025-11-15 20:58 ` [PATCH v4 09/11] arm64: dts: mediatek: mt7981b: Disable wifi by default Sjoerd Simons
2025-11-15 20:58 ` [PATCH v4 10/11] arm64: dts: mediatek: mt7981b: Add wifi memory region Sjoerd Simons
2025-11-15 20:58 ` [PATCH v4 11/11] arm64: dts: mediatek: mt7981b-openwrt-one: Enable wifi Sjoerd Simons
2025-11-20  2:50 ` [PATCH v4 00/11] arm64: dts: mediatek: Add Openwrt One AP functionality patchwork-bot+netdevbpf
2025-11-20 15:28   ` Lee Jones
2025-11-20 15:36     ` Jakub Kicinski
2025-11-20 15:38       ` Daniel Golle
2025-11-20 15:40       ` Lee Jones
2025-11-20 15:44         ` Jakub Kicinski
2025-11-20 15:49           ` AngeloGioacchino Del Regno
2025-11-20 16:39             ` Lee Jones
2025-11-20 17:11 ` (subset) " Vinod Koul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).