From patchwork Mon Jun 24 08:19:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13709147 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 54639C2BD05 for ; Mon, 24 Jun 2024 08:24:28 +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=TPCepCFDuG7wTrbdLxCVZG5zCHntp3jvdgEz0m7nqtM=; b=HMacy6mct0Gr9j BVPKS1Rto1N5TWXO2ZkMMQSWJgTk92HH4jPONIgb6SkXXeuZLePYyKKidSroWxsfAfpVfp7JxODfN 821oGscp4VdBVpqja2B4tRMp2FcMLRLtoXN7TNmOgjkcKVeWCLbLzgayMqCi4QFU4YLT/NTd9cVml 4bsfIfxnMRWOS2MNFm6lm9lHWMMobhUF91uyQC3JyaH3G6PEdwMOsJY0vdxCB9X9g6WEjWmn4yqvc xVQp08P01gcB+wAcCOAks/2XugdAxcILRVKo6usu0oN4aD5z3TUuKYM9Q/ADDH03qvYBmgHu+Kw0Y NNkBKRXKfNj+RoP11Eag==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLezv-0000000G1lr-24hv; Mon, 24 Jun 2024 08:24:23 +0000 Received: from mail-tyzapc01on20701.outbound.protection.outlook.com ([2a01:111:f403:2011::701] helo=APC01-TYZ-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLezo-0000000G1fM-1NQV; Mon, 24 Jun 2024 08:24:18 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mu+cuUNlbW5W/u4PDXm1a3VMYoSnEK7OTF5yO3sJPYmQ2YVnKchfJ203M3dyL9l7I9PW9065dolsWSJiw8vTd6lNfDTXA8hvp6fMMUeT/TD7SMXGgsb4lStvap+SD0eeYN1C0qqcjrY0Z4hTuIaP3rJyVXY2zhOtpFwauMy8iFp6tZmNgq5sXVwOGhRmaZMnI9w/KJXeSHnOic3N9IeYA2Gx5IMMQu/Y8+v0W+3bn3M19xj5tLPzNhreaM7Oy3yhMQHrxMQQM8/GJH69/pSzYrLof4O0rDiH/5MeLV5ONkrEam2tZjRAMrQN2TYSMG+viacSk3JmjHLPg6tSNMfqhQ== 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=juuH8EBk+Tic8J+hbt5CFfXz8AqP6gSIfPkz/EGfhv4=; b=FWQwGzlGM0x5DGqzqQwEluJjMCrL255aAxiF2iho8gdlwNdkspAZ3no+QBB6ZEbhEOIjshPj9+rf4mtmC/dTO7lppiLtlOWNwgqU1D3y1HPgOKnxj9ENl84ab4EHHduyRezJhMg13t6+FYHQj7EIY0Zyi2vxBsY/2VU+grUWq+WbTa8pU2ice2KXeR3Rawzo8AvyO9G+xky//8kCytK8p3N60xnhh+zVy7cE8rSJpHi04MpuPiBjhLln4m5Tn+cbOTFnajYUImrK7ZNKz3yGb3Eg+PjAaFe6pB6oOCXRFZYjPdOCoZscMnErkvsLH9tg6TVAtean0HMXysjr3M2Nog== 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 OSQPR03MB8600.apcprd03.prod.outlook.com (2603:1096:604:290::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.31; Mon, 24 Jun 2024 08:24:04 +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.7698.024; Mon, 24 Jun 2024 08:24:04 +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, efectn@protonmail.com, krzk+dt@kernel.org, conor+dt@kernel.org, heiko@sntech.de, nick@khadas.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 v2 0/5] Add AP6275P wireless support Date: Mon, 24 Jun 2024 16:19:01 +0800 Message-Id: <20240624081906.1399447-1-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SI1PR02CA0054.apcprd02.prod.outlook.com (2603:1096:4:1f5::13) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|OSQPR03MB8600:EE_ X-MS-Office365-Filtering-Correlation-Id: 107295d6-c369-4a1f-0154-08dc94270232 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|366013|52116011|7416011|376011|1800799021|38350700011; X-Microsoft-Antispam-Message-Info: teDlZdTw37l6+Ns/2o/8VA+e/b40AcZZ+gkA23iJA7CDW4zDpYkYQJjcoqSL6fD3g1kSf2A0c/MOAhEw5wez2uyqdHtX+YwfcX+iZ7A0SL8MyukVd7d691LKaVNnN3RG2/ME0WTl+Q4eidwHSCRsQx55KSbXNGmTA6J0LCbj6c/QvJ26/SDaXj9E55ivSq9mfMVgu+wpxqKz9xOknCqV4AiswICHsJSvjEA4oy8a5vpEtuxn1x2MyDTpuuIM2noEO+1sySueZBSveaJB35pPPYiZ7wcD/h7c1Vq4MgQ58NvgRB9qA4roRT/8TCoOP8hMbQ/nDbwuxEs+p4fZY+Bssum1RCUvr52v/qYaKkDU+7CcpyjUDC6esqR8/A4CSysY3T0klw6ayqBStppU6MuZYYKVAj6tTnAq9UPguIMknpA+PsP6hfyIcGPrUIySzFdSpENFgM6KoDLHVKl72WrckOi+K/W1S52yJjx365t9G7vdTLLRZojf5e+0fQisRa3bMgVRxTu0Dv96dIiIP97DHoqT7ozpNaO+jQgMNJEm0rNDBEqVSB8XRWNLYraAwXZXozNVLxziE0oi9ibPUnrivGtfSKJKnzKBIfeWDKZyDDvQ44tbYBJDYTRfl+0ARFYJto1j2i1K/AblaBaQw9SrBr+4af/W4U9sp4Bz44qHjLNH5JQb0MID/qzhBpS6He4EFiJh5A+gaByC0ksqcNbM4fqiQ0QzHsK1Y36TWYXWSS74DhARZ/aol3JG6C/JFZZu7RTfe7/oiE5zAbZjoYOEaQE49CTwnbvuPocGHXzLkRctEdRbAsAlpwGXH8xtV8YHaBoO60kkq6IzsQr+EJ2Q3frerCq92O6JHWvZicLHbnH5hwK6oC/hLtKlbNQYQeJoHF1UbUaWf+qb38WSfy0CjHNAcx5ipC9NCS9jhzA/qP3jMug3EP0z4q/7bVFdFnLi0iblNUembwbPcgLjMI3MJFmsNjmVgeKxXN2Z1UhVlJwak4BgHUdxnfEI8CEbCOGRK7G4ZmJrJTNdfFhtioDRPa3B6AZ9mTb12AEYtp7k2ILa5njFfRz52/ELSg2YA4FMB4gJmQJjYLhfWRr1mvhELsbmdZQ39B2iZyvjsk3bQpNItTBZWKGZw7Am/dSsNnv3NOyZRQ/SFW/duqg4Zed4FaEttKMgEnhNn3zSavOJE/JDMlcPjfXYaba8eab6k2Pk7bqsMexlhYppUiDUdwjr/hGI1s7eljfBr6eZOAxvZtYlFuLjrtxh2j49vc7kkqiHFnP2wjjpRhxMjgP6UGo4+HW0q74M5eU/XLTtjHweHGKeo0mqA+IsfWJ9iFeJtrGh 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)(366013)(52116011)(7416011)(376011)(1800799021)(38350700011);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: L8imPsVDQlyY3wUJWHH/ZtGUMWO9CHl2hM3YDutZKaLqrf7RB1VOSvvoQVke4GCOHzkyQ5NgyZZhavY3WniGYN2y3Cg60VAFGyyXZmsUKeyQHtlBfot6p004Nn0h6ZwE43808VhPVZjn/+J1bwsaR4NlXAtas59FgrTEXCPC09cf1Iuqt/K7W5hem4C9F6OOqBScwJSpONgIiqXZZT7zX4BIqXXiquLmF7c/SvkLApG5OL2AAQyAuJxiSxzbiSj15gD89kUuHGhE1RpkJvUtng1za9Xjraup43YVbqxrnIVA5oUjhizK9gw5aPpu4t7XMRalfJB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x2d+ba+jzKcohe58pybiV5DYoYXgesvjb3yO0OtQsZ+p9HLwj6aiFkZ2aHwa7WLjnW+jXHiGbzP2cuF1WBhw1ReRzWETC328ZK/D8Re8NWHBOisL8YVE/wj0WWtCqNl057oELhH7Lia4E6CXVf3/VKDhfnpS+/W5XQEVsAN74LoBWhSLffM8BDnqIpLqayVP+ X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 107295d6-c369-4a1f-0154-08dc94270232 X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jun 2024 08:24:04.3179 (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: aZnNziaWusU6gYyaOrco5uChT/HppKa3swgKajHa12BTYnqxlczCsJxu12Jm2tWiFK031ma2hng14HQOqRCEPw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSQPR03MB8600 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240624_012416_384599_294A556A X-CRM114-Status: UNSURE ( 8.50 ) 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 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): 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 dt-bindings: net: wireless: brcm4329-fmac: add clock description. dt-bindings: net: wireless: brcm4329-fmac: add pci14e4,449d .../bindings/net/wireless/brcm,bcm4329-fmac.yaml | 10 ++++++++++ .../boot/dts/rockchip/rk3588s-khadas-edge2.dts | 16 ++++++++++++++++ .../wireless/broadcom/brcm80211/brcmfmac/pcie.c | 15 ++++++++++++++- .../broadcom/brcm80211/include/brcm_hw_ids.h | 2 ++ 4 files changed, 42 insertions(+), 1 deletion(-)