From patchwork Sun Jun 30 07:36:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13717066 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2139.outbound.protection.outlook.com [40.107.255.139]) (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 97D8F364AB; Sun, 30 Jun 2024 07:36:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.255.139 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719732986; cv=fail; b=ByewpkeQd41Axq3Bvx1wFE1mv3fZ1j+iLot6LUmkD0+j58CXTrmig64G8k/s7uULRzMN4ETxtuIYNVlvgw4s9RiIB8dzF4+R8Vr8UDY6i1sqBkxskX1SC3XrkTBUcHZn0JAtVXXGCWpyS6P5ugsgMZP+ltLRbpVD8yl4uyD8NKY= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719732986; c=relaxed/simple; bh=wwB0A238sLtjnS/VRPPl9pkxKVMjqGo3zjLdDqxLu2U=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=XGq/JDpj3KbhN/1sRZOszH6aFav+waoXf7Tca6dcy82+82TkPFT1HrZcYzAsDulfUMrOgUnc1xBMPgMYTFv7Sv+Kd6SZtosCY1JhBR4iUkZeivXbQ3LPAtxvkhH2ANSuo6J0E7vuGwFRmxlwdb5mTBKc3xdZ8JW7jaQFNDK9yag= 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.139 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=arcselector9901; d=microsoft.com; cv=none; b=bUMnEyFWOHspQbPirr8fmIm7vKjKzM6bnW+iwpFnkZxVlsbScqJeLLx3KGUcwsfk8O5dpqAiHT2HQHOBWKLcfKPY6AhrZtdWkptoZBPS4szzo/DF3MeaC6YNUyjwT8y7fFdwSFEnTkrHSlRfS9FDeNOPYYj2UsfAfKdZMfXCjP1ynNMIvTKcYMA3NsuThh2x0X7pxl/Tv2rI2Kh2nKaK6amLcv/IvXdQusLDQyqn6EpSQCI0ANAl0hbcnOGLlNs9q73nVCMWmsgZEVvhcSAO/baqZT6iEc87jYJiJ5uzZxYuqMu5XsXYoBgWwW7q3AatndIlWFN/+V3V52kPld8gsA== 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=O+kmFUo9nfAFnzQGF3b9GuIWp38OO1KLQYpCiAH/xHs=; b=aIh/4YzH+gTuVUMhKr5kwy/nLn3iz7z8gBRKEGhdrGJ70nTscSP/EURqhEN7V8Tn8kuwDjoEAUxtfq1LqglahB4tHn7njM1vhleLRgwliQRrUQTBJo2oB+lCraDv53bowxj7ax8Uq12kH2GxMM9bNToDr0MRtCVsCA+vvs37vJYqjwwXSvyrrNZ55uREHBg15KuqYb/8k6peF3rgDb7GDCkYkQTbPaSMQa471R9fTbNXLIHJPnNuKVqzMFb18WBBVSwVF5mu7ef2Bovzs+brnpOoauNJNrxVHj9SRvA0rnG1i49OTSSNxL/N64FSbkjDb1h6xZGJW8u/EjQG/TOWkw== 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 PUZPR03MB7234.apcprd03.prod.outlook.com (2603:1096:301:118::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7719.26; Sun, 30 Jun 2024 07:36:18 +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.7719.028; Sun, 30 Jun 2024 07:36:17 +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 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 v3 0/5] Add AP6275P wireless support Date: Sun, 30 Jun 2024 15:36:00 +0800 Message-Id: <20240630073605.2164346-1-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SI1PR02CA0056.apcprd02.prod.outlook.com (2603:1096:4:1f5::7) 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_|PUZPR03MB7234:EE_ X-MS-Office365-Filtering-Correlation-Id: 34d09a30-3234-41f5-7cf6-08dc98d7541a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|52116014|1800799024|7416014|38350700014; X-Microsoft-Antispam-Message-Info: +Rj/YVqw2Di7gN3xIpqzqnGwH/PFN68GfcBI00iOgxk1o6yB3meFsEDh6PFGhxXL0AflkXurMuRu2okmabIPNmMi6mVydjznFA2SpZncjURzq/8KeUSw9vCo6lCdsyvXIr+7m4eCMVDDvhE+4sa42XtwhRrUmPbAvwNxxin3monxYyf0rgcNH9+03BNLlryWFyrPF4PA2mwQTZmI4Vp0YXHH9jcQuViXu0hNS/M1nGAd/WtD3z+1Q6EJRMTxSO9o9AI9dzxuf+BXaY7QeT1f9DA79BExOQp5xwMM3Itr9pGy6NXtSFlD/u71G5uY+fd85YjDPzCIyS2wEKm/CQL+8Ezxqc1Jwc2kjXcg+G10W0yrcWAGNPImbgeRQZQBh7hFSA3YwlCMbksAvTJuXL24V5biZxFL9uKEjq1gT/bGa5WEjquo+TNktwGcOWvEfkqlbYAAZ6QNTcyBIp9WeRmpVVm5/l+iODq+SN0OTHHbqfwoh5sj6HWbCyWeB5nr89bKKVGuzS3AIQ0oXDHGlxeKgT5uNgTWviVEjbScDRnxVAkiJkE/qf+5n2148+sFzfWd3YrbRVb8DQ8M8l0oaOeXwrxSLjMFF4W3NIzjvF+0c+CLtN0FACzjz/b7FRx5U+TifzLiKfmemtDOFjitTNtnyAfHlmlOAfRAcOv+9bW3dNngX4iQSRrlHNQRmMQW6Mpk3N/pc5AEW5VIUy8Pw8dnV/GGsEOoEhxX6baI6qFcDsAT7MZUOF8CevobVZxIrQNp9WD3k58O4Upu65LpcomXDZfX+MhXUxMT60TzS8B041wrHGB2/lhB7+xxUs7uddBTJvezdgml3ypIkDLZI3B1o3XsT3qf2V0wfubk80Rp7X0QUbRTgqxF3ZekdlcEXxtzNuPxePAeaQrjtc3865rG6nAwfDcSYNQIVfeMJWD1gk/XAgYFUwZ6/uuQezUhJCX17ekP90637dZMgXqsrrgB2zrJ6SJ4TP1o2ZdrFALu35M7FOoy1gx6y67sGigaQYaGujRFfGC+s9vAXJ3XiVjAoffbkoHcKXKA1VGqXfklC0k905J3jkMG9LHzjjjZqjmwe3GVJprqGJCuheqh5gb0SEKYotMvtwktKHzUm7cw1oFTN55Ss7ieE7JofSkKqPmNaTqXFG6dccphedaUAIZJLQxIU7mf2tAnpPhbOZy86g5jywoUYcsP2TxawmtyARntlzq9fp6dqJN5tRSkuDJQP2aiEa+JpUe7W/xs+0mOahHPjcgb/nJw3kpD1TiNOR14lmPi4u0LROUpM6v7IuxkGoiL3gGBJdGp2QM65EnMU0AghqId6KcIgsHn+GlY/HccU3BgR9IjHapyw4pycnqlhAhQ7b0kzLyD9C8+MbYbwxY= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYZPR03MB7001.apcprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(376014)(52116014)(1800799024)(7416014)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Jx+4Gojk92A6zhpdON3eReebLsk2xV+0j3ODNc7/K6hSTEe0Oode6wcC9Ct5IJM+jk0U5HxYgQptcL4tvMXq2VJdBHsTBBCq74k318pJcWeRV2OHY2qNnAoqqCzv+yVMbDpirU93eHTp1pU0mRf203kLcSyJj5p7g7qxNliWnpsL91Yw8RzwUZ54FALj2IkZGuUvYT+NwiLMLM2M2dulA+DRA7DBuA6N/C962J5TEJ/Z0qYaS2ux5C63dv0eQLlfHQERG2Eejnuph9gtlLjENvQH8YvA0BmI8pb/CvXX8TCKudhpy2EBxPZaz+HpH98lfyVNaZ89jPkp56y1fVtucTKmnA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BM1f6r4V7qeExawzVkB8I40uDY4EdNzlZmEvU1/JeqzxJq8UrJcByOqGz+Spd9d3V7T13T54RsWEKA1dkUaX2mGaHV5cAHqn4CbYjOuCSRaSE5/UPqgNAUQ/otAhfvwRSog2f9pyq13RGxblF+qpY0jNYrxM97VlZJ6UfqCfNkMI15PTvP X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 34d09a30-3234-41f5-7cf6-08dc98d7541a X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jun 2024 07:36:17.8487 (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: jF8n5V4dffTT/YRbrj1Di4S2L9Mrhd8/0pPNYB7ARnwOodM0otkWI+PwuLcSgsQFlS8bSdLxdthMZ/7+e8T9Tw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PUZPR03MB7234 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 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 support for AP6275P .../bindings/net/wireless/brcm,bcm4329-fmac.yaml | 9 +++++++++ .../boot/dts/rockchip/rk3588s-khadas-edge2.dts | 15 +++++++++++++++ .../wireless/broadcom/brcm80211/brcmfmac/pcie.c | 15 ++++++++++++++- .../broadcom/brcm80211/include/brcm_hw_ids.h | 2 ++ 4 files changed, 40 insertions(+), 1 deletion(-)