* [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
* [PATCH v4 01/11] dt-bindings: mfd: syscon: Add mt7981-topmisc
2025-11-15 20:58 [PATCH v4 00/11] arm64: dts: mediatek: Add Openwrt One AP functionality Sjoerd Simons
@ 2025-11-15 20:58 ` 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
` (11 subsequent siblings)
12 siblings, 1 reply; 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
This hardware block amongst other things includes a multiplexer for a
high-speed Combo-Phy. This binding allows exposing the multiplexer
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
---
Documentation/devicetree/bindings/mfd/syscon.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/mfd/syscon.yaml b/Documentation/devicetree/bindings/mfd/syscon.yaml
index 657c38175fba2..51511078c4c3b 100644
--- a/Documentation/devicetree/bindings/mfd/syscon.yaml
+++ b/Documentation/devicetree/bindings/mfd/syscon.yaml
@@ -193,6 +193,7 @@ properties:
- mediatek,mt2701-pctl-a-syscfg
- mediatek,mt2712-pctl-a-syscfg
- mediatek,mt6397-pctl-pmic-syscfg
+ - mediatek,mt7981-topmisc
- mediatek,mt7988-topmisc
- mediatek,mt8135-pctl-a-syscfg
- mediatek,mt8135-pctl-b-syscfg
--
2.51.0
^ permalink raw reply related [flat|nested] 23+ messages in thread
* [PATCH v4 02/11] dt-bindings: PCI: mediatek-gen3: Add MT7981 PCIe compatible
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-15 20:58 ` Sjoerd Simons
2025-11-15 20:58 ` [PATCH v4 03/11] dt-bindings: phy: mediatek,tphy: Add support for MT7981 Sjoerd Simons
` (10 subsequent siblings)
12 siblings, 0 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
Add compatible string for MediaTek MT7981 PCIe Gen3 controller.
The MT7981 PCIe controller is compatible with the MT8192 PCIe
controller.
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
---
V1 -> V2: Improve commit subject
---
Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml b/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml
index 0278845701ce8..4db700fc36ba7 100644
--- a/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml
+++ b/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml
@@ -48,6 +48,7 @@ properties:
oneOf:
- items:
- enum:
+ - mediatek,mt7981-pcie
- mediatek,mt7986-pcie
- mediatek,mt8188-pcie
- mediatek,mt8195-pcie
--
2.51.0
^ permalink raw reply related [flat|nested] 23+ messages in thread
* [PATCH v4 03/11] dt-bindings: phy: mediatek,tphy: Add support for MT7981
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-15 20:58 ` [PATCH v4 02/11] dt-bindings: PCI: mediatek-gen3: Add MT7981 PCIe compatible Sjoerd Simons
@ 2025-11-15 20:58 ` Sjoerd Simons
2025-11-15 20:58 ` [PATCH v4 04/11] arm64: dts: mediatek: mt7981b: Add PCIe and USB support Sjoerd Simons
` (9 subsequent siblings)
12 siblings, 0 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
Add a compatible string for Filogic 820, this chip integrates a MediaTek
generic T-PHY version 2
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
---
Documentation/devicetree/bindings/phy/mediatek,tphy.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/phy/mediatek,tphy.yaml b/Documentation/devicetree/bindings/phy/mediatek,tphy.yaml
index b2218c1519391..ff5c77ef11765 100644
--- a/Documentation/devicetree/bindings/phy/mediatek,tphy.yaml
+++ b/Documentation/devicetree/bindings/phy/mediatek,tphy.yaml
@@ -80,6 +80,7 @@ properties:
- mediatek,mt2712-tphy
- mediatek,mt6893-tphy
- mediatek,mt7629-tphy
+ - mediatek,mt7981-tphy
- mediatek,mt7986-tphy
- mediatek,mt8183-tphy
- mediatek,mt8186-tphy
--
2.51.0
^ permalink raw reply related [flat|nested] 23+ messages in thread
* [PATCH v4 04/11] arm64: dts: mediatek: mt7981b: Add PCIe and USB support
2025-11-15 20:58 [PATCH v4 00/11] arm64: dts: mediatek: Add Openwrt One AP functionality Sjoerd Simons
` (2 preceding siblings ...)
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 ` Sjoerd Simons
2025-11-15 20:58 ` [PATCH v4 05/11] arm64: dts: mediatek: mt7981b-openwrt-one: Enable PCIe and USB Sjoerd Simons
` (8 subsequent siblings)
12 siblings, 0 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
Add device tree nodes for PCIe controller and USB3 XHCI host
controller on MT7981B SoC. Both controllers share the USB3 PHY
which can be configured for either USB3 or PCIe operation.
The USB3 XHCI controller supports USB 2.0 and USB 3.0 SuperSpeed
operation. The PCIe controller is compatible with PCIe Gen2
specifications.
Also add the topmisc syscon node required for USB/PCIe PHY
multiplexing.
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
---
V1 -> V2: Keep xhci reg and phys properties in single lines
---
arch/arm64/boot/dts/mediatek/mt7981b.dtsi | 80 +++++++++++++++++++++++++++++++
1 file changed, 80 insertions(+)
diff --git a/arch/arm64/boot/dts/mediatek/mt7981b.dtsi b/arch/arm64/boot/dts/mediatek/mt7981b.dtsi
index 416096b80770c..d3f37413413e2 100644
--- a/arch/arm64/boot/dts/mediatek/mt7981b.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt7981b.dtsi
@@ -2,6 +2,7 @@
#include <dt-bindings/clock/mediatek,mt7981-clk.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
+#include <dt-bindings/phy/phy.h>
#include <dt-bindings/reset/mt7986-resets.h>
/ {
@@ -223,6 +224,55 @@ auxadc: adc@1100d000 {
status = "disabled";
};
+ xhci: usb@11200000 {
+ compatible = "mediatek,mt7986-xhci", "mediatek,mtk-xhci";
+ reg = <0 0x11200000 0 0x2e00>, <0 0x11203e00 0 0x0100>;
+ reg-names = "mac", "ippc";
+ clocks = <&infracfg CLK_INFRA_IUSB_SYS_CK>,
+ <&infracfg CLK_INFRA_IUSB_CK>,
+ <&infracfg CLK_INFRA_IUSB_133_CK>,
+ <&infracfg CLK_INFRA_IUSB_66M_CK>,
+ <&topckgen CLK_TOP_U2U3_XHCI_SEL>;
+ clock-names = "sys_ck", "ref_ck", "mcu_ck", "dma_ck", "xhci_ck";
+ interrupts = <GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>;
+ phys = <&u2port0 PHY_TYPE_USB2>, <&u3port0 PHY_TYPE_USB3>;
+ status = "disabled";
+ };
+
+ pcie: pcie@11280000 {
+ compatible = "mediatek,mt7981-pcie",
+ "mediatek,mt8192-pcie";
+ reg = <0 0x11280000 0 0x4000>;
+ reg-names = "pcie-mac";
+ ranges = <0x82000000 0 0x20000000
+ 0x0 0x20000000 0 0x10000000>;
+ bus-range = <0x00 0xff>;
+ clocks = <&infracfg CLK_INFRA_IPCIE_CK>,
+ <&infracfg CLK_INFRA_IPCIE_PIPE_CK>,
+ <&infracfg CLK_INFRA_IPCIER_CK>,
+ <&infracfg CLK_INFRA_IPCIEB_CK>;
+ clock-names = "pl_250m", "tl_26m", "peri_26m", "top_133m";
+ device_type = "pci";
+ phys = <&u3port0 PHY_TYPE_PCIE>;
+ phy-names = "pcie-phy";
+ interrupts = <GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-map-mask = <0 0 0 7>;
+ interrupt-map = <0 0 0 1 &pcie_intc 0>,
+ <0 0 0 2 &pcie_intc 1>,
+ <0 0 0 3 &pcie_intc 2>,
+ <0 0 0 4 &pcie_intc 3>;
+ #address-cells = <3>;
+ #interrupt-cells = <1>;
+ #size-cells = <2>;
+ status = "disabled";
+
+ pcie_intc: interrupt-controller {
+ interrupt-controller;
+ #address-cells = <0>;
+ #interrupt-cells = <1>;
+ };
+ };
+
pio: pinctrl@11d00000 {
compatible = "mediatek,mt7981-pinctrl";
reg = <0 0x11d00000 0 0x1000>,
@@ -252,6 +302,36 @@ mux {
};
};
+ topmisc: topmisc@11d10000 {
+ compatible = "mediatek,mt7981-topmisc", "syscon";
+ reg = <0 0x11d10000 0 0x10000>;
+ #clock-cells = <1>;
+ };
+
+ usb_phy: t-phy@11e10000 {
+ compatible = "mediatek,mt7981-tphy",
+ "mediatek,generic-tphy-v2";
+ ranges = <0 0 0x11e10000 0x1700>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ status = "disabled";
+
+ u2port0: usb-phy@0 {
+ reg = <0x0 0x700>;
+ clocks = <&topckgen CLK_TOP_USB_FRMCNT_SEL>;
+ clock-names = "ref";
+ #phy-cells = <1>;
+ };
+
+ u3port0: usb-phy@700 {
+ reg = <0x700 0x900>;
+ clocks = <&topckgen CLK_TOP_USB3_PHY_SEL>;
+ clock-names = "ref";
+ #phy-cells = <1>;
+ mediatek,syscon-type = <&topmisc 0x218 0>;
+ };
+ };
+
efuse@11f20000 {
compatible = "mediatek,mt7981-efuse", "mediatek,efuse";
reg = <0 0x11f20000 0 0x1000>;
--
2.51.0
^ permalink raw reply related [flat|nested] 23+ messages in thread
* [PATCH v4 05/11] arm64: dts: mediatek: mt7981b-openwrt-one: Enable PCIe and USB
2025-11-15 20:58 [PATCH v4 00/11] arm64: dts: mediatek: Add Openwrt One AP functionality Sjoerd Simons
` (3 preceding siblings ...)
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 ` Sjoerd Simons
2025-11-15 20:58 ` [PATCH v4 06/11] dt-bindings: net: mediatek,net: Correct bindings for MT7981 Sjoerd Simons
` (7 subsequent siblings)
12 siblings, 0 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
Enable the PCIe controller and USB3 XHCI host on the OpenWrt One
board. The USB controller is configured for USB 2.0 only mode, as the
shared USB3/PCIe PHY is dedicated to PCIe functionality on this board.
Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
---
.../boot/dts/mediatek/mt7981b-openwrt-one.dts | 43 ++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git a/arch/arm64/boot/dts/mediatek/mt7981b-openwrt-one.dts b/arch/arm64/boot/dts/mediatek/mt7981b-openwrt-one.dts
index 2e39e72877301..7382599cfea29 100644
--- a/arch/arm64/boot/dts/mediatek/mt7981b-openwrt-one.dts
+++ b/arch/arm64/boot/dts/mediatek/mt7981b-openwrt-one.dts
@@ -67,9 +67,40 @@ led-2 {
linux,default-trigger = "netdev";
};
};
+
+ reg_3p3v: regulator-3p3v {
+ compatible = "regulator-fixed";
+ regulator-name = "fixed-3.3V";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ regulator-boot-on;
+ regulator-always-on;
+ };
+
+ reg_5v: regulator-5v {
+ compatible = "regulator-fixed";
+ regulator-name = "fixed-5V";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ regulator-boot-on;
+ regulator-always-on;
+ };
+};
+
+&pcie {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pcie_pins>;
+ status = "okay";
};
&pio {
+ pcie_pins: pcie-pins {
+ mux {
+ function = "pcie";
+ groups = "pcie_pereset";
+ };
+ };
+
pwm_pins: pwm-pins {
mux {
function = "pwm";
@@ -163,3 +194,15 @@ partition@180000 {
&uart0 {
status = "okay";
};
+
+&usb_phy {
+ status = "okay";
+};
+
+&xhci {
+ phys = <&u2port0 PHY_TYPE_USB2>;
+ vusb33-supply = <®_3p3v>;
+ vbus-supply = <®_5v>;
+ mediatek,u3p-dis-msk = <0x01>;
+ status = "okay";
+};
--
2.51.0
^ permalink raw reply related [flat|nested] 23+ messages in thread
* [PATCH v4 06/11] dt-bindings: net: mediatek,net: Correct bindings for MT7981
2025-11-15 20:58 [PATCH v4 00/11] arm64: dts: mediatek: Add Openwrt One AP functionality Sjoerd Simons
` (4 preceding siblings ...)
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 ` 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
` (6 subsequent siblings)
12 siblings, 1 reply; 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
Different SoCs have different numbers of Wireless Ethernet
Dispatch (WED) units:
- MT7981: Has 1 WED unit
- MT7986: Has 2 WED units
- MT7988: Has 2 WED units
Update the binding to reflect these hardware differences. The MT7981
also uses infracfg for PHY switching, so allow that property.
Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
--
V4:
- 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
V2 -> V3: Only update MT7981 constraints rather then defaults
V2: Only overwrite properties that are different from the default
---
.../devicetree/bindings/net/mediatek,net.yaml | 26 +++++++++++++++++++---
1 file changed, 23 insertions(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/net/mediatek,net.yaml b/Documentation/devicetree/bindings/net/mediatek,net.yaml
index b45f67f92e80d..cc346946291af 100644
--- a/Documentation/devicetree/bindings/net/mediatek,net.yaml
+++ b/Documentation/devicetree/bindings/net/mediatek,net.yaml
@@ -112,7 +112,7 @@ properties:
mediatek,wed:
$ref: /schemas/types.yaml#/definitions/phandle-array
- minItems: 2
+ minItems: 1
maxItems: 2
items:
maxItems: 1
@@ -249,6 +249,9 @@ allOf:
minItems: 1
maxItems: 1
+ mediatek,wed:
+ minItems: 2
+
mediatek,wed-pcie: false
else:
properties:
@@ -338,12 +341,13 @@ allOf:
- const: netsys0
- const: netsys1
- mediatek,infracfg: false
-
mediatek,sgmiisys:
minItems: 2
maxItems: 2
+ mediatek,wed:
+ maxItems: 1
+
- if:
properties:
compatible:
@@ -385,6 +389,9 @@ allOf:
minItems: 2
maxItems: 2
+ mediatek,wed:
+ minItems: 2
+
- if:
properties:
compatible:
@@ -429,6 +436,19 @@ allOf:
- const: xgp2
- const: xgp3
+ mediatek,wed:
+ minItems: 2
+
+ - if:
+ properties:
+ compatible:
+ contains:
+ const: ralink,rt5350-eth
+ then:
+ properties:
+ mediatek,wed:
+ minItems: 2
+
patternProperties:
"^mac@[0-2]$":
type: object
--
2.51.0
^ permalink raw reply related [flat|nested] 23+ messages in thread
* [PATCH v4 07/11] arm64: dts: mediatek: mt7981b: Add Ethernet and WiFi offload support
2025-11-15 20:58 [PATCH v4 00/11] arm64: dts: mediatek: Add Openwrt One AP functionality Sjoerd Simons
` (5 preceding siblings ...)
2025-11-15 20:58 ` [PATCH v4 06/11] dt-bindings: net: mediatek,net: Correct bindings for MT7981 Sjoerd Simons
@ 2025-11-15 20:58 ` Sjoerd Simons
2025-11-15 20:58 ` [PATCH v4 08/11] arm64: dts: mediatek: mt7981b-openwrt-one: Enable Ethernet Sjoerd Simons
` (5 subsequent siblings)
12 siblings, 0 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
Add device tree nodes for the Ethernet subsystem on MT7981B SoC,
including:
- Ethernet MAC controller with dual GMAC support
- Wireless Ethernet Dispatch (WED)
- SGMII PHY controllers for high-speed Ethernet interfaces
- Reserved memory regions for WiFi offload processor
Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
---
V1 -> V2: Don't add unneeded interrupt-parent
---
arch/arm64/boot/dts/mediatek/mt7981b.dtsi | 133 +++++++++++++++++++++++++++++-
1 file changed, 132 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/mediatek/mt7981b.dtsi b/arch/arm64/boot/dts/mediatek/mt7981b.dtsi
index d3f37413413e2..6be588be3761a 100644
--- a/arch/arm64/boot/dts/mediatek/mt7981b.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt7981b.dtsi
@@ -2,6 +2,7 @@
#include <dt-bindings/clock/mediatek,mt7981-clk.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/phy/phy.h>
#include <dt-bindings/reset/mt7986-resets.h>
@@ -47,11 +48,36 @@ reserved-memory {
#size-cells = <2>;
ranges;
+ wo_boot: wo-boot@15194000 {
+ reg = <0 0x15194000 0 0x1000>;
+ no-map;
+ };
+
+ wo_ilm0: wo-ilm@151e0000 {
+ reg = <0 0x151e0000 0 0x8000>;
+ no-map;
+ };
+
+ wo_dlm0: wo-dlm@151e8000 {
+ reg = <0 0x151e8000 0 0x2000>;
+ no-map;
+ };
+
/* 192 KiB reserved for ARM Trusted Firmware (BL31) */
secmon_reserved: secmon@43000000 {
reg = <0 0x43000000 0 0x30000>;
no-map;
};
+
+ wo_emi0: wo-emi@47d80000 {
+ reg = <0 0x47d80000 0 0x40000>;
+ no-map;
+ };
+
+ wo_data: wo-data@47dc0000 {
+ reg = <0 0x47dc0000 0 0x240000>;
+ no-map;
+ };
};
soc {
@@ -107,6 +133,18 @@ pwm: pwm@10048000 {
#pwm-cells = <2>;
};
+ sgmiisys0: syscon@10060000 {
+ compatible = "mediatek,mt7981-sgmiisys_0", "syscon";
+ reg = <0 0x10060000 0 0x1000>;
+ #clock-cells = <1>;
+ };
+
+ sgmiisys1: syscon@10070000 {
+ compatible = "mediatek,mt7981-sgmiisys_1", "syscon";
+ reg = <0 0x10070000 0 0x1000>;
+ #clock-cells = <1>;
+ };
+
uart0: serial@11002000 {
compatible = "mediatek,mt7981-uart", "mediatek,mt6577-uart";
reg = <0 0x11002000 0 0x100>;
@@ -345,15 +383,108 @@ soc-uuid@140 {
thermal_calibration: thermal-calib@274 {
reg = <0x274 0xc>;
};
+
+ phy_calibration: phy-calib@8dc {
+ reg = <0x8dc 0x10>;
+ };
};
- clock-controller@15000000 {
+ ethsys: clock-controller@15000000 {
compatible = "mediatek,mt7981-ethsys", "syscon";
reg = <0 0x15000000 0 0x1000>;
#clock-cells = <1>;
#reset-cells = <1>;
};
+ wed: wed@15010000 {
+ compatible = "mediatek,mt7981-wed",
+ "syscon";
+ reg = <0 0x15010000 0 0x1000>;
+ interrupts = <GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH>;
+ memory-region = <&wo_emi0>, <&wo_ilm0>, <&wo_dlm0>,
+ <&wo_data>, <&wo_boot>;
+ memory-region-names = "wo-emi", "wo-ilm", "wo-dlm",
+ "wo-data", "wo-boot";
+ mediatek,wo-ccif = <&wo_ccif0>;
+ };
+
+ eth: ethernet@15100000 {
+ compatible = "mediatek,mt7981-eth";
+ reg = <0 0x15100000 0 0x40000>;
+ assigned-clocks = <&topckgen CLK_TOP_NETSYS_2X_SEL>,
+ <&topckgen CLK_TOP_SGM_325M_SEL>;
+ assigned-clock-parents = <&topckgen CLK_TOP_CB_NET2_800M>,
+ <&topckgen CLK_TOP_CB_SGM_325M>;
+ clocks = <ðsys CLK_ETH_FE_EN>,
+ <ðsys CLK_ETH_GP2_EN>,
+ <ðsys CLK_ETH_GP1_EN>,
+ <ðsys CLK_ETH_WOCPU0_EN>,
+ <&topckgen CLK_TOP_SGM_REG>,
+ <&sgmiisys0 CLK_SGM0_TX_EN>,
+ <&sgmiisys0 CLK_SGM0_RX_EN>,
+ <&sgmiisys0 CLK_SGM0_CK0_EN>,
+ <&sgmiisys0 CLK_SGM0_CDR_CK0_EN>,
+ <&sgmiisys1 CLK_SGM1_TX_EN>,
+ <&sgmiisys1 CLK_SGM1_RX_EN>,
+ <&sgmiisys1 CLK_SGM1_CK1_EN>,
+ <&sgmiisys1 CLK_SGM1_CDR_CK1_EN>,
+ <&topckgen CLK_TOP_NETSYS_SEL>,
+ <&topckgen CLK_TOP_NETSYS_500M_SEL>;
+ clock-names = "fe", "gp2", "gp1", "wocpu0",
+ "sgmii_ck",
+ "sgmii_tx250m", "sgmii_rx250m",
+ "sgmii_cdr_ref", "sgmii_cdr_fb",
+ "sgmii2_tx250m", "sgmii2_rx250m",
+ "sgmii2_cdr_ref", "sgmii2_cdr_fb",
+ "netsys0", "netsys1";
+ interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 198 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 199 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 189 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 191 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 192 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "fe0", "fe1", "fe2", "fe3", "pdma0",
+ "pdma1", "pdma2", "pdma3";
+ sram = <ð_sram>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ mediatek,ethsys = <ðsys>;
+ mediatek,sgmiisys = <&sgmiisys0>, <&sgmiisys1>;
+ mediatek,infracfg = <&topmisc>;
+ mediatek,wed = <&wed>;
+ status = "disabled";
+
+ mdio_bus: mdio-bus {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ int_gbe_phy: ethernet-phy@0 {
+ compatible = "ethernet-phy-ieee802.3-c22";
+ reg = <0>;
+ phy-mode = "gmii";
+ phy-is-integrated;
+ nvmem-cells = <&phy_calibration>;
+ nvmem-cell-names = "phy-cal-data";
+ };
+ };
+ };
+
+ eth_sram: sram@15140000 {
+ compatible = "mmio-sram";
+ reg = <0 0x15140000 0 0x40000>;
+ ranges = <0 0x15140000 0 0x40000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ };
+
+ wo_ccif0: syscon@151a5000 {
+ compatible = "mediatek,mt7986-wo-ccif", "syscon";
+ reg = <0 0x151a5000 0 0x1000>;
+ interrupts = <GIC_SPI 211 IRQ_TYPE_LEVEL_HIGH>;
+ };
+
wifi@18000000 {
compatible = "mediatek,mt7981-wmac";
reg = <0 0x18000000 0 0x1000000>,
--
2.51.0
^ permalink raw reply related [flat|nested] 23+ messages in thread
* [PATCH v4 08/11] arm64: dts: mediatek: mt7981b-openwrt-one: Enable Ethernet
2025-11-15 20:58 [PATCH v4 00/11] arm64: dts: mediatek: Add Openwrt One AP functionality Sjoerd Simons
` (6 preceding siblings ...)
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 ` Sjoerd Simons
2025-11-15 20:58 ` [PATCH v4 09/11] arm64: dts: mediatek: mt7981b: Disable wifi by default Sjoerd Simons
` (4 subsequent siblings)
12 siblings, 0 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
Enable the Ethernet subsystem on OpenWrt One board with dual-MAC
configuration:
- GMAC0: Connected to external Airoha EN8811H 2.5GbE PHY via SGMII
(2500base-x mode) for WAN connectivity with LED indicators
- GMAC1: Connected to internal MT7981 1GbE PHY (GMII mode) for LAN
Ethernet aliases are defined to provide consistent network interface
naming (ethernet0 = LAN, ethernet1 = WAN).
Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
---
V1 -> V2:
- Switch gmac0 phy irq to Level
- Update mac nvmem label name
---
.../boot/dts/mediatek/mt7981b-openwrt-one.dts | 58 ++++++++++++++++++++++
1 file changed, 58 insertions(+)
diff --git a/arch/arm64/boot/dts/mediatek/mt7981b-openwrt-one.dts b/arch/arm64/boot/dts/mediatek/mt7981b-openwrt-one.dts
index 7382599cfea29..2aea899006453 100644
--- a/arch/arm64/boot/dts/mediatek/mt7981b-openwrt-one.dts
+++ b/arch/arm64/boot/dts/mediatek/mt7981b-openwrt-one.dts
@@ -12,6 +12,8 @@ / {
model = "OpenWrt One";
aliases {
+ ethernet0 = &gmac1;
+ ethernet1 = &gmac0;
serial0 = &uart0;
};
@@ -87,6 +89,58 @@ reg_5v: regulator-5v {
};
};
+ð {
+ status = "okay";
+
+ /* WAN interface */
+ gmac0: mac@0 {
+ compatible = "mediatek,eth-mac";
+ reg = <0>;
+ nvmem-cells = <&wan_factory_mac 0>;
+ nvmem-cell-names = "mac-address";
+ phy-mode = "2500base-x";
+ phy-handle = <&phy15>;
+ };
+
+ /* LAN interface */
+ gmac1: mac@1 {
+ compatible = "mediatek,eth-mac";
+ reg = <1>;
+ phy-mode = "gmii";
+ phy-handle = <&int_gbe_phy>;
+ };
+};
+
+&mdio_bus {
+ phy15: ethernet-phy@f {
+ compatible = "ethernet-phy-id03a2.a411";
+ reg = <0xf>;
+ interrupt-parent = <&pio>;
+ interrupts = <38 IRQ_TYPE_LEVEL_LOW>;
+ reset-gpios = <&pio 39 GPIO_ACTIVE_LOW>;
+ reset-assert-us = <10000>;
+ reset-deassert-us = <20000>;
+ airoha,pnswap-rx;
+
+ leds {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ led@0 {
+ reg = <0>;
+ function = LED_FUNCTION_WAN;
+ color = <LED_COLOR_ID_AMBER>;
+ };
+
+ led@1 {
+ reg = <1>;
+ function = LED_FUNCTION_WAN;
+ color = <LED_COLOR_ID_GREEN>;
+ };
+ };
+ };
+};
+
&pcie {
pinctrl-names = "default";
pinctrl-0 = <&pcie_pins>;
@@ -191,6 +245,10 @@ partition@180000 {
};
};
+&sgmiisys0 {
+ mediatek,pnswap;
+};
+
&uart0 {
status = "okay";
};
--
2.51.0
^ permalink raw reply related [flat|nested] 23+ messages in thread
* [PATCH v4 09/11] arm64: dts: mediatek: mt7981b: Disable wifi by default
2025-11-15 20:58 [PATCH v4 00/11] arm64: dts: mediatek: Add Openwrt One AP functionality Sjoerd Simons
` (7 preceding siblings ...)
2025-11-15 20:58 ` [PATCH v4 08/11] arm64: dts: mediatek: mt7981b-openwrt-one: Enable Ethernet Sjoerd Simons
@ 2025-11-15 20:58 ` Sjoerd Simons
2025-11-15 20:58 ` [PATCH v4 10/11] arm64: dts: mediatek: mt7981b: Add wifi memory region Sjoerd Simons
` (3 subsequent siblings)
12 siblings, 0 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
Disable the wifi block by default as it won't function properly without
at least pin muxing.
This doesn't enable wifi on any of the existing mt7981b devices as a
required memory-region property is missing, causing the driver to fail
probing anyway.
Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
---
V2: Newly introduced patch
---
arch/arm64/boot/dts/mediatek/mt7981b.dtsi | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/boot/dts/mediatek/mt7981b.dtsi b/arch/arm64/boot/dts/mediatek/mt7981b.dtsi
index 6be588be3761a..1f4c114354660 100644
--- a/arch/arm64/boot/dts/mediatek/mt7981b.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt7981b.dtsi
@@ -499,6 +499,7 @@ wifi@18000000 {
clock-names = "mcu", "ap2conn";
resets = <&watchdog MT7986_TOPRGU_CONSYS_SW_RST>;
reset-names = "consys";
+ status = "disabled";
};
};
--
2.51.0
^ permalink raw reply related [flat|nested] 23+ messages in thread
* [PATCH v4 10/11] arm64: dts: mediatek: mt7981b: Add wifi memory region
2025-11-15 20:58 [PATCH v4 00/11] arm64: dts: mediatek: Add Openwrt One AP functionality Sjoerd Simons
` (8 preceding siblings ...)
2025-11-15 20:58 ` [PATCH v4 09/11] arm64: dts: mediatek: mt7981b: Disable wifi by default Sjoerd Simons
@ 2025-11-15 20:58 ` Sjoerd Simons
2025-11-15 20:58 ` [PATCH v4 11/11] arm64: dts: mediatek: mt7981b-openwrt-one: Enable wifi Sjoerd Simons
` (2 subsequent siblings)
12 siblings, 0 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
Add required memory region for the builtin wifi block.
Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
---
V1 -> V2: Don't set status to in this patch
---
arch/arm64/boot/dts/mediatek/mt7981b.dtsi | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/arm64/boot/dts/mediatek/mt7981b.dtsi b/arch/arm64/boot/dts/mediatek/mt7981b.dtsi
index 1f4c114354660..a7be3670e0059 100644
--- a/arch/arm64/boot/dts/mediatek/mt7981b.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt7981b.dtsi
@@ -69,6 +69,11 @@ secmon_reserved: secmon@43000000 {
no-map;
};
+ wmcpu_emi: wmcpu-reserved@47c80000 {
+ reg = <0 0x47c80000 0 0x100000>;
+ no-map;
+ };
+
wo_emi0: wo-emi@47d80000 {
reg = <0 0x47d80000 0 0x40000>;
no-map;
@@ -497,6 +502,7 @@ wifi@18000000 {
clocks = <&topckgen CLK_TOP_NETSYS_MCU_SEL>,
<&topckgen CLK_TOP_AP2CNN_HOST_SEL>;
clock-names = "mcu", "ap2conn";
+ memory-region = <&wmcpu_emi>;
resets = <&watchdog MT7986_TOPRGU_CONSYS_SW_RST>;
reset-names = "consys";
status = "disabled";
--
2.51.0
^ permalink raw reply related [flat|nested] 23+ messages in thread
* [PATCH v4 11/11] arm64: dts: mediatek: mt7981b-openwrt-one: Enable wifi
2025-11-15 20:58 [PATCH v4 00/11] arm64: dts: mediatek: Add Openwrt One AP functionality Sjoerd Simons
` (9 preceding siblings ...)
2025-11-15 20:58 ` [PATCH v4 10/11] arm64: dts: mediatek: mt7981b: Add wifi memory region Sjoerd Simons
@ 2025-11-15 20:58 ` 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 17:11 ` (subset) " Vinod Koul
12 siblings, 0 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
Enable Dual-band WiFI 6 functionality on the Openwrt One
Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
---
V2 -> V3: replace MTK_DRIVE_4mA with direct value
V1 -> V2: Update eeprom node label
---
.../boot/dts/mediatek/mt7981b-openwrt-one.dts | 24 ++++++++++++++++++++++
arch/arm64/boot/dts/mediatek/mt7981b.dtsi | 2 +-
2 files changed, 25 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/mediatek/mt7981b-openwrt-one.dts b/arch/arm64/boot/dts/mediatek/mt7981b-openwrt-one.dts
index 2aea899006453..3de368c73bc81 100644
--- a/arch/arm64/boot/dts/mediatek/mt7981b-openwrt-one.dts
+++ b/arch/arm64/boot/dts/mediatek/mt7981b-openwrt-one.dts
@@ -180,6 +180,22 @@ conf-pd {
pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
};
};
+
+ wifi_dbdc_pins: wifi-dbdc-pins {
+ mux {
+ function = "eth";
+ groups = "wf0_mode1";
+ };
+
+ conf {
+ pins = "WF_HB1", "WF_HB2", "WF_HB3", "WF_HB4",
+ "WF_HB0", "WF_HB0_B", "WF_HB5", "WF_HB6",
+ "WF_HB7", "WF_HB8", "WF_HB9", "WF_HB10",
+ "WF_TOP_CLK", "WF_TOP_DATA", "WF_XO_REQ",
+ "WF_CBA_RESETB", "WF_DIG_RESETB";
+ drive-strength = <4>;
+ };
+ };
};
&pwm {
@@ -257,6 +273,14 @@ &usb_phy {
status = "okay";
};
+&wifi {
+ nvmem-cells = <&wifi_factory_calibration>;
+ nvmem-cell-names = "eeprom";
+ pinctrl-names = "dbdc";
+ pinctrl-0 = <&wifi_dbdc_pins>;
+ status = "okay";
+};
+
&xhci {
phys = <&u2port0 PHY_TYPE_USB2>;
vusb33-supply = <®_3p3v>;
diff --git a/arch/arm64/boot/dts/mediatek/mt7981b.dtsi b/arch/arm64/boot/dts/mediatek/mt7981b.dtsi
index a7be3670e0059..66d89495bac52 100644
--- a/arch/arm64/boot/dts/mediatek/mt7981b.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt7981b.dtsi
@@ -490,7 +490,7 @@ wo_ccif0: syscon@151a5000 {
interrupts = <GIC_SPI 211 IRQ_TYPE_LEVEL_HIGH>;
};
- wifi@18000000 {
+ wifi: wifi@18000000 {
compatible = "mediatek,mt7981-wmac";
reg = <0 0x18000000 0 0x1000000>,
<0 0x10003000 0 0x1000>,
--
2.51.0
^ permalink raw reply related [flat|nested] 23+ messages in thread
* Re: [PATCH v4 06/11] dt-bindings: net: mediatek,net: Correct bindings for MT7981
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
0 siblings, 0 replies; 23+ messages in thread
From: Conor Dooley @ 2025-11-19 18:42 UTC (permalink / raw)
To: Sjoerd Simons
Cc: 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, kernel, devicetree, linux-kernel, linux-arm-kernel,
linux-mediatek, linux-pci, linux-phy, netdev, Daniel Golle,
Bryan Hinton
[-- Attachment #1: Type: text/plain, Size: 492 bytes --]
On Sat, Nov 15, 2025 at 09:58:09PM +0100, Sjoerd Simons wrote:
> Different SoCs have different numbers of Wireless Ethernet
> Dispatch (WED) units:
> - MT7981: Has 1 WED unit
> - MT7986: Has 2 WED units
> - MT7988: Has 2 WED units
>
> Update the binding to reflect these hardware differences. The MT7981
> also uses infracfg for PHY switching, so allow that property.
>
> Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH v4 00/11] arm64: dts: mediatek: Add Openwrt One AP functionality
2025-11-15 20:58 [PATCH v4 00/11] arm64: dts: mediatek: Add Openwrt One AP functionality Sjoerd Simons
` (10 preceding siblings ...)
2025-11-15 20:58 ` [PATCH v4 11/11] arm64: dts: mediatek: mt7981b-openwrt-one: Enable wifi Sjoerd Simons
@ 2025-11-20 2:50 ` patchwork-bot+netdevbpf
2025-11-20 15:28 ` Lee Jones
2025-11-20 17:11 ` (subset) " Vinod Koul
12 siblings, 1 reply; 23+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-11-20 2:50 UTC (permalink / raw)
To: Sjoerd Simons
Cc: robh, krzk+dt, conor+dt, matthias.bgg, angelogioacchino.delregno,
ryder.lee, jianjun.wang, bhelgaas, lpieralisi, kwilczynski, mani,
chunfeng.yun, vkoul, kishon, lee, andrew+netdev, davem, edumazet,
kuba, pabeni, lorenzo, nbd, kernel, devicetree, linux-kernel,
linux-arm-kernel, linux-mediatek, linux-pci, linux-phy, netdev,
daniel, bryan, conor.dooley
Hello:
This series was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Sat, 15 Nov 2025 21:58:03 +0100 you wrote:
> 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
>
> [...]
Here is the summary with links:
- [v4,01/11] dt-bindings: mfd: syscon: Add mt7981-topmisc
(no matching commit)
- [v4,02/11] dt-bindings: PCI: mediatek-gen3: Add MT7981 PCIe compatible
(no matching commit)
- [v4,03/11] dt-bindings: phy: mediatek,tphy: Add support for MT7981
(no matching commit)
- [v4,04/11] arm64: dts: mediatek: mt7981b: Add PCIe and USB support
(no matching commit)
- [v4,05/11] arm64: dts: mediatek: mt7981b-openwrt-one: Enable PCIe and USB
(no matching commit)
- [v4,06/11] dt-bindings: net: mediatek,net: Correct bindings for MT7981
https://git.kernel.org/netdev/net-next/c/bc41fbbf6faa
- [v4,07/11] arm64: dts: mediatek: mt7981b: Add Ethernet and WiFi offload support
(no matching commit)
- [v4,08/11] arm64: dts: mediatek: mt7981b-openwrt-one: Enable Ethernet
(no matching commit)
- [v4,09/11] arm64: dts: mediatek: mt7981b: Disable wifi by default
(no matching commit)
- [v4,10/11] arm64: dts: mediatek: mt7981b: Add wifi memory region
(no matching commit)
- [v4,11/11] arm64: dts: mediatek: mt7981b-openwrt-one: Enable wifi
(no matching commit)
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH v4 00/11] arm64: dts: mediatek: Add Openwrt One AP functionality
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
0 siblings, 1 reply; 23+ messages in thread
From: Lee Jones @ 2025-11-20 15:28 UTC (permalink / raw)
To: patchwork-bot+netdevbpf
Cc: Sjoerd Simons, robh, krzk+dt, conor+dt, matthias.bgg,
angelogioacchino.delregno, ryder.lee, jianjun.wang, bhelgaas,
lpieralisi, kwilczynski, mani, chunfeng.yun, vkoul, kishon,
andrew+netdev, davem, edumazet, kuba, pabeni, lorenzo, nbd,
kernel, devicetree, linux-kernel, linux-arm-kernel,
linux-mediatek, linux-pci, linux-phy, netdev, daniel, bryan,
conor.dooley
On Thu, 20 Nov 2025, patchwork-bot+netdevbpf@kernel.org wrote:
> Hello:
>
> This series was applied to netdev/net-next.git (main)
> by Jakub Kicinski <kuba@kernel.org>:
>
> On Sat, 15 Nov 2025 21:58:03 +0100 you wrote:
> > 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
> >
> > [...]
>
> Here is the summary with links:
> - [v4,01/11] dt-bindings: mfd: syscon: Add mt7981-topmisc
> (no matching commit)
I thought this days of Net randomly picking up MFD patches were behind us!
> - [v4,02/11] dt-bindings: PCI: mediatek-gen3: Add MT7981 PCIe compatible
> (no matching commit)
> - [v4,03/11] dt-bindings: phy: mediatek,tphy: Add support for MT7981
> (no matching commit)
> - [v4,04/11] arm64: dts: mediatek: mt7981b: Add PCIe and USB support
> (no matching commit)
> - [v4,05/11] arm64: dts: mediatek: mt7981b-openwrt-one: Enable PCIe and USB
> (no matching commit)
> - [v4,06/11] dt-bindings: net: mediatek,net: Correct bindings for MT7981
> https://git.kernel.org/netdev/net-next/c/bc41fbbf6faa
> - [v4,07/11] arm64: dts: mediatek: mt7981b: Add Ethernet and WiFi offload support
> (no matching commit)
> - [v4,08/11] arm64: dts: mediatek: mt7981b-openwrt-one: Enable Ethernet
> (no matching commit)
> - [v4,09/11] arm64: dts: mediatek: mt7981b: Disable wifi by default
> (no matching commit)
> - [v4,10/11] arm64: dts: mediatek: mt7981b: Add wifi memory region
> (no matching commit)
> - [v4,11/11] arm64: dts: mediatek: mt7981b-openwrt-one: Enable wifi
> (no matching commit)
>
> You are awesome, thank you!
> --
> Deet-doot-dot, I am a bot.
> https://korg.docs.kernel.org/patchwork/pwbot.html
>
>
--
Lee Jones [李琼斯]
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH v4 00/11] arm64: dts: mediatek: Add Openwrt One AP functionality
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
0 siblings, 2 replies; 23+ messages in thread
From: Jakub Kicinski @ 2025-11-20 15:36 UTC (permalink / raw)
To: Lee Jones
Cc: patchwork-bot+netdevbpf, Sjoerd Simons, robh, krzk+dt, conor+dt,
matthias.bgg, angelogioacchino.delregno, ryder.lee, jianjun.wang,
bhelgaas, lpieralisi, kwilczynski, mani, chunfeng.yun, vkoul,
kishon, andrew+netdev, davem, edumazet, pabeni, lorenzo, nbd,
kernel, devicetree, linux-kernel, linux-arm-kernel,
linux-mediatek, linux-pci, linux-phy, netdev, daniel, bryan,
conor.dooley
On Thu, 20 Nov 2025 15:28:29 +0000 Lee Jones wrote:
> > Here is the summary with links:
> > - [v4,01/11] dt-bindings: mfd: syscon: Add mt7981-topmisc
> > (no matching commit)
>
> I thought this days of Net randomly picking up MFD patches were behind us!
Take another look at the message. We picked out just one of the changes
here.
> > - [v4,02/11] dt-bindings: PCI: mediatek-gen3: Add MT7981 PCIe compatible
> > (no matching commit)
> > - [v4,03/11] dt-bindings: phy: mediatek,tphy: Add support for MT7981
> > (no matching commit)
> > - [v4,04/11] arm64: dts: mediatek: mt7981b: Add PCIe and USB support
> > (no matching commit)
> > - [v4,05/11] arm64: dts: mediatek: mt7981b-openwrt-one: Enable PCIe and USB
> > (no matching commit)
> > - [v4,06/11] dt-bindings: net: mediatek,net: Correct bindings for MT7981
> > https://git.kernel.org/netdev/net-next/c/bc41fbbf6faa
> > - [v4,07/11] arm64: dts: mediatek: mt7981b: Add Ethernet and WiFi offload support
> > (no matching commit)
> > - [v4,08/11] arm64: dts: mediatek: mt7981b-openwrt-one: Enable Ethernet
> > (no matching commit)
> > - [v4,09/11] arm64: dts: mediatek: mt7981b: Disable wifi by default
> > (no matching commit)
> > - [v4,10/11] arm64: dts: mediatek: mt7981b: Add wifi memory region
> > (no matching commit)
> > - [v4,11/11] arm64: dts: mediatek: mt7981b-openwrt-one: Enable wifi
> > (no matching commit)
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH v4 00/11] arm64: dts: mediatek: Add Openwrt One AP functionality
2025-11-20 15:36 ` Jakub Kicinski
@ 2025-11-20 15:38 ` Daniel Golle
2025-11-20 15:40 ` Lee Jones
1 sibling, 0 replies; 23+ messages in thread
From: Daniel Golle @ 2025-11-20 15:38 UTC (permalink / raw)
To: Jakub Kicinski
Cc: Lee Jones, patchwork-bot+netdevbpf, Sjoerd Simons, robh, krzk+dt,
conor+dt, matthias.bgg, angelogioacchino.delregno, ryder.lee,
jianjun.wang, bhelgaas, lpieralisi, kwilczynski, mani,
chunfeng.yun, vkoul, kishon, andrew+netdev, davem, edumazet,
pabeni, lorenzo, nbd, kernel, devicetree, linux-kernel,
linux-arm-kernel, linux-mediatek, linux-pci, linux-phy, netdev,
bryan, conor.dooley
On Thu, Nov 20, 2025 at 07:36:39AM -0800, Jakub Kicinski wrote:
> On Thu, 20 Nov 2025 15:28:29 +0000 Lee Jones wrote:
> > > Here is the summary with links:
> > > - [v4,01/11] dt-bindings: mfd: syscon: Add mt7981-topmisc
> > > (no matching commit)
> >
> > I thought this days of Net randomly picking up MFD patches were behind us!
>
> Take another look at the message. We picked out just one of the changes
> here.
... and that's an MFD change (dt-bindings, but still)
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH v4 00/11] arm64: dts: mediatek: Add Openwrt One AP functionality
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
1 sibling, 1 reply; 23+ messages in thread
From: Lee Jones @ 2025-11-20 15:40 UTC (permalink / raw)
To: Jakub Kicinski
Cc: patchwork-bot+netdevbpf, Sjoerd Simons, robh, krzk+dt, conor+dt,
matthias.bgg, angelogioacchino.delregno, ryder.lee, jianjun.wang,
bhelgaas, lpieralisi, kwilczynski, mani, chunfeng.yun, vkoul,
kishon, andrew+netdev, davem, edumazet, pabeni, lorenzo, nbd,
kernel, devicetree, linux-kernel, linux-arm-kernel,
linux-mediatek, linux-pci, linux-phy, netdev, daniel, bryan,
conor.dooley
On Thu, 20 Nov 2025, Jakub Kicinski wrote:
> On Thu, 20 Nov 2025 15:28:29 +0000 Lee Jones wrote:
> > > Here is the summary with links:
> > > - [v4,01/11] dt-bindings: mfd: syscon: Add mt7981-topmisc
> > > (no matching commit)
> >
> > I thought this days of Net randomly picking up MFD patches were behind us!
>
> Take another look at the message. We picked out just one of the changes
> here.
Ah super!
Thanks for the clarification and apologies for misreading the output.
> > > - [v4,02/11] dt-bindings: PCI: mediatek-gen3: Add MT7981 PCIe compatible
> > > (no matching commit)
> > > - [v4,03/11] dt-bindings: phy: mediatek,tphy: Add support for MT7981
> > > (no matching commit)
> > > - [v4,04/11] arm64: dts: mediatek: mt7981b: Add PCIe and USB support
> > > (no matching commit)
> > > - [v4,05/11] arm64: dts: mediatek: mt7981b-openwrt-one: Enable PCIe and USB
> > > (no matching commit)
> > > - [v4,06/11] dt-bindings: net: mediatek,net: Correct bindings for MT7981
> > > https://git.kernel.org/netdev/net-next/c/bc41fbbf6faa
> > > - [v4,07/11] arm64: dts: mediatek: mt7981b: Add Ethernet and WiFi offload support
> > > (no matching commit)
> > > - [v4,08/11] arm64: dts: mediatek: mt7981b-openwrt-one: Enable Ethernet
> > > (no matching commit)
> > > - [v4,09/11] arm64: dts: mediatek: mt7981b: Disable wifi by default
> > > (no matching commit)
> > > - [v4,10/11] arm64: dts: mediatek: mt7981b: Add wifi memory region
> > > (no matching commit)
> > > - [v4,11/11] arm64: dts: mediatek: mt7981b-openwrt-one: Enable wifi
> > > (no matching commit)
This is a very odd way of presenting that one patch from the set was merged.
Not sure I've seen this before. Is it new?
It's very confusing. Is it a core PW thing and / or can it be configured?
--
Lee Jones [李琼斯]
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: (subset) [PATCH v4 01/11] dt-bindings: mfd: syscon: Add mt7981-topmisc
2025-11-15 20:58 ` [PATCH v4 01/11] dt-bindings: mfd: syscon: Add mt7981-topmisc Sjoerd Simons
@ 2025-11-20 15:41 ` Lee Jones
0 siblings, 0 replies; 23+ messages in thread
From: Lee Jones @ 2025-11-20 15:41 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, Sjoerd Simons
Cc: kernel, devicetree, linux-kernel, linux-arm-kernel,
linux-mediatek, linux-pci, linux-phy, netdev, Daniel Golle,
Bryan Hinton, Conor Dooley
On Sat, 15 Nov 2025 21:58:04 +0100, Sjoerd Simons wrote:
> This hardware block amongst other things includes a multiplexer for a
> high-speed Combo-Phy. This binding allows exposing the multiplexer
>
>
Applied, thanks!
[01/11] dt-bindings: mfd: syscon: Add mt7981-topmisc
commit: a95419ff9f21d246835a8c6ba6f89c8916f7f0d6
--
Lee Jones [李琼斯]
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH v4 00/11] arm64: dts: mediatek: Add Openwrt One AP functionality
2025-11-20 15:40 ` Lee Jones
@ 2025-11-20 15:44 ` Jakub Kicinski
2025-11-20 15:49 ` AngeloGioacchino Del Regno
0 siblings, 1 reply; 23+ messages in thread
From: Jakub Kicinski @ 2025-11-20 15:44 UTC (permalink / raw)
To: Lee Jones, Konstantin Ryabitsev
Cc: patchwork-bot+netdevbpf, Sjoerd Simons, robh, krzk+dt, conor+dt,
matthias.bgg, angelogioacchino.delregno, ryder.lee, jianjun.wang,
bhelgaas, lpieralisi, kwilczynski, mani, chunfeng.yun, vkoul,
kishon, andrew+netdev, davem, edumazet, pabeni, lorenzo, nbd,
kernel, devicetree, linux-kernel, linux-arm-kernel,
linux-mediatek, linux-pci, linux-phy, netdev, daniel, bryan,
conor.dooley
On Thu, 20 Nov 2025 15:40:12 +0000 Lee Jones wrote:
> > > > - [v4,02/11] dt-bindings: PCI: mediatek-gen3: Add MT7981 PCIe compatible
> > > > (no matching commit)
> > > > - [v4,03/11] dt-bindings: phy: mediatek,tphy: Add support for MT7981
> > > > (no matching commit)
> > > > - [v4,04/11] arm64: dts: mediatek: mt7981b: Add PCIe and USB support
> > > > (no matching commit)
> > > > - [v4,05/11] arm64: dts: mediatek: mt7981b-openwrt-one: Enable PCIe and USB
> > > > (no matching commit)
> > > > - [v4,06/11] dt-bindings: net: mediatek,net: Correct bindings for MT7981
> > > > https://git.kernel.org/netdev/net-next/c/bc41fbbf6faa
> > > > - [v4,07/11] arm64: dts: mediatek: mt7981b: Add Ethernet and WiFi offload support
> > > > (no matching commit)
> > > > - [v4,08/11] arm64: dts: mediatek: mt7981b-openwrt-one: Enable Ethernet
> > > > (no matching commit)
> > > > - [v4,09/11] arm64: dts: mediatek: mt7981b: Disable wifi by default
> > > > (no matching commit)
> > > > - [v4,10/11] arm64: dts: mediatek: mt7981b: Add wifi memory region
> > > > (no matching commit)
> > > > - [v4,11/11] arm64: dts: mediatek: mt7981b-openwrt-one: Enable wifi
> > > > (no matching commit)
>
> This is a very odd way of presenting that one patch from the set was merged.
>
> Not sure I've seen this before. Is it new?
>
> It's very confusing. Is it a core PW thing and / or can it be configured?
It's k.org infra bot. Konstantin, would it be possible to highlight
more that a series is partially applied?
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH v4 00/11] arm64: dts: mediatek: Add Openwrt One AP functionality
2025-11-20 15:44 ` Jakub Kicinski
@ 2025-11-20 15:49 ` AngeloGioacchino Del Regno
2025-11-20 16:39 ` Lee Jones
0 siblings, 1 reply; 23+ messages in thread
From: AngeloGioacchino Del Regno @ 2025-11-20 15:49 UTC (permalink / raw)
To: Jakub Kicinski, Lee Jones, Konstantin Ryabitsev
Cc: patchwork-bot+netdevbpf, Sjoerd Simons, robh, krzk+dt, conor+dt,
matthias.bgg, ryder.lee, jianjun.wang, bhelgaas, lpieralisi,
kwilczynski, mani, chunfeng.yun, vkoul, kishon, andrew+netdev,
davem, edumazet, pabeni, lorenzo, nbd, kernel, devicetree,
linux-kernel, linux-arm-kernel, linux-mediatek, linux-pci,
linux-phy, netdev, daniel, bryan, conor.dooley
Il 20/11/25 16:44, Jakub Kicinski ha scritto:
> On Thu, 20 Nov 2025 15:40:12 +0000 Lee Jones wrote:
>>>>> - [v4,02/11] dt-bindings: PCI: mediatek-gen3: Add MT7981 PCIe compatible
>>>>> (no matching commit)
>>>>> - [v4,03/11] dt-bindings: phy: mediatek,tphy: Add support for MT7981
>>>>> (no matching commit)
>>>>> - [v4,04/11] arm64: dts: mediatek: mt7981b: Add PCIe and USB support
>>>>> (no matching commit)
>>>>> - [v4,05/11] arm64: dts: mediatek: mt7981b-openwrt-one: Enable PCIe and USB
>>>>> (no matching commit)
>>>>> - [v4,06/11] dt-bindings: net: mediatek,net: Correct bindings for MT7981
>>>>> https://git.kernel.org/netdev/net-next/c/bc41fbbf6faa
>>>>> - [v4,07/11] arm64: dts: mediatek: mt7981b: Add Ethernet and WiFi offload support
>>>>> (no matching commit)
>>>>> - [v4,08/11] arm64: dts: mediatek: mt7981b-openwrt-one: Enable Ethernet
>>>>> (no matching commit)
>>>>> - [v4,09/11] arm64: dts: mediatek: mt7981b: Disable wifi by default
>>>>> (no matching commit)
>>>>> - [v4,10/11] arm64: dts: mediatek: mt7981b: Add wifi memory region
>>>>> (no matching commit)
>>>>> - [v4,11/11] arm64: dts: mediatek: mt7981b-openwrt-one: Enable wifi
>>>>> (no matching commit)
>>
>> This is a very odd way of presenting that one patch from the set was merged.
>>
>> Not sure I've seen this before. Is it new?
>>
>> It's very confusing. Is it a core PW thing and / or can it be configured?
>
> It's k.org infra bot. Konstantin, would it be possible to highlight
> more that a series is partially applied?
I guess that adding "(subset)" like b4 does would improve those messages quite
a lot ;-)
Cheers,
Angelo
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH v4 00/11] arm64: dts: mediatek: Add Openwrt One AP functionality
2025-11-20 15:49 ` AngeloGioacchino Del Regno
@ 2025-11-20 16:39 ` Lee Jones
0 siblings, 0 replies; 23+ messages in thread
From: Lee Jones @ 2025-11-20 16:39 UTC (permalink / raw)
To: AngeloGioacchino Del Regno
Cc: Jakub Kicinski, Konstantin Ryabitsev, patchwork-bot+netdevbpf,
Sjoerd Simons, robh, krzk+dt, conor+dt, matthias.bgg, ryder.lee,
jianjun.wang, bhelgaas, lpieralisi, kwilczynski, mani,
chunfeng.yun, vkoul, kishon, andrew+netdev, davem, edumazet,
pabeni, lorenzo, nbd, kernel, devicetree, linux-kernel,
linux-arm-kernel, linux-mediatek, linux-pci, linux-phy, netdev,
daniel, bryan, conor.dooley
On Thu, 20 Nov 2025, AngeloGioacchino Del Regno wrote:
> Il 20/11/25 16:44, Jakub Kicinski ha scritto:
> > On Thu, 20 Nov 2025 15:40:12 +0000 Lee Jones wrote:
> > > > > > - [v4,02/11] dt-bindings: PCI: mediatek-gen3: Add MT7981 PCIe compatible
> > > > > > (no matching commit)
> > > > > > - [v4,03/11] dt-bindings: phy: mediatek,tphy: Add support for MT7981
> > > > > > (no matching commit)
> > > > > > - [v4,04/11] arm64: dts: mediatek: mt7981b: Add PCIe and USB support
> > > > > > (no matching commit)
> > > > > > - [v4,05/11] arm64: dts: mediatek: mt7981b-openwrt-one: Enable PCIe and USB
> > > > > > (no matching commit)
> > > > > > - [v4,06/11] dt-bindings: net: mediatek,net: Correct bindings for MT7981
> > > > > > https://git.kernel.org/netdev/net-next/c/bc41fbbf6faa
> > > > > > - [v4,07/11] arm64: dts: mediatek: mt7981b: Add Ethernet and WiFi offload support
> > > > > > (no matching commit)
> > > > > > - [v4,08/11] arm64: dts: mediatek: mt7981b-openwrt-one: Enable Ethernet
> > > > > > (no matching commit)
> > > > > > - [v4,09/11] arm64: dts: mediatek: mt7981b: Disable wifi by default
> > > > > > (no matching commit)
> > > > > > - [v4,10/11] arm64: dts: mediatek: mt7981b: Add wifi memory region
> > > > > > (no matching commit)
> > > > > > - [v4,11/11] arm64: dts: mediatek: mt7981b-openwrt-one: Enable wifi
> > > > > > (no matching commit)
> > >
> > > This is a very odd way of presenting that one patch from the set was merged.
> > >
> > > Not sure I've seen this before. Is it new?
> > >
> > > It's very confusing. Is it a core PW thing and / or can it be configured?
> >
> > It's k.org infra bot. Konstantin, would it be possible to highlight
> > more that a series is partially applied?
>
> I guess that adding "(subset)" like b4 does would improve those messages quite
> a lot ;-)
Right. Or better still, just omit the ones that weren't touched.
--
Lee Jones [李琼斯]
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: (subset) [PATCH v4 00/11] arm64: dts: mediatek: Add Openwrt One AP functionality
2025-11-15 20:58 [PATCH v4 00/11] arm64: dts: mediatek: Add Openwrt One AP functionality Sjoerd Simons
` (11 preceding siblings ...)
2025-11-20 2:50 ` [PATCH v4 00/11] arm64: dts: mediatek: Add Openwrt One AP functionality patchwork-bot+netdevbpf
@ 2025-11-20 17:11 ` Vinod Koul
12 siblings, 0 replies; 23+ messages in thread
From: Vinod Koul @ 2025-11-20 17:11 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, Kishon Vijay Abraham I,
Lee Jones, Andrew Lunn, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Lorenzo Bianconi, Felix Fietkau,
Sjoerd Simons
Cc: kernel, devicetree, linux-kernel, linux-arm-kernel,
linux-mediatek, linux-pci, linux-phy, netdev, Daniel Golle,
Bryan Hinton, Conor Dooley
On Sat, 15 Nov 2025 21:58:03 +0100, Sjoerd Simons wrote:
> 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
>
> [...]
Applied, thanks!
[03/11] dt-bindings: phy: mediatek,tphy: Add support for MT7981
commit: 80ac0fba0f1a72be2c7b532b8e2ad61300a165c3
Best regards,
--
~Vinod
^ 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).