From patchwork Wed Aug 28 07:40:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13780832 X-Patchwork-Delegate: kvalo@adurom.com Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2117.outbound.protection.outlook.com [40.107.255.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4B6B715530C; Wed, 28 Aug 2024 07:41:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.255.117 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724830879; cv=fail; b=VmSUg7Pto3oF7S/okqFLITzWj2CH52H4kz/ajIxYppBS3xOBmxB3fDEdVIG6KdwIWLUALiUuxS2Cdj3PkT4q+VPHFciaGMkjLsIXZwm8HxRQSTioeEs+0IB0bqjNysejfWvQ95ugy1c1hjs11vj/dhAy7EFho39IXqhjmUUrbRk= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724830879; c=relaxed/simple; bh=pvBFedbixSkiqWuMD5ggRHBeHefsL/vzl60gVabib1c=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=FFsClXNOcYmVwF3gUjCSNQP2aOUdWp6UHIO/IJlYye7jDPJvIuZnCBxWrmJsOW+62cSI2D3xdl61FnW55maQtzgp265CePlobaV5XfZIhJrK0APvHOkeB6dI1sFf3qpzoiilOVHnfiV9pV7lFPyfbFtwsOZJ/1IQZPkV9WjzlV0= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wesion.com; spf=pass smtp.mailfrom=wesion.com; arc=fail smtp.client-ip=40.107.255.117 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wesion.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wesion.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=rmzkBad7fD0G88L62NnVgyEQTag00YcSCuLYiej0+VxA3rxiQ0n6z+jFrbSqadEluUZpUgErOwnF8l9BCHUn3SoiKCuAae6Bbr4KyFEuu0wWg7NstRrYnEqGF3bVAzMxQaPrdaF/rHpnA/2KnULy/s4oB0W1SfeXbyDmbT1epNitLZ00+7nFRvGx7jEXEV736/TbIOl5rLk0YxfnzZc1Hrr/hO+YeSE45OdDykqtGFU0dx7EdqmKgLEmWGi1STb8rOE2vJuZORXRQufC8/bciMNfBJtdM/7Qf3o3ko/YmER7vrwdAE8LPtvy2IM0KDNDFCjhM0I3I3ZALDqLEtNARg== 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=KbxQ8CN2hEqCPJsO4yOc2S/gFbfZhs3WhsZPY+vH/Dw=; b=YLn5TI2z0H6mKpPrLqJd/1DIU47X6gBffj33kXR4cm7kTEV/4ngQz842Oo1fz2bec/BEH2QZ/6jnvo2E7h9RzUhlPpsSW7EUGilVoTu3SPyEboeXwkRDnVTzcSiwCdt4m34NgFIAZZ4UrbnflfEtH9semiI9C+LhJ836rBpjeamzzZpVaGfvITSkJ5SUOvxk+NXN0CbqBgWSc35wGU1QWnBo40TjnyJ1m2H/DV8cMrEleqnwBdvaShVtPTaPzo3+eilPvFPbRlHerUvpJOk2gCeLMoTmR5q1T92H9zA2uCIZbq37sDV0iKuq2z+Jv/lw+wEMaUdmEbFdNzWffltaKg== 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 KL1PR03MB7765.apcprd03.prod.outlook.com (2603:1096:820:ec::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.25; Wed, 28 Aug 2024 07:41:13 +0000 Received: from TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0]) by TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0%4]) with mapi id 15.20.7875.019; Wed, 28 Aug 2024 07:41:12 +0000 From: Jacobe Zang Date: Wed, 28 Aug 2024 15:40:48 +0800 Subject: [PATCH v12 1/5] dt-bindings: net: wireless: brcm4329-fmac: add pci14e4,449d Message-Id: <20240828-wireless-mainline-v12-1-9064ac7acf1d@wesion.com> References: <20240828-wireless-mainline-v12-0-9064ac7acf1d@wesion.com> In-Reply-To: <20240828-wireless-mainline-v12-0-9064ac7acf1d@wesion.com> To: Kalle Valo , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , van Spriel , Arend van Spriel Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, Jacobe Zang , Krzysztof Kozlowski X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1724830868; l=1081; i=jacobe.zang@wesion.com; s=20240828; h=from:subject:message-id; bh=pvBFedbixSkiqWuMD5ggRHBeHefsL/vzl60gVabib1c=; b=oumwvwKsr4rsnjUzj/ymaZJUCcAdLSZzTt0dZ0c+HZNpMwWtLiUzaw5W/dJYhoPcYHpaPcM0+ woIw6ggrgZiAFHwDx5OnuL9zS4D2Ammt39TrAbA4ypRgLz4vFvqhvM+ X-Developer-Key: i=jacobe.zang@wesion.com; a=ed25519; pk=CkP5TjIqHSwHJwZXTGtadoXZucYvakXcO3HjbR6FoeU= X-ClientProxiedBy: TYCP286CA0372.JPNP286.PROD.OUTLOOK.COM (2603:1096:405:79::20) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|KL1PR03MB7765:EE_ X-MS-Office365-Filtering-Correlation-Id: a17b7d7b-1f05-48b3-31a5-08dcc734ca73 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|366016|1800799024|376014|7416014|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?N9SY/fgZRUVctsGLOGYrcqN6CfTOVyr?= =?utf-8?q?0yiSRPr3uhLRZsr9DL0xuLXKyzEzkjg/40TKcZtuCYYP4dtsn8XF/DiJKnJ41NHzI?= =?utf-8?q?99JNynTHWtmuYGC2yiV02QSEhS7IbcSjWdoHPHWoyDhQMMyTB+x2ToSFvG0nbrbld?= =?utf-8?q?UQPnwOXxju/zUzVSkCsRX6r1uHp0wQhXOELEP/hCruD0wXSqVY7IBzWMjgokAkCA2?= =?utf-8?q?mdJvuv4F7rJCnNX/Fc256tdIxjLa8ro7GSxRsjxjf1ZV4v9Wpi/cV9bVSUrWyTXnI?= =?utf-8?q?Lm+GCQgP2OUDXnN0SD8Uh3qyoUFCHfrMOKA/FHOIVyokgSiDll9idoUJW2AZJ3c4h?= =?utf-8?q?vm9cvYDGFLLgFXWS37r1781A6VXCP907t0QtFaoCcgWxcII6+WKN6YYnvLtxhaj4A?= =?utf-8?q?1OWd/vU1z6icb/V3g7Fk5dH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+w+pqPrYhf9Pj28lfbhvDNA2nGgdp9u7Ya?= =?utf-8?q?b5hY62AEGNRxala7dNuuDcJfMz4UTbWU1Epc5CbB8g/USnYhE+WGqC8=3D?= 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)(52116014)(366016)(1800799024)(376014)(7416014)(921020)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?/0qZD4jth+//YLBo/Jpwtr4XBkfP?= =?utf-8?q?4TDSdBw30IaBcLBy0yqf7LABePAnT5B6fpnw1VFctGNzKnvpUAORI55aLdbreM7CB?= =?utf-8?q?LziJhfZ/JrpTa87agOIfZaXBjlC4jOjsDvAQih68QfEHAaBB3Z8hv68UZGqR8TmJm?= =?utf-8?q?Ek9RxyzRhX2EZhFJG4Iic1QYA885vGTAqy/yoPMevv/AVWyQDorvcN2UQrKhah07y?= =?utf-8?q?irr4HR0DOkXdAF4iyzPTXTaeFQlSTNfrPlwsq4yvbe2CBtcRUUAkceqMX41NUSRk1?= =?utf-8?q?DMFZAaQJJGE4anoojcPPXlYQW6DhkoI9ZoiexguVPoFlyXncxLmarzdSh22NTCSRp?= =?utf-8?q?qSf8ASYqmnazizAqIqU4eruOa+ojnEHdCk4fBjWCef0gARxn4SkNtiN+cxrIX7dsr?= =?utf-8?q?HC3VDC4QjDzL971m9ZZaIqh8fGG5ulnRlgdYrNXDyU8F6e4JvqT24azU7lgS0M2XB?= =?utf-8?q?tnTsimpCmPyPLSxHWlm8+1mWJ7dcgExz9r9SRj34tdyCWGpNuLWJFxJeyGcSTee79?= =?utf-8?q?cMc43y3IfsiIU2UCgmSy8wzGnsaZlB7IEIu6sXI8auGggwlRrblW8S9B4dCAgnclx?= =?utf-8?q?YpoQVHDPoYK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?utf-8?q?iunu+xASGGiaPqbgsjiIa/CINS4DmZBBECH3r5SKXNYfv9RSuqujUcNL1vbf1/yWr?= =?utf-8?q?J+vh9vpWrrlnt3+IOwr1250a2yddjBdfWA=3D=3D?= X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: a17b7d7b-1f05-48b3-31a5-08dcc734ca73 X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Aug 2024 07:41:12.9172 (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: epirFcV3s6jJuebo3oFrLTQaB5jNKEIugu8NeFe9YS3d+kiyim0MCmpSzsUu/s1HDD7IOxVbMp6pZIz7+LdDKg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR03MB7765 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 --- Documentation/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 Wed Aug 28 07:40:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13780834 X-Patchwork-Delegate: kvalo@adurom.com Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2117.outbound.protection.outlook.com [40.107.255.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 60EB415B145; Wed, 28 Aug 2024 07:41:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.255.117 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724830882; cv=fail; b=YhSrBQi93TrxeM7UtpvlcZ9lfNic/yx7qacXtvrm6M/BVHFEpPVToywAY0fpwvkJeil1etpciZ18GcnDccLhD2lQFIP+ADi//83Um2np7lk6uzPuigKF1Hdl83zNSagPZ98symw7+prkbhxgjNGYqjjBd2MduWxfB+c02iNzT4o= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724830882; c=relaxed/simple; bh=m4jywguzwzc9q75AMLYOPix+C0ZE5a5MGA4IZ7EIp5c=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=Rv9RTGLFAL3fHvkJJTfTxq9wMFQXrmTFlVwLdbieaQjSVCfNK+hSlxdfLG8l6QLhOz2vx9IW8RJ6O4mgMd7ffAMP/ivPvuUykl7JAa5jocabLkZDcI+hzAoUzVIQDh4LmzLayOSEO57aW0QEhiINfSiI0nsjbytszgIKoaKICP8= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wesion.com; spf=pass smtp.mailfrom=wesion.com; arc=fail smtp.client-ip=40.107.255.117 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wesion.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wesion.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=FXHVlu50yjkv+4NMXu43HN6YB+43YVBKwbGVAj9kQ6KQeIyOpGoaWlpQn9Ld8z1IyqmYgDhUWobBjTLhIF7Lc2zITMTy7DIuQZ2vJcnMxvgCm+XNpvd2kIP7bq/9fLTggnCJwYP3icFPaebaWosXPZNen7nhbjRHMoYoJ/VdWApkqMs2mi1qruNmyDC8grTBtiYczD4+3dFvjhglVg1pWOd6PZjVpVVeiga2xV2EimB5q6eNHU+wJrKSZXyhjyq0mI1Bqs6qlIhHSeN5Ek4edcwKXJ6b6kpvSceWrhDWtaxNRoOrbHPx1pwpBDPYwAkdstEjVNq95sJpDFG+ld8NQg== 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=G/E0WGgE6Ehzy8g7GiG6jEMXz/oYkQ2gd4cyn/tSzSs=; b=juS0ueujy30m0xKljiJYN90dJxFK+CQNNdFwFl6SFUxSvRT8/VtZ/kLpeUdH4EsE5nPFx7xiJPZNgQaQIdgkyPT9Y+KygtTGWm1xJDiQK1U+yCKg2vQo7VrrGsLRKzL/9OSR17QGHtYkj1C/6l4mrDq82cqAo/juCBmvBh8Hp6JMAuY1wSWcwb5pQjKDBtbKuXRAA9kKZ+JUx640ZgDfahdPvdi+3VATvCZtIdW+XmM6bUXL+qFlAIFymYmUeVIs0pCRHo62ePOGKcghxDXPaBtoyICEpShWHRwQ7UrarNwFp3nzwjTDMiASiKeFbT0dE+bBBQcXdgq+sud2cbFvQA== 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 KL1PR03MB7765.apcprd03.prod.outlook.com (2603:1096:820:ec::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.25; Wed, 28 Aug 2024 07:41:15 +0000 Received: from TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0]) by TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0%4]) with mapi id 15.20.7875.019; Wed, 28 Aug 2024 07:41:15 +0000 From: Jacobe Zang Date: Wed, 28 Aug 2024 15:40:49 +0800 Subject: [PATCH v12 2/5] dt-bindings: net: wireless: brcm4329-fmac: add clock description for AP6275P Message-Id: <20240828-wireless-mainline-v12-2-9064ac7acf1d@wesion.com> References: <20240828-wireless-mainline-v12-0-9064ac7acf1d@wesion.com> In-Reply-To: <20240828-wireless-mainline-v12-0-9064ac7acf1d@wesion.com> To: Kalle Valo , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , van Spriel , Arend van Spriel Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, Jacobe Zang , Krzysztof Kozlowski X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1724830868; l=1192; i=jacobe.zang@wesion.com; s=20240828; h=from:subject:message-id; bh=m4jywguzwzc9q75AMLYOPix+C0ZE5a5MGA4IZ7EIp5c=; b=JJCMj7TMPwWJc7h6//kSNWxC0PVjqpB2mJF2duXaI0e6zdcuRIa7i6QwWcgq8pdVJXzFXDao9 cHgp33u1izADxx4cxct5ZPZVImj++6vg9luDIX3vL+dVqTzyns4t7jK X-Developer-Key: i=jacobe.zang@wesion.com; a=ed25519; pk=CkP5TjIqHSwHJwZXTGtadoXZucYvakXcO3HjbR6FoeU= X-ClientProxiedBy: TYCP286CA0372.JPNP286.PROD.OUTLOOK.COM (2603:1096:405:79::20) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|KL1PR03MB7765:EE_ X-MS-Office365-Filtering-Correlation-Id: 8085a736-9125-4a88-d85c-08dcc734cba7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|366016|1800799024|376014|7416014|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?GQzvPbNIr0rNuUjPOC6Z5jCp9Ep8fe7?= =?utf-8?q?LSedNxOG9WgTU7bXzS2uPvxzoqGuKiOyjXqo/BMdjB8hiTzaU4jVb5p4KN2Tsj6bB?= =?utf-8?q?dB0OpiG2N7q7XvQPdwMLliBDCfyOiJfXLQN24zF4TtrEYBEvjM4L2QOmO4yNbRPcK?= =?utf-8?q?W5EHW7e18vizI9/co4XVWHeXHkjhRoXcRpotqHaOjpmRR3IV8TjD2TjUk6Z2x4Hw5?= =?utf-8?q?79RLFgiRuI3psjn1qNcAmISxfYSTzfTI+Kwte2bVPcR0AE2bv5u/Lo9sIRPemUQaw?= =?utf-8?q?3JAun8V0LYszEwSVsPJwxGpYfIKArN2G1idSZ3nh4YZf0APUemn2Ulpok922+bl3E?= =?utf-8?q?YbCaufkLd50deuJeWjR1FJdn1N2kyHNyDCoLhrv5d2q+nNU/lECP2KFWDXr30Md8R?= =?utf-8?q?LqbyR2qM4LDOWvj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v8O3M/yqwZshEg/dOTIf4e1pQcv33XwequeviNF/Xwe1O?= =?utf-8?q?oWXnYfieRAKuYmTWZkvuNhVT2lZy1dMf9M9QITzGkhhnhd4TsCIACZg=3D?= 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)(52116014)(366016)(1800799024)(376014)(7416014)(921020)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?vF/hqMfACPDh7OSJy5ii8jAnJ2vV?= =?utf-8?q?xoR3sujIxR+HeFwxiv8MVQNqWtcakiGF5PMVGLaakwR2dHWhJB8MhbSqjH5egh2VU?= =?utf-8?q?sOianglb1v4MTZboUBJ/3pNoXP/5w6+iaAF8pQXnHeO4eipFG06MAr/gZsJ2+ts+y?= =?utf-8?q?Vvd4NK6/UeAowngIIRtMe8g+QGq26bDhzLJc2+SS0SNoxmEHjCa5/aauE5Wpf1iF5?= =?utf-8?q?aVi/NAGyO15edNUfFYGWcGQO5JFZVT7XRp9RM6f7Kz+CQwS0r9b3BV+alz1xs99XV?= =?utf-8?q?A6IGereomXkkygYmsVVm6vUbXwl4CNzEYbxm4+CqFjpVy+wC3hkhZ6qvNElqGWVXH?= =?utf-8?q?zD9WVz93crMiUAfCpn3As1UozncNuzRUSfQt0gcrXHfFvC9DF6efYr/IN2N2Oy1iL?= =?utf-8?q?VjNfHamat5/oAy4/mjH80p0KciwlrxoljQq1Nw9Hp6/YgyjPr+uB7WjkZ0ynXYIXn?= =?utf-8?q?MK+u4EvyJnGbLL9Ju7SuhKq4SMyGzbrycgJ346VzczFqMlhm+3j24I4tuQmlUt8Nv?= =?utf-8?q?ErY7NM1eDSyp6ZKU7WWiYblFf+vHYWvEWIjaVd+018C7lSYkgri0JyLu6VGYwl2YO?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f-8?q?8KL4c2fEwcSUgmfWMhl9WCkrRqn2IEMnXLh6UwxrUaX65nzwT31wPWR3d6qp6kCPi?= =?utf-8?q?584lmpZERxG2Bd3FBd75X6/O57K0XMDE0A=3D=3D?= X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8085a736-9125-4a88-d85c-08dcc734cba7 X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Aug 2024 07:41:14.9414 (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: LFkv7GIof4Yj6MWnSAqQuzWhvXXGdxcd/UFHevlnBqEdTOOLc+pnVlw1CBDqEQ+9+qfiZGYPisfYuQ1k7wHd8A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR03MB7765 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 --- .../devicetree/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 Wed Aug 28 07:40:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13780835 X-Patchwork-Delegate: kvalo@adurom.com Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2117.outbound.protection.outlook.com [40.107.255.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 39B2115C14F; Wed, 28 Aug 2024 07:41:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.255.117 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724830884; cv=fail; b=p5ZlSFAVepWm1ZP6+oUH8XWQl2tEAVnsIz+ShkWbxIGHMNPRYXzPqB9JV5NWgOfxpoWbvRucH2st4vcSD/9vzP/VAeWlq0rfIWVe7x78zDFGdg8b7y6vcwu9OV3xLd+vYctdzySufWFAqifijI82oJEZA6f882JK7L87Jt1tj9Q= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724830884; c=relaxed/simple; bh=JsL/vIHDMaqpLADA0x3lqz9mV0Y31bnYSpXIcUwpmVE=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=AIomYMCEjiuhYDuGNIHBnttI0ptqNXUvWzhGUbg2d1zCkI+mO3Xad7PlSX4DR/rF71GC8XYo+IkRbOV+EfCYSLG7m49Xo6UzObhYR5CbCNpYtLeq8km7aEpiWBwh8zsg4fG4LGzd70ydkwAWHKv/+T+vDSPcm2bRKrEZYR8h+Mo= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wesion.com; spf=pass smtp.mailfrom=wesion.com; arc=fail smtp.client-ip=40.107.255.117 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wesion.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wesion.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=rW/3S3mhWvTUqOWiKg/3JoWDPKMFaeMgqL8aJHvzTCVtIlJYSG4XMBoPAFGMa6vRuIUQBj8WAQ0T+/Den7EOBQZRsFaRm22ciVP2FzKhkRptumdO2Qg0UwRRczt+UcEl/cvc1FGRJlcUY1xEvAr12TyhwUjxKhnuIakxaA+JFVN8ozwCil8VIKXvmzJmBA8+jY5x5Np/tm/o8Zx6VUytpuZWsxzOEPbHwLOaq4HSLi+Ffyxcciykk6+CybmRspiGQjLxoWUTBaHJaJ9hgCqDN6Q3OALTAaTCxmLIS/MNfNxec4dQqz4qXSsygyQujDLQ09QclTnkD6XnzUcga9Rm0w== 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=3BGfZQm1BRaHSCcvnV1BQzz9wLf/fFARUUlFVnsNLzg=; b=q5esNEy5JIjZbq+iT7/av/5f3USkJUaOJi4qfEEnhHW4hfddiZPa4X/jgr3VXxMqyIxc5uorPebF3cK9B31xbtzRTwwlMbcDUWxKfN4tNIIWkZfIw8OkIhV24b5PfBQ84Gfdu50adPZhwncT2ot6bbEFnaZZfkDM6w1RQm34G1RTUXBVWUYxblEe6oH+l120AbBKaMDmLjoaU1j1WQqBo/ZBb9RbrXlDSOMJ5JsNNR7xV0NYIaffsZsQyKFikwmsL4SnOK6WA+eent0bgA+gnZ7Y6wSM38DU/mbokhl7hcOHyqn9B2/jVN28VBJDrLcIC6xNVtMg4o7tm+Bj9s1OHQ== 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 KL1PR03MB7765.apcprd03.prod.outlook.com (2603:1096:820:ec::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.25; Wed, 28 Aug 2024 07:41:16 +0000 Received: from TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0]) by TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0%4]) with mapi id 15.20.7875.019; Wed, 28 Aug 2024 07:41:16 +0000 From: Jacobe Zang Date: Wed, 28 Aug 2024 15:40:50 +0800 Subject: [PATCH v12 3/5] dt-bindings: net: wireless: brcm4329-fmac: change properties enum structure Message-Id: <20240828-wireless-mainline-v12-3-9064ac7acf1d@wesion.com> References: <20240828-wireless-mainline-v12-0-9064ac7acf1d@wesion.com> In-Reply-To: <20240828-wireless-mainline-v12-0-9064ac7acf1d@wesion.com> To: Kalle Valo , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , van Spriel , Arend van Spriel Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, Jacobe Zang X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1724830868; l=1920; i=jacobe.zang@wesion.com; s=20240828; h=from:subject:message-id; bh=JsL/vIHDMaqpLADA0x3lqz9mV0Y31bnYSpXIcUwpmVE=; b=Wz+aw2ORpR/g+WNUpRYP7YontiquM9hUbAOOToJzMnR2y6t9DGNiU4XWCyUGs2/pqpEcTJI1M 6rra8GLxj3TBGMOi38LE6bBt5F1gfe6Z0NJ9kv7sp71y5V52r99+35M X-Developer-Key: i=jacobe.zang@wesion.com; a=ed25519; pk=CkP5TjIqHSwHJwZXTGtadoXZucYvakXcO3HjbR6FoeU= X-ClientProxiedBy: TYCP286CA0372.JPNP286.PROD.OUTLOOK.COM (2603:1096:405:79::20) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|KL1PR03MB7765:EE_ X-MS-Office365-Filtering-Correlation-Id: e9415c26-c14e-4a6d-6520-08dcc734ccca X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|366016|1800799024|376014|7416014|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?9BUR6dpC1OWHq6p0tb7DrKN1hpZCNzx?= =?utf-8?q?Spszm4nV+yF5IF4eXjFM7zjfar4mXrWHiwp9VMYqVGgVha1gYuB1R37J88l1EakG5?= =?utf-8?q?ENQuaalSGp85CuxK/PkBeMppxmo6Qifekw8QsaD0GONqSk+MN34tHzQgxaYUgpT7J?= =?utf-8?q?1i3cWtdl3LaoPCaQlMTIaEFDLYeKAtfqkfxPqcSUgWwLfklfPORusRejLx8SUMQGM?= =?utf-8?q?D8OBHAbzGX3VLyJo5eYWKKE1N/UTYMNnRVseK3HfKJ2NgwyitnhDQ+YCrrM3HyMCi?= =?utf-8?q?K1H/h6Fpxa/Wcx4ix7w+a+huFjZCbN+RIFXSj08HGA51PSkOQlcw2YGkzuxq+7ovR?= =?utf-8?q?bK06L1O1DSxce+9QQ9EefNo6qVJRPdhK/7xe6cSOf8k/o5H0rOXsnUpWbKQRau11o?= =?utf-8?q?tUOmO2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EhTq5nHcI/29RULGaQLB0hjHVZJ5rjD2+28n9oi/iXNC1iGX7K4qa/fDdvNwRMtZK?= =?utf-8?q?bplKNP1plC8+aQ03K9xqovcPYV+ZPPhOlvaSV0u8GF3VlmLg0R/fCj4=3D?= 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)(52116014)(366016)(1800799024)(376014)(7416014)(921020)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?wzVTmih3C/wKfvzTTdwTAqucG4Yz?= =?utf-8?q?bSCtUMXjVcZG5SU94ysOMpWRvyTF9MLzGOfqtmsOtq40HykbfD7sosUp6deW3q5xU?= =?utf-8?q?ibFjQei5+LZHm5ce0SlX0rKk396Q16PTE9v8WwsWyRJtiyplEpeqwv0Pn9HqdEDm1?= =?utf-8?q?upx/L0S9NhxCQsuHjoxRLLHHOCWS4I8+lmOqoruVGkla5wMAtMv7suaHO+Ul1cGAo?= =?utf-8?q?jbwqCh1HqLTypo1EeAovqE96ym8bC3e/PjUm2rRet5IrmX92aCYTZKftWH6LgP/xh?= =?utf-8?q?4AOk+bL7O89qpReO9gUfnHyV+/2oSqtx3rUhQi3zIFi/gahCNntFI80SnT3jvUrdT?= =?utf-8?q?ZR3RDOxejWbs+o1u8OxXr8XbTt6PXHmfZ3ysWJQtkNnth9TmQEiFSK0EmMzmYAwo/?= =?utf-8?q?nVyH8ErkXGiREm4DlVgZrTEDeJZAyXdOmb1r6frbFYyPEzWLIRazoxSrAwSaFkjkg?= =?utf-8?q?PlZeIg2Mx/mf+mwVBQVXXI3y4iPLFwuxipiakwvUrSehrk/QlGm9ImUfD9YY6WlLb?= =?utf-8?q?Tw5CJQglWoCr5cIo/YsO/mEc6VmL9PFcVApVJKIh0kb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HFmdpzVvKDS8tI3w6D/GlOFcFqMrD?= =?utf-8?q?Vfhb0GewnIrV/YL3i6Lj9cyPwto6Lh5tFRh4LFSi2B3oTgCVW7vK79jWUGezBi0ZH?= =?utf-8?q?esNiqxdZasSC?= X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: e9415c26-c14e-4a6d-6520-08dcc734ccca X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Aug 2024 07:41:16.8480 (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: y2y7bBhPysL3fSkO3C9W0gJzIwul1o3SooeuuQvh1IsIS276JWSsbZI/1af80EeZuBLNItMCy6KDxpEHwG4vcA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR03MB7765 Add "brcm,bcm4329-fmac" as fallback compatible for wireless devices that used PCI ID based compatible. So that can pass the compatible check in driver. Signed-off-by: Jacobe Zang --- .../bindings/net/wireless/brcm,bcm4329-fmac.yaml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml b/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml index a3607d55ef367..4870caed5f75e 100644 --- a/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml +++ b/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml @@ -27,7 +27,6 @@ properties: - brcm,bcm4341b0-fmac - brcm,bcm4341b4-fmac - brcm,bcm4341b5-fmac - - brcm,bcm4329-fmac - brcm,bcm4330-fmac - brcm,bcm4334-fmac - brcm,bcm43340-fmac @@ -46,14 +45,17 @@ properties: - cypress,cyw43012-fmac - infineon,cyw43439-fmac - const: brcm,bcm4329-fmac - - enum: - - brcm,bcm4329-fmac - - pci14e4,43dc # BCM4355 - - pci14e4,4464 # BCM4364 - - pci14e4,4488 # BCM4377 - - pci14e4,4425 # BCM4378 - - pci14e4,4433 # BCM4387 - - pci14e4,449d # BCM43752 + - items: + - enum: + - brcm,bcm4329-fmac + - pci14e4,43dc # BCM4355 + - pci14e4,4464 # BCM4364 + - pci14e4,4488 # BCM4377 + - pci14e4,4425 # BCM4378 + - pci14e4,4433 # BCM4387 + - pci14e4,449d # BCM43752 + - const: brcm,bcm4329-fmac + - const: brcm,bcm4329-fmac reg: description: SDIO function number for the device (for most cases From patchwork Wed Aug 28 07:40:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13780836 X-Patchwork-Delegate: kvalo@adurom.com Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2117.outbound.protection.outlook.com [40.107.255.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 16FBE15E5DC; Wed, 28 Aug 2024 07:41:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.255.117 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724830887; cv=fail; b=sThBTBgM3fDafU5YGxMiY9+Rfw+fII07seoa/IionE+7ICH4Z1gLfNq3yaha5L+bNpH6QXoU7Np/tA/GXOrDG3kJNoGjtgmpPW9LQvIMxoYx5Fz0+rpVCb+tvzK6Azjh+mkfPgP7yWGeDZghXxp+se0azAMBeF7H0RfyScYICXo= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724830887; c=relaxed/simple; bh=1EIqUH68e2yHYUoqfpobt6Hzt4qoimWdTYOf3QUUDbM=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=Zlyr7j2skr3z0rDDH1CNxhKGkdSa7YB0QUNW4AuReKK+rQ5Fs2FR+cfBvY2+AZDVFlTvmWj3LHLLXZhLxjk5V9clUPY3n1pzgI95gQweMLrfOljvVtHmI/ohofGS8BOsLzEQwM7yHgYGJ7GOjRro2Qi1AqVFPwtQvCytxHiwmeY= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wesion.com; spf=pass smtp.mailfrom=wesion.com; arc=fail smtp.client-ip=40.107.255.117 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wesion.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wesion.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=EDXH4E7wJyx3mKmeqbEmSuAy2Tp/784dwZnXvg1+UF8B6NPBOk5il1l0xDXAqyWY8SYVOsTZcdg30jUrzRKuOLjutXv7igeTDBo+k0LxpbrYJ1j4nxpAr4rfSBSwX37IJcnzELNHpxGaeacCRGF6nDxnAIYELvVNYfgjWcYro0lkCKU3YWpWRLDMfk4/UHDlUaMQcKqZ66PMGVe9TeXgXMhGZ3p0o0EBiucnETl5x27LQQzKAJfE831qedq8G5Y8qtbXU8yk2gl8pm0D1KvfgRY7YmCcGL8lmJBVOc15ft5sADoRgBA06YqUp7Iaip3VXCwIdQpD/iP1iz6/a16+jA== 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=xlpp3oox8tLYxz6TyL3i7Joq2cepMbm6CkxqGzFixa8=; b=HH6Bv6DzrhykAkYJh7KRuc3HZB36z02SbNfSYNUN1vWjvg6cOuzTOrcEo+je3YFP3U6iK03/j7NSK4BLbplBvgXPEfvKvP2lV1HlcUQMpGKnnsoKeEo3ULZwK3iTmM4FEFc+bBcQTtwwPz7/i/TVVfZRe+hmeqM/7u3MxyRsb07Ijf1zNZE8m87f2Vfxftuk2/m08E0gHftCZcgcCX+q8NKhpr44iRgL+tKqQ+RJni0OyD6NG7XtcBdCQ9pXPavOp2YTPMR1+pgl/1DPo9bYyYm0gRne11mqNGCj9+TT+bX0G5zbumQd1RA3WzrR8USA1RjL2fPU5dpA+Y2l4oz/eA== 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 KL1PR03MB7765.apcprd03.prod.outlook.com (2603:1096:820:ec::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.25; Wed, 28 Aug 2024 07:41:19 +0000 Received: from TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0]) by TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0%4]) with mapi id 15.20.7875.019; Wed, 28 Aug 2024 07:41:19 +0000 From: Jacobe Zang Date: Wed, 28 Aug 2024 15:40:51 +0800 Subject: [PATCH v12 4/5] wifi: brcmfmac: Add optional lpo clock enable support Message-Id: <20240828-wireless-mainline-v12-4-9064ac7acf1d@wesion.com> References: <20240828-wireless-mainline-v12-0-9064ac7acf1d@wesion.com> In-Reply-To: <20240828-wireless-mainline-v12-0-9064ac7acf1d@wesion.com> To: Kalle Valo , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , van Spriel , Arend van Spriel Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, Jacobe Zang , Ondrej Jirman , Sai Krishna X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1724830868; l=10253; i=jacobe.zang@wesion.com; s=20240828; h=from:subject:message-id; bh=1EIqUH68e2yHYUoqfpobt6Hzt4qoimWdTYOf3QUUDbM=; b=OxKV0cu8Ty/Fbd2PhjlpUjPVUTIh+eph+/peCxTe93A6LF/sUsfkHknsMRsmL67qu/5lqcbjD ggiYgQa298JATgyYec7I1L1pc8TXq1U6LmTweIYpDqX/zcJDR/i1pDQ X-Developer-Key: i=jacobe.zang@wesion.com; a=ed25519; pk=CkP5TjIqHSwHJwZXTGtadoXZucYvakXcO3HjbR6FoeU= X-ClientProxiedBy: TYCP286CA0372.JPNP286.PROD.OUTLOOK.COM (2603:1096:405:79::20) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|KL1PR03MB7765:EE_ X-MS-Office365-Filtering-Correlation-Id: bfef1b6c-e23b-4adf-a280-08dcc734ce45 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|366016|1800799024|376014|7416014|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?KytE4kWeflW6T+eFkbSPq790vYsqYQ/?= =?utf-8?q?AwW9EaoJ7wMS0ijkiZgoFQ74jF/PYThLX5Xtb56aX8oZ73jRkcdZJDvnD10YO4ZE6?= =?utf-8?q?im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QEmeBChSmjB9qHxewh1txpqLGsBw33twc2MNkCPYFEhADBwy1JHJYCArqP7UyY?= =?utf-8?q?jV/CNwgcADUTw4lChr3q0NIQkwEWosd3nrdYY/Xd2hU+YWSWjC7vuhhQE6PIUW+3k?= =?utf-8?q?LoJ+oQ0jb06AqSCgPWa8Y4I809jwZmJYWR4ocivWf1larUIEdwGZfx2Ki0tl7Q47L?= =?utf-8?q?lf8ERKYkMOGof9DjziypDZa3cPALPJQ03OyxJhpAj39GEwS3fAl4Jr2JxtIolPANS?= =?utf-8?q?jkyRe7ryR/3qiNWASdBkg4nE6t7zXhS2IRfU/yd1o7rg+cyQxU4qD6bpin+g1P7Ku?= =?utf-8?q?TdjBjTYs17rO7AUahf3TeKqgwibgv44K3LPjMAxjg14LK7if7tFmLE7srxXQURUt0?= =?utf-8?q?qbGpTcyMmLfGQU9roK5vnhd/hC9gSxxOqnu29BEcrs2Rgd7Wx6fmZDE=3D?= 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)(52116014)(366016)(1800799024)(376014)(7416014)(921020)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?YLQq/Kdrplgh5huhuCr/P3MPZO/m?= =?utf-8?q?QLElc6PsgUZeAe/4vR7mr2ksZqu4OK38BwTyGIZkpdi0sC1f5dGEElnKasu+Ig0y3?= =?utf-8?q?qYOlSsJtmjmilIX4BUFtQ+uTNEW9ekk6GBjxe2g8sPZ4o1tNKUIyRbmsh1J8H8oOj?= =?utf-8?q?+NCiyzLGdRmy9Cuc93g3C4IzJ+cbUM1w0QZJOKgbFr/sOFYmdNIQz0CofdPIP5Vql?= =?utf-8?q?h9sJ6NC5pPaDMz7FBorrV3entVf7gRHgnHBmDjhSmAmZ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BnlT9bMC?= =?utf-8?q?37gRhz5zQahUv2haweSuhmby7UdmeotyDW8tP34qP01mJS1MRWSYo/saLfnt2pXNY?= =?utf-8?q?wMR+opgwcJN6U0ilCK3jN9ITE7vTfgVDRRtSusuyH2Byo3MtoCq2VM3ulwiuN369A?= =?utf-8?q?mO6Tmf1jf/m0+Y46igoR+SZBHgVI0Oi8OiTjIGunsL1boQ0/7QsCGNBJFknjg0YV/?= =?utf-8?q?eCwbADAbIWJn9f/sDF9B+3TctGubCTYxxXL6Ff1ps2ATuh4TJxY1luiSyIhuvBfan?= =?utf-8?q?A2LeUy1/BClwEiqlzCFWdW04rho/oCKd1u4sz8MzosDIXhE04sIWvQkYQrAeup3rE?= =?utf-8?q?5JzH7r6s5qwIk6hq0k1+yGzxFb85zgzz+1btGCELbMoaU67hGzH76CfyAysJknLoB?= =?utf-8?q?+1MgS7PqHYGt?= X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: bfef1b6c-e23b-4adf-a280-08dcc734ce45 X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Aug 2024 07:41:19.3490 (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: CoHdBJhJwJzdUsPP6QPHBTbSgFOo2A2IImOh9BmVCMsUYsvMeqjmrkLsKgmZ5218kke928BZ3UYh3U+NICfFsg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR03MB7765 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 Reviewed-by: Sai Krishna Signed-off-by: Jacobe Zang --- .../wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c | 4 +-- .../wireless/broadcom/brcm80211/brcmfmac/common.c | 3 ++- .../net/wireless/broadcom/brcm80211/brcmfmac/of.c | 29 +++++++++++++++------- .../net/wireless/broadcom/brcm80211/brcmfmac/of.h | 9 ++++--- .../wireless/broadcom/brcm80211/brcmfmac/pcie.c | 3 +++ .../wireless/broadcom/brcm80211/brcmfmac/sdio.c | 20 +++++++++------ .../net/wireless/broadcom/brcm80211/brcmfmac/usb.c | 3 +++ 7 files changed, 48 insertions(+), 23 deletions(-) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c index d35262335eaf7..17f6b33beabd8 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 fe4f657561056..c1285adabf72b 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,18 +66,22 @@ 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 of_phandle_args oirq; + 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 */ @@ -106,7 +111,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; @@ -114,33 +119,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); + clk = devm_clk_get_optional_enabled(dev, "lpo"); + if (IS_ERR(clk)) + return PTR_ERR(clk); + + brcmf_dbg(INFO, "%s LPO clock\n", clk ? "enable" : "no"); + clk_set_rate(clk, 32768); + if (bus_type != BRCMF_BUSTYPE_SDIO) - return; + return 0; 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_irq_parse_one(np, 0, &oirq)) - return; + return 0; irq = irq_create_of_mapping(&oirq); if (!irq) { brcmf_err("interrupt could not be mapped\n"); - return; + 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; + + 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 ce482a3877e90..190e8990618c5 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c @@ -2452,6 +2452,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 1461dc453ac22..59c77645e2183 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 @@ -4452,7 +4454,9 @@ struct brcmf_sdio *brcmf_sdio_probe(struct brcmf_sdio_dev *sdiodev) /* Allocate private bus interface state */ bus = kzalloc(sizeof(*bus), GFP_ATOMIC); if (!bus) + ret = -ENOMEM; goto fail; + } bus->sdiodev = sdiodev; sdiodev->bus = bus; @@ -4467,6 +4471,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,7 +4479,8 @@ 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))) { + ret = brcmf_sdio_probe_attach(bus); + if (ret < 0) { brcmf_err("brcmf_sdio_probe_attach failed\n"); goto fail; } @@ -4546,7 +4552,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 8afbf529c7450..2821c27f317ee 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 Wed Aug 28 07:40:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13780837 X-Patchwork-Delegate: kvalo@adurom.com Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2115.outbound.protection.outlook.com [40.107.117.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E20E115A87B; Wed, 28 Aug 2024 07:41:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.117.115 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724830904; cv=fail; b=DM8fqy9DwsgTF1iRP9lO3H8oR6NHKmJcg7VB9q1Ito+cqKgDUdr0xvWa+RK2pNM2+2oeyoTGWlhNdnxBQ3g+E6u5mRiPA6v4jx36XHVIyI88faCERak/2Xo0xtwkFV/DLOA3oQ6h6n3+4gVgs954AitDdlwL97d5qhVmpKF8nc0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724830904; c=relaxed/simple; bh=eaPDKg4EgZjhgoZGjOIrFz/PouRc4pgRKLayAeEjx7s=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=ERVQibT0DyoeD3/v1nBd8XtljWvOQpVuTnKPjWS4OX3OxpK9EZgaTsiV0tHFSriqDgjOOMXL1UCdyPL2JEAdw/xUKpzZ7yPUFL1KPPuiSKE1jv8dDJeN3m6CiyxF6Q6kXLzdiu0LgkZWbx+cdUtupMz2JDt8p5cY+0jgbCuea6k= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wesion.com; spf=pass smtp.mailfrom=wesion.com; arc=fail smtp.client-ip=40.107.117.115 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wesion.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wesion.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=P1DkfV59s19/wgqENKjri/UKVrf61qbNBDpG6fdTe+e792HjhrsG+nklNWxPiGlkJeNz5FadD28XrdU9cdulKKOShXjFyes3EzLZEv98vNV+7zm6+zuScC7KymqEgeBdoQQpjMEfD8eoS6dww7DKH7n7pee6Ni39q3TrEgzzNY0f9GPNgDIlib5yL5Sbv09MFk3wBAWyv9w8rW1FqJbfOIcfzABFCE91zgV0gyfdZDyUR5HGjDIOBHjrBsSyqtQTFl6G8/DObJaeNxi4jVIXR2lxfsePUglku1cyXx8puLDJPrPygA6Rp6KxzDT4eiP3A+ZP3GP3+PKWy/3rdrwXRg== 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=iIa/19ZSdmiXE/+0Ze0XxBHm6vHkH0nd5ZiJsa5DkWA=; b=xXVMy44APLieOZZErPljFN5K6bZdBx8xf8hsKZ1sBQjJCBbihfulfYJCSaqc6Z+IuUjXYIWpyDy4ai4OQhKAi/LvNv3I0fELFlWjrXOKYE2xQflCmz1fzUpX7y+n/cdTeq1nNsT3wb3ruTNztFRKW+KXMtWbmlA5g2DQEyDwS5CCa4S+Apyeol2JejyHuDq+OaITjk/QJGd0eHTMWxcfTGPPqzctjcuwefdLGNpZvnAHZmY6eeimijozDT3c8aIaIs4gwe1H7EF6y5KJum9afPrZXpZ3GVsXo131i+QcNuOJJJ/7+r3g7RMmyWClkSPCuZvZ9Ug3n76PHeZZB0NzEw== 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 KL1PR03MB7765.apcprd03.prod.outlook.com (2603:1096:820:ec::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.25; Wed, 28 Aug 2024 07:41:21 +0000 Received: from TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0]) by TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0%4]) with mapi id 15.20.7875.019; Wed, 28 Aug 2024 07:41:21 +0000 From: Jacobe Zang Date: Wed, 28 Aug 2024 15:40:52 +0800 Subject: [PATCH v12 5/5] wifi: brcmfmac: add flag for random seed during firmware download Message-Id: <20240828-wireless-mainline-v12-5-9064ac7acf1d@wesion.com> References: <20240828-wireless-mainline-v12-0-9064ac7acf1d@wesion.com> In-Reply-To: <20240828-wireless-mainline-v12-0-9064ac7acf1d@wesion.com> To: Kalle Valo , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , van Spriel , Arend van Spriel Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, Jacobe Zang , Ondrej Jirman X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1724830868; l=6614; i=jacobe.zang@wesion.com; s=20240828; h=from:subject:message-id; bh=eaPDKg4EgZjhgoZGjOIrFz/PouRc4pgRKLayAeEjx7s=; b=14FbAN54TnGf0PTz7mST9t7L8IHhkUGrkrZMbAXiInJpzfj78gXEN4LqayO7q91ZlFbhqZtOb crq+Mr4tmsTDXKcVAOsx/4dEFAJWJAGDKR/ajx2syfBkfjqvqUP5J59 X-Developer-Key: i=jacobe.zang@wesion.com; a=ed25519; pk=CkP5TjIqHSwHJwZXTGtadoXZucYvakXcO3HjbR6FoeU= X-ClientProxiedBy: TYCP286CA0372.JPNP286.PROD.OUTLOOK.COM (2603:1096:405:79::20) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|KL1PR03MB7765:EE_ X-MS-Office365-Filtering-Correlation-Id: b72da464-45be-4d40-5573-08dcc734cf7e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|366016|1800799024|376014|7416014|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?onRUCDpYHEmQ6DrdTmMjI+G0ZHevWJE?= =?utf-8?q?TgN+R/WMoy05rsIyue8Qd1y/M0AbaxlFvf86cvQcjTam3g1nlAfSgeyFFsz1zCoRV?= =?utf-8?q?cYmJKkz3YM98DztCl46Ua5b+DC1SN1U5u5XzjOx7DtXtfk2I6oCBKIpJUn91Ovwdp?= =?utf-8?q?WUBOqLAxUioqLlG+Vi8I/AoegeKOwuXzWx+v859bMKHSg8xb97QOs3eOCRg3JCgDH?= =?utf-8?q?HfaTjL5AEitXPcVgAWVvNMCUKOcWPbpgTrk5lwXbbbGGc7rTAXAvJRgB0nvukyPTw?= =?utf-8?q?e7gBKyAOebFlrJW2DKCU7Yp7Mrpkop9mN20ZZ6ykcxXDyuIdfTOo6ws684FZTjpKM?= =?utf-8?q?2Tjt7ysh3fEyfSNpd3HGNr3V4ohgDI8RElmXdVjT3P2iQQhDYtV6GN4r92QrIi8fL?= =?utf-8?q?C6fLsADnI6LGyKqPz9P6yhlVClz242Q+BtqOAR1SYNullAG9ekJsOGQXIegDzl37N?= =?utf-8?q?zgamfyKiWjVGZE+qsuwMHzrtyQfCyYDR1RobqeEZCcDtFAu7r9S+fQC/42QnbAEdt?= =?utf-8?q?YF2wDaJXBFv8pVKicVur94p2s1YWlUxLOocailvwwYu9BF+b0k/JmPXrA4iVnIWSO?= =?utf-8?q?OjR+upysNCnZ896F2RDboBGI38djLjPGTHJ+85b2iYP1YOwSbZ3n4fX4GuoStDcgc?= =?utf-8?q?paR36IOe3SQgCqGmjcXDlU7jCrIT794ar+4SeCJxayvWdpGxEjSnP4guy/ME8+rhz?= =?utf-8?q?wuz+p5ZjC0NdsxyH7q7oI804GeVYu843q2YQMgOicxWy3MzOIowGJ+RYrTmmbptfM?= =?utf-8?q?HUVIMVQxl9QSmbC7NP7WGadXRI1r3VjMIwkZSfQbfltoNkRAnK0J9Qm5Pjwe70U/D?= =?utf-8?q?nRN2FyAhlpeJdzk2XDtmyQi+tQ/TsiVZt6rzAIILzNq0F1yLbbZVTqx+9EVcGQjxA?= =?utf-8?q?O63jEZ7w8F2aTlchrYhj7ZySvlHbwzq8zWgLcZv46qIXJdgQ4fSir1oPA3ndxuI0T?= =?utf-8?q?XPHYGjtH9KE4rnIbUbUZz7JVbNHOASfI2++CGG18AOamUJxn9QRjMhO9wu5/OFtcr?= =?utf-8?q?8b0edm24jpQrmLx0zUtt9QbqG7glN4HtJNuQxrwGco9KU8na/Ia9iER5OTOclONN8?= =?utf-8?q?EhmH5o/acV1X521crJxCrEqTuH78oJXzd7nI6BdStGvUF0eHdMGBSQY42DklnmTis?= =?utf-8?q?F7ThwvvrVIVUDl1Jl0IialublRiOmpOf1ao2jZ0rOQLSnHGxVJA6d2wGdaPSMLPYF?= =?utf-8?q?i9/CK4LDJvmZ2J9x+14XTaByjfir2x2SKc1eMipm7uRsJswoy/GP3DmnzXW2VEhXD?= =?utf-8?q?3HV22k8214SV3sv5X8J5tjhIhgmplC1Vx9tH2ODWRhD7itUyoYEXJaBcvFB2aVsBG?= =?utf-8?q?Py8BNKlsHWCJIRuMAKapP34Rq/oP9HS14Hy50YO8H5XPIUd7SdcCmIo=3D?= 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)(52116014)(366016)(1800799024)(376014)(7416014)(921020)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?B9VMYJkHQi3YUOHZl+MQMKt0N2qe?= =?utf-8?q?TOhU3AGUYsOgEAL4UU9Wb9lst4ohBUbsDzpO98fOIGA9CPljsfgwyIDBQLlO/NBYr?= =?utf-8?q?rdspb/Cd7riU9JMgzX0My9Xp3l5hqmlyaxFIsrwBl3LPS/FJyEiRimOE4JsmgpBFI?= =?utf-8?q?S+hdHewlP34sphPpwogzSUBEd5RK7ssrQsPVIdjl6Pn+n2N8rqU157TyCi7dCbRd9?= =?utf-8?q?KwKPzfvQBVgl0//Z9qxRIiG33xD63qI855JohLKJcJNa1HBwILYueaPOvTo3pTA0d?= =?utf-8?q?iIZpPKhVe6uc3VQmxG3diTo6km30cEpuGBCF1gCvW9Dih4fP56xhki+kNBhBTlmgm?= =?utf-8?q?M4M3djTRIsbyd1H7rHaAaXIMtOyooPSyHfxtVaHrpe8IUZ7I1iAUlX4wmEpATLiEo?= =?utf-8?q?CZH0geRDF03PkCDUvY+R6F19A+UDxfgcXQvalFiDlXgyWf7KDOMUPJfj6xty+Hjwr?= =?utf-8?q?pTftzScf00sxDTpLIZsgRCLs73BpnfnGF5OORSPa5dlisVYownCdn6r4mXBBlcn0L?= =?utf-8?q?Xp1ndjd/UJUS0D11XGTYSq9w02YNYPdDCDmAu25KmXZj/az8Iw79e+OhCF7OiPZpR?= =?utf-8?q?WVF7TjtzDiNqMOieIhnyxfLVs7MusWUX6zhmCnekKrCPBb2Rxve6/kOqx1kXwDfBF?= =?utf-8?q?tLz6lt5Ud8AqluUiwb5lcloYVjd13d8VRvTXxX9/1rbCqdZR08defZPPM+jwboziN?= =?utf-8?q?Lp3qH+q7iQaykdICmv2KZMdm9DxevgVzTaJOj3q+fUj+8LS9yrSuETBkRbvMY7du5?= =?utf-8?q?LsIrR1gmjK+qQiS0C6ym5RVfg14pfTrg26wmr2m36/2+7r4OzbnIQvqbolUmEwn5S?= =?utf-8?q?WlOqTiMSTaczzCc5dzsXlYTpECs3ttM/8p5dB8TyDbhmJOGehyyrhkzZDWwHDG6M9?= =?utf-8?q?Mk2iYlGhxOjgymTKkHnmrOUaGg6HwhrJIjeLX2i3F4XaiP+WSu7+W3ebcFNCnRF3H?= =?utf-8?q?FlvJoJk8EmtUpeQR4p5O+9V2R6qlVMNEnUh0HIw/FGCA71c7jAUphmsUMPjQgMfyp?= =?utf-8?q?Lh7GnK49FPkEtkauHvXoVR0F/HiL2bZDjdz2bluP7Pz05fAZqNpPqGOFgRf2bayqx?= =?utf-8?q?wYr3dftJq+rAq+5Ut8YRcXNPpCxl/Ve6O+eENITXx7vK/7RSTFjlTnarFLLNxtdhB?= =?utf-8?q?KhBmlWSuCdJ+PripUluTx9Pr528t8LpjycLCThNhLL5UE64WO9sjYNgF7F4d5XhYb?= =?utf-8?q?3iz6kHl9E55fpMy6fHJTDouox0wNWNMu6ajRnAdxeAyjgqNbWi/iR9dc4cbFpmtJQ?= =?utf-8?q?rHh3V+nAyCIyIlW7oLLihh3B9cvfJvJeVAaVzA3wHDHam4JkpSs8quB9f7pvnLVYl?= =?utf-8?q?YLhE7jSUIvNyqneA0soa3NWFhtCNW5pFE49NodiqkRlWo0Bfe0ZaMmxSyj9IJTMlR?= =?utf-8?q?NVkLd6w6diaa1jioq/TgMR2zXfV/JFz5OA21fx6Fz9uWSUh9GCP3WDk0x0narn9PT?= =?utf-8?q?n0LZnIUdzdYHDy277I4VstHX2h2bE9nz/CStQhHfFP2L6pEBZHKLlmCaIbZ7Ekb/N?= =?utf-8?q?4LSAmWFHtk0p?= X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: b72da464-45be-4d40-5573-08dcc734cf7e X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Aug 2024 07:41:21.3747 (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: MyFIYzjCXi+SUuIiF3p42etcXmXQJxYiDzninIBErSiR+GWuu/AwJbSx88jH0PXgfMuWJIDToKrfuc5mtBHj+Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR03MB7765 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 --- .../wireless/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 190e8990618c5..c0fdaa4dceda4 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 */ @@ -353,6 +355,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; @@ -1715,14 +1718,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"); @@ -2394,6 +2397,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[]; @@ -2475,9 +2509,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); @@ -2663,14 +2698,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[] = { @@ -2698,9 +2733,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