From 0bf18702459a9de160bb0ee599e4b3c8662fd9a7 Mon Sep 17 00:00:00 2001 From: Christian Marangi Date: Mon, 30 Mar 2026 12:17:50 +0200 Subject: [PATCH] airoha: an7581: drop airoha,x2-mode related property and enable in device Drop airoha,x2-mode related property from the DTSI and enable them only in the relevant devices that use a PCIe0 line. x2-mode should be enabled only for the WiFi card that would use it as it might cause problem for WiFi card that expect 2 single PCIe x1 line instead of a single PCIe x2 line. Signed-off-by: Christian Marangi --- target/linux/airoha/dts/an7581-nokia-valyrian.dts | 1 + target/linux/airoha/dts/an7581-w1700k-ubi.dts | 2 ++ target/linux/airoha/dts/an7581.dtsi | 5 ----- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/target/linux/airoha/dts/an7581-nokia-valyrian.dts b/target/linux/airoha/dts/an7581-nokia-valyrian.dts index ae24d075e7..7e5facbcda 100644 --- a/target/linux/airoha/dts/an7581-nokia-valyrian.dts +++ b/target/linux/airoha/dts/an7581-nokia-valyrian.dts @@ -356,6 +356,7 @@ }; &pcie0 { + airoha,x2-mode; pinctrl-names = "default"; pinctrl-0 = <&pcie1_rst_pins>; status = "okay"; diff --git a/target/linux/airoha/dts/an7581-w1700k-ubi.dts b/target/linux/airoha/dts/an7581-w1700k-ubi.dts index 10a2c7d115..bbcc1d1135 100644 --- a/target/linux/airoha/dts/an7581-w1700k-ubi.dts +++ b/target/linux/airoha/dts/an7581-w1700k-ubi.dts @@ -252,6 +252,8 @@ &pcie0 { status = "okay"; + airoha,x2-mode; + pinctrl-names = "default"; pinctrl-0 = <&pcie0_rst_pins>; pcie@0,0 { diff --git a/target/linux/airoha/dts/an7581.dtsi b/target/linux/airoha/dts/an7581.dtsi index 0cb4d32701..056e593f39 100644 --- a/target/linux/airoha/dts/an7581.dtsi +++ b/target/linux/airoha/dts/an7581.dtsi @@ -728,10 +728,7 @@ mediatek,pbus-csr = <&pbus_csr 0x0 0x4>; - airoha,chip-scu = <&chip_scu>; airoha,np-scu = <&scuclk>; - airoha,x2-mode; - airoha,serdes-lanes-mask = <0x3>; interrupts = ; bus-range = <0x00 0xff>; @@ -819,8 +816,6 @@ mediatek,pbus-csr = <&pbus_csr 0x10 0x14>; - airoha,chip-scu = <&chip_scu>; - airoha,serdes-lanes-mask = <0x4>; airoha,np-scu = <&scuclk>; interrupts = ;