From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E3FD0313540 for ; Fri, 21 Aug 2026 01:08:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787274516; cv=none; b=pcL5ik3AsJIRqzfBb6ETV7REJx8kniBrIatQGGTfx0bxE8FAf0712XvMH2GEVuMgSbvc6vGEzuMtbjFQnAbOb74KeNILVOUWlssT5rB9stJ5l+bqqDRvBNY9c5beXd12OV7AOWI8EfkbXNGfTIXWxR2rJTXvaiB0BZ8XPX/N4X0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787274516; c=relaxed/simple; bh=wY4uadi2HO3HpucjWOKrMcTP3ow9p1AFLbpJ29zEm14=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jBrG5N2THI+729hz5W6C6XRaFowfARYr2H9CdGeekOlRgfU5S5UGtaPl6P04xPih4ct7xC6tucbAhGRKyxq/L0ELs9YNfIM0DPkc8DNHwknSxmox+Digu0m4ObWrlsvZLHIq+oBaVfiweYMVwKIy4yTJx85rJ70ThvxADOebQvA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=VY3HNVo6; arc=none smtp.client-ip=209.85.208.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VY3HNVo6" Received: by mail-ed1-f44.google.com with SMTP id 4fb4d7f45d1cf-6a1a546a6bbso979026a12.1 for ; Thu, 20 Aug 2026 18:08:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1787274513; x=1787879313; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=mRGcQvnKLAeLq/zsHD6Ma8Ccz7ec9Urq2bWU0+6yeKw=; b=VY3HNVo6scUFMDi9ENP2a5DdkpPIFV1E7yJfaMsi3+I/TuYLiMoDcN3ZsMci5qikXO dp9ZQvmpht/ysQq/45bi+x1SGn24wC0Lpo2yMtjil+85an/9muHFTPgBGO3fdZK3KEJ7 LMQPQKAJi9vkzWesJViqxOfO6Too2aa2YqUCi122jYiMgXValjBeOwn10HcqYUT4luL3 2eaa7ge9iESgJR1tUo8QHzDFZf5cgM3sxNQTgbZJzjRP77r+5DXCnrupV5sliWBUub/A O2ypbALm85ICU/QPG/5Y610gTMChy/pL4aZ5Z6ecRp3xY0CyBOUoROZXMXCqNhO8uYwu Sj6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787274513; x=1787879313; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=mRGcQvnKLAeLq/zsHD6Ma8Ccz7ec9Urq2bWU0+6yeKw=; b=H0rp7qAyntkRvkSMTO5bCsZjYVVcZL6xqYJMqNPPnV5xYtibx0y6zSmRAH59fXgU/3 ZaixqPzmSPiQlXH3vWNG6MPnedSRX3MwL0f7yUJbC3XOQLYIaK3bd10keNDrcV0rG4gC mA1Nyxj3KkEgTvPuu1XQpBqEm1Vni4YO1az87537Yq1VvMbf5iQlhDfm8IHtiVr92SNE Is6hI8AH6L5O8/6qOxbwdgRenshwzC37WXd7eXLI3cMsyvXhQiAgH/wwB6sqsRk6wFql xZajvRCMOxEdQqsBLGZLn6JGoV/W+yCX4rB8KnR4XdPC8V0xJCkh0KgnSkutIPqCj0bo 6ebQ== X-Forwarded-Encrypted: i=1; AHgh+RoqPBHEWqWzmYKbDaaj3mF1oIT9IVc6UzIsT8sT4rkNglR/nGk1lrCbcTQZWpDTpgGWWJ5HVRC74nrqGPw=@vger.kernel.org X-Gm-Message-State: AOJu0YxRAhJbUC1vplP3GuDKsj+3z46A9WCxdum63khYzd2EDxKXsZWK hSSuJcSCBAG574xMYrWJmlb4Yl9f2FBQGmhfq/wVcj6QSWJ5PG4aTopR X-Gm-Gg: AR+sD11J3PU3ZVmsuFNnMxCd5Nvgw5NJCr+U/fAl50wlbq5LMk+tteUg/RSF6n+1TXT CBgzeDPMgdOyNpGy/pfViRFgPOuH3KxFAfU8GZplLCRyIRYAKAhxQ5xSQ4pkh71czIleNnl2ygs z7bxWLi9FNAki88NnA9i5JcDMPTpBFUY9aM3D/dVqomsd84fIB1l9dBMYByoWU8rZqWymmufeTu 7oP+Q+gkEXegeFr9r8NjEGFWSGLXSItMwmqhD0Bl1807L1PRFLiUpdfJW1/5jkxJFmnDg1T7YlJ dAa+xGhFMh6y8LqVqMCZ6t6/rYCKyJgnEp7pMvvjM95iWvSLc4QMahMifyla2VuK8egsr6UAYGT 7ZpJF6hjduHU40WYsL5u78pov+oF9GOffu7IG5E9HnsT5lCF7if24Z4wBTV8sb3+HhvWyL42YIe bRZcEAT5d2jAV31mARId8RwRwiwzZVqN0NT0iJquoVeFwK2g3W/zcidvmP31JNGZo963cCK6b/b XCMjzqUHlwfrfkYF8SboFNDosx+BMjchWe2vyaiJDvzZAVRgADCCFfbxfJ82x+UKA== X-Received: by 2002:a17:907:3e9b:b0:c21:9870:c4f7 with SMTP id a640c23a62f3a-c246a6799e3mr240994766b.20.1787274512882; Thu, 20 Aug 2026 18:08:32 -0700 (PDT) Received: from localhost.localdomain ([151.251.247.22]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-6a3ff1563c5sm3913104a12.14.2026.08.20.18.08.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Aug 2026 18:08:32 -0700 (PDT) From: Georgi Valkov To: briannorris@chromium.org, johannes@sipsolutions.net, andrew@lunn.ch, krzk+dt@kernel.org Cc: francesco@dolcini.it, johannes.berg@intel.com, kees@kernel.org, miriam.rachel.korenblit@intel.com, wenst@chromium.org, rafael.beims@toradex.com, avraham.stern@intel.com, error27@gmail.com, s.kerkmann@pengutronix.de, gregory.clement@bootlin.com, sebastian.hesselbarth@gmail.com, robh@kernel.org, conor+dt@kernel.org, Frank.Li@nxp.com, chunfan.chen@gmail.com, arend.vanspriel@broadcom.com, peddolla.reddy@oss.qualcomm.com, linux-arm-kernel@lists.infradead.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, stable@vger.kernel.org, gvalkov@gmail.com Subject: [PATCH v6 3/3] ARM: dts: armada: WRT3200ACM: add marvell,invalid-reg-hint-in-rom Date: Fri, 21 Aug 2026 04:07:28 +0300 Message-ID: <20260821010728.45065-3-gvalkov@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260821010728.45065-1-gvalkov@gmail.com> References: <20260821010728.45065-1-gvalkov@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 flag marvell,invalid-reg-hint-in-rom to the WRT3200ACM device-tree, which signals mwifiex that its regulatory hint from ROM conflicts with the platform and should be ignored, so the platform regulatory domain can be used. This does not allow the user to change the regulatory config of any radio. It only allows phy0 to start and operate according to its certified configuration. All radios in WRT3200ACM/WRT32x are locked to the hard-coded configuration for which they are certified. On WRT3200ACM, the platform configuration is stored on the devinfo mtd3 partition, which is read-only: cert_region=EU modelNumber=WRT3200ACM-EU The Linux kernel sources do not have support for WRT32x. An equivalent patch for these routers has to be sent to OpenWrt. [1] https://github.com/kaloz/mwlwifi/issues/173#issuecomment-307879699 [2] https://github.com/openwrt/openwrt/issues/9956 Cc: stable@vger.kernel.org Signed-off-by: Georgi Valkov --- arch/arm/boot/dts/marvell/armada-385-linksys-rango.dts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/marvell/armada-385-linksys-rango.dts b/arch/arm/boot/dts/marvell/armada-385-linksys-rango.dts index 4ab45f294de2..2bf29981a031 100644 --- a/arch/arm/boot/dts/marvell/armada-385-linksys-rango.dts +++ b/arch/arm/boot/dts/marvell/armada-385-linksys-rango.dts @@ -165,6 +165,15 @@ &sdhci { wp-inverted; bus-width = <8>; status = "okay"; + + #address-cells = <1>; + #size-cells = <0>; + + wifi@1 { + compatible = "marvell,sd8897"; + reg = <1>; + marvell,invalid-reg-hint-in-rom; + }; }; &usb3_1_vbus { -- 2.55.0