From patchwork Thu Jun 20 02:00:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13704796 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 40DC5C27C53 for ; Thu, 20 Jun 2024 02:00:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=HSKWfIAKuEF0XJw0jTXZDqzZN/kBJswnPLFiqxas7Sw=; b=Rc7UgS/XUUIVF0 OgHDIKYxiek2IQt+FdEkZPuFYL9ycQWv8El2rd2hNOeSk2sR3xK7f5c69PD6R53SXueGVyUU2n64D YF/8N/7cZJK40G4iVWNDJ2rR74k+9S3x7XSfmagFWaShU+jF4JFanb4snOvo/074aHbfVKt6z0Wru N0CLOOqBZSDpZrPDFUfw+FCv4G4wQCtj7A19Cl6X7jVa+WILaEDxP/rrMY8X9uuHSq6k7n4zST2mm WFaIofyhMNZwCV+J2v1q6Q52Q7CecyNh07j2ah8o5oF9kZ3v4k6mHA1C4NtJKI+v9BFq59RJGMVnQ mD/Xn54W4fGLAFDZ4uww==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sK76X-00000003JLX-2AXH; Thu, 20 Jun 2024 02:00:49 +0000 Received: from mail-sgaapc01on2070b.outbound.protection.outlook.com ([2a01:111:f400:feab::70b] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sK76T-00000003JJr-37R1; Thu, 20 Jun 2024 02:00:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EBUF4acAz3B65YztNFIfUz0JtE6fUcxAa8T+zh+4huBuWxP3FhJPyvuRI+Y9Jhc0HVJF6s+cpFzOtLrkwxavSJAXKlMjLLHJutl9DyPtEhgK5p278/0JbRk3+10Lwu1509Ghet20xHa2+XSfu5f64d4qUxvBhw3N1AC/meKSiO9AMhNGs+w6u/qduX51QWDV4Xicp2/ZJ8BW5BQmvIldB9OX9V7GYlB2eX1FxF8yqlXAFR2pGx1P8iYehhY3HO8kMl8/1CXjBmEZGYY1kXevk0e2vChouRSGIQju+zGjA2YETVZZRnKGgnPNLIdlhTw1Pb7UpmeJsFBE8AXJvOGBYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=LqQ8qHXMRYZYoBjMnXVSeOC8ylMh6Wm1P1xNrZa7wEY=; b=ft3xekpWeZc8ayzBXnrt+xzhHN8WFlwZ+dDCj8BZc43aJfpZm6NaNpHiHyA+G24a9zUTKzHpA90CKX6lSkouVnb2JCUVmu4zyMrqJPjmGKzfYvZE4g5hfQx6zeOU81LrivURueQTdpCr4TX4rJuzVp1GqF96cFLXKQ0+1j0Meuq31eb8Wz9Pi0iIZTicAwGxfOVxbXQvwpyKJtcTbJ1Ue0oiRCIJUVnXmDwSBTwB5aQN3Ks3+G6f/tNVHgcX9nGYwy2Hj3Kk+q0wd2NWI9/yCdWf8Yrm7f0USxmhhyFljd3lqzklSQQICCRFuI4AlFwI/MszX138BLo+Q3kx2HsnnQ== 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 JH0PR03MB7323.apcprd03.prod.outlook.com (2603:1096:990:11::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.31; Thu, 20 Jun 2024 02:00:27 +0000 Received: from TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0]) by TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0%6]) with mapi id 15.20.7677.029; Thu, 20 Jun 2024 02:00:27 +0000 From: Jacobe Zang To: arend.vanspriel@broadcom.com Cc: kvalo@kernel.org, duoming@zju.edu.cn, bhelgaas@google.com, minipli@grsecurity.net, linux-wireless@vger.kernel.org, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, megi@xff.cz, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, heiko@sntech.de, nick@khadas.com, efectn@protonmail.com, jagan@edgeble.ai, dsimic@manjaro.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Jacobe Zang Subject: [PATCH v1 0/3] Add AP6275P wireless support Date: Thu, 20 Jun 2024 10:00:12 +0800 Message-Id: <20240620020015.4021696-1-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SG2PR04CA0185.apcprd04.prod.outlook.com (2603:1096:4:14::23) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|JH0PR03MB7323:EE_ X-MS-Office365-Filtering-Correlation-Id: 3889ba85-1db1-4749-b898-08dc90ccc131 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|1800799021|52116011|366013|376011|7416011|38350700011; X-Microsoft-Antispam-Message-Info: lAxR2jw6iwKJiFeCw4eIsnByWKzxLa7D01B/RAeEm057039mQ0jRv5xPLm1PmqXv9/4Zh/MpqaKByFAxSkeVf+yMViNWklV/ipVw/gW9VOPuZJy19m7YZei9GsaL6cqkBTEYdQb7fTktHCopQiDf6bLCDUyLy/yXDVo21+FWO4fioEzQA9EqTDFDphpkPsqItWtlnGGAWxwFb5GHYTwSL/qJrvUoV2fK8fkMd+02xKKcz66JnuNPp7JVSrb4NaCODOXcrnHtY09ZKY24tJcMdRGv9HwbPa2D9Yr90Dplii7PDVP0tOps1o0PQ71Ys3jOXIldkDsJv5q5G2vgW790NvyJGdtYHSB2tMNSFsGF3d91/DLN64p4Ggfw4bYTJo3CnQesfQNpys8dPY/fXmGkjlSDhJFsOiBEvWP79p20m41b42tRoavB880N7sdn9ctCpYluJ/leKfOQ6ycYJGWBzFeSAT3eZOFUu3o5Yyij9W8ii3bayjitNGvcsTrJiCTenAum64+7TMJU2wpVKyUKsa8u3Nx9tf6veGqxsnuqa9/UdW2c8S2EXUIaqymtrewJ/7A17BJdkGkWvkRxov588BAp/o/gRnBSPLZHTbIuWeMu+fcSYtGihsCyv4PehpM/pxUah2aTdUAaTtDPqjlmd6rUjK+CKtV6HcG/6rC5fQ7BKm3+KXklBMHRKgCd1MAsQU9LSjFr9YWsf7uVFZsUN5nVIGMnGzz28odbGMW+Yv/LhGB+SayM8bFtooy4Ohg0GxX3czfgsY0OELf31Pmyt8AjO2HBEUCV4cJfXnqlZu28VY7BNuTOIH0gy8rLmNk7xcUvWih9lkBPPz+I85QqqAP+CYWAE7F+6KgMaTegcAG2UkK0FewUVF6f5QtBqV/J8qCr7tSQI/SblCNppp71DyiM2xMGRRHdLXzqrAyo2K3p3u+cDC1rwldBMvGH4+PUB/wgH31fDV/FD3U2qD4oT+7QSm+Qe9XiBkpN8a+PqQwVU29LD7SqTy1SA6fcNzfmcROuvslFbCY4SM7s05n2eUqSdJDMCHJbp0Plyw8sW9oa5be2RU3i2GwDvc9NdpoDrbjpyb40B5yisx9h8nfHfi8tna9UQGQ1ywUAMDSQGWgwNgS32LftAquPGuvw4cLuIfgKSlOtnVxWju57Nxl9/t6hn74AITQTwNTjlV0AM2mYLgblfFID/I6fS2r1L3DjGz47kNUmgp3I0Tb1PC682/C2+3QXdEiZDVCjMPEPaVTIoSL/198FyKzMQmUFLMkiTw7aNBH/uqEdTGvyH+P3yzH473w3QWoY+Fse7/iVowWjISS70neLZG9vVfL/DWNde+mxk6pTcaq/vrHVfngVU+sws/DDhB5oZEs0UWkuK80= 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:(13230037)(1800799021)(52116011)(366013)(376011)(7416011)(38350700011);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: CJ5tlaVlcIgey+U0emOdOwEaIzbAJE/0xXDJ5mI2VZuIiytZZ9aV4hZy3ktqoPBmAKNIBXZQVkkwyAXXbg4eT+6TNC0jctO04FvObApYonwIXl9S6B6P7k2tn9sk0JO+0pUih1gsTa3yIygrPuUmxdoDzxjoCIuC5AetO3RvQVYrOR4GlVz3KO0GJ4s3dSp57F7dtRur2r2pJ0rbPRhhgMkws6+EDw7EZ/83ZNj2ABHSj9oU/TB8+cNoVqwrEX8lC7yn6ZnfhUAy6GxD8JBC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/a2+ARgRsC8APXlSOldxUClSmCyXrBUM2GAp+pb2xB/2C3DTc/NQI8nYn2Wi1z+ggomaWzAnx99CzzIZDJcQkw+wQ0+VJomLh+3ja09ACJnj+sivuSTuD5AgsTVAN5XTEoZ48oNf8yBxigUHKWpe816FX4wJyamULlNmef8DUFjwC2CXIlqLJ7J9a95XtIhqx2qVN5vUYRUoYj+eqoCaAFA92jXcrozkn2l/vMaxDK2AZIOE8gqdVhZ7cCwbhvD X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3889ba85-1db1-4749-b898-08dc90ccc131 X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2024 02:00:27.0611 (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: Ar1eX1iXCxPk6KzxoC8WrGugXTlU1RzoeIa1VweyfRHFV/QpwsxQBrgSqwA6kdsOKDxuqQw+J6RBE7ct/47YZA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: JH0PR03MB7323 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240619_190045_809792_006E2D53 X-CRM114-Status: UNSURE ( 7.91 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org These add AP6275P wireless support on Khadas Edge2. Enable 32k clock for Wi-Fi module and extend the hardware IDs table in the brcmfmac driver for it to attach. Jacobe Zang (3): arm64: dts: rockchip: Add AP6275P wireless support to Khadas Edge 2 net: wireless: brcmfmac: Add optional 32k clock enable support net: wireless: brcmfmac: Add support for AP6275P .../boot/dts/rockchip/rk3588s-khadas-edge2.dts | 16 ++++++++++++++++ .../wireless/broadcom/brcm80211/brcmfmac/pcie.c | 15 ++++++++++++++- .../broadcom/brcm80211/include/brcm_hw_ids.h | 2 ++ 3 files changed, 32 insertions(+), 1 deletion(-)