From patchwork Sat Aug 10 03:51:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13759395 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D943BC3DA7F for ; Sat, 10 Aug 2024 03:53:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=n3ZCKui3FOaZbR8MmUilWzOmfwqy4Ji7tdvVIJh0aaI=; b=TMVMNsN05LvhYHpTlaTpI37U2b FS7II6786F9uaX374I6ChjnlNr5rOp9j9iWHr8qNvWURKcjWst8WYpgc4/jDQpvPgDm+V7C5540bz t8ochug/2VJhX751CPLWic9ev2z37Gz6xhf6xpNRy9Uawvo1C8Qr/wUKRSzcWG50/Eu3iviyWEZFv eEGPQJZ1jfVwT6+XpTGeLAlQYlhuFKrIqfUeiQef3ni5uFY/84zn0eS9PeU4XcXG0z9pOWn4vYzeh XrZudf052dcPxAbl1/2+Kd3T2EoTf3Y3h4ZcHI6uyGpiYbDGeEtqb/5nHLC6NjLXRbpe/1+e4ChEA LhwWy7XA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1scdAT-0000000D7j7-16C0; Sat, 10 Aug 2024 03:53:25 +0000 Received: from mail-psaapc01on20702.outbound.protection.outlook.com ([2a01:111:f400:feae::702] helo=APC01-PSA-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1scd9M-0000000D7NI-00vc; Sat, 10 Aug 2024 03:52:17 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=KazpCY/IrrswBxrcwXv9MFXf8NTDxTJgsaYiKIZIWCZMlmxd8yeCFoRrrISFuuCbNgnV8WCH0kt+nTuF8of8PMDw+kaBBzVnkU4Abpklar1smAewH3YSjAqVIj7H8myCjuMR9siFZrSKr+5V4+AiWEKQPkfHeKD31K3zOzWcj8ENlb94dyOtzYK+/f7WbXDVTDeObImNshctgWXwrUSAxB0pI4YzUuMddiZYgvjht5cFE4/Ns5WS2nsfGArIiKhedh0/IEEarVurMy51D8VJc8/OZASB9wqgdAGo1AF0wjXxgauGmw7xhrZXkwO7cGsJ8N1semGKUsCWspxOh6afng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=n3ZCKui3FOaZbR8MmUilWzOmfwqy4Ji7tdvVIJh0aaI=; b=mSyO9RUXG9ZHa5GwYAMUrtK6NPOx2A2O82gCd41ROPugfdpSss9WYX+xf4L+Cm6kr7gsHFuCmrmP7eEoF/SNM0pIHxij22FpmSkIsj+FBvvxyH9KSQteaw5O73RgPK+bxBZlCwOqYfnvDwWM1vRpvK3OkeJ7wjDX3NOnQrQ12XopDuP6c2YFaVqLCt+487u+BbEUtNi4gtUoZVtgM+Z9BsRYhlJ1ydNuVBkjJ/K04Nxe1PlH2UnUI2bqZTgTsE9rG68WdhBzKR8jsKy78OqlQL5gnEdHgybpM7N3dxyZNBqd6CbTG+hmT7gAvy8c5d3fxdTMTqNDBYp5B1eq5vltEg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wesion.com; dmarc=pass action=none header.from=wesion.com; dkim=pass header.d=wesion.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wesion.com; Received: from TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) by TYSPR03MB8564.apcprd03.prod.outlook.com (2603:1096:405:61::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.27; Sat, 10 Aug 2024 03:51:59 +0000 Received: from TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0]) by TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0%6]) with mapi id 15.20.7849.015; Sat, 10 Aug 2024 03:51:59 +0000 From: Jacobe Zang To: robh@kernel.org, krzk+dt@kernel.org, heiko@sntech.de, kvalo@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, conor+dt@kernel.org, arend.vanspriel@broadcom.com Cc: efectn@protonmail.com, dsimic@manjaro.org, jagan@edgeble.ai, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, arend@broadcom.com, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, megi@xff.cz, duoming@zju.edu.cn, bhelgaas@google.com, minipli@grsecurity.net, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, nick@khadas.com, Jacobe Zang , Krzysztof Kozlowski Subject: [PATCH v9 1/5] dt-bindings: net: wireless: brcm4329-fmac: add pci14e4,449d Date: Sat, 10 Aug 2024 11:51:37 +0800 Message-Id: <20240810035141.439024-2-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240810035141.439024-1-jacobe.zang@wesion.com> References: <20240810035141.439024-1-jacobe.zang@wesion.com> X-ClientProxiedBy: TYAPR03CA0020.apcprd03.prod.outlook.com (2603:1096:404:14::32) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|TYSPR03MB8564:EE_ X-MS-Office365-Filtering-Correlation-Id: ae357065-76bc-49b8-8a30-08dcb8efc916 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|52116014|7416014|376014|1800799024|38350700014|921020; X-Microsoft-Antispam-Message-Info: lqXfTUZngmKx7QoHO2DNecOxkWwn9UX4CfDSQN4A5dC2tr6IGLWCOU602DQU7ObQYdfWpFTTmGIDepxOYJ+kBcfw8W1qJjfcADSBIIYRva1sxd0m3h4Qofegq85cB43X8OcmAQdkHbth7awudBUJklds4gWlj/ZsraKjZAJa8bA1Gu49tpciDVTDIkAdkG7aw4sDjYwHyWrErj9RbeRM84PJQIfEo7L0OM1LZj5Xnux6Hcbj7rvqO32wgrye3476zGbSb6TwzpqEYdCPVr3dztUWNYK0iE5pHVsUn/hE0WWT/yXXkBXWdDb7JyCjz+7KDbBMYERWnrKE+1SHBYH0xYRAsIUrPlI+QVo/We/aKhTacD/TmwffP9EQXct4lXWu1iTSK+DsPh6z2LyMyLJRytiASAFCIFAzx3MgYtXp7blxm9teZ2bMAQjuWgTPhVxdjewcj006T7hFnQ1nuNifIigcY/mQVu149QuMPM8LU1Es/3XPLfgHPIWaoGGHgu3/qkLyNv6nhY86r8DLhkdle/72tZUXgTmAKa17DiGu2MdI5LJ9Nce6hrGu6w8HBecb/q9nXdFB+iOpWG5N/Yt0p9t/BT8IVO4av0KgQShRPikFALNtd3qkGq4ugWnVsC1ZkS5uMjgzgk0FPd1sG8B2Zme+rSrJ9eTEAJwG+Bb9c52ZqHWSMWJKcpbwlbqbWIHnV3OFa2WbubLyPaRmMfrJRHsFDcAQ3VFmJtU5C2T6mAtM/4COu4BQUJsDf0nVOgaLWKQPSUAN9qMtt25gPKsHxs+BWD12gfo+cC7q7dOtGSvR+gEqx9nrxA5wC63driQboe8UVOBVaD2woGVO+m7/Vdz9xzlR8CPkYpAjT4rHb3cGWtiqC/5jBCpE/OftAdjxsug4/ACqjOPa4A/DrGgK6WUmodBc3rIW1f6yAwUudX74OsMJetStNkh4IvbDlF55Mwb0Zec08OPK8Dw71Dx6QMJfVGj/nyzRjnx6FQkmDdTCt26pLzK6hQA2ThsI5PDo15yKZ/a9WL84lNeBlzGNsD/NTITFhacvMa/DY3JB8Vv+mOYObFnYlCOZxlwBEviwWSJ/upMX2xJrLoCNtjiy1YM4HdyINyafr3K7HN5/0vV34DVpz9FHv/IADSRQkpHJvvsNH+ZfESpOinx7b3EGvJL0yeNXbE7tdPYPs71jRW6+xWX2i/vU3T5PUD95bfgbxA3NedkKh7Xt29WEefvqhgAs8gOK787oT/jKbuMKkFXgqRACnZoeH5o8iVv/dJafE3Xy4xyEuhILbsM9Xdfhi11+BcXqKuieZH8pIzRxgu2oj4oxPAjeT6qJn8H9Teqt7AmBVO7YqdNx2thHJUuXanZ4PkZr/MIRvtI407ebCI7sWCosutDXjNKJS2k+A0Pp61Hmmmh4I6KXyatU7DIdXCHL9prxGZ6dFXmULE6w5/A= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYZPR03MB7001.apcprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(52116014)(7416014)(376014)(1800799024)(38350700014)(921020);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ryZyUStan49huurNtyxg3HmlEB2n1S2NQUvgypMGab1FvViKnRoPWrlvXf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VoiJh3YeuMQY1jPa0TckrdCzbzczzaFiYyo0ssFVDzc6zuTCrCTvmCgTDYZl53Z+mgQ6nN0+EFBR0Vz6awY/ArqWb9ZmOV2NtDozxoCnT98nZ67Wz7Vn+IYXXyLtBgP0irIrKVN0MU7DpLwCB6o+cdxJhDQ6lu6M7DJg1sbjJmb+7QKuuWr1G3oOqLwc3N3QGUgd0wq303T9MeKDYBNGDUybd0AJCe+pPVhlpvEFUIFTLJ7HOUofDZ74YL1SYVFmVcqem6PoKUVjpnvq4MtBReJZVGb2sUFxSKLHTcxhTceSn0mrupq72TeSHHVRXdHThar92qe6f1JpBNBGHohtKcOAPz8EXaZq95qxjLUGwXwAF90PCKMz5SmPVIILLCrH/OkuGc3HwayAtTTQt4pQz4n8SugGSpe5N7VqaphG63OEY7Ax3csCw1IGsT3mdpSo1Ppz/wlz2HrkndojE0hKWX6/8F3 X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: ae357065-76bc-49b8-8a30-08dcb8efc916 X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Aug 2024 03:51:59.1686 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 2dc3bd76-7ac2-4780-a5b7-6c6cc6b5af9b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: kfi93E/6yY3ucp8q079qPxdhH1j01snGjY7/i0ra4bbRyli+kGcHGZ0CVzqXNhQYCe4M400crXntp5tLjrfklg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR03MB8564 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240809_205216_068355_C0389A53 X-CRM114-Status: UNSURE ( 7.71 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org It's the device id used by AP6275P which is the Wi-Fi module used by Rockchip's RK3588 evaluation board and also used in some other RK3588 boards. Acked-by: Arend van Spriel Acked-by: Krzysztof Kozlowski Signed-off-by: Jacobe Zang --- .../devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml b/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml index e564f20d8f415..2c2093c77ec9a 100644 --- a/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml +++ b/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml @@ -53,6 +53,7 @@ properties: - pci14e4,4488 # BCM4377 - pci14e4,4425 # BCM4378 - pci14e4,4433 # BCM4387 + - pci14e4,449d # BCM43752 reg: description: SDIO function number for the device (for most cases From patchwork Sat Aug 10 03:51:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13759396 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1EDD5C3DA7F for ; Sat, 10 Aug 2024 03:54:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=1iPX8WFIoQ4QXgUD/qR3fD/Finzms7t/FKq4XAi292c=; b=jXRSJcXgHmPnO9b8OmegyLpzcP /ILILFpIsZIdplU8novZzyPjKci1ykYcQhVxuV+f/Cw0ed8crf8qxoUjq0t5+fab6WPWoeQt22SSr K2XUL91LUAjSA+w9VMK3SgufgS0yFUU7H6snN03ZstZZ9iCvfeve6OT3t1r5kcHdaJLUjV96eP/sO hSdKq+KhVda08UGEPntLgPLqll/O8246f925xb93STf2T/uwRhWKMVdK/o5SL2P1XEgj6GAALfzw6 syMcetocd9WmP26ct21XAnwrXyPOPj5b9qcv8j3U2wTT8JjnL/GmrjpJEIsM6NeihhCf2rYx70paI r9lUibpQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1scdB1-0000000D7sx-2DWh; Sat, 10 Aug 2024 03:53:59 +0000 Received: from mail-psaapc01on20702.outbound.protection.outlook.com ([2a01:111:f400:feae::702] helo=APC01-PSA-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1scd9N-0000000D7NI-3X0u; Sat, 10 Aug 2024 03:52:20 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=QrENUBkt99v+6nI087BX4AHSuA+AZl4HcXaNTT5MEdUoVv2t6cobySTrpFmHaY+PyH5KZq0HwU2E3wLvFqUFIfd4cHq/0iHJPO5+N2xEFOBbrxve5YRGm3i9fttEOOqYt5x+A4/d6nGwutgC3OhtitkC8J763+n07a8juAxLPDNQ5QGrTKI6aJqOxbaoyVq0Jpv8+u+2oXQXXBLqhbZVic641cjXq+1ckTu6k+94fr/7+EU/9bOIKEi6NBmGkXbTpvUuKZYUgd0BH0vLkb46yjjH+W0Yz2c+fMJlYlX3luqkg5WVqxgurc8veAKW168rDZOuhD/I0erDJxwKAKqyAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=1iPX8WFIoQ4QXgUD/qR3fD/Finzms7t/FKq4XAi292c=; b=RAFPNUB6GKEM3ZTGVBh48IRVUC6fBqbJx3pOPJi3Bh2q0smrivZHsDZgvuvo5A7kNe/pRNKEGbWcHfFhBoZWfd5GdHQ84piw3fRx/i82AXwiFpps8vNcGtYTaKO57S1oeX+5vPsHgUwA7Ofo1r6uej+iMj42qLJtpsNG+Wv9TD5CVPgFFCJvoHp5DAQzcBpgPeYxFNvA+qJS1TSz0tcMekttBndR645MTjCrWeI4kQGGCRY9qb0+251OX1qvZM9xCyxI0mIxsGlRj+wljrLrA0AFPUiIzUzf1p8ICAh2eh+1ZeDyCTnoacYy+JXIr6twB9/v07Np9eH8XWR3JSibUQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wesion.com; dmarc=pass action=none header.from=wesion.com; dkim=pass header.d=wesion.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wesion.com; Received: from TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) by TYSPR03MB8564.apcprd03.prod.outlook.com (2603:1096:405:61::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.27; Sat, 10 Aug 2024 03:52:02 +0000 Received: from TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0]) by TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0%6]) with mapi id 15.20.7849.015; Sat, 10 Aug 2024 03:52:02 +0000 From: Jacobe Zang To: robh@kernel.org, krzk+dt@kernel.org, heiko@sntech.de, kvalo@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, conor+dt@kernel.org, arend.vanspriel@broadcom.com Cc: efectn@protonmail.com, dsimic@manjaro.org, jagan@edgeble.ai, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, arend@broadcom.com, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, megi@xff.cz, duoming@zju.edu.cn, bhelgaas@google.com, minipli@grsecurity.net, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, nick@khadas.com, Jacobe Zang , Krzysztof Kozlowski Subject: [PATCH v9 2/5] dt-bindings: net: wireless: brcm4329-fmac: add clock description for AP6275P Date: Sat, 10 Aug 2024 11:51:38 +0800 Message-Id: <20240810035141.439024-3-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240810035141.439024-1-jacobe.zang@wesion.com> References: <20240810035141.439024-1-jacobe.zang@wesion.com> X-ClientProxiedBy: TYAPR03CA0020.apcprd03.prod.outlook.com (2603:1096:404:14::32) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|TYSPR03MB8564:EE_ X-MS-Office365-Filtering-Correlation-Id: 3b502213-4ad2-443f-9ea3-08dcb8efcaea X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|52116014|7416014|376014|1800799024|38350700014|921020; X-Microsoft-Antispam-Message-Info: WeOiauOuwv/wRlM7OMD+zbQQH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1jmIQGRvaOPGmrGLonfvuC9rIfZxZ3t31Ucj/9DIrHpvdZkdJucp2GuB1+XfXuCrpAfadqRUnXgDZcTV/ifqfwFpkU23KOJAXMrh8wlsMyg2LQEnQfMWFC8e+JXLDIrqrAGHULMroKB5HyHBmxA1GiaTHb6FMTuq+jC8i0ZR4Wvp5gNItV4XQL0rwnqkgsdZpLWQzAanptfH/aZ/Y+ZzuiLgdfpXn7zXuwJQ5+QqqadW7jAAlxQTzlXpIQHxOHncsVO3P/Wa3I2flJ87WOH8gIkktmJVsyc4ut2+6HPplVPrsAs2ynWeNBQ8QPt1edWXXHIMISXiCup0NvMaWPsMRd/M3E= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYZPR03MB7001.apcprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(52116014)(7416014)(376014)(1800799024)(38350700014)(921020);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: gEXZgjD3IKwypIw5b2sAyGGfp5YQiF4GiR6re31HM3zLBOdV6vrKbMIga023H/L+97hQ8uhbmYuRARJ1VCfPw8aQcxAKYDFRsP6AqIbtS24KQ2m9WqygYAoInNDttqpTN7GCcXeyz7VSECZAWUoKx2AQKkM9munwBTjRpft72d0bn3DLLiR4GFWABuIDYNjwk9Vjh7q9F7KbOWGsRxLUqw7ux2JS1i/bbbN7EJjnEnaflIwXDktsdvp1QwO542BQqdatQ+uf+Z8M9Y/TF44UKACSU7i2o6F88FazWeu4GWvNQStnqONEYRd1hGImR4vEQy5phWuFBdD3/ls2EhIySnMe+UJaLvtez+4elc30TLYwzCQJBZLHbzjR1mKhQ075PTr5g5m6ykQG18qWijfzW6QVg70dDCrO29HZqLHzD7GSlS7zltk/OwDiZdB3NBEJCoJ6UWWYpNs5oUbQ+hwnHaqiwHD062cZB0uuUj5sdKCkAKSgC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4UQ5tOa1k X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3b502213-4ad2-443f-9ea3-08dcb8efcaea X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Aug 2024 03:52:02.2285 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 2dc3bd76-7ac2-4780-a5b7-6c6cc6b5af9b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: /ZBqoC9gRchG9f+No3ENtqGJbQRFAGs9cvLXnxLKcUMMnUJT3KyxExGUr+Hm6sR3Dm2r7uvWlqo0fuNdawlLQg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR03MB8564 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240809_205218_032466_4C97047A X-CRM114-Status: UNSURE ( 7.68 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Not only AP6275P Wi-Fi device but also all Broadcom wireless devices allow external low power clock input. In DTS the clock as an optional choice in the absence of an internal clock. Reviewed-by: Arend van Spriel Reviewed-by: Krzysztof Kozlowski Signed-off-by: Jacobe Zang --- .../bindings/net/wireless/brcm,bcm4329-fmac.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml b/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml index 2c2093c77ec9a..a3607d55ef367 100644 --- a/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml +++ b/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml @@ -122,6 +122,14 @@ properties: NVRAM. This would normally be filled in by the bootloader from platform configuration data. + clocks: + items: + - description: External Low Power Clock input (32.768KHz) + + clock-names: + items: + - const: lpo + required: - compatible - reg From patchwork Sat Aug 10 03:51:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13759397 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C41BDC3DA7F for ; Sat, 10 Aug 2024 03:54:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=vnTJOa4JXmWzrBFSD6Yx6B5bbeWEUpHWGbPOD0Sh4do=; b=S4YrPesRTvgacTR8HnSFB+7zKH R2vcsqCsZyMRrE6yFJaKFdKBk6wBbk8JiUBwiogjjLZRxBycjQpyEu2Scl27tOm7wcizchBHxmhav 8aFH9cuK3tjMLFjIikK5a5ODVLJCvXbQBuejDYeoYoxvkQPjLZjlZyotmy03ZmewZQZ9TBucX9Ss5 fq1kyRbGrY+X18mh71bD5mvrDqh6a0AzT7mZSmcsPc2fjsTaeftAxXWtjqjV7vieN4aPvMXcFlNCE yqgQy/scnfVVZFkcOGjDrHEJYjuXKcE8HV+b/RmbyZdfYn3QYevSR2kZvS/BeIAk0q32L8PLPzuCT eVV4WCyQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1scdBb-0000000D86P-2Lgq; Sat, 10 Aug 2024 03:54:35 +0000 Received: from mail-psaapc01on20702.outbound.protection.outlook.com ([2a01:111:f400:feae::702] helo=APC01-PSA-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1scd9Q-0000000D7NI-333p; Sat, 10 Aug 2024 03:52:22 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=s3+CS9s3jXuyxtISxWy/v9ktnlWwiyHyWdSVkaoqMsmwS78p/eUx+hE19Oy1FiVFXyavJNy0o1vjVX9Gz/IXg/k1OCDpl0lYBR5+3kxnnkAnGWzgypvzstEYS9otkr6Xoysk9XweBSXPAIu/ASQ+1/sEvzMqyigWLw1Y2Z9vM+WSTpB6XkNvWDL2b6GdDoyWHMppqMefjDHgglZiVfPuyRdCR2zJ6RwJdp4ljrwq0M/a8LwgX5imPh3gkOzSOISU5KAsdev1YevJQLVWXTQAtNWE/yYFTOnYVoDDoviy04Rx0ehteAoy98xCDqTYZrtbPToVdYuimtfQRByA9N8ZBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=vnTJOa4JXmWzrBFSD6Yx6B5bbeWEUpHWGbPOD0Sh4do=; b=O9stUF4e80qI9cw6J+uBSSwam1OXsc0tAipW35K1j7pCphI4SXFc+USKdWDXpHOF7zowNqfUCxxo3mA+YReWPcLsYt1QMx2UhxlSQnmmC1jCEYhdWQSqEMd6SzDNocRIHilTcg8vOhOK4Aprffl3DuD+QAERnDjYiEsqAg1nGnmx24uqaywMSslG6D9Z5Dl9kkr3z4dpboZRPqWCYeyIuX83ymV4f7CFXH5nmkV4ZbgfiRZtf9jZ8SoPaC/Oh7Mj9Tl1o261D+4EkIyr3ZvZ+Jj7MQKhsn5+DfogsGm7er1tlCzHV44yTfF+kImro8pYVQemP7Y0nMKThubSpK3f3g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wesion.com; dmarc=pass action=none header.from=wesion.com; dkim=pass header.d=wesion.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wesion.com; Received: from TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) by TYSPR03MB8564.apcprd03.prod.outlook.com (2603:1096:405:61::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.27; Sat, 10 Aug 2024 03:52:05 +0000 Received: from TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0]) by TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0%6]) with mapi id 15.20.7849.015; Sat, 10 Aug 2024 03:52:05 +0000 From: Jacobe Zang To: robh@kernel.org, krzk+dt@kernel.org, heiko@sntech.de, kvalo@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, conor+dt@kernel.org, arend.vanspriel@broadcom.com Cc: efectn@protonmail.com, dsimic@manjaro.org, jagan@edgeble.ai, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, arend@broadcom.com, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, megi@xff.cz, duoming@zju.edu.cn, bhelgaas@google.com, minipli@grsecurity.net, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, nick@khadas.com, Jacobe Zang Subject: [PATCH v9 3/5] arm64: dts: rockchip: Add AP6275P wireless support to Khadas Edge 2 Date: Sat, 10 Aug 2024 11:51:39 +0800 Message-Id: <20240810035141.439024-4-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240810035141.439024-1-jacobe.zang@wesion.com> References: <20240810035141.439024-1-jacobe.zang@wesion.com> X-ClientProxiedBy: TYAPR03CA0020.apcprd03.prod.outlook.com (2603:1096:404:14::32) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|TYSPR03MB8564:EE_ X-MS-Office365-Filtering-Correlation-Id: 6fec5e35-4840-4956-ebf8-08dcb8efccab X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|52116014|7416014|376014|1800799024|38350700014|921020; X-Microsoft-Antispam-Message-Info: T8wHyB5dpkTd9yCTOSpd6D0FMNHISyr2Vo+4UDUO190gLjwFpNTU1wq/zusGXwPjCKCe/E0jecqBSVIINwaCaZgUhLMc8wtoyBje7uz4CQwXMy+N3Q451O4mlNg22dFPy9uZNIQlMDBkQDVzfMpfbk2eScZQM2GyrLiiAAbMAonf9l/nuoKvbMXS8JfXVjHje2JYFtlbXWL2qTw/b7NATvasuaO268lOtQlOqUXXZTs6RlYIup/bVUYOPOfcosdnC6quNJxADJzY7iyv5KfaRCjvS69//FdZDA44LO5weCZ2WF0Pg7d28GJuxGcQheIorpQKTcP9hVdJciO+bQiEPte2OHIgc5QiaBwoX2zKrEOViE7y0GTvsro0CN8QZkWbtL/PhprEjiRQkBdeRNSQ81kCjMN+Q4Of/vYgjL1TWd9oS0L+BbJ4VUDkOfNgL+Eu7o1PWvkRmpJ2hYZ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R03MB7001.apcprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(52116014)(7416014)(376014)(1800799024)(38350700014)(921020);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: BctJ7RMkAxBUWPgIUxkbc/IV3vRKndj3iQN4BRjgqpt3ZGL7CTgiEc1nzXvRzSJhWIWHMGx17uTmscT7SjAd1UxfLQUpnCzQOn9kh/YtpDDE9ruKZpitt4KYXZEl717QlwqgDJAkKXSKiwoc30W/NwXzwcQZj441lqFpXX/c4i2YtKDRUiUrruirTpNg3Z8zC5S07FhkLN17AayTo/zLj2tD1AvPZY+mvzAqKpMW1yFrbPNd4THmb2Ao7sYq03nFzkzC8bMwoXOxlMFBAFPMKE9LxgGUbVTlfJRiAKRbTtluEQiTAumw3jUsYhmX611YhuZ2NU4Mjym45Vhs0UtTu8Lnclwzxv+VmQeTU669tgeLQg6g9foUGo4uqSDJQNcUaITRkbm/cwbp5zvNSsnlfwFIXpNNcj3RvLpHBtFMemg5uh7abiBqA5WShIqbbJct/zhBiSS9Cv6vIxkZA2YqQZSHwiQweqtTHfR6ktg4hUU2TTBWrSZt36bwNdGnZoO8Lv5G5zxn1aFf2+RMVQ7/4t3IFmdvBnr+Pe7yZF8SmBF/gzTP/56nwLGzz2t7o+NVInQax8D7tstuWyPTxyRKh6PxHcec5xUBuCQxvNfzY0IAF91ThkTJmFEJFWjiS/DEbN1kq/pV33fduwRsNhorACjsCHQblNh9WmyymgH43wj9a4HfPAMOLF4acU6JIqDgvcJu9B5UCfhCA5ruTqUNjcw/pztyu1YfDOKyx2IPmHC5lkpn1q4wPiuuMsRNWwfcC2X5Za5HERQ3n/VOENiGJy9+tDstfx3C5lsjCbqKujWfrXnBGuDt6VTzDyZ4b4LNMhR9U0i2g9zLE6yQrHxk6uf7+aAqiU9h3hWknbHSCncS8rnLLNUH0LwVHFNTdaiP8Ga4ENYlwitAoSiiooIOPXeuPe08jDd2imrm3oip3aQFGx6i0KbEfh48EkJw5GRe2gsgRSFtfK6vQ+mVjKor1J6zLExGyLFIoceONW9Hzzdy8QBvAqGaUyUU34SN+EmUy1aBtxRVZDyrUbbaMGrcai1ZzvbldB6wJmKMn1qr2fxw1Jr+KFrPZkZ5Dj73rhRyhxBYTwYYJl8gtiO5+Bnr2Mxt46WAjZiQsfsu1D4alPBOyx0LQaUGP1T+6mipJ9IHaeSM2SsB86+hOVzVJZHZd/ZIbnKO9oO5t2xktKM3E7hJ66YXT9mHTawGUH6T0TQKsDR2CRMdiUqj9+hBNhQeQziYX3UQZbR8l1POiVuJquhGj4amz6hbE7D6fOnngUo2DEzCXhaLGd8x4FewO1fKonOW5uQTmjopeuezM0Z0Qfa+grGy+fwW7IU5ysV0OZROpIs8Il1iRo34no4nPO5P2Kyz3xNzuqDvEne5pM/aIIjreUGyy1KF0GO9Tb8GDyvPjqjcFvEkZWB4qfErZPsJY36Gu8yxPlIADzbpTrnRGqIqzgIUsNdz3b7Sie/E3BY2YCtrsOxdIiiXfutxIUcuXoBwrZyHUcxXcrdHpuEHCvVKIkDNZldxbAUQ5zvHCNm47qNi9/Z5LEIwPgvgV+whEWHjCgzAfxvx99kaNuW6xAXl5w5XMhZC5WYwXBWuYqp6 X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6fec5e35-4840-4956-ebf8-08dcb8efccab X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Aug 2024 03:52:05.1743 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 2dc3bd76-7ac2-4780-a5b7-6c6cc6b5af9b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 9QcRbXPu6jy6kXPCR9T1k787mHJZkFA5yludsacstB/aUeMOiL6EXd01RDUaTaQAEY07n8TRKHDete3+rd0uxg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR03MB8564 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240809_205220_797798_1D59F674 X-CRM114-Status: UNSURE ( 9.13 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Khadas Edge2 uses the PCI-e Ampak AP6275P 2T2R Wi-Fi 6 module. The pcie@0 node can be used as Bridge1, so the wifi@0 node is used as a device under the Bridge1. Co-developed-by: Muhammed Efe Cetin Signed-off-by: Muhammed Efe Cetin Reviewed-by: Arend van Spriel Signed-off-by: Jacobe Zang --- .../boot/dts/rockchip/rk3588s-khadas-edge2.dts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts index dbddfc3bb4641..a3361ca25867d 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts @@ -283,6 +283,22 @@ &pcie2x1l2 { reset-gpios = <&gpio3 RK_PD1 GPIO_ACTIVE_HIGH>; vpcie3v3-supply = <&vcc3v3_pcie_wl>; status = "okay"; + + pcie@0,0 { + reg = <0x400000 0 0 0 0>; + #address-cells = <3>; + #size-cells = <2>; + ranges; + device_type = "pci"; + bus-range = <0x40 0x4f>; + + wifi: wifi@0,0 { + compatible = "brcm,bcm4329-fmac", "pci14e4,449d"; + reg = <0x410000 0 0 0 0>; + clocks = <&hym8563>; + clock-names = "lpo"; + }; + }; }; &pwm11 { From patchwork Sat Aug 10 03:51:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13759400 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 48CD0C3DA7F for ; Sat, 10 Aug 2024 03:55:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=rdnQ3KH8JYSLAZVz0gxmwKq2xEIvMZdzGeLJyXtGqzo=; b=cHhA/l1HV9fn1YoGbt2TFOLZ6A GdVdT7fripeFaMkTX8hXbPKSkCn7SWAGxO1SY3eJiccVvT8fFQQVSL6Cp/urq4x5c6fbnpECOmM5V J+Hr7ZpVNJrZIL2VwDHj6phc17e0yXcGO7/eh12NCV30QzY23mqyyTns60+6939ESp0/5q6g739xX BZvehwl+jCjVyKkEtMEpAwVIKqRhJe0BNE3NDmqVHXMkAf23VG1C9fGKDR5WF8sCjkSa07Mr5HD27 iN0HdkHcrEaArXBJR01ZRmPXwWUbC7c3IgPvFPD37YBTD8r7SmTqrdRAqgxokHi+/hYcqn4fPzgVZ 1/UyyNLg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1scdCA-0000000D8I7-3feh; Sat, 10 Aug 2024 03:55:10 +0000 Received: from mail-psaapc01on20702.outbound.protection.outlook.com ([2a01:111:f400:feae::702] helo=APC01-PSA-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1scd9S-0000000D7NI-1atW; Sat, 10 Aug 2024 03:52:23 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=mDujevKkekqGAehSBi2bKmP5gwPjh7bvh5oYKzC211v0p5OvwgCAAkZZ9NXpon7OnwDk5JUwX7Xy7GWADN5Y2N8wr6GVKY4SOPWPhM5yMFeCb7f2pJOZmGgOlEI2btY1iqxj6+3fQKAeWYAi0Rrw1ExwE8ayYa5h7ccxSG5kr5ml4V53TdjkVrksWLChxy/AHlesKXaUjAOiwP3BtxRQbSNpXedZq7Xmf0yE0x4h8T985LGdcHlB/jh/AhPcSYJznlQKqMBkAOzSL22DK+OwZIaBG6V+06rx+X9OOQEI+myQ9aT1EZbkhgC2aPHFL4QRMlxUboRNOsaWHQyLsC/6pA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=rdnQ3KH8JYSLAZVz0gxmwKq2xEIvMZdzGeLJyXtGqzo=; b=LsgABiM+ESUuS8hgZisPehBKp+a7bqUppvAbhgJ/Sif3paI31pvjNG1ohy93I/32S2I1J6q+WOAy8aJRFGP8GY3GeJTr7M1sWSt1OipAenzHP9/22Jq7EMS71GK/Ll+Z6XKbAgW7g3DVFZMayRApWu8PcngED25agnclGQ707jYpxPoWFuAo9bzJ/gcMsNRlrvHWX59Af4lys6fFh0HtIdbQWiUkDvZxdTFe+yLRDmwm7k2pCs5XcC0BlN6iJPPpxRLsT9SUyo9/Z/DTch+SdvCe/1jmowRB3CstP0kMIgwySrTN0xuNu4b6MIjtPPVOotjdfSOYb0iYXIs+io2ANA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wesion.com; dmarc=pass action=none header.from=wesion.com; dkim=pass header.d=wesion.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wesion.com; Received: from TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) by TYSPR03MB8564.apcprd03.prod.outlook.com (2603:1096:405:61::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.27; Sat, 10 Aug 2024 03:52:08 +0000 Received: from TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0]) by TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0%6]) with mapi id 15.20.7849.015; Sat, 10 Aug 2024 03:52:08 +0000 From: Jacobe Zang To: robh@kernel.org, krzk+dt@kernel.org, heiko@sntech.de, kvalo@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, conor+dt@kernel.org, arend.vanspriel@broadcom.com Cc: efectn@protonmail.com, dsimic@manjaro.org, jagan@edgeble.ai, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, arend@broadcom.com, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, megi@xff.cz, duoming@zju.edu.cn, bhelgaas@google.com, minipli@grsecurity.net, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, nick@khadas.com, Jacobe Zang Subject: [PATCH v9 4/5] wifi: brcmfmac: Add optional lpo clock enable support Date: Sat, 10 Aug 2024 11:51:40 +0800 Message-Id: <20240810035141.439024-5-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240810035141.439024-1-jacobe.zang@wesion.com> References: <20240810035141.439024-1-jacobe.zang@wesion.com> X-ClientProxiedBy: TYAPR03CA0020.apcprd03.prod.outlook.com (2603:1096:404:14::32) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|TYSPR03MB8564:EE_ X-MS-Office365-Filtering-Correlation-Id: a0ac9594-7d39-4f43-3395-08dcb8efce6d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|52116014|7416014|376014|1800799024|38350700014|921020; X-Microsoft-Antispam-Message-Info: 279823OQZFHQj0GbvjvU7FzB5pzLsHImYZanJu4tCY7sERB++YcmWY5fLd1T7lqLLXpr8U+lUf/S0mwNsLtWZ34+zK9I20NGIhxUgXRD7sBVl74VeMLJC5Hoj6g2kT6aXhJEmTCY2QS9praf62eJ6kjTb1GKMliRiGurPImaI07rlOmKXkhStYCVsPAZsjXnSF/1UgHGkfm6cTeLOBWIpiWYlAuoDRLyVqNk9068uPtmH3cLPwjsrctaLlWmwDD4zLMd0NVyComWOwFoH+deDFONKNGezCuZLvf1/RYOlgyQvXOaCSbYncN7C+qF2+F0P1sh1PaZNyWSBEjYuGiB2qODV3t8WsqDalUTo8LsFd6aFprKRAs/Glpkqq3TgN6WCjQ+mNd/ryUy/zyWiYsn0mx/ArMk2zERTD5a16j6vlc98DDGJzFIk1EUYblAQf8Dihtdg84sF49f/cxs8SfmZ5Tjjl7HcmxDLa0ZgVFWtoEtsJGKgullNJ1gwBWr4kD0NT503DjWWQv1WT2CJMdPyhHR+Tp/wqVdk8soihC5v5BrSVZqjeGevZmms33LPE/e4e3bMCB0Os6EBbTRIb8wH/70gLN3nD0otpbmQsfmd44Oy56DQ1brdR2SBE8EPmx0pvTtOAkAIDAs3Y1Ek7LFSkmdj7Bn3OsP/VIi/X+iVPcxy40+BUAA+pdrSAQmEUt3hWUjd5K+YK2Dmc9Yec65LLNuidzD71JaHAaOfRcApJWaWy8Tka4dkFviLGgzvxOe86b6P/zysWX7aTu8zj7TI8BoNISc3ecnyqNRLCJwTXb04jpOIjZVoiQ5zL3pU6e9TFvCFyWWGEEe9IQr5woAFzWPkojJE4K0YjL6V5HFQLkCop5cQHPgn4lQIG/1C76nPKjRb0XWCKf9F7KZshoCCP1MLv5rW2SqJhm0d4PLVtTIMC4Fr5j03HfLXnEZuqRWBOQ0ImzTXXykt8r4SE0qgEEKEqnkCJGgTZrz2K9fK0vngGP+CCmzdpFwJWfJzkZJjSuWuqs0Hlh/jI5kYztCyD7lcHnex23Yo9nwZaZ2CrZB0uS4qVpW34JjndfWeoeguIQFxGWIal9FTTs1rTG0ccRlrVe5OTODFcMuNLzWxWxqg+aYiiAISZilARBvvhlrCqreYQY1SFz5fLhKnPPreSC9MEKmV8KQabKSfvlILpnJ67qvo0bMdmHU6kOeV8sWw1NKmE+2tRQqGV9/6Fr77JmTCdrCCt/g0onbEFvEIwS1KFDq9rIEck/P/Twe2YJ+SOXmpRFWwVtXzVReNfWb03wIIxycuBYZDrCwjx3zFp9f5XzHRm1YuK5PTA/e21GTAthKtawyOLHL+EaKfRzs/2sXcVwf8owU9UlNXeiXqOk3IxLPaoyyUbNsojhBmEKDC+q5kPRI8pbenDtYp5euLXcmHsOmYQIxOh62O/MM4wM= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYZPR03MB7001.apcprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(52116014)(7416014)(376014)(1800799024)(38350700014)(921020);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Uq3SGWIr79qTiCl1md0iHG9D6HdHi1IxKXo0uxp4LyIS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dcGiGfiVVd6oTBpa6v0PWRJUZFs6cuqEaWR5RXBR3w00SSkfZe9GgN8ZYj3msRc2iucy1YipcgqzyCCG2KDhRoelkoMO/6yK8IKivvFLXRf0S5F7OQWPMqLRIul+xj1IEvfL2UiCQgYFSXJxxz429bxnajtJ5YwPNX6reepgAZFU+juEaidp9L3kn/qAlHf1BQWTfSFLeKA58SRw3K/qwoLsOhIufa6WfLE19OoeQSfkVdf1zJF6cyg3NYMiB5hTFnXKD+7NoN/xa3HLtclBBS4ICVBW+g0OYd2QK7y+UXMITZlS2eYYsLNu4PuZHAbby3aqpM3u/PN7c9Mo4Arc/VnTofoROd89ZZeJjfXb4cOYUErI5KovRmqDJ5LilHXYowmlNV2nFBntrHZcGnSHoQE4SmCR8IUWXjhR/pZ0Kc3JmXMgOQ6RWF5VP/DbOydHSg8QcxUVap28YhHpkar09j9nHTg4ugkr X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: a0ac9594-7d39-4f43-3395-08dcb8efce6d X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Aug 2024 03:52:08.1206 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 2dc3bd76-7ac2-4780-a5b7-6c6cc6b5af9b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: CVMgm2dhsAsIHjCj9nBv+B2X+h5WgYroSjSWy869mpj0aI4dohdvU3JRb/xQivNwyZNjSTaTyr2wKRZy5ylICg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR03MB8564 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240809_205222_462611_8DBC89A3 X-CRM114-Status: GOOD ( 20.28 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org WiFi modules often require 32kHz clock to function. Add support to enable the clock to PCIe driver and move "brcm,bcm4329-fmac" check to the top of brcmf_of_probe. Change function prototypes from void to int and add appropriate errno's for return values that will be send to bus when error occurred. Co-developed-by: Ondrej Jirman Signed-off-by: Ondrej Jirman Co-developed-by: Arend van Spriel Signed-off-by: Arend van Spriel Signed-off-by: Jacobe Zang Reviewed-by: Sai Krishna --- .../broadcom/brcm80211/brcmfmac/bcmsdh.c | 4 +- .../broadcom/brcm80211/brcmfmac/common.c | 3 +- .../wireless/broadcom/brcm80211/brcmfmac/of.c | 53 +++++++++++-------- .../wireless/broadcom/brcm80211/brcmfmac/of.h | 9 ++-- .../broadcom/brcm80211/brcmfmac/pcie.c | 3 ++ .../broadcom/brcm80211/brcmfmac/sdio.c | 24 ++++++--- .../broadcom/brcm80211/brcmfmac/usb.c | 3 ++ 7 files changed, 63 insertions(+), 36 deletions(-) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c index 13391c2d82aae..b2ede4e579c5c 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c @@ -947,8 +947,8 @@ int brcmf_sdiod_probe(struct brcmf_sdio_dev *sdiodev) /* try to attach to the target device */ sdiodev->bus = brcmf_sdio_probe(sdiodev); - if (!sdiodev->bus) { - ret = -ENODEV; + if (IS_ERR(sdiodev->bus)) { + ret = PTR_ERR(sdiodev->bus); goto out; } brcmf_sdiod_host_fixup(sdiodev->func2->card->host); diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c index b24faae35873d..58d50918dd177 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c @@ -561,7 +561,8 @@ struct brcmf_mp_device *brcmf_get_module_param(struct device *dev, if (!found) { /* No platform data for this device, try OF and DMI data */ brcmf_dmi_probe(settings, chip, chiprev); - brcmf_of_probe(dev, bus_type, settings); + if (brcmf_of_probe(dev, bus_type, settings) == -EPROBE_DEFER) + return ERR_PTR(-EPROBE_DEFER); brcmf_acpi_probe(dev, bus_type, settings); } return settings; diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c index e406e11481a62..f19dc7355e0e8 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c @@ -6,6 +6,7 @@ #include #include #include +#include #include #include "debug.h" @@ -65,17 +66,21 @@ static int brcmf_of_get_country_codes(struct device *dev, return 0; } -void brcmf_of_probe(struct device *dev, enum brcmf_bus_type bus_type, - struct brcmf_mp_device *settings) +int brcmf_of_probe(struct device *dev, enum brcmf_bus_type bus_type, + struct brcmf_mp_device *settings) { struct brcmfmac_sdio_pd *sdio = &settings->bus.sdio; struct device_node *root, *np = dev->of_node; + struct clk *clk; const char *prop; int irq; int err; u32 irqf; u32 val; + if (!np || !of_device_is_compatible(np, "brcm,bcm4329-fmac")) + return 0; + /* Apple ARM64 platforms have their own idea of board type, passed in * via the device tree. They also have an antenna SKU parameter */ @@ -105,7 +110,7 @@ void brcmf_of_probe(struct device *dev, enum brcmf_bus_type bus_type, board_type = devm_kstrdup(dev, tmp, GFP_KERNEL); if (!board_type) { of_node_put(root); - return; + return 0; } strreplace(board_type, '/', '-'); settings->board_type = board_type; @@ -113,33 +118,39 @@ void brcmf_of_probe(struct device *dev, enum brcmf_bus_type bus_type, of_node_put(root); } - if (!np || !of_device_is_compatible(np, "brcm,bcm4329-fmac")) - return; - err = brcmf_of_get_country_codes(dev, settings); if (err) brcmf_err("failed to get OF country code map (err=%d)\n", err); of_get_mac_address(np, settings->mac); - if (bus_type != BRCMF_BUSTYPE_SDIO) - return; + if (bus_type == BRCMF_BUSTYPE_SDIO) { + if (of_property_read_u32(np, "brcm,drive-strength", &val) == 0) + sdio->drive_strength = val; - if (of_property_read_u32(np, "brcm,drive-strength", &val) == 0) - sdio->drive_strength = val; + /* make sure there are interrupts defined in the node */ + if (!of_property_present(np, "interrupts")) + return 0; - /* make sure there are interrupts defined in the node */ - if (!of_property_present(np, "interrupts")) - return; + irq = irq_of_parse_and_map(np, 0); + if (!irq) { + brcmf_err("interrupt could not be mapped\n"); + return 0; + } + irqf = irqd_get_trigger_type(irq_get_irq_data(irq)); + + sdio->oob_irq_supported = true; + sdio->oob_irq_nr = irq; + sdio->oob_irq_flags = irqf; + } - irq = irq_of_parse_and_map(np, 0); - if (!irq) { - brcmf_err("interrupt could not be mapped\n"); - return; + clk = devm_clk_get_optional_enabled(dev, "lpo"); + if (!IS_ERR_OR_NULL(clk)) { + brcmf_dbg(INFO, "enabling 32kHz clock\n"); + return clk_set_rate(clk, 32768); + } else { + return PTR_ERR_OR_ZERO(clk); } - irqf = irqd_get_trigger_type(irq_get_irq_data(irq)); - sdio->oob_irq_supported = true; - sdio->oob_irq_nr = irq; - sdio->oob_irq_flags = irqf; + return 0; } diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.h b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.h index 10bf52253337e..ae124c73fc3b7 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.h +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.h @@ -3,11 +3,12 @@ * Copyright (c) 2014 Broadcom Corporation */ #ifdef CONFIG_OF -void brcmf_of_probe(struct device *dev, enum brcmf_bus_type bus_type, - struct brcmf_mp_device *settings); +int brcmf_of_probe(struct device *dev, enum brcmf_bus_type bus_type, + struct brcmf_mp_device *settings); #else -static void brcmf_of_probe(struct device *dev, enum brcmf_bus_type bus_type, - struct brcmf_mp_device *settings) +static int brcmf_of_probe(struct device *dev, enum brcmf_bus_type bus_type, + struct brcmf_mp_device *settings) { + return 0; } #endif /* CONFIG_OF */ diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c index 06698a714b523..c34405a6d38b8 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c @@ -2457,6 +2457,9 @@ brcmf_pcie_probe(struct pci_dev *pdev, const struct pci_device_id *id) ret = -ENOMEM; goto fail; } + ret = PTR_ERR_OR_ZERO(devinfo->settings); + if (ret < 0) + goto fail; bus = kzalloc(sizeof(*bus), GFP_KERNEL); if (!bus) { diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c index 6b38d9de71af6..461b7ff3be24b 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c @@ -3943,7 +3943,7 @@ static const struct brcmf_buscore_ops brcmf_sdio_buscore_ops = { .write32 = brcmf_sdio_buscore_write32, }; -static bool +static int brcmf_sdio_probe_attach(struct brcmf_sdio *bus) { struct brcmf_sdio_dev *sdiodev; @@ -3953,6 +3953,7 @@ brcmf_sdio_probe_attach(struct brcmf_sdio *bus) u32 reg_val; u32 drivestrength; u32 enum_base; + int ret = -EBADE; sdiodev = bus->sdiodev; sdio_claim_host(sdiodev->func1); @@ -4001,8 +4002,9 @@ brcmf_sdio_probe_attach(struct brcmf_sdio *bus) BRCMF_BUSTYPE_SDIO, bus->ci->chip, bus->ci->chiprev); - if (!sdiodev->settings) { + if (IS_ERR_OR_NULL(sdiodev->settings)) { brcmf_err("Failed to get device parameters\n"); + ret = PTR_ERR_OR_ZERO(sdiodev->settings); goto fail; } /* platform specific configuration: @@ -4071,7 +4073,7 @@ brcmf_sdio_probe_attach(struct brcmf_sdio *bus) /* allocate header buffer */ bus->hdrbuf = kzalloc(MAX_HDR_READ + bus->head_align, GFP_KERNEL); if (!bus->hdrbuf) - return false; + return -ENOMEM; /* Locate an appropriately-aligned portion of hdrbuf */ bus->rxhdr = (u8 *) roundup((unsigned long)&bus->hdrbuf[0], bus->head_align); @@ -4082,11 +4084,11 @@ brcmf_sdio_probe_attach(struct brcmf_sdio *bus) if (bus->poll) bus->pollrate = 1; - return true; + return 0; fail: sdio_release_host(sdiodev->func1); - return false; + return ret; } static int @@ -4446,13 +4448,16 @@ struct brcmf_sdio *brcmf_sdio_probe(struct brcmf_sdio_dev *sdiodev) struct brcmf_sdio *bus; struct workqueue_struct *wq; struct brcmf_fw_request *fwreq; + int probe_attach_result; brcmf_dbg(TRACE, "Enter\n"); /* Allocate private bus interface state */ bus = kzalloc(sizeof(struct brcmf_sdio), GFP_ATOMIC); - if (!bus) + if (!bus) { + ret = -ENOMEM; goto fail; + } bus->sdiodev = sdiodev; sdiodev->bus = bus; @@ -4467,6 +4472,7 @@ struct brcmf_sdio *brcmf_sdio_probe(struct brcmf_sdio_dev *sdiodev) dev_name(&sdiodev->func1->dev)); if (!wq) { brcmf_err("insufficient memory to create txworkqueue\n"); + ret = -ENOMEM; goto fail; } brcmf_sdiod_freezer_count(sdiodev); @@ -4474,8 +4480,10 @@ struct brcmf_sdio *brcmf_sdio_probe(struct brcmf_sdio_dev *sdiodev) bus->brcmf_wq = wq; /* attempt to attach to the dongle */ - if (!(brcmf_sdio_probe_attach(bus))) { + probe_attach_result = brcmf_sdio_probe_attach(bus); + if (probe_attach_result < 0) { brcmf_err("brcmf_sdio_probe_attach failed\n"); + ret = probe_attach_result; goto fail; } @@ -4546,7 +4554,7 @@ struct brcmf_sdio *brcmf_sdio_probe(struct brcmf_sdio_dev *sdiodev) fail: brcmf_sdio_remove(bus); - return NULL; + return ERR_PTR(ret); } /* Detach and free everything */ diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c index 9a105e6debe1f..f7db46ae44906 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c @@ -1272,6 +1272,9 @@ static int brcmf_usb_probe_cb(struct brcmf_usbdev_info *devinfo, ret = -ENOMEM; goto fail; } + ret = PTR_ERR_OR_ZERO(devinfo->settings); + if (ret < 0) + goto fail; if (!brcmf_usb_dlneeded(devinfo)) { ret = brcmf_alloc(devinfo->dev, devinfo->settings); From patchwork Sat Aug 10 03:51:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13759401 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B570AC3DA4A for ; Sat, 10 Aug 2024 03:56:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ZWqN2d2WV5H3rjNNY/SuBA/Is/G4XlfllfCP+MEOJRA=; b=eeG09Gf7MOsm+72lFHW6E8UOWi 9UOXn4miJHbt0WgGcLVwzw7S6HU8h+gdTuSLNfGavKGtuxEb12MdEtPoUhqtdV4CbBnKwoZUmlEa5 ozEk1KfXm/6Pyjto5teoCdigGfIOIvHQXNUuaDE9EQ8ns+Dzl0FPyBHIYyRbF8bGk+Iqx5AuXmdKM XPsSJYAMeu75/Np1zV11lCwCkShaiqd084rdmmk9cTNw0U+bMuJ6/WJGt1RSXWju3V2Z46Y1iQmlI gjSrROPgAHRFN2C8VDKEMB1WvY72Q4usXoUUYjktAl/Aq06OFPMpL4ziEdWa9BllczMdh7hc3WMJY Ksjo9fAg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1scdCk-0000000D8Sc-06Jp; Sat, 10 Aug 2024 03:55:46 +0000 Received: from mail-psaapc01on20702.outbound.protection.outlook.com ([2a01:111:f400:feae::702] helo=APC01-PSA-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1scd9U-0000000D7NI-0oFi; Sat, 10 Aug 2024 03:52:25 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ihRfwKKkoa4nMVlikrqu538qpix78VWpTFmNFPMeyyAn8BXxtzowhFIgFLYdQX4EejnC+44vnyeABqlTvG4jDLmRQmHsQpjIWyc7b6jJP/1/EcrztCQHKNL37ovd3yBPB1GxzRxdim6kWOglaUJ6VCT7Hg/guuAuYMggT5wcDEp0wyI5a1AG0hQbJDKJ3oyci1b12izx8EXtnsY0Z050QHTEpTp8/ke3L7lhm9YreuGPUizSZS/Uo9vBWjL3wyPNH7cHvs0GaKaL0md4+sckuDZ5plk8IeuNZx+WRaxtaf8wze7BfSYnChaXUOEwxxrYLzG3Mbnh8kxbxcDvPnsVmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ZWqN2d2WV5H3rjNNY/SuBA/Is/G4XlfllfCP+MEOJRA=; b=fOzK23LXA5zYA6yV2wXIxUQqTu5meEEAfEjx72NtFw/ACfXa6xlmm+GvAt1+kGDzeiHKz8K4Xl3wfnOzgfT6xmPBVVijIoyBUcmKAz15/4PrdhI0RsgbNdUoZdzGQIUaov5/CSQwegzvLtBTyGkiKc5oq/fxJruYkSMalVeChhQDqpo3Ei/akpCVYC6dRzYUsE6wcSZ2Cu2Mv/KI0/lUrFl4gZKp9Ge7WZaJ02eInbGWu9z1eXeILYOlJUq7mUy0YUVCrirmxPCOVbAMi6jzAYc6jS5dr1rNUU0SEv7msw0I3wfgvfFriCwqspHs6Rb+DSxZ4fFL1faiWdVMLdH81w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wesion.com; dmarc=pass action=none header.from=wesion.com; dkim=pass header.d=wesion.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wesion.com; Received: from TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) by TYSPR03MB8564.apcprd03.prod.outlook.com (2603:1096:405:61::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.27; Sat, 10 Aug 2024 03:52:11 +0000 Received: from TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0]) by TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0%6]) with mapi id 15.20.7849.015; Sat, 10 Aug 2024 03:52:11 +0000 From: Jacobe Zang To: robh@kernel.org, krzk+dt@kernel.org, heiko@sntech.de, kvalo@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, conor+dt@kernel.org, arend.vanspriel@broadcom.com Cc: efectn@protonmail.com, dsimic@manjaro.org, jagan@edgeble.ai, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, arend@broadcom.com, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, megi@xff.cz, duoming@zju.edu.cn, bhelgaas@google.com, minipli@grsecurity.net, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, nick@khadas.com, Jacobe Zang Subject: [PATCH v9 5/5] wifi: brcmfmac: add flag for random seed during firmware download Date: Sat, 10 Aug 2024 11:51:41 +0800 Message-Id: <20240810035141.439024-6-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240810035141.439024-1-jacobe.zang@wesion.com> References: <20240810035141.439024-1-jacobe.zang@wesion.com> X-ClientProxiedBy: TYAPR03CA0020.apcprd03.prod.outlook.com (2603:1096:404:14::32) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|TYSPR03MB8564:EE_ X-MS-Office365-Filtering-Correlation-Id: 2abc559f-4342-48ca-1ad6-08dcb8efd02d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|52116014|7416014|376014|1800799024|38350700014|921020; X-Microsoft-Antispam-Message-Info: iKmv/fk0IAMayeJQ4kM477c9W9rh7gq07wSwAinVmkQ6pSVicBQ4WH/qii1dlYK6yUAinzBkVysaH8K02kb+IbtqjN0mYXR3xbgTVRPgaCPBzbm8uzj9lMBv7cN184wfKWDYLhX8roX0RsExAm8VC0jyPLO/PrUWy5JNlMMLy5KM+zkOu8aRJEn5c263X7AWjj9P3ZXHZBssuWEqBoIRKgDEvcsWJL9d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cL+FGl/6KVL75bargMJzxAHQPno0u+yxwDyH2JYDzct5XG7/1rINGiQOLwOlfSauREQct4Ws2Njvuu+VGP3zXL5Bmvrm4z5UFVUJ6sdgGT6zfxIfy603SUFb77F1D1NYujq9CMQFno4+qKdn7CMOiIJ/5ZaUAU= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYZPR03MB7001.apcprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(52116014)(7416014)(376014)(1800799024)(38350700014)(921020);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Ciw3Dk6Ql1aLh9bPQ1S8VeuP2kG4t+mBpFY00N/BrBqTy/cfEgSqTi2v6+/bSPobHXgCRojQVlobhivqlrGbCUTvBnGgS5K1O9Ik8cQ5UKg71Vu8TmLzopRrAmoEyfj/iq9HwcfSXiomvoXmUPo2uY78J+A5Agx/8S/nrU0UJnlwfaw2Hj94nvjo4z3d7i+Q1SzhB2CEURwt9SxBka980qGO+J+erJLphwEW4d/ht64D4SvYnT+Z2KRUh4Dr6gC6fytYYNw2hny6dW1nPHF/z5+nBZeu7mdjfUpc+grjIUvXrnaHCgg9DRsBszNEPM5WkFrzD7lm7CvyaDSRWm7u1VN6ublrq7Ft0Xseb4ozIDK6e2BBuoSThaZP38Gxr6dJYIqpxJmBvBYBQnYpNHWT/tIUBxA713XapKVnMNgvpHwz04P/VEj1LwmNkcUlUlviPVF+cT5gv4B/Mvp35K9sN8kzmWfcSwXnUjlRDtbaV9cC0w6zPguXNr7YRNdMYpDxCRpQBO0hjM/KT4v08TkEEAJUguTd2N5gzcO1fDSvF4gE+4KOLtjB3YbLTQT94k9e0Jj08JMGIa6uGoKe8JkIQJfzgM5UezhXcSosDzoW6wdI8abSxcUms+ncF6wSRBQY2v4kDrGEq6cIncrAVPwiKKzgtw+0QVDv2O6x0O88QMGsXqfgE4Mor8HP/fkEaGhwWGLMeDjuFlbB/NI5fsRIdGwhlMaetvDnSC5bVwR+fM7fsw6AgGlfgMbFZJ16tuaSup6IkYYi0C06xAI/qJu/mG5cIu3ZoiO+qLrUF+nN/QjbzoPQprOWdrieX6iudkReaOKWegz15tB/oZipMJAD2d7561oLOygvEyCiysZgK3dd7IaGN1FPpGOpgmfQ6OKrahTDr5b8JyOVZEp5yiftQEiT+5YMoEvJiMnFDmFOowO2d6lF79mWaAivMYVg21XREhFZX5FmrWzyGLD8ylrg8YX/P7SViIctoCaqd9HTMFvh2WQTfLsuJoTZpmaVb4gLveAiFipaxd99SIGq0NaQFR3ujOjp63VAzFmFjTBe8T6t03b/uEBXkyiCC2uHPRL0jNxK2XgDBYxIT1acJVwNLVG5IqDdpH0j2dLcI/cfqMK+G/ft7Ss6OY8sGr4DBgW8JBq8PK+viJQXDXH8fxTak/9LHdpbvEFT60e4AF7v5s5jcw2mt91E9Od9ymfmEiKBQ16fQoYOmoqJgjPePv8wivxPYfvF3FqLydxQFjMBb99/yK8r/RmobJaS7szI/A+1LhjYbKJLFLoUxsml1Zv6QMN/XkMMB7avcq25ksqqvGoYN3XSQ180h0kUE0xGxP5ksNrZ6JjZAQqXK21+GFxtfI59+coF4dNSnLEdJ2CQUcUw+Oh5JSmockGGHw29y3jOp2C6OMZR5SMNYfvAfU66/l6iJXVXwYPibEWKhYP6yM/HdPrqTarF1F4dlt5hueVEJ2O6p5IVhAWwzhrtSHWTbd2jPk/B3hxNoAP4jqSPOzofAFhm+FbICLNAuXfLC2OgrkUBnmsKp2fBc6BCNaeJtwyjFd3pYK/kPqQta4WGfHBeeYaHPl12oclYb3TG6CE9 X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2abc559f-4342-48ca-1ad6-08dcb8efd02d X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Aug 2024 03:52:11.0601 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 2dc3bd76-7ac2-4780-a5b7-6c6cc6b5af9b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 8pnixoV3NL/+I/+pfEIlifCu06hcqA6ssyzAUqhYH5/zbM2b7H+n4O7NfObie6ckY8RTA+/wj1YJRI/82sST8A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR03MB8564 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240809_205224_266099_21E88B97 X-CRM114-Status: GOOD ( 16.59 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Providing the random seed to firmware was tied to the fact that the device has a valid OTP, which worked for some Apple chips. However, it turns out the BCM43752 device also needs the random seed in order to get firmware running. Suspect it is simply tied to the firmware branch used for the device. Introducing a mechanism to allow setting it for a device through the device table. Co-developed-by: Ondrej Jirman Signed-off-by: Ondrej Jirman Co-developed-by: Arend van Spriel Signed-off-by: Arend van Spriel Signed-off-by: Jacobe Zang --- .../broadcom/brcm80211/brcmfmac/pcie.c | 52 ++++++++++++++++--- .../broadcom/brcm80211/include/brcm_hw_ids.h | 2 + 2 files changed, 46 insertions(+), 8 deletions(-) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c index c34405a6d38b8..e88fa4cd62a1d 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c @@ -66,6 +66,7 @@ BRCMF_FW_DEF(4365C, "brcmfmac4365c-pcie"); BRCMF_FW_DEF(4366B, "brcmfmac4366b-pcie"); BRCMF_FW_DEF(4366C, "brcmfmac4366c-pcie"); BRCMF_FW_DEF(4371, "brcmfmac4371-pcie"); +BRCMF_FW_CLM_DEF(43752, "brcmfmac43752-pcie"); BRCMF_FW_CLM_DEF(4377B3, "brcmfmac4377b3-pcie"); BRCMF_FW_CLM_DEF(4378B1, "brcmfmac4378b1-pcie"); BRCMF_FW_CLM_DEF(4378B3, "brcmfmac4378b3-pcie"); @@ -104,6 +105,7 @@ static const struct brcmf_firmware_mapping brcmf_pcie_fwnames[] = { BRCMF_FW_ENTRY(BRCM_CC_43664_CHIP_ID, 0xFFFFFFF0, 4366C), BRCMF_FW_ENTRY(BRCM_CC_43666_CHIP_ID, 0xFFFFFFF0, 4366C), BRCMF_FW_ENTRY(BRCM_CC_4371_CHIP_ID, 0xFFFFFFFF, 4371), + BRCMF_FW_ENTRY(BRCM_CC_43752_CHIP_ID, 0xFFFFFFFF, 43752), BRCMF_FW_ENTRY(BRCM_CC_4377_CHIP_ID, 0xFFFFFFFF, 4377B3), /* revision ID 4 */ BRCMF_FW_ENTRY(BRCM_CC_4378_CHIP_ID, 0x0000000F, 4378B1), /* revision ID 3 */ BRCMF_FW_ENTRY(BRCM_CC_4378_CHIP_ID, 0xFFFFFFE0, 4378B3), /* revision ID 5 */ @@ -358,6 +360,7 @@ struct brcmf_pciedev_info { u16 value); struct brcmf_mp_device *settings; struct brcmf_otp_params otp; + bool fwseed; #ifdef DEBUG u32 console_interval; bool console_active; @@ -1720,14 +1723,14 @@ static int brcmf_pcie_download_fw_nvram(struct brcmf_pciedev_info *devinfo, memcpy_toio(devinfo->tcm + address, nvram, nvram_len); brcmf_fw_nvram_free(nvram); - if (devinfo->otp.valid) { + if (devinfo->fwseed) { size_t rand_len = BRCMF_RANDOM_SEED_LENGTH; struct brcmf_random_seed_footer footer = { .length = cpu_to_le32(rand_len), .magic = cpu_to_le32(BRCMF_RANDOM_SEED_MAGIC), }; - /* Some Apple chips/firmwares expect a buffer of random + /* Some chips/firmwares expect a buffer of random * data to be present before NVRAM */ brcmf_dbg(PCIE, "Download random seed\n"); @@ -2399,6 +2402,37 @@ static void brcmf_pcie_debugfs_create(struct device *dev) } #endif +struct brcmf_pcie_drvdata { + enum brcmf_fwvendor vendor; + bool fw_seed; +}; + +enum { + BRCMF_DRVDATA_CYW, + BRCMF_DRVDATA_BCA, + BRCMF_DRVDATA_WCC, + BRCMF_DRVDATA_WCC_SEED, +}; + +static const struct brcmf_pcie_drvdata drvdata[] = { + [BRCMF_DRVDATA_CYW] = { + .vendor = BRCMF_FWVENDOR_CYW, + .fw_seed = false, + }, + [BRCMF_DRVDATA_BCA] = { + .vendor = BRCMF_FWVENDOR_BCA, + .fw_seed = false, + }, + [BRCMF_DRVDATA_WCC] = { + .vendor = BRCMF_FWVENDOR_WCC, + .fw_seed = false, + }, + [BRCMF_DRVDATA_WCC_SEED] = { + .vendor = BRCMF_FWVENDOR_WCC, + .fw_seed = true, + }, +}; + /* Forward declaration for pci_match_id() call */ static const struct pci_device_id brcmf_pcie_devid_table[]; @@ -2480,9 +2514,10 @@ brcmf_pcie_probe(struct pci_dev *pdev, const struct pci_device_id *id) bus->bus_priv.pcie = pcie_bus_dev; bus->ops = &brcmf_pcie_bus_ops; bus->proto_type = BRCMF_PROTO_MSGBUF; - bus->fwvid = id->driver_data; bus->chip = devinfo->coreid; bus->wowl_supported = pci_pme_capable(pdev, PCI_D3hot); + bus->fwvid = drvdata[id->driver_data].vendor; + devinfo->fwseed = drvdata[id->driver_data].fw_seed; dev_set_drvdata(&pdev->dev, bus); ret = brcmf_alloc(&devinfo->pdev->dev, devinfo->settings); @@ -2668,14 +2703,14 @@ static const struct dev_pm_ops brcmf_pciedrvr_pm = { BRCM_PCIE_VENDOR_ID_BROADCOM, (dev_id), \ PCI_ANY_ID, PCI_ANY_ID, \ PCI_CLASS_NETWORK_OTHER << 8, 0xffff00, \ - BRCMF_FWVENDOR_ ## fw_vend \ + BRCMF_DRVDATA_ ## fw_vend \ } #define BRCMF_PCIE_DEVICE_SUB(dev_id, subvend, subdev, fw_vend) \ { \ BRCM_PCIE_VENDOR_ID_BROADCOM, (dev_id), \ (subvend), (subdev), \ PCI_CLASS_NETWORK_OTHER << 8, 0xffff00, \ - BRCMF_FWVENDOR_ ## fw_vend \ + BRCMF_DRVDATA_ ## fw_vend \ } static const struct pci_device_id brcmf_pcie_devid_table[] = { @@ -2703,9 +2738,10 @@ static const struct pci_device_id brcmf_pcie_devid_table[] = { BRCMF_PCIE_DEVICE(BRCM_PCIE_4366_5G_DEVICE_ID, BCA), BRCMF_PCIE_DEVICE(BRCM_PCIE_4371_DEVICE_ID, WCC), BRCMF_PCIE_DEVICE(BRCM_PCIE_43596_DEVICE_ID, CYW), - BRCMF_PCIE_DEVICE(BRCM_PCIE_4377_DEVICE_ID, WCC), - BRCMF_PCIE_DEVICE(BRCM_PCIE_4378_DEVICE_ID, WCC), - BRCMF_PCIE_DEVICE(BRCM_PCIE_4387_DEVICE_ID, WCC), + BRCMF_PCIE_DEVICE(BRCM_PCIE_4377_DEVICE_ID, WCC_SEED), + BRCMF_PCIE_DEVICE(BRCM_PCIE_4378_DEVICE_ID, WCC_SEED), + BRCMF_PCIE_DEVICE(BRCM_PCIE_4387_DEVICE_ID, WCC_SEED), + BRCMF_PCIE_DEVICE(BRCM_PCIE_43752_DEVICE_ID, WCC_SEED), { /* end: all zeroes */ } }; diff --git a/drivers/net/wireless/broadcom/brcm80211/include/brcm_hw_ids.h b/drivers/net/wireless/broadcom/brcm80211/include/brcm_hw_ids.h index 44684bf1b9acc..c1e22c589d85e 100644 --- a/drivers/net/wireless/broadcom/brcm80211/include/brcm_hw_ids.h +++ b/drivers/net/wireless/broadcom/brcm80211/include/brcm_hw_ids.h @@ -52,6 +52,7 @@ #define BRCM_CC_43664_CHIP_ID 43664 #define BRCM_CC_43666_CHIP_ID 43666 #define BRCM_CC_4371_CHIP_ID 0x4371 +#define BRCM_CC_43752_CHIP_ID 43752 #define BRCM_CC_4377_CHIP_ID 0x4377 #define BRCM_CC_4378_CHIP_ID 0x4378 #define BRCM_CC_4387_CHIP_ID 0x4387 @@ -94,6 +95,7 @@ #define BRCM_PCIE_4366_5G_DEVICE_ID 0x43c5 #define BRCM_PCIE_4371_DEVICE_ID 0x440d #define BRCM_PCIE_43596_DEVICE_ID 0x4415 +#define BRCM_PCIE_43752_DEVICE_ID 0x449d #define BRCM_PCIE_4377_DEVICE_ID 0x4488 #define BRCM_PCIE_4378_DEVICE_ID 0x4425 #define BRCM_PCIE_4387_DEVICE_ID 0x4433