From patchwork Wed Jul 31 06:11:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13748090 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 094CCC3DA7F for ; Wed, 31 Jul 2024 06:12:33 +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:References:In-Reply-To: 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: List-Owner; bh=PEQx8QbLsSdIUkl3dYwTwp7vEpQEiYg9gX5/TXMuvfg=; b=QHgwPcaFLdKyfz DEEyqEzS/Uw4dqD6147GLG03qzHF74abTBHKE5ELX3ilYV19YkEqD8Yw7eciBsmZg9jTGiINJUQWB gHfZYG/3CKqazaclKDFNws+2d/KfQYP6XkT7Rf4ObOItWRYrW8P8xNeONYq1bEMBiCBEdgLPd5/r3 mNEqstFXE8z/0ZgiipYgxfnjRPJXIE2KePPLPqT63pqa2hnfhGayTbT/OlfoCSkDX93WoPOPOeFCv VZ5wUInDi7bf3O0yp2Gav8VCcOTrvYVSxAk3rVNn0o9fIXLi3pEt/WROF3IEpPrC8f3WdaDRPHNar NHWnCfDhCaMYpuOPwkrw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZ2ZV-0000000HTLD-3xah; Wed, 31 Jul 2024 06:12:25 +0000 Received: from mail-tyzapc01on20700.outbound.protection.outlook.com ([2a01:111:f403:2011::700] helo=APC01-TYZ-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZ2Z1-0000000HTBU-442W; Wed, 31 Jul 2024 06:11:57 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=PsDwdHow3LQdXz3ydpEHdx2tW7ghCunasHNk3PPrLBJJE8iPZoux0iXfySX0zto0le1hRykMYN9W1fGjfECGwBUCdHDr4q3hHLrFDsmtdEqMSYUbJnrSqsX7+VWyncSLvIuVdJv/Ku1mDoAcazG3SENZMAepXsWW/RlUb+ncxV+8+XXNT6Ic7GM4+u6i7teLT/ZrE1zCNWRhDAOiZmuKeZkWy73xZnFpVVwBIH6/wHbkE5AJAQmmG3G4JRmQud3quyXByITrUj8BhP8JLMZFto1ju29da6R8+iba6UXOK8BxtVtqa76nXG+qEStTtJpbPv/9XXrh+3fDb2vgbm+hZQ== 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=n3ZCKui3FOaZbR8MmUilWzOmfwqy4Ji7tdvVIJh0aaI=; b=NZKruUmc1bPkQBXxRkmXcff5hn5CFthObmFWYi2AlGBFOHWdTyQr/+9SeIJafngnsFWR+PTPLGDXvp1cbv/vDNGO8C3tKDvZNbGcoNk0sk+Cvmgle7GBskh4xhQOeDg+3OcHdVpDoSLiEYuEeAIKO1PTQvpCevBTqPBAbjP8dUWJ/YejrNNMcAipC9ZbF3kRzLnbLnA0YIRt4d44/IPI5FCR1VdovrXM0vEDsfw8hdaBsCXVgxNhzVc3SuMPKWiBwNLycPgm3KDYm1IlU7hu3YSnXi50adC7ROcy4ueZYO2nJ47UwA6slus3ZNF3Kb5OlPZGo3bmgfPp3Yh51qMPjg== 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 SEYPR03MB6580.apcprd03.prod.outlook.com (2603:1096:101:85::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.28; Wed, 31 Jul 2024 06:11: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%6]) with mapi id 15.20.7828.016; Wed, 31 Jul 2024 06:11:47 +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 , Krzysztof Kozlowski Subject: [PATCH v6 1/5] dt-bindings: net: wireless: brcm4329-fmac: add pci14e4,449d Date: Wed, 31 Jul 2024 14:11:28 +0800 Message-Id: <20240731061132.703368-2-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240731061132.703368-1-jacobe.zang@wesion.com> References: <20240731061132.703368-1-jacobe.zang@wesion.com> X-ClientProxiedBy: TYCP286CA0178.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:3c6::9) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|SEYPR03MB6580:EE_ X-MS-Office365-Filtering-Correlation-Id: 0cf383a5-4068-4b13-308f-08dcb127a8c2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|52116014|7416014|1800799024|366016|38350700014|921020; X-Microsoft-Antispam-Message-Info: LEJWwkAworILPSXlg0CXd+RVdQiXXK1waYMZ8omvU3iCpIj1g8KdkrTvzNau6YHr8Er57FgBjeOb3nDIjVKetz9fEDNLhu1zmLF1zCzl9F7fTQT8/f7zG7V2HbXINOm/5GQ2a3xJEAsThIdpNopXfQHUEtgZJDaWZ7iJWOSS1szvp5i+ArKnWhbH6WtIEcFjkOZ7stMUIFl/XYdfREXyYZ4ipJu6jDsYJDhZWAibAKfsrAQ7uhiT6kBLavqxQ5eyiEwIQf9QnZfHAKQafyyaKEb9GK27/t+BjDqP9vS+mtd8ZfVum5HU3G0ZyC3s3uQjpFuK4fCoP4b8JXnfVUhbTLUF+hZW51l4wtJiJjgn18VcJZUrSdiRgdD3n300y5xajMvqNu3a3SAFKkKCXxAqJUFAiL/8M/7abjtxCxCHKrg8zOVor0hBzuxRWE7rx7RZ+5avuyvE4Y5B8Jqpb4GW8HL9BvvRiLjLJ4r6ptZJFhiWIk+I9kAzdprN5x8tbHDC85gzKsUBDXBGg0eX3hdmxfhyvachrCq8G1Yekk7+sZ5+rVXF7Wwf3yoCa+KTJQaoFFfUl+RlcGAlkI7hs4BZPYIdVugqt4vpgyoyz9yduCy4gg33q50SN7VQjCCYpZYvSeYMa+m73sMg/LdxsqC38ONNkuFFXwjze4U6QMsLZ60jvYNBZFXGn50Kr+jM+wc/BiEvD2zfrBf+yVENSnvUYM3nxWfwKo5WYgc0h31RliDHUJcJfn5yDkV20dqas0X2OMOG4sD6Gup0Z7xFNLrKcyB+ZaJVN8Tsy+xcjuVGhvujMgthT3s+KIyaa3PcSrdiYKG2r3M8iGU4obyvT2uD/h2Vk5O3XzQV+iA+mMo1SA4L2eKA7XOfmSEKHiPm6Hzq2AHPveVjStPpOO5HMacvhC8mvVP2ve+2op8HiL22GJXTjOiRkOFi9QQeXgwJCzMQMTZ7/qJc39hpoFX0cDXoQTB164SeNzLXne0Dh25WPLpoRfY6gOLSiaiHF0MxbAvw3yOInP6XWhAoaUsBjNA5VMx09rGF4qhBSquVsFZ4Jo9dKOZhnrcokufz2BAeDpYQz6DLK5PMp4y0P0Ao3irposptneBVbgQThsCejVSw002w1qtOpUBWEUooAkhh1MjLlgAJ46DW/AZbhrFwXj9uQxagG7acNr+Nq8r8uUVu0z4K+vi7Q/Q3zgDeMeA+fVaP2v2wQA+xLPv4l1K8aPhh7Ka9Ivrxpgs9XkH0SZ+hpQLMA+3xC28ULLhq2SQOGdEh/HuRkLiN/fmCAnwgn2bZYFhSpWB/Bzi+qv+kwMuvPNJgki392t/472jFhEMHOGV7APh/uaOjz6Ob6icpIH0/+kU1uoTVWwLuMq117OT5aqaJZ6tMrjMioPX55szoOIhRK7sND9/fMKroMprZOdvV5v6hpAhPGiKt35OGOgU6INE= 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)(52116014)(7416014)(1800799024)(366016)(38350700014)(921020);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 9uQ/rD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JTyhEGOwWxGtArr7sPPAB6pL8G9aEiH+MbqXQNpAK7clRbXX0mrN4/a+WWIORUZ0mAPUKjFoA5AFnea0sJkzH1yHbJKrwk8vavH8pyHwYwVD3v5PNPseeh8dksqK06Wnfc4DBx3R2OJnpkVeNn6Kt4VlxWrZZG6owSSt8rxGQRDehhSk/kENf+t3n/ctHIbV4chOlGBgX3bHEF/r8mT5wyyD86a/EaiANhyndXzyiYABXG5Ak0UG7SrRCHBoupKMTXRvUQ1kSL6iCarMjILK0Ykn7fn1Lq6AVnVA2a322UDWfpG0S/jjWdXpuuBxAmyDfjToaQWwUGU1M2MPFqWPTdz4bFMF+2202B18Fd0vYSuukqSHlOTjZxMlXDrvEQF0FNoMoCrGOM5YD0jQy6vWIB5/FHxUQPG/5jkk1RfkMKPLZzhKmqbaT2I6u87pOS8mSjxeKT21SNC+YryoAFCtxcohgc7f9xwknhNCkA1lU88+1yTMWmN/qvnfnTC6k77HA2lFS X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0cf383a5-4068-4b13-308f-08dcb127a8c2 X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jul 2024 06:11:47.4610 (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: 1puHxDxTHMPX0zDTdWerUrIbVZ4sdNnjF3kYNBjsvfb6KBTZgaPyntjMC39QKyAlL6bKi9n8WsEq/gL/E0H1fQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR03MB6580 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240730_231156_030056_698B67A7 X-CRM114-Status: UNSURE ( 8.64 ) 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 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 --- .../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 Jul 31 06:11:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13748092 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 A6734C3DA64 for ; Wed, 31 Jul 2024 06:13:20 +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:References:In-Reply-To: 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: List-Owner; bh=1zHAbNDzlpL3uEJFwMxLj3amApTrraJDvesPcK1VxxY=; b=aFVzEjrzj8tTzs 1vEjSL0S3BxZihErG8ahSbWDhv6syvc+9c+jhpPxmJotyz0etkfTlpXKH3tjCeOhx0e7mU1gIIdBv jaIqRY59s75IWrvEDsqFShPFVKNC3iXgivLeIdk5ap/kPGnb7PiQl2prOJoXZQHwdrL3LHbODiMaG tawYb/vS11/nUhoz/24Ta3nrHbFXcZELK2S/uOIJHd5DUoCdv1y7t5mAw06/xo1KN6bKfILW2dBGY w+GERV2pKzzmEF82bCRtreYuyFYp6RpwCQ4biTTc2ngqRE9qFTKdBI1FHDuiKUIXwcVWg316/ri6J eQa7OunLe7R/Z8Kdmi/g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZ2aM-0000000HTdc-1H67; Wed, 31 Jul 2024 06:13:18 +0000 Received: from mail-tyzapc01on20700.outbound.protection.outlook.com ([2a01:111:f403:2011::700] helo=APC01-TYZ-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZ2Z5-0000000HTBU-37q0; Wed, 31 Jul 2024 06:12:01 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=tBAQ1eVr4Mdy2JMv+WtpaoaooUo+zf6SmBsLRf1y3uX3Hh2bmpJcqZtDdKizGYU+VtIflm/NEaYLZTN2EgKt6pEqqXKMrTADKeI0NGuytc8QBx1R1uF4Fr5qCbsqFKgJyses/myuyaZyW5psfOC/gfumY1NFiF3T5RxhcTDn1UeNt7pn+Qg7aId0uhw7cbztkDZoNtXI/usMDEXp6+YgG8eUIDTwcM7lzvn8CxFA0dzOxz4r2gXNWH/tZCGMnfryarMh6TDnGELqTRNa27R+IC6XrCw9iEQIckCREVWT63ZdZjgOS3pJk/QxPkhVnIiqxhC/PE7Iq9FcOC5zZEqDfA== 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=1iPX8WFIoQ4QXgUD/qR3fD/Finzms7t/FKq4XAi292c=; b=CPG7uBJj8OoxtB9rnYmcYctb7p0iCL0gpjwN39IBx7H+0fFA27RoRiwrT2kEArwLQQwTyMsKyrj0iV5FVePeLKPftyXxJ0hKaitewJNHtBnXWeedfi8esl7oAQApcHiIJgp2haHhwb3pChNGLwKcWLy9/1HtvBTe+JvKvxxX6hi3SR89MgFalS6mW5wJRVFwcjEkC2PhrzlMrdxHj+gF5B0ILCz0T42V8FfLiTtN8Id6ZjvH2ZUlZG9FPPFyoGepgkOS8+fLDPqaMN+NZbv4/dtA3nCEj8NbyWr7uvgfNuZ88r4MuIufx6v1Yp2QRuX7iv+y8fxSkQGDUBFGYLSd4Q== 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 SEYPR03MB6580.apcprd03.prod.outlook.com (2603:1096:101:85::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.28; Wed, 31 Jul 2024 06:11:50 +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.7828.016; Wed, 31 Jul 2024 06:11:50 +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 , Krzysztof Kozlowski Subject: [PATCH v6 2/5] dt-bindings: net: wireless: brcm4329-fmac: add clock description for AP6275P Date: Wed, 31 Jul 2024 14:11:29 +0800 Message-Id: <20240731061132.703368-3-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240731061132.703368-1-jacobe.zang@wesion.com> References: <20240731061132.703368-1-jacobe.zang@wesion.com> X-ClientProxiedBy: TYCP286CA0178.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:3c6::9) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|SEYPR03MB6580:EE_ X-MS-Office365-Filtering-Correlation-Id: 89709e8a-9912-4d8c-7bff-08dcb127aaa9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|52116014|7416014|1800799024|366016|38350700014|921020; X-Microsoft-Antispam-Message-Info: c2zSIvOg8m7XLmDXAWxrAFwgK+nZ4yd+WsRMO7yAH4VkMnzeP7s4ppZKrPGYz5KgcsOEREXxE6MkV1creIvlF0hkkrv5tdBWS6ZeEYDN0NnZnQTXuCO6KC/MqrY2uAIumcgk7mMZNqfljBdrd73Ry1FkPibCrWoDZgefo2aCySx6nOwEjoxymBtq2xcg7KRLssdiZ0B/E1fa6i9zalyx5DwmGxP79crUgREcgJLo+Qa5zTA68l4jVFqp3vGpWvhCi2e/ZwRVMffunv6c0f0kPEb/fUWeGAEIfrf9wXDe0GRrMa+101sDMQeolrH68n8civ2OWgb6YJfhIa+UYTgYwfHX0SkEWGe9UXpdOYVa7/YH60cA00zVHKHL3JgyyoY/+cly/cjnjfme7qGyPxRl3+Z668eIrqrIvhfrcgIRcTSLuN744ryW6THiXuxz5sRfjMEIaEIpszkml4BZcBUY6fePkyipK1x1gPwYjc5ZcFV8QYnKcIyIiXWiPrBosd37J2RnKHbwp5fVE8V/l9Bbxwb932hoPvpYOjdGGWJHiuWyaTufGhpBrUzStAZbjrBWw3FXdeVYjEd7/zceEXAcy+Rw0Cee17wLmLBVw5jYR9gbyM1FNeaNFeo3z3Dx7CQcoSgj6Sgq3bYjDdwBTRpW70KrL3AIzIpFhM2MKukhgP/i4xrb9je53Eyp8dSxaEipwvHZ6ZnW9HNGi/vc71sCO6J+S5PZWiq9TwNIAXF+W//7GwgwBRf9oQ6GYFDcnZNgiNIR2z86B/1ORqcLRQ79cdDcxewcwFqD9RXQCn2iXPovzHMIozMda3N7nmtWtBwMiiVtsDqD9iIoDaOq9aDwWkqBcUSuJZx5RgzkfXG3LsdAf3ODRLJcx2SifHRpqsmRwOgAGqU7e90l41sCHB2XfMUFMnAMSY+Rl0W6Z1diJSkfWFNIbUdhcP+NvTrEFKmAX6XJJc3OFHKYSkO8XaOEllSqaMcRnKVJZUAvcSByWOPhkWnU2n2GCY+yjnEbl/TxmHXaZ3h33YVWDmH+EIt/lLOLMGii0D1KFDNOTPvfjZYYsTDJ3wWLB36whI+n6eTVmwD63qUVtP89B8DSI/0YEIOH9cdPaCX5ef738VAbHmpsQG/XBgD4rWyoRQC314EZ53wID7TbWnYvHXJpKFRQFIumARpfGL5s+xJ9zd6Ljc5flJcVSxLnRfEOUXkZFZaPQkkw1JQglhzDmOJ6E+h50SZ2uMmbbPFp9BVkxgcBLMCun36Si7iQQCkzALxcJzuwd+8XLpb8gANcwnZjKuGrFsUR93BOl+LXIn8vecCYGwrkVvhGXxcmbB6AIeO5BPB862yFDa+knqdhPZ4lB/6lFi6GgWW2Jcie6pU/VNV/FLL7OosDoGUIcuvbEZwxaXwyO61OUY5RayFYBSCxiweeVVAFPXt9KFeZoSThSAN2RM0= 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)(52116014)(7416014)(1800799024)(366016)(38350700014)(921020);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Yk5CJZlChHUzY+BKA4MgXnCmYp50OmX7ksOe94aXJm6kZsilGu3eXubH1eyGiXQRS7WKg1e+5epO4MECMG81vBVK3fLI61XtfDELDoqGMMFAd5dUCiMKwQyYNxGqo8lUcnPrVp025HYMeGKSnRAiKgj3NmEk7Sxlp2rwGe4glX+XkI7skAlKTzf1uNB4QNfcJvZN4iTJs4Dr2FX8mg1AmkTJ+jtXN14lH/CNeALxt/LRezxJs4VjRO1soR56f0oIjD7kr+XrtrM5Ffkdpg3r81LUfVrDAbxnHaprKXwBZfFjDWMqsbhkJGXB5C8ai3zLdWDVTfSxJSqxXyDTwtNw8OD0ZZvQQojoZ1I8sTYljP6xzPLcQTOR2FzxNtmNxa059UxsJAjI6RL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Atr3FlWFfSA/P6/abAiCIZITqNrPVNRZzVmVD2iQ1BZHI2vKOWVkJ/24fjX+Dfy4Pd+FyasF6vhcY2wQgvWDkV7lAU07TcGY9i+5WYFRxkReR9UXeSU+NqZi0hN+ X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 89709e8a-9912-4d8c-7bff-08dcb127aaa9 X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jul 2024 06:11:50.6277 (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: zDGdw6exA9OMel4Nlbo4e0P6t8b35dYJoW0BvjSDrB2L28iX53SFw5qP9Kocg3x9MivgBP2epsLD05QdvjZE2w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR03MB6580 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240730_231159_834877_26A44281 X-CRM114-Status: UNSURE ( 8.44 ) 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 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 --- .../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 Jul 31 06:11:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13748093 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 4B6C5C3DA64 for ; Wed, 31 Jul 2024 06:13:47 +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:References:In-Reply-To: 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: List-Owner; bh=VY5QsErTdmh3Oq/fyviPFkJplqjLCXZo2+Cmd612vYs=; b=IpJ5opQleSVimC 4h59g++YwAnUuGYvLMghjd1LNr4v0YtBjn0pytzEqJHgF/6f2JgFcwpe/qMqquvWZqDSTWd0d53pX JAn40BaiQj2AnUe8Ovg48aoDhSmXN4MuDiU5DTrgo4js6zU5YDN5EsZwhnYHNOakyWhz1vdBWO+kU zgrV18mYikqF1e3rs+63Lpg5dAf1bQYuoDgyKl6Cbd0Bw6R1bqqIimDleUZmSxJoY3vLVuIMASlWl lonlymjtB7SfgwMNzL1qgVdkFNrNWvDsg9VdjP/xWG71TO/dfGH8GDIFeVYtyTsLwPmmqdtRHkxOy mPcfYAYZV9qpB/+sHflA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZ2am-0000000HTnz-3mcb; Wed, 31 Jul 2024 06:13:44 +0000 Received: from mail-tyzapc01on20700.outbound.protection.outlook.com ([2a01:111:f403:2011::700] helo=APC01-TYZ-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZ2Z7-0000000HTBU-1p96; Wed, 31 Jul 2024 06:12:02 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=s8WP7rCPy5X/O4N/MqTupfoJTTyrka5NUg4PLCiLRqjIKxbA0CYALFnIlQE+bux+Js6m0a7zT4OyvdO48F9qT5ElvDR55tREvu+vUgNE6m1TlrJPh5TXF/cF65Oa6V+S6XhN23/csErlX9yQLi/7IsvHt0IelwzZxLoUpjIt2G06SwbU5+0LFG235j5mkco88L1IitFg5+VlIE46obkJ4fzIUXFSUshLkOpLQngZoZfUTzo+Kopb0s4MR7hG8q1bi16cspDMlIglb5LbcRMcwE91FJ0HFUnD82NgvrGjjxC/ULUgKWjYTxJUfDIGVtzyKKVrjq9nNbFacLzr7BZ0Bw== 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=GDLszfaTiyXrVSeO5bo+Fx1/Lx8KsLrl9pfpXaKrTHw=; b=jhzc5LBJPXMAZ35rGC+JH7/zn+6/y7Jjdx7SQepCOS+nY2iUBFAc65QHOUTE5wnlN8n61K1mcniksNXxNnd1glIBqTLxILFzJvdzPUEpuL2cy6rJYmyiMXPDsQNLqPHh9mN3ss2N6+yKBYPrAghxTTuJ6EpLhlRT6u+HK2bDvDb+P7hN4h6x18xqa2sbkp3q5AkAJ1gxWo3PlhT+jghbSr+eHlQ2T4GDW5YNI4sbxyHJtIrwNNx038xEHsbNJUPFOpgKgSHgpXxWIPz+oiGwXDbBWZf2Vk2roZmyE7iuargNaxuDtNUsLMRcXTOAy2type7J+m1DNlN3xBO6zhzAYw== 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 SEYPR03MB6580.apcprd03.prod.outlook.com (2603:1096:101:85::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.28; Wed, 31 Jul 2024 06:11: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%6]) with mapi id 15.20.7828.016; Wed, 31 Jul 2024 06:11:53 +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 v6 3/5] arm64: dts: rockchip: Add AP6275P wireless support to Khadas Edge 2 Date: Wed, 31 Jul 2024 14:11:30 +0800 Message-Id: <20240731061132.703368-4-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240731061132.703368-1-jacobe.zang@wesion.com> References: <20240731061132.703368-1-jacobe.zang@wesion.com> X-ClientProxiedBy: TYCP286CA0178.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:3c6::9) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|SEYPR03MB6580:EE_ X-MS-Office365-Filtering-Correlation-Id: 7b26d14c-8e71-4976-1e81-08dcb127ac70 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|52116014|7416014|1800799024|366016|38350700014|921020; X-Microsoft-Antispam-Message-Info: 146J/iJWz2eBQpQBKn+do3b+ohLvRDdkcmEbGwEelEKIOa+/+0pLsW57WO4bX/FucKZcvlNIPH8NBoYXNot2gy851U6DksBzymMkn/lIdsCDV03NbgW4LoB9DuYqPvEDFXH6/ala9l/hcG8Pwjurcftm7nWIUa7v9TW7i5ZlZ4vpML2UFXZZLwiab2s//9Of4RnWS7Gx64uPV5NaUi7moWlkQMMDFWBYPweVx1I+K4R7RWODLLq4T6rlbGoYKWaWsKNkfblWwiC09oInAKDr+6kiVR2wvf/GItb0/TLz0WkVlYmYzQOLEfkRaamZqAxc8Coh5s4XHu80h0W+0V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+INgq43tcaJbdfIkPoQ8urQ= 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)(52116014)(7416014)(1800799024)(366016)(38350700014)(921020);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: aU3zU4U6B6wXUMTDHiUG2lOOUt9krlavCOwbo86718loI8x9tL4cxFDU73th8fV7hzUk8YU4LPm1Tmu/S5mafUp90FdmESq8fFwuneJEtlw5J7fu8xPIa3QmkgjjyPbg8EtDG7J33TrmohO0eY/l9L69nwhe9kJ7OVUItwXGK6ViNz8TvrfpN8hlDb1Cb42E2PuDCQuAlRk4yOkfDNlePaTm4C3n1B9jMu3ZZTpAwApSRsEcRX9LtIQLUhSz12TtGeyqSL1bb7faKdZP9Mc2ZDfYO1bZ0xbhZuB3cL0PoVkVdYlxyT2pi8spBlDE4hfZR/n12PN5zxAHhZZKZH5+Mu+gyIRkypb68d0yqDIMXM+gXvd5dv0GNeKOzEbgp1mMTc8A4WtkbPL/54th8kShJJbPgourbF2n1+i/WQPQi6HJ93JW9RrKXxzmqU/m7Vkwc+zEptQHMbZWedNE6FUK8KaU0p2HT98O0TFkeLtUqMKtxzZTcrwLx2cke6eFldFtNk8YbpiBDG7IpHJ71fCnWRHYBobsuId/9gawwHNg8Ysf3LPcFkJKu8cmnNkuBsFDzcVSr/t8zWYbYoiwPgBCBiO+AlG1XRXuV79VLCqSeWiytdC8Lt6ZEg5Z/gh6T1v827yzWH5+aY4Gxgpijxxz0qpDYigarIK5tbRcZcLRwd2Jta6bKHoDaQjY1mYv3XVf9IsagzuXEsoiKAaM9sMR+4+mYp4eCCGTYl3dEGAqsIwvMEDGPVU6LLn5bTB7YfwfssA5YeE1RENJJGyzeALMSAoge613TJ7PUGKICybSjnLnLvrCTWHIhai1bucBx0+A4tL+i+e6Sc/D1YQxQHyfvNPETTKZQCtIMl3wSRUHiGduhvP0pCufMe6LxfVPMujHuUxtwA36iSNl4uZw2enICCqtptj5n5L7GX46q5l27BpH6Nr7FEoL2veuJC9E/8ejziXQyaN89q0TWt0SZoH1PaNC3Y4ytFy1usQ5JYstOhOQ9lpGeaI95zm8NvXfToOya82TgM62XPD+wxu0Koe3tlP5vTbWmVchPVqKPNuMv2i89s1cfYDSr+Tz65fZ3jhdIzn60f/cDBrlVTzqfY6UncgHG7xxzfzsSvZlYM25+l+lqNX3fbJhig5wGUeJ3DTGYI3HlaTJtQU1LL1ahEU1aTUibSf3g2yV9+o8AmMp3pIeVNpbt6vd+KjPhMn1dY/yFVaGHNfIvzARr4qbZ0LiurQROTnI7gceKSVq94/bMmG6wmTueE1cMJIGWNxuQw8mtYC7ExdqdOimEQsXN6cekknxa37SOQDtnb7UhcZCNoCGBaDkuhyMNuznZ7vYWcKHNyLCl9aOP9l2cYOW7bQlEMzxl9p/pdtZd0axWGDyKhKjBgjXKKGv3KbvFH0KwS8lcBlCYqx47toStB7TtMiD6vc7I7QNpm+OHAAo14tVlLYGpYtC0XeoEb+ha2gNHQ4FiwGcWpAm9J06IZGd8fWEjkOCg5QYzIj3TzKcW4Y1Aj4MyT0hT3OBggW/zsfk5Z77FLZ8W3udRlhX9fKJmDuWsYUvvAUsKDbIZHdkBub5oJ2EElrkOX1JALxCuGWMb8f0 X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7b26d14c-8e71-4976-1e81-08dcb127ac70 X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jul 2024 06:11:53.6424 (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: elWoHCDEpFI5U1ZOX7gMxIAycuNFUyBhPDZrPodUJeBtn1zRGpKUflxlgpRyyuOQcdqT1wLpw5mCgSo+j/5AOg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR03MB6580 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240730_231201_510360_DDEE3DD8 X-CRM114-Status: UNSURE ( 9.64 ) 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 Khadas Edge2 uses the PCI-e Ampak AP6275P 2T2R Wi-Fi 6 module. The pcie@0 node can be used as Bridge1, so the wifi@0 node is used as a device under the Bridge1. Co-developed-by: Muhammed Efe Cetin Signed-off-by: Muhammed Efe Cetin Signed-off-by: Jacobe Zang --- .../boot/dts/rockchip/rk3588s-khadas-edge2.dts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts index dbddfc3bb4641..b80a552dad883 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts @@ -283,6 +283,22 @@ &pcie2x1l2 { reset-gpios = <&gpio3 RK_PD1 GPIO_ACTIVE_HIGH>; vpcie3v3-supply = <&vcc3v3_pcie_wl>; status = "okay"; + + pcie@0,0 { + reg = <0x400000 0 0 0 0>; + #address-cells = <3>; + #size-cells = <2>; + ranges; + device_type = "pci"; + bus-range = <0x40 0x4f>; + + wifi: wifi@0,0 { + compatible = "pci14e4,449d"; + reg = <0x410000 0 0 0 0>; + clocks = <&hym8563>; + clock-names = "lpo"; + }; + }; }; &pwm11 { From patchwork Wed Jul 31 06:11:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13748094 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 8564EC3DA7F for ; Wed, 31 Jul 2024 06:14:14 +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:References:In-Reply-To: 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: List-Owner; bh=gbTNxIyb8AzGTytgSL00qPb+axmFVuOizpCG1yaaabk=; b=Y6GLZ5hTDRCrUM 7RJeJXZAUY2iV2Blq9TzNESPlc8bjY/O196mBjdS5ULEBHVT8uctmUUQhAMGxdgWgfkmtVXuo5rDx stl2hFwLOX0DgSwI8HlS2X+mAqY33IEDpH1cRwH80Uw26jBq4o32Ai0AqLDTSM34h6SbrKlN3Erfq RvzF/LumcdXPTkq9VMSxdTwnUe8hb0hl9uXl9YJ6nesOx6WQP7upgYLDyhBOkznMnrHF3tmPyFWoN d+vgmF4gUFSHGCq/OO4PqoBW47GaK5M8mKnfbEVFrMimYuuEjkBJh8pTJnHG0onotCXkgpFc+iniM IOJU5C0ovEC6AZr4bkHA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZ2bD-0000000HTxV-2bj9; Wed, 31 Jul 2024 06:14:11 +0000 Received: from mail-tyzapc01on20700.outbound.protection.outlook.com ([2a01:111:f403:2011::700] helo=APC01-TYZ-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZ2Z9-0000000HTBU-0u9v; Wed, 31 Jul 2024 06:12:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ejYoXQ48BVWMG04moR/Iol5Hyc4JdHHzxtFKpKC58rDzPUSmke4HIxW2/bhiglnkR0EGZJRF7//gABl0JNiQvbgE0esg4L+9w05m+YvPzTeV3PqR12tC3Z+R9VRc2dgnN0TjRNrlRe02zwrMM51VZ6/WvFpTfmNmmcNRy4xXZpeceEHV22A4cekqvjXAwSFTXJEi2d32kzPlGL2VP2DBtp7jTLPHbU7fTmGeXAq3vFRrVzIUpSqxfhrgk+BHAe9VvSnFnDPU7wXu1LQWdAGWPQRCLKelgDB82Znc198lzq4kjkD65FkXTvA3AIVQhtdZtk8I7DlRgcdgxMT9Lhpa6g== 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=/2JPbJjR30bz0tWINXyBq+rwGz3WBsWM8w7Fol41l0I=; b=gZj4ygLea/EFna5IqwYEFpNt+PtcaRj8p2zKw4UJwu3AxvNNBDlyrSIbnIa2wpy/KoiPwElU/PH8/BBOd7rsYcWa8SQNwhNmCLrNdFacx8dwdM9w0ZhF8TRL+Phwt7MTlhtc/QDFYTcRq5B41xnT/tT5wudvCwfR+IjdaW2B2DMCeJHhRv1JGbJ7V+yngyFro4aRX4rIVZDDsmzWSeWyrQJdPGDrmXACyaIaOCrVi0lvVpd9W6sD+UUBNX4fu0KCQvek9kDD3hic3rYInyGj38HmXAoSbwS8Pvo8MvCqIwMFMBhS8KpAv6ImONNYhFZQ2hcVm5t9WUyrSq4XC/O5xA== 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 SEYPR03MB6580.apcprd03.prod.outlook.com (2603:1096:101:85::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.28; Wed, 31 Jul 2024 06:11:56 +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.7828.016; Wed, 31 Jul 2024 06:11:56 +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 v6 4/5] wifi: brcmfmac: Add optional lpo clock enable support Date: Wed, 31 Jul 2024 14:11:31 +0800 Message-Id: <20240731061132.703368-5-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240731061132.703368-1-jacobe.zang@wesion.com> References: <20240731061132.703368-1-jacobe.zang@wesion.com> X-ClientProxiedBy: TYCP286CA0178.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:3c6::9) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|SEYPR03MB6580:EE_ X-MS-Office365-Filtering-Correlation-Id: c93f608b-9231-492b-306e-08dcb127ae3d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|52116014|7416014|1800799024|366016|38350700014|921020; X-Microsoft-Antispam-Message-Info: xeSlYMkrJK9LBi0kMMgNwM1Cm6adjBlUskOuL61To17M+ia0ud1QgHTOROc7tHjvzLQPEfIJpF9Fl4hLfj5EuI+wBcLzrxOoqfzoJGkaheXcoLdj5DJubmm8b249l3wOeSAUv79fmzJEUdEHPYYA8vuNh7OFsiZEij1mk5V7soa8LiTsIpud+DtcF6/A1CUdmc3rAHgMA/b23soC4UAopDlN82lHmRuhePqXJQM8okXyksl9b3lCQKMwk5ZUPLckhjFUvTIu9ORVaiXN9jODqtY7E6xdUUJnbfUcpEVhgZJvZCLjKi9XG7co59PKC0oRczRIQIQFpgPsgKSJ3UjHDd9vG2D5+WbX/Db8YQafS6zHhc6GLEhHigrw1OelpkMiyMlr8t1nVk/pM2LL1D5VhlxFzmFMS1t9gM255RRuKeEfY8hRSwDYb/OUsuxgC+b69lPflOLq3rObUh/2Ep53r1ssxNcXM751b/4OhSTAHH6wviGdhllGqKH7oYyFTyawY0O3kquAl+ydWXWC+gvShIa2jAQ+v48gRNGTml8Dx8yzgshoQmQfGRDoQgEfW3TkqDaBt+Heh2I+f7BB+zuR/6EKYmHyYT7Xpcqc2WvuRvOWGzi1mVXw0BHRQ3T9SWvVyQ+In5+ei5f+lHSvonmD1qu29c4wwt2e8TrfwGQVdNTx6ZAXu5q32zXCc4vDfidk71/fXg+OnRoG/huqj00H1iXHajfeJBVKn+HbhIP0K1FOa1reNk9+X4/4hCZSdKa9rqIC1lqw2fJztwZ7kZjqQwV53jVqXINoYbdADW7VswSiBIZrb7TrFsYazEK4yQz8vWQz1BffuHakTk/oyxwD1PQxfa+qln4YDhKYd5ez01ClfF8d+lsZT9hXoHCCupKth/cx2yEdtfS7FH4zZji/4bhcVyocWsVo6lHsfAOvlz5gSVmzZnRYJKuzsQojWTtObopBB2DO3KmUe7VCpYdtT3on5/0Qjze1rxQIaf7qKBv2Em3Xmn+AQbj8OOxssoR1j7Lum1mpEKye8SjooyA5RJBZMFxNKczXQBIb5jOR38UCez148F6iOarqBUONunUXE7JjINjpG0TiX02umtsp7TKcGHQVmiUnShCPnZOYLHsNe9FYMA6a/pfpCm501n7EiSlehS2Laf1Pbqi8dbt7ZZ8S1bjX7jgBrT3J3Wd+P6iRJ/5k6LBlZJZzXOgEdecZ9gvlmMsowZEzlJK4R37W54JGY3q0vccuDWbWM7sqN13Sxy/2kZioCWcCEN2O5CIGplMNkyIeDaQDjMw5wE75YmOnD9p3TtxCz1q6neKrrhHXR4W9UHMhL7kTI4VjUx1glEVQJUKbE6YB8a0SUuqLJysSk4agNcl2Ks5jEx3XL6s1gvEVMD5dhv2EU4bq/BlIqifeK8CmlCbpUoFE27dpQp/RJo9xuCAo9y69cfPkbUk= 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)(52116014)(7416014)(1800799024)(366016)(38350700014)(921020);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-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yrskNJedEWqirdgjRA5duMuNVUWhbzLa9VREDmM+8ECclaOa2itTH+TDjZx/lXJzrRki1IVthbYRRx8v97IHnvLAzIIYFFzomWLuFxQz4apzwSBy6gg1xB5WaIdBgJfzfOmketNUB/wXxQ21SOWIgW/Gh9LUBG22qlbe3edVntwLhwoEO3UMftPCZll5iEzZHRrQtOFp59cQ/b5uorMp06gKLwQa6hQv0u5fjqkNHKqY5VyiUaIRzLzdz9swGgPutEujRpyNbjRihBY0TvME1ll2EH47P5INMyQUZYyZeBGDdkEDiKPfZefPDR8nej2I0WnSPxzK2iPgyzwJG9EStpTU/pOR38bRPx1MVbbaOP5xCQ/KqRx07x/DIkBNK22gjPU4H2ApUkjuU66Ink/6qeCJfrXn1xVg/nNzzgJTVFOwUtsn1NA6HdgFLyZzrL6REzTWSedp5mTwuyEaT++xlt5afQijeZcvDLq9gLdEGdq/+u07jHlfr+rN2pn34MkYclmRLkE7ojsqEjGh1fnUF4nCvDX8t/aGjDEa0DUOLzz X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: c93f608b-9231-492b-306e-08dcb127ae3d X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jul 2024 06:11:56.6533 (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: l8A/M1K6JtLWhIZ2ymMDLQHmWMbtXXyAft9VekNQW5zCc+c9Ans2dVePgJujW8cS85SH6imbUGIhEjRRnmWe4A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR03MB6580 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240730_231203_282517_1D615CE5 X-CRM114-Status: GOOD ( 12.29 ) 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 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 Co-developed-by: Ondrej Jirman Signed-off-by: Ondrej Jirman Signed-off-by: Jacobe Zang --- .../net/wireless/broadcom/brcm80211/brcmfmac/of.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c index e406e11481a62..7e0a2ad5c7c8a 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" @@ -70,12 +71,16 @@ void brcmf_of_probe(struct device *dev, enum brcmf_bus_type bus_type, { struct brcmfmac_sdio_pd *sdio = &settings->bus.sdio; struct device_node *root, *np = dev->of_node; + 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; + /* Apple ARM64 platforms have their own idea of board type, passed in * via the device tree. They also have an antenna SKU parameter */ @@ -113,8 +118,13 @@ 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")) + clk = devm_clk_get_optional_enabled(dev, "lpo"); + if (!IS_ERR_OR_NULL(clk)) { + brcmf_dbg(INFO, "enabling 32kHz clock\n"); + clk_set_rate(clk, 32768); + } else { return; + } err = brcmf_of_get_country_codes(dev, settings); if (err) From patchwork Wed Jul 31 06:11:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13748095 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 F369DC3DA64 for ; Wed, 31 Jul 2024 06:14:41 +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:References:In-Reply-To: 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: List-Owner; bh=K541+A1z11e9kuBjnXbdJl0CkkvRf+qR5Cpv1F2w9kg=; b=rhuOOPxAGkc7lt CG1EB7AijztIxmOBuoJ8RYvg4YweOIlosmwqH25OzjxTqABv5HQdD5ajsijdBhEmC27ZcsVJ+9PWu 3Jvr+e1ZN2ZYpAd8Q376ucV8ASjPGXnekUiFSpdFJOCeH1NDSMn2ghP/amYYEeZ5CYOKXJHq19r3b swFbpSrgXsoZFIjR8VI2O/zvTIAtkQ8KwXSU/MUZWNwCeL2gU/WwA1aGHgnSPhEddxgEH5lL+evWt zBf+sUofuSXtEXA2bWaOcNo0A9tEOvfbchIwkS5E+Ggzt7rMOp1rNSvOrH0QNCllXrEagitI7zEMk sKaYUcPewWnUUwX6/TqA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZ2be-0000000HU7W-21zr; Wed, 31 Jul 2024 06:14:38 +0000 Received: from mail-tyzapc01on20700.outbound.protection.outlook.com ([2a01:111:f403:2011::700] helo=APC01-TYZ-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZ2ZA-0000000HTBU-3Qrl; Wed, 31 Jul 2024 06:12:06 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=mydlTK7tuwVSY7GpUZnejrjBlGFq2odhq7/ZRip3vGREe6eZC4JNj41tu9PKQuJ3ZymrmrRAuAiQ4brNLmvgdWi+rIvzYT2sx3ZqT+mzQ/mvQtu/Sody8VOxSi90iMLDz6DhZTpgHLewbw7WRfAhZMCEHlViQx7N2z8t/RCZ421lcctYLDADFlq52iQZ55U+uYytkMBDGFs407pB12NXB4j6gWBfpql4Zlo8VuqXwcv15yWN+h3kY2bwneOopmhFDaZUgjRcKnhTlrjiQ0zA8JQ0GhuzNZfCfzaz/cBKINRKp2dFo8aFTyKOTeowBnHav8Aed90E1eiKi3H8zu48zQ== 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=XB3tez9D3u90dIBU3uiBuPnvK5S2Zx5c0jWE2G6mkbA=; b=OGaZR1U34leyw+e8Y5SrJIeCcgc0DGZGAwPoLB/9eCsnZYO4RJ8uklGsM/9yKSBzN40raTqQDXpWl3u7mBQEO5TPoAA9Ca1LkC0VUDPbUxdxDUBUg+MlcBMRB2LmLUBSn2JPW6m7QkZagO//zUr6fJP9f6yxBJGI/0LCvX/o6AmfMp7tG9SsBuAM9DNWLTLH3YahmJoZUGgDyBigUb11DWjDAmMNtzUtBfglFUC7VjTVV1ESefOVvk4ZRVOp3kCa6aCf5O3BwZym6NTyaFTtCm/6wVV38zk4LZ1Opp7rAksqCyMYA1U6r6vyUlUNUgAB36xYrEg5IkJUupzZOovLUw== 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 SEYPR03MB6580.apcprd03.prod.outlook.com (2603:1096:101:85::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.28; Wed, 31 Jul 2024 06:12:00 +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.7828.016; Wed, 31 Jul 2024 06:12:00 +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 v6 5/5] wifi: brcmfmac: add flag for random seed during firmware download Date: Wed, 31 Jul 2024 14:11:32 +0800 Message-Id: <20240731061132.703368-6-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240731061132.703368-1-jacobe.zang@wesion.com> References: <20240731061132.703368-1-jacobe.zang@wesion.com> X-ClientProxiedBy: TYCP286CA0178.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:3c6::9) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|SEYPR03MB6580:EE_ X-MS-Office365-Filtering-Correlation-Id: 74d66130-af0d-4845-83e3-08dcb127b03d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|52116014|7416014|1800799024|366016|38350700014|921020; X-Microsoft-Antispam-Message-Info: xbn4GAY9HJAApfKLJDTdkuD2TY9uuushDaytBOhRvgfaH0Q1jPCmfvk1jJnoMsGOfY3IRd99zLoAjxJcrQWKlr8az39uV3rAptzC/x5F0e6cw9aO4Uafb1VGP/SBOoE6MMXKiX9rfrUUBjClrwtRx3HROc0rmg1mir6jKKkdDO88NrKmiMec4T2hermfMNzKAE5w8zkBAXI9UzN8AqlhOtGiQUj1EM2ayxiEszkp/62h+59YLyieJOpqpXMd3L6fQzZZe9k2tJB9biCMk49Mb5IgL4tVDsy01vQmvMK8RMvK+Kvl8QVOW7f9eoMuMgT7XHmuKq7MxJh8bN81GCs1Wuvi2Y0/cXSmM+Y9jugcdirbpQpplzWHoFVqTtTxOtzUuPUODRx+JAvZhzK+yTt2az2HJZDdFDz2UJiYAAx64LFQMH4VZ2yVclaD2BePBZk+7i5ipQw5aQrC2d5IVJp7CIjc/hmvC8jr2VK6aiKtGJmWxH+7mie2Ch4LZ8n0dqUTTsIOGrgf3QhtqcJf1qTr15uOhWtGXs/9UtQdW5+FMCWl9FEsIjv+Segx6P+5mafz+iZcXcUEsZEaeNi36K/4GEiY90grywIt5Zv7iZRNrv6FbFx2KR/Oiy41laQUMIZQeStqvAOLKZ2W64rIEi8HzdRlEiPlqFZq8OWdoMD1X6ox2PgCWcrpvLl8A+KF/TNHQb6PCP9ZFQdo1QAfZyfyjAvJTqvaQDV6u5QFd9wo1gOcd/LL0BpuoFdfJyq7w+5ZjUN7tjrglc9WJ0cdnY9mZJi3dqjRSyVn3mzQu6eWrBaQmkKpRR7M70rB2FRfzk6Txxw/KatKeRwysNCEsQcI2uN6feQNfcQz/VnZuU7hyhThbeCkzVfKX6hxkLLffLoZoDGL1dMqGdxrbMJmsJUr3abF9roIJID210Bpb80v35qHV0qWV2YeOZd7AwumdmJ0xtEC6HesZ3XeIoYWVwsfJXr09IYKoJoh2AcO8PUowITDNmBKHmq79yIzM7vvAQwzGMnRvBCv5IfqPO/8feN0uQTD3uyVLSzs4BdLfKIa2ONqAhSdR7YsUZNbBxmKjDsLMRPADkf5TAU1I2gEq+EG6rQZp9+Zj4MoKcFBGNx1KPnkiEDCrTr6y+gdeV4x5KLt5I+6Y9PTihxnN9frh6BA/EB56QgXKa8r43r99Smg6uY9gaom9+rnskT3VJ13hIXlZcXFT3sCowcBoMo1jSooIME2ex4uPq2mj9tyi/uRwbZDiCAN45Wj6I8xf2KCiZI8Ihb9caxGFqzi+dLabCwI53SPC0qUYTaPg8e8WHFNububCegELdc+3Fb9mCXUr0INQ6LnOY3AFBWfTY3f0OlUT7bJEkvh95iX25YzLTTIoPWyYlo3pP6LHYaMOvqbQ8c1MhMj9SWAW75/CrswQMKkkxZa/l/v3HWU13fszoi1/LE= 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)(52116014)(7416014)(1800799024)(366016)(38350700014)(921020);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 4a4Yh0kyxI7hrch6m7Dw4R6n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J8a48Wyz5VGv+eANTGqQHKFUD24JqMC88Sk8uBVCBEm9MjpHz7E5q/UpHbklskPdfdZhcA73lBG3zTSyX7wm1GXl0XnDyL9MxRqZigqXOEYMQ37zw3iftCpDN5LqROz1NyZkSL5btq6j9CRssGsjAEACaMJyTeXiyAK2H5Vg69pxe0ToWAcNPwcyDD8wt5BoqPISsIathzAjttp9DWM2dWbfLTqzdynLMD8EwyoBSAzOefXgCetxO+akcd2hIcjqdKjfvVIyiD/9YDOLoMZhUUjNRpxnFLI3Seu2KadMIUzNlCSWsja82KuoAm250RnaR5Y2vliOXfZie1APSFkEvlQWUUJ8+kZ7x1jMPQtXs+lsiANWWZIoj0jNIDoqAe8RzBe/8ArmdJeJ4QBIHrHH90vDeX8bq4FeQb54D4l3hbv+dFuSFGjl3sKBOsiBAS8G8gLFEFUiKPiqUM2ekr4lDCAjJmZ4wQz+svPGIg6URd4O X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 74d66130-af0d-4845-83e3-08dcb127b03d X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jul 2024 06:12:00.0296 (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: K+QSOCDSOF+Yfn142NHWRhgp9x8hAwk8aQh2rWCA1Msdhc1XG1eYEj4SE2cNmklfUl+i/OKETM+kibJDnkdv/A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR03MB6580 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240730_231204_873767_73503343 X-CRM114-Status: GOOD ( 17.43 ) 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 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 --- .../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 06698a714b523..938632daf30a9 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 */ @@ -358,6 +360,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; @@ -1720,14 +1723,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"); @@ -2399,6 +2402,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[]; @@ -2477,9 +2511,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); @@ -2665,14 +2700,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[] = { @@ -2700,9 +2735,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