From patchwork Wed Aug 28 08:49:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 824391 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2095.outbound.protection.outlook.com [40.107.255.95]) (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 DE9C815D5AB; Wed, 28 Aug 2024 08:49:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.255.95 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724834991; cv=fail; b=pQEXFuHIeyel7h9TRfmrQV4HhjAt8kExGMHrHaqgfqBybM9wwiA/aZ4y2Kmzd5Hi96/Rh57BUGKU9cIY3yKprLDP2T/JM4BHnQfUCmF6ZDs2R31Gw6slpn49VWiOFowiiIkTXEd1SK10qI3uHRRWkbfsjfWhoyqHl8Hjt9mnS5Q= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724834991; c=relaxed/simple; bh=pvBFedbixSkiqWuMD5ggRHBeHefsL/vzl60gVabib1c=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=VT8Fn5OXZUmCjzRu0qkiuEn3vN7dsDA+3vsKhMCCTUZt5Kg7K8Jud7TGtFrQJZqpj1lFKfIDX9iGoKnZ/MhZRfmyrKr6+WMGsjdsSNOseLmBWpSClJnRysQdOSfsugL1ZFXkPVJ6QBOFEal7irDldkefQL0yDi/9MUlRehg+p1Y= 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.95 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=Av2r0oSEAePfqOgwu5DX/jbnTb++Eb3BIR9y9utf8nmVc7aZTkN31jt6Relj2FhUFA4VGI+Ge1aaQLdJdUCZh/gwDLhPYmWX8/AT8I9AdGk70RcgvmKvmohmwTWb6whON3bKigjr1gJ0MVNoNU2I7fg+3ICyg3eSRY44neDaoKbhYyRRIlHXz+xtYMaNyFBYfyM/S9iL8s6haG7EkadzYEBjORZVewca/Bsv78SZD4dMGIb+87k2cJddLfvad0lkuJCQ07afZ5PXrwBK/NdwgClSGRh/mbQZgSGSNW6RHXvnavNR/uJFLMEyuJb/a0YEEDtJxUgBdnItYHTAfZed1A== 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=s1C/sL8eAxYEzxW4jckLnOXZ9wtAUzpMIANQbMH9SXXHjJr29BAcecimQBEy6yKEh+kszsBqFTXyiEzE/M6/Goev8D6nLzA7NuSas7how9Eim69D2XDrYvzy6AfvuTtAtPjm96hjnGFSU/VW58CWEA8YJTvdNNIKyqEEPjCO8iadiToQDq1Q5VfChxiMznqWl+ujI513Dr7TiyTfPAAWLeNTJbtaM+H10pwDVywvGNAJ/nMrkxjbfh0ieAcb/s6O4Bp+xUvT8CAKE55TrARnK4U3cy8z0zrVRTZ+kUr0i+RvrAPVh5KLfj0Yw31WS2AAa3kmc52vHqOB/r7c3WiNEw== 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 JH0PR03MB7382.apcprd03.prod.outlook.com (2603:1096:990:12::12) 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 08:49:45 +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 08:49:45 +0000 From: Jacobe Zang Date: Wed, 28 Aug 2024 16:49:22 +0800 Subject: [PATCH v13 1/5] dt-bindings: net: wireless: brcm4329-fmac: add pci14e4,449d Message-Id: <20240828-wireless-mainline-v13-1-9998b19cfe7e@wesion.com> References: <20240828-wireless-mainline-v13-0-9998b19cfe7e@wesion.com> In-Reply-To: <20240828-wireless-mainline-v13-0-9998b19cfe7e@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=1724834980; l=1081; i=jacobe.zang@wesion.com; s=20240828; h=from:subject:message-id; bh=pvBFedbixSkiqWuMD5ggRHBeHefsL/vzl60gVabib1c=; b=lwhWbD7utoPjl3v362nDnCaONDmWG4xP1jHbOGRDtoSswtS7D2UrEBnNfeNWNhryIewVY6Wo6 pCfIiS+kh7wANVoVYTO4DL6LLsxR7fBsL9PJsR3cPw8qkZtNRIRqM7K X-Developer-Key: i=jacobe.zang@wesion.com; a=ed25519; pk=CkP5TjIqHSwHJwZXTGtadoXZucYvakXcO3HjbR6FoeU= X-ClientProxiedBy: TYCP301CA0076.JPNP301.PROD.OUTLOOK.COM (2603:1096:405:7b::10) 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_|JH0PR03MB7382:EE_ X-MS-Office365-Filtering-Correlation-Id: e3274fe6-57e8-43a5-90b5-08dcc73e5d87 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|7416014|52116014|376014|366016|1800799024|38350700014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?PsMqqAwL0wrZKQUd0FNhulGrV9jOBxH?= =?utf-8?q?42H4PcO3Fd7GeHkNBc92M3hU2WDutTt8hY6SI8BqQyCIYAJD6QvQzWTMtSGRFvbDr?= =?utf-8?q?1VWs4/jlXyvw4L7xj/qsMnYmEzxysRyJLtXKrPrL75U+UUQlqa8dnVoOnyJ7Lhfxr?= =?utf-8?q?jDLVzHJ0NgdsC7uU+8NZLZ3L5YPIByk8r3/rq0W1wBE/1NcZIP6cFdAdt9yIajdA9?= =?utf-8?q?4lTu7PvnPvaCjK0jNN8VGQ4N4KrNHWpgUsLxAXnYmeruh0/eoxtMozwweOl4ry+9W?= =?utf-8?q?y61pPAOFsci6j++jHQgAi4i05ufBy7MUfw/I9fzMvv+BWvPokE5J+VztFUIf9XgAB?= =?utf-8?q?GqQboPyd4aBKx9f7StprX3BUGcybUT27wOYSrgJrJLAyVaJI+BO3HXJCU/DlmhdpA?= =?utf-8?q?t7gINNwrmoi1RY7SnohO5fvfngChxFonM/1JPOtRo4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UVhwdIy5Nh6JmbmFwTPV70pYm5GkUMD/cjJx?= =?utf-8?q?DkPyd0OmIkWcSacpx33U7oBlrOsjVCNBmCGbenx9LH1F2SWWkth3OfM=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)(7416014)(52116014)(376014)(366016)(1800799024)(38350700014)(921020); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?SZnY+A9N7//smAMDX4+mDmLDreTb?= =?utf-8?q?vsBYhmMp7CUnbGL4rKb/wc65s9PrA1lOw1VZVpBumFFbVXLfa1boEKldm5U0CE5OT?= =?utf-8?q?5r2RJqlnwfI9+/9NtH06BDa9V6EStDOlqTVXMqvu6sJC/0o/+7NPxVym4qH8Ed9k9?= =?utf-8?q?KZMK2iKzdZQBPJoS7fzTioYyOYwQzvKMg3X6qkFQ+DTUEI10Y6k3VeqOQYnIgJk4B?= =?utf-8?q?6i0xQv6J3+X4GulNeiY5REurKOPmu1lFp7XCU0hRn4IbImw+2frQPWNR5RFDwRAA2?= =?utf-8?q?5hjaNE787fK/9rLN5j6pKyiLFvVJLtawxHDn0r11kZ6e9uWqYnoWjYfwCyPR94N/3?= =?utf-8?q?2AOKHylsfUyHVL/q8RNLu/fZJd/1SzMAWoB3hMdyNO+b6cBL71AFuUkfQYQvhDgio?= =?utf-8?q?DNlo5V8/bK4hktXWLLbi6dPL1sQbSqtBpw1yyYF2hTwkpq2dUb3nph7rNiEmRGx+Q?= =?utf-8?q?d/DjboODxC6444WOK7Zn/O8+00i5o+Nrd24b4nf+Zg/cw414EVc9TAb2Ff5UDVB4s?= =?utf-8?q?j3NNs0tIV/1oWK0tXbav5WL8z/aLArwPP30tY16UMmMvmZiPb5YDW3HtlcsWnW2Dq?= =?utf-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= =?utf-8?q?ZNz/Ako/0YfBy76nL9fTSDHrCrBua6f+6HEndGxqbKn6/SZIZqdkaPunZzPoIGncF?= =?utf-8?q?fuKcd+GABv28?= X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: e3274fe6-57e8-43a5-90b5-08dcc73e5d87 X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Aug 2024 08:49:45.1484 (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: Hnpe1pQ0FJ8T8Wg3kgVgsvwGJH2EXCT+TMw5JwxSaNg9fi1ZELmCbt8fO5C3urwGniiFQNdBpYxgcDF4G+eNKw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: JH0PR03MB7382 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 08:49:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 824390 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2095.outbound.protection.outlook.com [40.107.255.95]) (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 A3DD41607A4; Wed, 28 Aug 2024 08:49:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.255.95 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724834994; cv=fail; b=P4G9OCHSeOyeMgJxKyopx0fUHwRrV6U98CDd3EGC6VSZzrXnWEiMFEVwDslkRhL6jqU+0lMK765cXVv9WxqwE3NgRtGKgkA4vY1BSFFEcTx9eLevmY+eoG/flwD4lbKKGE4y6ZI//+0bm2YukcY5kusQeXroPpyo+QodB4TMCJ8= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724834994; c=relaxed/simple; bh=m4jywguzwzc9q75AMLYOPix+C0ZE5a5MGA4IZ7EIp5c=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=UoqWE9d9HUss80j0Vtli/jnYb2rX+wKg00v3XTp65NxUDeGr/RxXGfwuT2GyyQzgPyZay4hyMyyBahYn02pRhQmWa3YQ5EfjVkTPPTravduNYWoxJXw92JApp6XsSClFtBwTON/0Uut1ZIO8k9ukkaqVSn6ebdAUgPjKvdc84aU= 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.95 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=LqY37MC2ZS+j8Ug/hRsjngL3ZfvVddkvyuBsy8WMdlkoDUqKdTpdC5tuJhhPCd8AMmysajE8pftEXSKUyTRTHc3wUE7p5q+WmUOdI2GdGJBfYTtb6rl55ZzbHfJBXwptsebrkTo5NRAL3QFPHoYCDDN++VAu/aymlUI3AEdab3rS3GOM0pzOM/KvlLDle+MKlVp09lGQJVwKZCkUN1RnWFZIezPMVcQ/6OIPgBr0dvVSG1FbhFGsSCxR8yHuvL2ur7Lc0hbv1RqX+78pGufHYlXuNrF0fSOY6YxW1mRhAhWzjmOgb0BIsvc7b2h7rInCzblPp1lLTGbSg53PiPxSGg== 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=fOi5IQQBJLr/9lCwQuQbpI8te1+A9Lia6tN2DWzXffxGGCFCRHnFwjkAhsErDhO22cjwCxd19KEXQGZ6efITHaL/7mb9M3JXrGj/jiuOQFP5ZFtEQn441IFrYNXpKl4pzZvOiNHxipuu6yRlGpij6uRDb9EHnkgQMsTCKr8idKH0Cr9ZaLgad8OfaduXLoRh+Jnmq7wFcrnwcQW1ZFyrtVK1xL4H3C4lO+bMlpXzlZ7n2F+Tqu5Xz4ZXdc+MSOVc2wRYThbeKkKFiQZgRJ+D6ZCoM5daW80AQ9452YtGrGUaM5OC2IkgXfGmsfU1R0OowbYgCXIZ6tyT6PVjh1FDYA== 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 JH0PR03MB7382.apcprd03.prod.outlook.com (2603:1096:990:12::12) 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 08:49:47 +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 08:49:47 +0000 From: Jacobe Zang Date: Wed, 28 Aug 2024 16:49:23 +0800 Subject: [PATCH v13 2/5] dt-bindings: net: wireless: brcm4329-fmac: add clock description for AP6275P Message-Id: <20240828-wireless-mainline-v13-2-9998b19cfe7e@wesion.com> References: <20240828-wireless-mainline-v13-0-9998b19cfe7e@wesion.com> In-Reply-To: <20240828-wireless-mainline-v13-0-9998b19cfe7e@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=1724834980; l=1192; i=jacobe.zang@wesion.com; s=20240828; h=from:subject:message-id; bh=m4jywguzwzc9q75AMLYOPix+C0ZE5a5MGA4IZ7EIp5c=; b=KLeLsBimKFPzRuZaHBiU35cL7qhe80ZdQpq9Uch1ta4xStmMh/3ido45vVML24qXKq1gWoPjY qiBQ9za1WqKDXIpQsTXctY9lnSHjmislTAOkRZoaj4K/pA+JpOrwOZe X-Developer-Key: i=jacobe.zang@wesion.com; a=ed25519; pk=CkP5TjIqHSwHJwZXTGtadoXZucYvakXcO3HjbR6FoeU= X-ClientProxiedBy: TYCP301CA0076.JPNP301.PROD.OUTLOOK.COM (2603:1096:405:7b::10) 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_|JH0PR03MB7382:EE_ X-MS-Office365-Filtering-Correlation-Id: 78843d66-a255-44d3-ef52-08dcc73e5eba X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|7416014|52116014|376014|366016|1800799024|38350700014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?r6dQWhCrolUPu138DOtbgOVqcuK708P?= =?utf-8?q?9oxrbKTEkwezorXoLk0QqW6GcLGKsYuRWU60ILf+RwFJFnKbEeynKt23dJXxcopjZ?= =?utf-8?q?8FcMyZEilYUn44ZLSbKn/rlQvuCMo5xGe9aQlh1GPulmtt56zsKxpGtn0DJ4UFbpI?= =?utf-8?q?tqP5Zf5yq0KOfaQIpZKZFqYVOPDLPraQ8VEGgOB/yxg4TUtlHl9DSAIH2CQkfj7GT?= =?utf-8?q?5HhyQzEP7FmlyLmaFP+a7IGA1X3xXQ0GMyhCfk76Tg966F77/p8hpLcJGqQ6QTFQp?= =?utf-8?q?w4zCUrvFStBsYgmg+QDbODYhsjYKzEjUuJtbm4xKTtYHz38TMOJop4+CgNk/U1Bkd?= =?utf-8?q?1XdzS0tL0kfBslGHpiGP0vt0mb0n7Fu29M7CMvTKc3S4UCQLEoATrwczPuCoaHENK?= =?utf-8?q?Gn+hlbaDB6ZBnLgHca13JfLD9fFbYwMdvmZeCpsWteU+RlO55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0dKAxrCpTbFLQfNk?= =?utf-8?q?y1FqxllkeVQi59DY6n6wtroMsf0V9UQrhz/awK4v97flWjm5gDkoWXw=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)(7416014)(52116014)(376014)(366016)(1800799024)(38350700014)(921020); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?ggtIc2YgNn5zZ7tALgNa40CdzyX1?= =?utf-8?q?BpXopVFgHQAorhPTTuKEoKjvSm+RIiV23s1r4VxhRorMUPCkuz3WcGwlpNoRzn12B?= =?utf-8?q?Ie9xFOwyZ1mecfde5+Oo722AUB1YIY/cQux/Mlu1LiG87UrI8Xdp169odJJDaZjQI?= =?utf-8?q?it+hYKg6GrHCHpEGGQEJoundmEpj4nbGLpC3d7IfZTdO2jM8ewdomrVQf17VyJc29?= =?utf-8?q?7ooC8DPLZjPvAXy6jenM7/PnSw8F3jFZTMIwHi7M+sSktjLG/rM4Ngs/fgPnbyOxC?= =?utf-8?q?b63E01hPryMHrbCUDR1lnpMTYZk1VdwOU2sq8UgBzOoTduGVpvgBdhCT7RvZi8+1H?= =?utf-8?q?aH6ahnqpDG3MtVqtHyCleHMNCGk94U1S/yRf2hEbJopkkbrlEzB4h6e/BXpW+OY8t?= =?utf-8?q?jPMDiVEPCbh+wDlatx6SdTPA4xz/8kP3g2u5QZquQYgIT+RczbPTzjKFqyLnor4Xn?= =?utf-8?q?Qbhb/2TYUpMSnoV0ss1v+x+JDfwfUEaNoBOZufT+HJG5f1na3cgOtgZjb+15ypk/Z?= =?utf-8?q?a82b27ZZv0Mc8EEqG9nU5zfnwz4V+biyp9go3buRyrY3nguxMiYsApxgLHdrZLS0D?= =?utf-8?q?kxZe6WfZJd1U7Ll8NDuE5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260v98iufuzqUbj1Ivb/VxIN0+53Bn7uhZgHRTwjF+I?= =?utf-8?q?jncso+gvNFWt?= X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 78843d66-a255-44d3-ef52-08dcc73e5eba X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Aug 2024 08:49:47.1711 (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: wEwKr5N0HjvGbJdclkDqz9owosX+cWtZg+pPx1TBWBVhdD7efDDPDU77b6QdhHbf8eOqmjqmyY3XMqF2hP66cA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: JH0PR03MB7382 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 08:49:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 823505 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2095.outbound.protection.outlook.com [40.107.255.95]) (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 49EAB165EF2; Wed, 28 Aug 2024 08:49:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.255.95 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724834995; cv=fail; b=iuC43Jo4korALpEmMWdm6djqt19yJBOnGrAHAnTPk6jrpr+hGjo4B5QxrWMxpS369DBD+8Va28Jft/PJhGs+fcVu4/2clA09IVLTrosNJ7pBBmlcIUTuR5NEBhI2SowIBgXLPra5mCTm/6e1DGPunwPV+5sHgq93uGvIO34qXBY= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724834995; c=relaxed/simple; bh=JsL/vIHDMaqpLADA0x3lqz9mV0Y31bnYSpXIcUwpmVE=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=qmxm66MH1MReBlBUQrSjxE+tajCYjqKjHQ7ue3pkn0ThcIaDs38nP0JceqZXuw8wtKy87/+sRKo42XF6Cae6vtK16KBqrmp0G7moUeN6jx4PNyquS8Sp8ciR//VcLhQ7eNljGZMOUqlFZ+f674kGKFFfsKutMYy8cvb8kLKd2mI= 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.95 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=gWAGNd5izRcyBJSkojGdlE01YYA2rxU01l4HJKK7otK2Q0FjZTWX3a0R2TeJ9/WQ4CUtBWTdKJaNy7IPFp57dJgidTfg+TsLAlmM1h8YLYXmJOxlK8SXbT7k5zQ1jLR0dGd5qjBAEPVU0YbA4mXqKTPrNZat3yZLDhkF6c2zxNChLexnBAT6R3KJueEKMVhEupu+7f/tH7s3T2OMNgLoorx4CwdHF7/pj3Ht+LiOabgY3D6NtORtZ/TVljAteLtVIAImAObo2cS05DD8yKmOFhpqSMI893nEyYSAB/sCsNohTZ2CbJpf5H46hMDN68kNWfnkYwShBi92eAPzerhlnw== 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=cllrVgIFpFRx6hdo7L6z1mKmnVwqNr7rQuyHbafkaA0RhttbAIEiHgcnJvKt7x8ns8dhaGOSp3RGGuMhdodWweLZt/GRdyCrWSkxbig3KkKsUSOeLvlTHJVW4on+HK7iRWQbGkE80pQGJUX53oqD+TwmFkWYqLylD1VykLr06SpxnwZPAXJm73ckfjim+ucqgdjJ0UHGXDDFksqXEpdc9wxgI7Dnvnbrax0Wjlbf/QtZnnq+F+yYrGo1oCSEGcvAmw4wjRrNYyhp62d4PJLJZn5cD1u+3WOVTxA3rMWPdpwGiib6mRxz6n3RYMxThVxZKNMPb8XkU17p9B69wxETog== 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 JH0PR03MB7382.apcprd03.prod.outlook.com (2603:1096:990:12::12) 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 08:49:49 +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 08:49:49 +0000 From: Jacobe Zang Date: Wed, 28 Aug 2024 16:49:24 +0800 Subject: [PATCH v13 3/5] dt-bindings: net: wireless: brcm4329-fmac: change properties enum structure Message-Id: <20240828-wireless-mainline-v13-3-9998b19cfe7e@wesion.com> References: <20240828-wireless-mainline-v13-0-9998b19cfe7e@wesion.com> In-Reply-To: <20240828-wireless-mainline-v13-0-9998b19cfe7e@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=1724834980; l=1920; i=jacobe.zang@wesion.com; s=20240828; h=from:subject:message-id; bh=JsL/vIHDMaqpLADA0x3lqz9mV0Y31bnYSpXIcUwpmVE=; b=loZ7uTArZbRC7ZMmPU6cTt+dveIhxiIgJUW7Uw2f5Hrm2MYjAzHd4oMzx0R1Gbl5SJW750HnW VsY3m2kz18ODmRvWUYKuM4eo7FYXKq/WELEE9nq484K1XoN/vnKaN9/ X-Developer-Key: i=jacobe.zang@wesion.com; a=ed25519; pk=CkP5TjIqHSwHJwZXTGtadoXZucYvakXcO3HjbR6FoeU= X-ClientProxiedBy: TYCP301CA0076.JPNP301.PROD.OUTLOOK.COM (2603:1096:405:7b::10) 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_|JH0PR03MB7382:EE_ X-MS-Office365-Filtering-Correlation-Id: ee58e8a7-4a1d-4d25-db23-08dcc73e5fe3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|7416014|52116014|376014|366016|1800799024|38350700014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?vSd0x858WyP/ZGPHWW+Pdz/yjV06Vbm?= =?utf-8?q?sVwsMI5XBbuHZQuovGur8eLAG5+QNFQAoV8VK2MkmfsflsH8Wt1BC9eywCpiSbcdh?= =?utf-8?q?oiPoDY/kUPfiRtO6B1X8skzbcQLbPC1AtW2SU92UoZCV+27/76p9xcgXp7iqeN14J?= =?utf-8?q?pUzXfjqKpDC5ZHL8CZjI8elPaoEUIVKvpTk4azJhP+YCmyScJdGGYu06dVnniDMAf?= =?utf-8?q?uaalkAIksJUhXIDhQkxIk4SY1QrZJB/MQagxNcYqSKZfj8K3baHpTdKfJNd6Yok1n?= =?utf-8?q?IBHdbMVOi5jRXoKJxQL2EBjmjb5nN9V9TvujCphYwcJyp0DL7LvIkogmOfkgmGGiE?= =?utf-8?q?2fO4HJbmzMie1lYCqNO5M6DekUFmTbXjQp/dwNRd0RD/FfDB4Gmmt1Pua8OXLgT1C?= =?utf-8?q?TqtQVMtn4iKYvgW5mQQpGYQLsXxCx0X1S1MW0RMJUFu1g0JrKPlRsdJhn0oJ6/Pri?= =?utf-8?q?a9vmEzQd5YvSP5Jda0uH4QQOm7MHc3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Ush1g=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)(7416014)(52116014)(376014)(366016)(1800799024)(38350700014)(921020); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?WOAnaciEso5ZAZbM9ZpTsT15Iv1N?= =?utf-8?q?d/c7Vesdlbtg4Ir5xLQA3aRRS5xT7ze5d9g4dD/oYd9u0WZRatGy82/Ytxyj8Jg5z?= =?utf-8?q?4nertmXcJwLJY7kPD0XDqjRDCuX4EkosEGcNV3BX2I8w9GCLRU8xWz7W5g/D5GuM+?= =?utf-8?q?X+/T0f5L8KjajHUGKXF/ZpF5dNZpP3eVON3/HdA9Id+uCt+HVc6lTT6tATI32pyfs?= =?utf-8?q?U0DegDd/5J23sG54aUfVjBmC0/d1/kK6WtAjkHv4eN3sg3AqOWdaB9y5rJM2xbEUs?= =?utf-8?q?ihr7Y8fXaa01irkv9OK+dHEy+qvFK4BorA5Snu2eIU4gfSusjnH4gY14dSO30IVUk?= =?utf-8?q?omiH55r+9lzgjMlFvQN3uJ4GM/R1TR9rAPxNurEzUFgx85kU3Ok7Ohj6mgTgDraSH?= =?utf-8?q?SwcIVR2x67cKTajAdgs7ntj3o8/UyPp8pbP8hXVJhM1i/uuu0XFc0RCMo5A0zXhby?= =?utf-8?q?7mO7ChsFzAhRKolpwSllp7cMdw92z2/tGa3jxxGiluUXNdN+FOpujna1gGHvt8O68?= =?utf-8?q?QPJHNK3uD5FMVTrgmkMUA0N+qmCZEhFsqamELpBP0IvPCZ57ILN2l2jGAkXlOwRsk?= =?utf-8?q?V68Jgkdnfm7+uMTUpUGhsqhNXoQi9FS6PCBJqdpOU+KdNh54Vw7KxM0/Rm6IYjOyr?= =?utf-8?q?6dbkIULtFw0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g: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: ee58e8a7-4a1d-4d25-db23-08dcc73e5fe3 X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Aug 2024 08:49:49.1053 (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: sGZEmDm4WxEq5qzqKj4QtIKDp1svyZntRRowX5rUhM3K8CvVqh6qZp1Bbl33NBtx9/aW/CQsZnTpyhBI0fnKSQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: JH0PR03MB7382 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 08:49:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 824389 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2095.outbound.protection.outlook.com [40.107.255.95]) (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 3026E167DB9; Wed, 28 Aug 2024 08:49:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.255.95 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724834998; cv=fail; b=agzlHjW+fsWiJj7NJiTnnYUSXl8uuChk7gf5yDIireLwZ16ueFrMafnxne2jAOTSGe0ajEczDNu8jLt0tf46WBxsNDNmv0dW+yV5sv2r+QsSPAD78i6Cp7khAbWphwvcfU+Ti3i/LwUvyEfacLhXUqbNsJ6zMA/iTby9DpDvdwg= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724834998; c=relaxed/simple; bh=1EIqUH68e2yHYUoqfpobt6Hzt4qoimWdTYOf3QUUDbM=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=fVriuEG/GfCGuNxx7ooMClEuZnM/H2rlJEwtrzyzVWilvTsAvx5vU50avxOqZIaX+lrXYqozn7cnmgFQzLI4ukN0HwPCQFKPuwlD2GG6K+eWULIG9iX4ztrvi0+2Hfq+MQanjizDUCbgbSIXEFoR22rFy5VxQ9Kz4AXJdpz5/h0= 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.95 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=UX1bdWdoLMe9XQFyc0E9baI/3/gMT/sBkgG1ya2aEI5gTO4Gm46g37jrE4Zdxq3YvedDvpYNrCu7klLz3Ubt1BT2aN2fW/WDZAv2QEiEPwgbYDL0NpEz2RGY3OZLwn2q1ycmYmo9RfukYGDW9NJTNDTb8Gj6fvuVIGfZmCGVyBzEBzysOmnuyWYzl+JiID+Xsp8+vFjq5EMpJ8KPtRQAmnb7NOak0EHVmgNHjJFpMqqLocZjFpHwRxBwf1x1GW8yaqv9Iz3rd51/ihPgOPcZXc1BtUO5z7D1ztMxxii6U2t5+JjwZEkQKI/CeeB+T3Ssbh0xLHxOdA1pcWrgY0BV+A== 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=SvZy8f9qj6MxWbGg8Zypciy/fWCOiCnq51HPJV1EDwV3a2Fa8aCKYX7vjpgL9qkemZ5Kkm77RUTDonWXYcarMPK3BwWp+ZG5S+ZVk0qu+vTxzRwUTMlWHjrEUxPritfw6xrBRGv5EUo+fM0Nx88TuOvn3ywEuB/u6ScJxBPZh3qK+NCmXtEUcDSbMmHtrKIvl/ChgGbHylSwVVJzKTqUt58JM/xAYJecSblcYQrU7KWAejUdBG57qh7i44hcDPUPr1xUyprHfrJsBatc4TCxjWF2+guPu9sjyEmf8+3BwYCIXjQWpH4Uw0BI5Xq2qOH8Ver/erm2KCgZ02vLiqiBLw== 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 JH0PR03MB7382.apcprd03.prod.outlook.com (2603:1096:990:12::12) 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 08:49:51 +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 08:49:51 +0000 From: Jacobe Zang Date: Wed, 28 Aug 2024 16:49:25 +0800 Subject: [PATCH v13 4/5] wifi: brcmfmac: Add optional lpo clock enable support Message-Id: <20240828-wireless-mainline-v13-4-9998b19cfe7e@wesion.com> References: <20240828-wireless-mainline-v13-0-9998b19cfe7e@wesion.com> In-Reply-To: <20240828-wireless-mainline-v13-0-9998b19cfe7e@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=1724834980; l=10253; i=jacobe.zang@wesion.com; s=20240828; h=from:subject:message-id; bh=1EIqUH68e2yHYUoqfpobt6Hzt4qoimWdTYOf3QUUDbM=; b=W/Z+9tvRnS0PPTpTbelbn3hmqC8oRSjXXjzNc4WuT0ewG+uXYPsx8RkNLFveIw6rSDdIjGxvp +c1hreNpqLEA/tbixg5aM01AInT1yPxLhDCZFUNclW6A8Qy+DsGWwwz X-Developer-Key: i=jacobe.zang@wesion.com; a=ed25519; pk=CkP5TjIqHSwHJwZXTGtadoXZucYvakXcO3HjbR6FoeU= X-ClientProxiedBy: TYCP301CA0076.JPNP301.PROD.OUTLOOK.COM (2603:1096:405:7b::10) 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_|JH0PR03MB7382:EE_ X-MS-Office365-Filtering-Correlation-Id: bd7bd374-3b8d-4cd4-4eed-08dcc73e6126 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|7416014|52116014|376014|366016|1800799024|38350700014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?06cMwe2l1NCYkjLzzvEE8eOB2VR62U3?= =?utf-8?q?Kd7aB/yNv/D1/QSF2JK3l2+umEUGZs2pO2MDoPfseZuWGR5+cow/NZtKn2Eq1MtTW?= =?utf-8?q?PHWJB2MDPwNAXBRY9uXcVX69TMX+kh11In3RuySYb72lIXKeaslv+usKEnjbJlPWL?= =?utf-8?q?iVVz9Y8wGmu9OMHLKsiCStStBQGz7DYE/PZZUnI+47vdZ6fIQllU9utcEUXzerBDc?= =?utf-8?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UFqeNMk0hGe8LJ3iw74w2z1v4Vp6Rz2Mr5OdmKQRWZXn?= =?utf-8?q?PqdS0UNzEpAbLIkM9rn6piAEvWJ0Ug0IAN+j1m8/f9ijsryWPbChLQd3Np35hKElY?= =?utf-8?q?HF4+0iQTp5dLnC9VN5H5j1P6W19RPAeoazyAzAe4TuyQEW98s2kHntQWFyI4d1wFe?= =?utf-8?q?GyhzrUpIeda3PpXO9t8URi7BnQiWq+BZ/l9YQFglS1oUJkBgzCvC4Oy8TsUWIGinq?= =?utf-8?q?MBVFibt3I3/gEaPVu1gB0QEnm31suTtVRQT+GJjXYBBerHBuyeOnrsc=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)(7416014)(52116014)(376014)(366016)(1800799024)(38350700014)(921020); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?G+66KnMGm6YjCRn5BKiQB2e1ZHwC?= =?utf-8?q?mUd5nZh/SmIL4D0VZThId/j6fzuy0fM3wMK8dsVGIiHpLube9DvYHJQqzO4eL3hB2?= =?utf-8?q?Iu87/Z9keNSmCXaXpsL8p5NK4X/orQB+hlCEhllA0eKgm2wnmxb4e2vShMiomRe+n?= =?utf-8?q?NoLLTrDh0GvCSCFdkU1eAPTOe4/tBUC7t6xKIn7vWPBv9QdcLz7+EugJWOuTron7R?= =?utf-8?q?8TjgrzawYSpk0qP083WyZbg+kEOyCIWgXz/RRNg5HRihVDhXZjc9XZQSjYL2/0pjk?= =?utf-8?q?Y/9BjDO3BKkhHcy1fAzTXLCcEol5hHBq+Dy051rZ0GDqwWojNjM5hb39pGHRI+Mdb?= =?utf-8?q?ae5BZrI8gjke1Vh25kM8pcJpxtRvIRe9No537JQysmTlrwqyhUwINg6EwHIKJ/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AY3Cw6mbiWucAeZxpnsVtGrVgtfHSdSeuFAodhJdwZaZyAmYwsZkJYVshccsl?= =?utf-8?q?zOsXU8PXk/Qkb0OvBC5SUcce2f38GqXZp40ghjEKu6gtKR7WicqS43CnarJvZTWzX?= =?utf-8?q?ANLightzKjNQGcC0j9ky/HNZF0g791DiP2BTaaF3HaUhjNb9W0EVUa9oL4jmSfPxV?= =?utf-8?q?uN+kRI2kLvWQugmgVq+/+UpNZhNYbVHqkvaeyFr0O1jXXfM+JvLSycKOJekuBHiCf?= =?utf-8?q?uSrD1LJ2wKzL?= X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: bd7bd374-3b8d-4cd4-4eed-08dcc73e6126 X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Aug 2024 08:49:51.2722 (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: RGEyi8ZeZa3pwEB5W3cGFbMlyo3qOkMGGRls+ozxwTBhZrkKcVIVrHncwIVIUapeXGYQaKyyCT5xs7hch24nPA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: JH0PR03MB7382 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 08:49:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 823504 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2095.outbound.protection.outlook.com [40.107.255.95]) (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 4ADFA16B392; Wed, 28 Aug 2024 08:49:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.255.95 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724835000; cv=fail; b=oMDdju5pTwerOhlgW420HjoU0DHvAYcPuV38hgc3k1daQX7xyY2b8Mp+/pMpAtl66g8MMjAGag5oLeBSV+F3beGP4X6n1swNAupnJjWkTtPvSb9ML6FKHy2LqGZFpWVeRQC0wklI5nFH5Bg2PpUOvkOLKlaQrGRaod/Cm3E2Rrg= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724835000; c=relaxed/simple; bh=eaPDKg4EgZjhgoZGjOIrFz/PouRc4pgRKLayAeEjx7s=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=vAZOV491czqyovr1K16FV0FnMS33g+h+GZMptBdDeS3J5f1qBw4eadf+t3xjR+ohaei0LRa31DvGMYNaga+DEuH+gDRSidvmG9vYbqfxS22wtuSN7IISpP9/sxdR9mwHA8rWr1RRyZy5zCZZjDB7h9EhBEQsg5wQpUeUjgjUaSo= 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.95 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=RNz1Gr2t/P72mbp4I7QhTpIRsegNtevQVdDOll1oILqEKvj0NA3vwbt1uHkpG4Q5QWwbPRDCwsldQhW1fxgLQUElxlomoL8rwiXaO6kXQfAJVwcMDBaqud7FibMNLgax1iPBrT22X+CXVaISNZTu2ZuS77BTGZCv2a9K4geT2/GGVLKNH3JgrPcLufuccGd3nEwPd4NBT8K8lV2geQFQQHHFgPzzpYOTLePRjdm7LwMBEfZgEHPHixdz998XAUIRzmhpiiQSdvv1yynN+kxb9xyc3cQmuMnkaB8nu2nduWovDa9JY3A/PhvyCTknRkoIKxSt4lPkvAM+yuRwjM5USQ== 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=v5vBkyhw/UXEonxoQDSI6ELwNgyu9BdvAMOHe3zurKGVevhhLtOtNDS0D+l8cvJe7eiqVnRueflwCTEBK3t1TdfGLM17v1J/GH6SeLcW8LLRaPbrqJaK/U5qysFyQPEuC7qHJO0mMCwYkSNkj/HRwvswk/Dm7Fvfwjl6mD4baXQTZpvIWA7R0gyzU0WMJo88womqilAsGZnEKYI+Wg1WEOiYr6l8iXQRzefCG67QUnCNfw2rS0fO/cVeRG8xS2p2HA6HI+Ff9cvdpm4qKcRcyMfV44OCKoj2aAWTVGQo9RPalF6AhKwOhz75K7B6IKnm4/lIn32X7rRLTdi0hvdJkA== 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 JH0PR03MB7382.apcprd03.prod.outlook.com (2603:1096:990:12::12) 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 08:49:53 +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 08:49:53 +0000 From: Jacobe Zang Date: Wed, 28 Aug 2024 16:49:26 +0800 Subject: [PATCH v13 5/5] wifi: brcmfmac: add flag for random seed during firmware download Message-Id: <20240828-wireless-mainline-v13-5-9998b19cfe7e@wesion.com> References: <20240828-wireless-mainline-v13-0-9998b19cfe7e@wesion.com> In-Reply-To: <20240828-wireless-mainline-v13-0-9998b19cfe7e@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=1724834980; l=6614; i=jacobe.zang@wesion.com; s=20240828; h=from:subject:message-id; bh=eaPDKg4EgZjhgoZGjOIrFz/PouRc4pgRKLayAeEjx7s=; b=kiLGdUKWb0oysGKrbbOhlEA2XsGkNy97sBdjuxpQBh0k2MJ855MJU0tYB18RuHkYf278dZcEO a81tRLqFUrnBl3qh9XL3Rj1+QYYUhX+aXhPGtlbCgXjS3V4Zbe0V8Qo X-Developer-Key: i=jacobe.zang@wesion.com; a=ed25519; pk=CkP5TjIqHSwHJwZXTGtadoXZucYvakXcO3HjbR6FoeU= X-ClientProxiedBy: TYCP301CA0076.JPNP301.PROD.OUTLOOK.COM (2603:1096:405:7b::10) 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_|JH0PR03MB7382:EE_ X-MS-Office365-Filtering-Correlation-Id: 8f6dbb9b-a6dc-4793-91e1-08dcc73e6265 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|7416014|52116014|376014|366016|1800799024|38350700014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?wNTyf1+/onHOt53oBTNJbQg8TBT82hR?= =?utf-8?q?rYnDEr9Qg6B/7i0szK4nCnNZrALq84Q9unj+NVN9zUqsZFQmsMrnOkTVFYWK8VSWN?= =?utf-8?q?w0vtYkua7mVBNEYGu1MX530ya0UCTqID4sNitApOSf6OA6qc04brT2iEDx8yQ9MHi?= =?utf-8?q?/mIewcJQafNmBnRZMeN4WRoAzV5cYX+HXbR8EgJcUBneGzJH3z6tDiceMeVs+mDbI?= =?utf-8?q?Akd68PREBYJP/C5r99x4E8BeLsEpc9h0SewW0GhZVpYbG0wRF8A6gnt9/iZco+clU?= =?utf-8?q?akicPMX8oDqJLF3nTDu8qzs7wljfszGVrhjo3dszu+Otl2AyHTjCpGSSBonp28qOn?= =?utf-8?q?3ggJ8aT2oB4mmK0QFhU89gWLWCQ7Qd5rpgs9tOne3NHZxiguMa+wFBaPpKKK6Si/w?= =?utf-8?q?qNBbI6GDlhWtu5UCB7AZssml41OHR3ladsnI9c0/fHtEzl20V5zQTcgsnysTRZwCZ?= =?utf-8?q?Zg0wwKqj4YExu0as7hjN4M4brCB+8d1J3V7HDI/i9f5BiqtyXLdnHSMRx6ecjdcM3?= =?utf-8?q?uAJYt8Jwt6tPgNToL6+VDL0n+toLVsIHCtWg05coIpkQLDifcHKV6E/uSeYc3KfHT?= =?utf-8?q?6IbMp7gTJPy5txu954SUnPoBHPvSNLFTegKwhmnJje8hAVkPNl2e8T1xQSrxs0oFF?= =?utf-8?q?j/vUPPNsVIUIYpRvJo/GgbYbY2UoVsHCkdk7EAnkuhrIVyr7etWQFbshkmS80msWr?= =?utf-8?q?hA4FvfGBkAXOM7XgyyU0EjrH3/dRwWBmPbkj471d9H5m/SWGe+j5OLKqyC6iYXSGa?= =?utf-8?q?ImsMMsclypgPVMq7hXsAnHQmGbTJZvS6VjJNzdU3ui+y+cVWjzA4OqDQs1hMu1UJo?= =?utf-8?q?nllQsEoHxHl1h/nOkBMnKSRwWNShV7CH/trxX5RWL2qiUtujASXKLW1AK17k1u3Fw?= =?utf-8?q?O/cltNzHB3opDxgl30Yw2DTmqGqaQbKRNBdFypLfuH0iZ/QslvHWBsk8Awc9kE5DZ?= =?utf-8?q?2SvL4YVp+ittNj02NnkTvDca4nbeItCyebH4jxB2pTiYkfUnTMt+zapSRR9kSe0cb?= =?utf-8?q?EGv9oYcenPliI9YkAX32KFfT+D772fZDnydO6L2QM3wGVH3PF9NzscubuvZ3T0qCy?= =?utf-8?q?VZX2Ydh2dMYo5zyoUAzQ+jKCvHa3X2Yu1OA5iO2kKE/uGjxETnbq6XjdTg3j6UhJc?= =?utf-8?q?TR+tnp7PZRMBNnq0Lfu4F/YGM2Z48C5nFpVvbkVeZmhfvmHy21z3ralJYDvehAgOu?= =?utf-8?q?ku3tcNpKMWwVDQp9ZGD6eKRxf4tDC8L5cJ3RFJXFT7Ui5pvTaC4MjA3PTd6FE+7xT?= =?utf-8?q?Tr5Mzi6S0BOTmqkLaKsr2FZrSwYMknHxO057lEqI7tn7FgHnYOkeLgFW3UTXHv2bX?= =?utf-8?q?9OpGflrv/gM+9vYD8P++/woyLvRpehDm48no+8vCGbWk9uNC+Uutkjg=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)(7416014)(52116014)(376014)(366016)(1800799024)(38350700014)(921020); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?r72nHaMuQGVil0wqAwKVy9aowvBW?= =?utf-8?q?cIXLXV9C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wPpYeiDlCsPd++3k/KMVjrRqlev5PQx8uVHyDP0EP0WliG/8LWY0b9?= =?utf-8?q?5UVdNsxWLae2kVCe8fsaf7YTbhWcT7j3GVSceaX4/pTwaUSPXurc+Yg3QIPpsGF7U?= =?utf-8?q?0HHa0eSIAH3LzLAxrswlp7Hnl+rto7tS5lhcREoiRjbrYfqWZEBcX26Zv7a/bH0b9?= =?utf-8?q?388Cz+Xej55Eob8QPKTzwc7TJdCpIS0cpnCQ9Wj4NqfNDgTXPDj9j1+s9SqOS8ES3?= =?utf-8?q?iyx/yu+r+PIxi+NAFuoCb4UUe/sFagQ3XKFRAOBAMfCbpy2Rss2OxI6a8S7dVtqDt?= =?utf-8?q?3pzzGxmtdhi3Bolrpo26dWX+qU2t7BNtwo9V+7Fjz1jHjhRsIJdRrDn9o6Np2ps3U?= =?utf-8?q?xDiYG4ZF08zP43mMW5TjOaEOmptDLpXtrH3VJssh3zZs92AgUMrWZobk4p32I4mAA?= =?utf-8?q?MIunFt6ifdqcdYu/07N76+KQPArbwbhIFbFMAOatoSioH6+eU6SUj24qiXjsNODle?= =?utf-8?q?cgQh6IfkFS2yMgxh6kaZMXsu343sOFy8i/XGRikdI4Cak5e+1n3U2ITM96zDr4M3R?= =?utf-8?q?iUYyD76LfJdPgAG4/ocaR344jp11a79PkGUie8R/8E2OUDm+FwrDwST0O/z7H8hGR?= =?utf-8?q?I22k5TdyRHQm?= X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8f6dbb9b-a6dc-4793-91e1-08dcc73e6265 X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Aug 2024 08:49:53.3043 (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: YLIjaulDdLYiuUWCBxZ/s5VOutAGQh2GXXfUy2B4MpkvwK5EXql6qMt5HfZRDkdmnl0KdQ1PXEf8v0vuw3SaVQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: JH0PR03MB7382 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