summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgi Valkov <gvalkov@gmail.com>2026-08-27 20:58:48 +0300
committerJohannes Berg <johannes.berg@intel.com>2026-09-04 12:11:35 +0200
commit5cf9d60d0e2fdf4310fc4687a6791bb1cdf7fa82 (patch)
tree7626fa002847ab26557beb825d76bc0a19a86185
parentd8c297ec6bb4aef2dd57e851a9b18607e72ad9a5 (diff)
downloadlinux-next-5cf9d60d0e2fdf4310fc4687a6791bb1cdf7fa82.tar.gz
linux-next-5cf9d60d0e2fdf4310fc4687a6791bb1cdf7fa82.zip
dt-bindings: net: wireless: add flag marvell,invalid-reg-hint-in-rom
WRT3200ACM and WRT32x routers always report a fixed US regulatory domain from the mwifiex ROM, which conflicts with the platform regulatory configuration on units sold outside the US market. For example: - phy0 mwlwifi 5 GHz, hard-coded region 98 EU mapped to FR - phy1 mwlwifi 2.4 GHz, hard-coded region 98 EU mapped to FR - phy2 mwifiex 2.4 and 5 GHz, hard-coded region US When the system boots, it detects a conflict between the user selected region and the radios, e.g. BG FR US, and applies extreme restrictions, preventing phy0 from starting on any DFS channel. phy2 works. Add a device-tree flag, which allows affected devices, where the radio conflicts with the platform to ignore the incorrect regulatory hint in the ROM of the radio, so the platform regulatory domain can be used. This does not allow the user to change the regulatory configuration of any radio. It only allows phy0 to start and operate according to its certified configuration. [1] https://github.com/kaloz/mwlwifi/issues/173#issuecomment-307879699 [2] https://github.com/openwrt/openwrt/issues/9956 Signed-off-by: Georgi Valkov <gvalkov@gmail.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Link: https://patch.msgid.link/20260827175850.89395-1-gvalkov@gmail.com Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r--Documentation/devicetree/bindings/net/wireless/marvell,sd8787.yaml6
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/net/wireless/marvell,sd8787.yaml b/Documentation/devicetree/bindings/net/wireless/marvell,sd8787.yaml
index 930b700b73d0..9f905ef5c2c0 100644
--- a/Documentation/devicetree/bindings/net/wireless/marvell,sd8787.yaml
+++ b/Documentation/devicetree/bindings/net/wireless/marvell,sd8787.yaml
@@ -59,6 +59,12 @@ properties:
description: Calibration data for sub-band 3 in the 5GHz band.
maxItems: 502
+ marvell,invalid-reg-hint-in-rom:
+ $ref: /schemas/types.yaml#/definitions/flag
+ description:
+ The regulatory hint in ROM conflicts with platform configuration.
+ It should be ignored, so the platform regulatory domain can be used.
+
marvell,wakeup-pin:
$ref: /schemas/types.yaml#/definitions/uint32
description: