From patchwork Mon Jul 29 07:00:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13744401 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 32E40C3DA4A for ; Mon, 29 Jul 2024 07:01:49 +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=8RGLtJ/KjFJmL8oTaziRi6rXZB+JjgZvhVY5uKEjC1M=; b=zfkmgv6iM/sJrV qpsV3XN9qbBaWM6c22OIaxzbner62ysDwfmDOHkwsofDD84eJQZyu8Xl/+kFsP/37QECSBsWHu1J3 WU+6UbWGm6s9SQl3da9zzCcH2xjzcRK2YnxaME49FAuWX55sdAqWBT6HNOPrBLoOqDm9o0zd9m3e8 JiNB/zaoTcNcReOUffKyK1uuDcQat60WBA815haMuyGayjW1VoZBqMViN21z4pzfT7U4seqc0YLpN IUuTT4ha/sMs4r7qmguAjhCAnr63sahaZPhh9S3aOSwnT3wY5RSxlqcQtEnGpRTQ50hx5iQCgUs71 2BZgHbORLRaNYbp999nw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sYKO9-0000000AEXT-17Ne; Mon, 29 Jul 2024 07:01:45 +0000 Received: from mail-sgaapc01on2070f.outbound.protection.outlook.com ([2a01:111:f400:feab::70f] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sYKO6-0000000AEW4-0whX; Mon, 29 Jul 2024 07:01:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=udj7Jbo5qRdi4EmgeW/8qemG0DB/NtxInNf3uqRT/PrT/Py+iw0UWU7LAjnRYIYDH7e7rwXgUpzPDT6s6Oq3T8y96GqAVJio7AE954qMqgWvocul0xmVHNL3PdnnBc3fH6yj1GlMpNZOyDgnw99Uw+47rRD9oy8atrEqU5NEXsANyfK/IlxnauNuJi/zfXq9pCW/Pf3Zv1YobgHlgjWato8/B8ZuLZLP8ihAaIuyZ30sahDSuQd62zbJQCmKG83Q2cCfiep9n01xzTpjEortmJMnP0bhSGVivLvzpaQEwkrSvwyuKggJoaZEe1w+cRYbb0+4jCZbxmvryvfvGiOC2A== 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=5joZeAkWIRQ34gsuTda02RA7b0+WpONtmE7vZr9/GDI=; b=CW6GteTZ8lTu3Cs9wpDmKLwynG/tBVyKLV7mqZI43eEMoq9y0Ibhd8swG0EcU81/wXbqUwhHgcNKRJg1HSx92WGez+YRo6FQ8kQD7hI0QaXAnIJtgT1m+EhxR/qIPdl9IdTsrDXJZi1xMaFV387rm/pQXLabf/0vt556bSp5pPCH4imBRqmPKBAohy8NEtfpgm0s1FzWs4Uz9YnlH6naThPTbvcrAWR2/nt/M7HlqVXkaO9v/o7iQlK1MWOfxsEB4km7Ml0IoXYgjCaKguNE2wYcjpsaccsXlI9qZ+n0QqE3sEKHZFEYKU6gUNIRwRPuMQZkvcVK6Ing2GeoJ/6eyQ== 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 KL1PR03MB7870.apcprd03.prod.outlook.com (2603:1096:820:fa::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.26; Mon, 29 Jul 2024 07:01:29 +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.7784.020; Mon, 29 Jul 2024 07:01:29 +0000 From: Jacobe Zang To: robh@kernel.org, krzk+dt@kernel.org, heiko@sntech.de, kvalo@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, conor+dt@kernel.org, arend.vanspriel@broadcom.com Cc: efectn@protonmail.com, dsimic@manjaro.org, jagan@edgeble.ai, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, arend@broadcom.com, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, megi@xff.cz, duoming@zju.edu.cn, bhelgaas@google.com, minipli@grsecurity.net, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, nick@khadas.com, Jacobe Zang Subject: [PATCH v4 0/5] Add AP6275P wireless support Date: Mon, 29 Jul 2024 15:00:57 +0800 Message-Id: <20240729070102.3770318-1-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: TYCP301CA0045.JPNP301.PROD.OUTLOOK.COM (2603:1096:400:380::18) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|KL1PR03MB7870:EE_ X-MS-Office365-Filtering-Correlation-Id: a9c86fb1-3cb6-49da-925a-08dcaf9c4537 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|1800799024|52116014|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: IWXhb6rccKRr1rIiu3R0EA96hsvaOa12rABF0XwzOaW5R4dM+aq9aY90WkmDY5wXe+DG/K8UEedp5ePeazKmuOkZGLqe31Ldek6CPadSyu8wjSvKCcCay79ZKDz5oOW+4dm/pmE+1vasU4X2YbRMv+5bK6i6wzSWcZSNsgM/azVX9MmNGAMenao0hl8q8DAEFxiVb6pMgSQYU59akX6wIPXkMOK8VqZVzThGEj3KjkrIZKDrHxZnTBQtI3ytE6N86fBknCJmssMHC9zK1AkmZ1KbEBJUfDZQngYTkgCwb4vdw8gGWn/mNyOrCOX7gz315BegUTX1ScwWiIfPzRmqErJnFMPp+d4dIh4FNlL9M2OdnOOIUkgzkAdU/pqlYUYrUBiIctE2/4EfiVvSGv+Wc7bbqgNUjziJBU4HDHbAfWCtA+BH5cWuCNZ0bWT5hqj/vjoavtbXcFLnh4JoSpmTIR212u8ETf0g2mJZtlkgb07t+PWQRafgl+WBFSW0jN0YYp+LlFNXuBXgJmV+tHLE0obODlZO+uDwH4LYSqO6GURgSmyunu4Nfi1G1jB8uVUdUnXDzByqeXCxeomQzIMDPIJMa4I4OMxUPRr0a7N4FH6MMnoZ+5yVsEKwM/OVidwTXyMgU2k0IOQsBsxLU1DQmK/AUcvsePFf2Y9xPcJuKKY7dTzaPlNQteYpowLC3HekFXWsFmuSegCv2xkTZoQxtnwQz5329Q68FdpFKgA1+rzzzqWtSrkqJ9FQt9txVlFQ6+47ciHBqZiEN64KZb+awPUdMumPO51cqm0AQ9cTulnBJeoqYFchp4lE2+dDXsKaxHjgkoSGt9RSFWoUzCjdkGcWRInaQgT7b95tDrpmPCzDViU1LL9cYpthanmAvZT3dox4Bqg0FCp7TJiCGYFbxUt2SRNLRRuEqASQy5o0NBViG3c1lDAFlrvaHuehMfNZOw8tKFH+ma5Mihbe91yY9k7+2o0f1TYQUR/P182A90PvSHAH7ZtZmf+6iNFmI8PEio2vAs0JSzTnGDD6ZJr0Wh/vwY4hx7P55rbHlVslcAey0v8rBmndq7C0VtAjpaTzVSb8ADptbf2vF9jAYCinQh82fpHRHaqkx0VBs5GTVmIl02fEYhiOcY6GE85IQvBCoMESdO3bbwUYCRTKiGMaRfwmVP0NxftEwDIH+Wx2/0/D5euKSwTD4Ypp33k6p04cqYexP410dwNOQ7o+w98GAFT9qGP+so6Sjus4AiwGh73jtUPbP1MRAwu0RpuUK1+8WxYdI2Kmp2WlXccbOw+rvMakMKXWGHx0g2qYGZxFgJZShIIYUxYkClmw6feKU6xBlvqS/WN3ogphG0lpQeZLMnQcxUV9wBmwZ46lwo1gPLY143F/zbjcktHNAv26QjZo 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)(376014)(7416014)(1800799024)(52116014)(366016)(921020)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: lXlqTnkIgeAXZipSoqFG/RV7gtxU4tFzJwUkeKv9esWJ/rq7aovwUSlqwm/qeoJva6ZGpWJzEqpsWHOPhfEEzefAcz0ZANX5ErbDBbNHwxCpNCX8PB3bOJtZ37EaZotTh7qZDZcB0eIv27nr3tY8WZK0FanTKTYXE5bpQqLhE50Ms8eLwBsIociwQSRok6M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ndhc8OmaV9xekKPbnPdCCMagZoTuvzAuFqF9Z8T56qwIN/JX/zRm9sHV1Vh0URvoYv8CaaH8IFoiCfjCdPD9syrahBuwHFcS3ytuSqdlnsSWRbHfqEI6BlQYpLIXTpvSinBdVOxeZ4VE+J8MmadJ4ojc02iJcGicwZf9Jssfu7ey25panqfOZ2qipoHXrExD52IyybLJm/ZU2lqWxc5EsAePWABzkRoKaRPqtIaDvZkWMgcSeGz/8j/n6oIon4B4htQo6aFzXLj9YqOlShHeP3WYmMqvAwGhdrQNbXhotXSJlC/p5Lr9NCbEHetVmieWLXt0kACKJ X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: a9c86fb1-3cb6-49da-925a-08dcaf9c4537 X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jul 2024 07:01:29.2727 (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: c4B3e4eJGD21aKH2pXm8MPujw6YahgOlXVxV5epA2hvwftzfhmdRuACQMwYCPXaxdl3LXP6w1btPaZwVtffLWw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR03MB7870 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240729_000142_293518_A90AC409 X-CRM114-Status: UNSURE ( 9.68 ) 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. Changes in v4: - Change clock description in dt-bindings - Move enable clk from pcie.c to of.c - Add compatible for wifi node in DTS - Add random seed flag for firmware download - Link to v3: https://lore.kernel.org/all/20240630073605.2164346-1-jacobe.zang@wesion.com/ Changes in v3: - Dropped redundant parts in dt-bindings. - Change driver patch title prefix as 'wifi: brcmfmac:'. - Change DTS Wi-Fi node clock-name as 'lpo'. - Link to v2: https://lore.kernel.org/all/20240624081906.1399447-1-jacobe.zang@wesion.com/ Changes in v2: - Add SoB tags for original developer. - Add dt-bindings for pci14e4,449d and clocks. - Replace dev_info to brcmf_dbg in pcie.c - Link to v1: https://lore.kernel.org/all/20240620020015.4021696-1-jacobe.zang@wesion.com/ Jacobe Zang (5): dt-bindings: net: wireless: brcm4329-fmac: add pci14e4,449d dt-bindings: net: wireless: brcm4329-fmac: add clock description for AP6275P Wi-Fi device arm64: dts: rockchip: Add AP6275P wireless support to Khadas Edge 2 wifi: brcmfmac: Add optional lpo clock enable support wifi: brcmfmac: add flag for random seed during firmware download .../net/wireless/brcm,bcm4329-fmac.yaml | 9 ++++ .../dts/rockchip/rk3588s-khadas-edge2.dts | 16 ++++++ .../wireless/broadcom/brcm80211/brcmfmac/of.c | 9 ++++ .../broadcom/brcm80211/brcmfmac/pcie.c | 52 ++++++++++++++++--- .../broadcom/brcm80211/include/brcm_hw_ids.h | 2 + 5 files changed, 80 insertions(+), 8 deletions(-)