Skip to content

Commit 413d8e4

Browse files
authored
Merge pull request #1485 from kernelkit/bpi-r3-pcifixes
Bpi r3 pcifixes
2 parents 6c6dc77 + 507bb38 commit 413d8e4

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

board/aarch64/bananapi-bpi-r3/dts/mediatek/mt7986a-bananapi-bpi-r3.dtsi

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,18 @@ https://github.com/openwrt/openwrt/blob/main/target/linux/mediatek/patches-6.12/
2424
&secmon_reserved {
2525
reg = <0 0x43000000 0 0x40000>;
2626
};
27+
/*
28+
* The T-PHY's pcie-phy sub-node only claims clk40m ("ref") in the SoC
29+
* dtsi. CLK_TOP_PCIE_PHY_SEL ("da_ref") is left unclaimed, so the
30+
* kernel's clk_disable_unused late_initcall gates it — killing the
31+
* PCIe REFCLK output to the endpoint mid-probe. Wire it here so the
32+
* clock stays enabled while the PHY is active.
33+
*/
34+
&pcie_port {
35+
clocks = <&clk40m>, <&topckgen CLK_TOP_PCIE_PHY_SEL>;
36+
clock-names = "ref", "da_ref";
37+
};
38+
2739
&cpu_thermal {
2840
/delete-node/ trips;
2941
/delete-node/ cooling-maps;

package/feature-wifi/feature-wifi.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ define FEATURE_WIFI_LINUX_CONFIG_FIXUPS
1212
$(call KCONFIG_ENABLE_OPT,CONFIG_RFKILL)
1313
$(call KCONFIG_SET_OPT,CONFIG_MAC80211,m)
1414
$(call KCONFIG_SET_OPT,CONFIG_CFG80211,m)
15+
$(call KCONFIG_ENABLE_OPT,CONFIG_MAC80211_MESH)
1516

1617
$(if $(filter y,$(BR2_PACKAGE_FEATURE_WIFI_MEDIATEK)),
1718
$(call KCONFIG_ENABLE_OPT,CONFIG_MT7601U)

0 commit comments

Comments
 (0)