From patchwork Fri Aug 2 02:57:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13751014 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 D6D9CC3DA4A for ; Fri, 2 Aug 2024 02:58:23 +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=Xol35kOlX9iqEo fCHeT00aIhNip0VDTkrbENRFcL401stgfAKmrD8PlJvfqxkLMHriOXHIOyXk1gxr+NDgg5kslEy4g GkNamtHkZp5QpULqZMfrViFPQE7WFtJW3QGSHkZDGd+fY9g9s1cCd0IDTOGCENpHdiu25NalKmI3T jPuPst5TqM/iFjJLUWZ4jB9SMqi/xlnR5I9bdU7dGoHmw0eTms5OEUbfLEwymy360od/zwzrtBAbV FIqHnwHkw77OagY5I5TCaGDg9IEYe5kjMBxJrUpbZss0STviQiJCAtCCD8QRWmdGotsoLuP3OPOeh l9n0Qxft5H+iJL8R/4nQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZiUl-00000007QRW-2VXR; Fri, 02 Aug 2024 02:58:19 +0000 Received: from mail-sgaapc01on20717.outbound.protection.outlook.com ([2a01:111:f400:feab::717] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZiUH-00000007QEu-0Y0C; Fri, 02 Aug 2024 02:57:50 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Zx2x+S/4Swd/SwvKjwvIzDIg6hFLdwhmSerASxPOkr+0MOX1Rg7FOTXeRu1ax1UpqXPmv41GXV+de+D0JDCcYSzFl6jyKYjM4/I5DIxarsAbewmFUx5fXgCxv1ozKqavce8lJZdrmZkHmyis+gi+H7Bed9QYk/y4+YuUdO91GNXOy5ECcZtDOHuxfEwfeKCGfxNRusTutiwhWB4/13Bpb082yVjjGMqBwJgbF7887d2QL8SADugvKpnrTrtDUGYbJze8zQ63V1ypl5c91RnMMDwCTdv4yf2VheeWKD1xM6uRQ+D7dZFgrETrX2gJ+Tqj7pAMAAoW9LWRxM3b6VTtZA== 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=hi3ZmfJ4xswtINYAJfMj4xRVamLGWR1lUZXJSxSoeIN3DNNT1buD7I3R0AegsulmQrMi8TJRxb7bWh13d4aoa2MA/51dRl45nuwnLkWVpuWGQE4pE72rWsA6BPmwm/9BopjitDJYOJQ1Icsskp2cmrfTECnBQDv7cUt14j6GfP2RAZTh2Hq9ACRJ8L9RfVrELFXmkpbigOJ2vzrldENOwZVGfLHHMFG77XEasTjbq2KCYyz7v5VQ50hvqYlBtZ/tFGknNjzb+1O5NaI9G1olRe3oERIJL9hc3Yjqi+sZA8M1RLG+Hnkt8M/eNZCvm3am0kADTTFIVkPSDiiSDzGwMw== 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 SEYPR03MB7120.apcprd03.prod.outlook.com (2603:1096:101:d5::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.23; Fri, 2 Aug 2024 02:57:33 +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; Fri, 2 Aug 2024 02:57:33 +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 v7 1/5] dt-bindings: net: wireless: brcm4329-fmac: add pci14e4,449d Date: Fri, 2 Aug 2024 10:57:11 +0800 Message-Id: <20240802025715.2360456-2-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240802025715.2360456-1-jacobe.zang@wesion.com> References: <20240802025715.2360456-1-jacobe.zang@wesion.com> X-ClientProxiedBy: SG2PR04CA0211.apcprd04.prod.outlook.com (2603:1096:4:187::19) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|SEYPR03MB7120:EE_ X-MS-Office365-Filtering-Correlation-Id: 6133089a-f584-4df3-e79b-08dcb29edafc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|7416014|52116014|1800799024|921020|38350700014; X-Microsoft-Antispam-Message-Info: OwnDRzYd5e8E1jzv+vJX4sRadcZpZ2EhCpEd2R7quXBonWCYuRj73JziV7QlKrJXKnhL/MbTKvxii4vkBAZIqKGGnCY5WktXc8GPZSn+y/J6mPEgrXrMwHTyJcayCV4Fm37gq01jDg/GUrML5CGWfZ58ZerCYmMvRC7zOSobWB9Nz7SGoDJ4h5/qbhtFNlwUAdfC/95UCGt+lX+leRWtDfby7EvYSsr26j9s4YBYPdXPbt0iKXHNcufxFNUsVtLqX6eXO5XMGLsSw2SP6juUnuTA4kY7TLgVnenAtmcyqpu+0yZde8LmNm0kSbhClslxmx3R0/AJdL+eLiVucb+N4ckEB/+6ADT1vuhBAmjwoOWwxZM3Nl34Kbsq+OEBSwB0xygbjk3R0xc3Oaslhz2ZO8e2hmkh2CsozRu9u+prHEECtxNqfCac3isFmCIJ1A/GYCZDuh5gCXxR5ureqJtaF0mTxhJkdJ83eEWb1I9oH87bdaOL1G37t3qRwG4wssIyMcSmKjEG39su9nn1mRiiRlpcSVRwXVYuEXweithsMticTd7ZR6fLyph49Mdb4nKosS6GRiGDESasomqqhMD5NfBuFLeiGKdJ05Eqmvxiu+OUyCzJq1AqsU/R9zu/RdhuO1OL6/ANfagUvlba43ajofdxq6UEe7hnyuII0LvBC3xSMlbN4XoupATJ30gvhHeob6sXlWggpAk0GhpXrMEIzNkGHm+kSEb7Z/i/s5U39gXdnf505T7XIZJvn9WU6gaNSjs/m2QOJk0dxmIaAHRuCt7GlGE1wxE3uGW3cNynukRnO2p+GrL7yxXz1ZV5NsFOfjF1myRNSA33IHOQjUtOumK/VrBrQ4odwb60jeEhx1y6012RqI3CafvHpF0+t+8/EMBmnmtH5+pDCv3IPbrFoZEEqL9pK6ozx1hqiMCO340SyOuIC4ZnF+wweNu+lKU06Pl9BG6offmXSzCWdxtDzJUe6ueSahVhnFhPgyhEALttW4QDqsa7zbqjWOrDCoTptTrIN+GK+9SEtmEjh7RSYSKKJZ1RYd0pvAPOdL935VbidoYloiNGUuUYShOA/RJD6pEfc1Iyy/Ghe/22BVs6s5WX5goL6jZi4P5EK3fm9m7SjRwB3B/3uLbN+LHGn1jqyPKDAQiwLraOHKWxjXpJNPiJoQcQLu26DFj3JPYnz7xirWu+C4+fZ4UY3ddCf6B/N57EVSpfEpv/gqp86pECYi25uMpTnoU64a8ZGlunMz7a2g3yP3jv9df6V36Ky6N/Q00I0kWQiAp0cooGmqz6S+ZrhUkARl0k7LjHuUbvwVeyRsHvMKsDVAzNCXgMKkiJYcQGOBfhphkZf/hNDxReD2QXXc3MO4kHR/pNIyaxPeGYH9T17iys9MOs+RMGStO4f/8LLku9Q8Ta4dfVHbn8mV85Dif8mO5l5290M24EpkM= 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)(7416014)(52116014)(1800799024)(921020)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ikLvRhe2DULS5GpFTQwIhgE+kZ8ErfqFpAao140UOyVbxREMrGWQOQX+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5Om8YG1ToaAHajFZrpVs6dGwNttOMr5IEPkDWQsuZoIl0kdoCVOQfnJo6jWVgfacm6pNNY4rf8sBFY1Q8IQl2nqEE91tzLcOkE0qio4n4siO/eASVkrHlNjWhqgtPGz6zRiQ4sW/s1EKoRIEgZl+MaKIjQ4QXi0uFB0kYhDbalNIvwh+mCJVx2tF/L8BFIUbgbVCMKuR97BQvwZ4wVW8LIPfH3Km48aIkjLYOr+RXawJ+ky47U96q6Ya4sXeo45Ci4le6kRR1VZMc0KmGou4cHpLstxM8Eux0DN/MRJHxRoB+tgdd+iGApGsFFGlDHf6OXmSfmIczD8kpCefCoWEtXdL4kpDRmn4MEAG4JXRVC188kOwTR16YaxgK6NwmHdzNbsLLkR6DMvtRo8IERTsbLJmT0hrzhWv4XIw4XYupqUoWAf831yk16cyxXjfbgbT/PtZNxy/WfeTIR/m X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6133089a-f584-4df3-e79b-08dcb29edafc X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Aug 2024 02:57:33.0685 (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: +hAGvb8rHvLGLwznYa1DwVtymiKX4/EXJh5lrRc9U3fSEQZVXlUg/+VN0r2RBL38bFXOBu82/FOialC7jufilw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR03MB7120 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240801_195749_178352_462D8976 X-CRM114-Status: UNSURE ( 8.25 ) 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 Fri Aug 2 02:57: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: 13751015 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 C1812C3DA4A for ; Fri, 2 Aug 2024 02:58:50 +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=pYKf5yAk+UwK5y NlsnH4iQsmLWsfcw9rC2MYx0GTIpnq7BbJ4FzVSOSCiC+KLfOwHU6Y+CaVdaPcjztxoqlFtMhRL10 /sSrZK/vptBZBO6KAE0GGcrNurA+HNYdkcpsM1WiTPRz1gHujA8faKggCNfzW0ei/lhW+Mz3K7bft Z/iMF2DNw3s7x8OL9MA+qWtwh0LRnHD/hUR63adl7oZIwfEtb/ORh5pV3xxamVdsUW0cHZiXHISt3 dRSrN7y6xNxXiOldXvj9Z6USkduiwYxZUe1vlFLT+uN14CrcAHWxF8sTEE/0KLLVfW6T7HwmZN0n4 Ct7bE5fOjST+6t1100OA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZiVD-00000007QZv-29CC; Fri, 02 Aug 2024 02:58:47 +0000 Received: from mail-sgaapc01on20717.outbound.protection.outlook.com ([2a01:111:f400:feab::717] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZiUJ-00000007QEu-1ZZo; Fri, 02 Aug 2024 02:57:52 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=wSykw+1HyIM1Y1OGB4D1CuppICfBbpHP9aKds1d/8e2JkzaTROrsTl/QV7YRrb1oU52XqH6B7QM3SuZ2I2sllaCfN1WATn2XqxONqCu7Il6LOdl6k+tblotDZXnBMpshwIMqDINV3raR/4m4wru2vTDzQvIeKgqXbpB7UF8fD4Gt0ZM3wf0L+Av2pWmuYTqza7il8nqDqggCyo2VdGKJa/tXhwjPmDrr2Uq2AgzSd5+tQWKzctWCwuKaR8rpLTfrD6kEB3iZvhUv0VrZnn2niYIJ3dJwRaxKNbWjZHq3uFDf2FIVn7TI0SPZ5IsjWMyty9mkGJQ6GWHwlvG8vXsy/A== 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=Nk+yjdxKMHy1oD78LdL+nEHx5roJ650BK7kmfccR+J78k0rXFMIsSUdiTHeD3YEK1kjaDbtDnIc60LF7wDU18rJ5eV6kodF2uAf33pEY4KUTBXZt0KYMe3BwBC38U0jaPIEsFtL7yzJdGn8wORL+rwkDyIkHh8P0q/QjW8HGflqhLXgDGa5R/nMj5KMvHeD39dtAx074mJNQbnVIIPLawKztiqaxRSorNAyBRlUZpbCLBXzx/owIQLzBC580bRuJnrgCb6E8Mj3VS4ZKb1v0XKO7PXbCpDqTrBdNvaSf5KeRQQN4cTEVQ79iKxrBXnRTQ/gC/ttlCyqpVpmTjtDqDg== 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 SEYPR03MB7120.apcprd03.prod.outlook.com (2603:1096:101:d5::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.23; Fri, 2 Aug 2024 02:57:37 +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; Fri, 2 Aug 2024 02:57:37 +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 v7 2/5] dt-bindings: net: wireless: brcm4329-fmac: add clock description for AP6275P Date: Fri, 2 Aug 2024 10:57:12 +0800 Message-Id: <20240802025715.2360456-3-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240802025715.2360456-1-jacobe.zang@wesion.com> References: <20240802025715.2360456-1-jacobe.zang@wesion.com> X-ClientProxiedBy: SG2PR04CA0211.apcprd04.prod.outlook.com (2603:1096:4:187::19) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|SEYPR03MB7120:EE_ X-MS-Office365-Filtering-Correlation-Id: 45cbe020-6fcc-4a7e-99fb-08dcb29edd76 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|7416014|52116014|1800799024|921020|38350700014; X-Microsoft-Antispam-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VwXk67R7wuKeUbv/TF8px+AtBEWfQakuAjzCMrJ37RQtUtxbW+B1GdhvQ9WKAwUWvPptx5rU2+guDhxzVJvv9BtgKNxRLTad2xD4JVFS9t9bFqlJ1LqLf2reEw7ajoclhsbbfMNPu0ALxmwNKbDEOruZImwZZ74SSEQ9u9quCQUuj4C4JrjY52LjMXiuXb3MbZveAQ6m09ryUk9AtdZl74CRcrvaiMBfckvmEuaQRWAeXoXjiogYfi/lKuXPoTBKrIBII5kuxEJUsfqNyfLoeDhiIBWiCJa461C+yViF9dMv99WbPey6oYWLGdDJ9UxE3nGvBl9dn8mqunY5vHRdGP5GHXGcYZpK9ypqzUtXrVCogk8N8byGO9Fs= 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)(7416014)(52116014)(1800799024)(921020)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: JEC3MxrcEGiAFVKoehmxC9lg3vxKWscHV3A/waGt3iXFDLIYT5vN8kmc87cTfZ8zfJFMVRg6fM80bpCpcH9PJZbBp4RNwqsGrsG1Mt5G1xtNkbpXTG0ZqgS3wpurixX+lQ0wWaGfZ12yd5q3KLrJu0SXxoHbdjs5m1OLxtAHJSd1N8Jh8e5CBo0mrmYT8iAnZcGibFr1sAVD0wX3Rn88L3oGeAUgvtdbH/OiY2nNmN8ZDAVeJFJgp+Oq1SW5yAIkdNjJoRjiyugi362Bw7zbUmY4TaHLbT2OBMWUTg28pY47MgNk58QLm2lUYR0GVkXSNrzRnP5TC0658ssqbKJEjPvdF+7LpyX51Z6gV+h5lA1yCRGqzqnAZ1GJkQ4IxOjvQvFZaO3SxV4oWPoE3LwSZiFcYpyqUh1nOe0sNp9UfLoCFqUz3BN2GXXtVh058GcXne2K51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Q2AuhE+V5QMjyGeKtDnPVuoRzbj14PXM+ENah3e5+N3lV48NYAZZ X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 45cbe020-6fcc-4a7e-99fb-08dcb29edd76 X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Aug 2024 02:57:37.1819 (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: b0EFgUeSow4ClutES5184aHQsOV5XiJtptu8NMc7uX29fnu/HQgyFxnOPCGZtrNvuf7ouolih+ZSQWChyNxABw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR03MB7120 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240801_195751_425679_0B79CBF3 X-CRM114-Status: UNSURE ( 7.96 ) 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 Fri Aug 2 02:57:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13751016 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 5D59DC3DA64 for ; Fri, 2 Aug 2024 02:59:21 +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=gPaBc0Up/Ek4b5vP9WXXCcG7BshAwdrwhOtDEld+uYI=; b=Xa+MjcEL2/NpRa X9qX6AwAnLRaavvSYpZ2RCCHCTbSfsy42z3NJvaelcFwMk/0g33ee6iDKUVYqcd7hWwo8hgwnOYBR iBKK+jILjyhUf+E6pgewtqM8n3mSl6FHuKwfFoWE6QxQN26ziqHIqVheOIkkBm6JP1u7RF2jO/jAb Zw0jTxUv+mnJR+0nzV3uIk5qodW/IKWAI9GP7OGtM1otaLZ2AuexM9r0cUWfkYUpKdUXpmmONL4DN KKyoRPaQK86a64kRR/HbZhKKmUzPp0EpzWOaT9wakmyr8EL+tFTrxdpIk7u4IAe+ipqDgdFHcPRQM eIRSp65Dks57J/yMxQEw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZiVh-00000007QlC-10wM; Fri, 02 Aug 2024 02:59:17 +0000 Received: from mail-sgaapc01on20717.outbound.protection.outlook.com ([2a01:111:f400:feab::717] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZiUL-00000007QEu-0nT7; Fri, 02 Aug 2024 02:57:55 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=XXgMtcavp8MnxqujSpC9y3gNZ71v7Xt0nrVDrRCkxDVb0qstI2mRixkPaFZaFRwzgPziV7gt0n6D3C5jGmlRWMBz8BERBAUBpM0m9D1IEiYdPX8W+Qw0NBgqc4p3xtQXoAYAqfMT+vYm75ByKC0SXXyblJxX63KEOTQsXsVvOK9ZN5522YHtvKn86Dl5ADLyWk762tsSSrfn+rFTnIyrbUVisfVRxyep1h5qXQkAcOOKTCDCDx8NUTDSQQ8sIMz8ODwOo14acPu391Mltwx29ZYiX3Zqu3Imj0bkMxUaeXS9zwQZqPjtycPW9SxtnYx8POZtscBN/wwRp0OYRP3uLg== 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=2TnsJEftwBYRJiEemJReSfUR5plTkSfIwo0syi9FhOw=; b=Shh0JZlV9OHyBtMEYQ4NsvwVLtFp0M2CGyQCWmgGbuyzl73+10hoNtHbh63lqCaGLNXv0/20/EGkFQvFWaZr0ucXX75q/pns6l939Dt/27W1orYnAnzfSvylb1YJ+B8qco4pQwh89OPeuOtx2nQLFq+1MEUkAV2Q7L+soHQ9U4kOXO4MnsMNk127yp8o28v4XZBNx4/i7mWWnMS3KKE8PKE2UuR6A6MrRJvuE5lUSDBeDrdNDL9JddkjEjSns4tMiGHcWoLWTd57/mSsgpp6a90lPjtPia5h8APJTUT1l04wcnWsFbQjKeHSVh+Fy0ZctI27dBogoIaK/irTn+NDSg== 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 SEYPR03MB7120.apcprd03.prod.outlook.com (2603:1096:101:d5::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.23; Fri, 2 Aug 2024 02:57:41 +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; Fri, 2 Aug 2024 02:57:41 +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 v7 3/5] arm64: dts: rockchip: Add AP6275P wireless support to Khadas Edge 2 Date: Fri, 2 Aug 2024 10:57:13 +0800 Message-Id: <20240802025715.2360456-4-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240802025715.2360456-1-jacobe.zang@wesion.com> References: <20240802025715.2360456-1-jacobe.zang@wesion.com> X-ClientProxiedBy: SG2PR04CA0211.apcprd04.prod.outlook.com (2603:1096:4:187::19) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|SEYPR03MB7120:EE_ X-MS-Office365-Filtering-Correlation-Id: 47c3d5e5-0b2b-436f-b128-08dcb29edfd0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|7416014|52116014|1800799024|921020|38350700014; X-Microsoft-Antispam-Message-Info: 7HuVLuBoWFxcEtQhWNlyeWVpT81UPEwLrWWPvoowZyOXLp68234U1UVAbBJKs0y/p2xcuJEiouT4G74sYFy42PQf670oBxgQXTTHrdPf+TugPbfQvndRcPQqKrTbw623t7HQK9PD1c9PHyfRQOz+yWxYlut2wA0WGGdUtYNC4pIpEkPfng4dUI3YKAA1WwPZkEvpmff0o4mNJvfWNvPAaOh9rc07B+dSpXo+yGh9jBhkCqhYtYm2hOodEX3fMP7kgzcR8iA0kuqRDlYsqnxWXvSQ0ZrRDWyY++Z0yq0NJDzhbfdKO5tXwOf9bePV0BXhUE0gy4hS+T8zPQq0wRK3S+uCem9kgDZAFP9oqNsQKVItGzEOjZpQ4fIrBoEkDv3wsFMnPYagqwBwK4HEDb+4XxVa2bv9wl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ANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYZPR03MB7001.apcprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(376014)(7416014)(52116014)(1800799024)(921020)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: mPVkRU1bYPiiAZ3ngw3MCUsSw3r6IQxl8tFSdxXXoiimblhccD2a8jgNnDBZVnWOCUJwliiUm8mdQzVcabUVWx/oljb8bO+70RYHeDJkaKpr5o0tkatSZl1qjp2FUuAW2lhgeJ94u98RRej8drQVAs766ndon3BrPXVdqDLUx4Gvj75IP0719YBuXhDMukIFSnM1nA+rItWxTQPFAl70zyQusSzDgPSRim3ZM38tRRbMzjFizBPL7fDwpf9lP2t8RHnXYSwIujpsu0q4kqYTZ4ADcvYTywQuXnvwSG6MO3Xj94TpmDbsZrpWoTGbw5+qfifxmvhEsq5Hdh7xSVPVEi89yDoJYoFUfun1wHIKmt4IXtNeonWvPgTrCH8E7RU+RSZ/mUo2B0GXLB/uC3YRReLi1T++nCBUT3+2ln9zfhEJQ5vbPs79l7b7O+pH/TkL7xM5rLCQSO3Q++S02HAecbLWzGwl3jC32QQQ8Br6QcF7yg1988SHApgHj+uZwGHgQgDtl78+hnk+pzS8cHWJAmdRqCfPGJcyYTXZ2/L2fR+h9WaYxT0Wghn+037fOQ9Co+jEpMXOpD+yIAUprmLvfw3po8p2H9dWqKxiqQRP+NGoHngLf8tOVTZUlWUEaUEyAkKqERJDVRTwxfERSWwm+umOQHth0OljbIvUlGBV7Mo9+g9AyBNjlFr+hEh6RNABT1Ua0PpyE0qQn0WBCaCxXpZO22LkmNDHq7y9JpXeFWB7sIBIi46wUG7jklbXpbbjfADAUfa0MjwNwlq3T+5e9O4eG1/q5HCSu1SCk5FL1RNC/YI64P8wYI9yMRJptsz0qxWbttiXiPZWtgGIaz0xIHHO6rlY2gqSYu2ocq35ge5jzzoGpqUs2fDJfFFyQPm4tYdGQ3bI4OmwzTZW6xTyYrONzbS2hu4EM0D50nqTSZ5CPvD+WZ1/XNkbYV+jvmuxajVYiS3lwiMwB3085rjRfnEw539Ffs+LcI4dJeCAmWUC6ILZM6oJtTmc/h9MmSqSZtt3+cL1v5REt3fNK7zBwOxTPfzVCEuJG5NlndHrTnjfXxyXjES8Y6lE2YhWhhC+l4KTSgY++Y+Eb27iTlRIpHva9SyIZ3k0sOo99yU4FirDfN+WBTKs3DLfCa4qOvVTyXH2kLiWheW4Rht1YahIDHsYhX6CtAQWIlZaUHL/0L58U4JInxPcVy/4KNUwQC7wEIrWD0TPUBvRlc16kjDw1KvwvS6CBrl+O4WpnonTP8pkz7sgs6fFSHdTD7y5S1QKXTwfIJo8idEcBoB5YneMsqfEB5sqpnSMxPtuOnbTQ+lQzMRUeAj61XdZLC7Z/Xd0237iA9B6VdFPKHWaMdHRBbpHYsyj1UpTEwPA7L5/V9m/zTkMWNjpHG3RBmDePh4B+gla6tFMK7WFOHFnyKBcnqp4eIZNtUaBEPPRSrCwPgM8/eTJ7D9pRDmCV78UAjpcdpmXOL149Tp6BUApBkGl5eqSet7Ui1KQOIqawuEIBDpvfc3Z8TCk4c8U5wifC3taSsdx2TG0F92yAempeoCZM7CSoT3N/iNyQaHcQ+GCLTrZp9dM4SVBqGa+Nj8btSau X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 47c3d5e5-0b2b-436f-b128-08dcb29edfd0 X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Aug 2024 02:57:41.1349 (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: EvgwC8OGTeYSIVuicZo56wY3hPWwzpTLS+aFujSpANCAw2CMtEzWFkCjEjMojrfwu9QhjWRoLxEh2CisyxdG4g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR03MB7120 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240801_195753_299524_10A2C6FC X-CRM114-Status: UNSURE ( 9.04 ) 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 Change-Id: Id9ec7338a8e86ca8a404058d29af50dbc00df3b1 --- .../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..a3361ca25867d 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 = "brcm,bcm4329-fmac", "pci14e4,449d"; + reg = <0x410000 0 0 0 0>; + clocks = <&hym8563>; + clock-names = "lpo"; + }; + }; }; &pwm11 { From patchwork Fri Aug 2 02:57:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13751017 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 5F227C3DA64 for ; Fri, 2 Aug 2024 02:59: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=XS4OTFvWM49ulxL4iaDmMY5VpwS4d9UpfI+JuRefDSU=; b=X61OmKmLFxgkGZ OAPYzAjyPSwmwuIJVz9nF2I0/EabAhZZS5klJorO9maZYLjZaYUWvry42vNsVqnSWoou1EJ664aEa lnkcu+whnWedhogQHz23yEQyXHQSyq1ZwpwENIsR3WN2ndwxsojIsafagaEsv9BwX0YBwPDFASOgQ jIOaoB9oOZNdQhJ2Rf8LBh0Glz7Rphi7nX93fucsb8OB6p2zUugIeRv2sChB+m6txF5OKgzfYvWEL KRHOnQeuxJeGEcQlh6xlwM1JLbUAW5Ws31dHfOaVPSpEdnt1JEEdRfL4Tr3RC2dD9CgTwWOPuLylZ KfoKO8A2/CqQ3cDAGHfg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZiW8-00000007QwI-47F3; Fri, 02 Aug 2024 02:59:44 +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 1sZiUT-00000007QKW-0d61; Fri, 02 Aug 2024 02:58:02 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=uYX7jMJKZu3PZyIUVvgfcuFPyIZ2n1PXO5OX7z8qwCiBBf5JameTuhYjiwZAqBVnzNYtPmxObmvfmIgIy5FEcVmKdzo37jkFRbR1uEaOQCh2JLT746k4Mhc32aZpmPtO29YV6TTxiOrR0iTrG9gAziTQJN4H7kn1agW5/wjOr9QgNZ2FtXR7A/9Zr5Pd4BgeWK0UfMM+TG32AjPA9ZYHXmR4XpGkKKdYzA3IPADLNjBsaCffPueWSVErKzEg6tKyvSrv8uKE/q6fuFDP9f19pBF2T3TACTIdrd7Qq6zlF+2bOnLI26p7Xf2hU190kooLtZKf8WocZR085mOFH+6Cnw== 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=SAO72JuUorceKuploBqGPOSQX5RXcXw6TJTS1USCqJk=; b=ZqJwxosoCxm8H4dhgIeFxhzswoJKnpY7auKPSnF6GGW6fj0xb/Qje9lkCJk43CAYr/YzC3NzJMWQoo7c38aC3hQ8KSnpqYo3YzgpHLaX1zsc7KyRbknlLI9QlrnxAKV+BnJ/3g2tL74ouSM+gxbGMJvm2u2SSHBIJZskiOTP3dX61hQyimhE2zJ+V5DvSFDD1Aw77PIOrcmpUNOyCkHC6JH2hHuwfCpwFNfOPuR9s7KkjPIEuA3U6cVpDpZm8KrrYbMoUs6soqQ1wzVXZ53LMOudFoeVXICdPPqU+76823ry+ydZM3JywMSe4A+AD35fct7GQNQyLbBePuU2kg1lzw== 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 KL1PR03MB8376.apcprd03.prod.outlook.com (2603:1096:820:12c::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.21; Fri, 2 Aug 2024 02:57:45 +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; Fri, 2 Aug 2024 02:57:45 +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 v7 4/5] wifi: brcmfmac: Add optional lpo clock enable support Date: Fri, 2 Aug 2024 10:57:14 +0800 Message-Id: <20240802025715.2360456-5-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240802025715.2360456-1-jacobe.zang@wesion.com> References: <20240802025715.2360456-1-jacobe.zang@wesion.com> X-ClientProxiedBy: SG2PR04CA0211.apcprd04.prod.outlook.com (2603:1096:4:187::19) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|KL1PR03MB8376:EE_ X-MS-Office365-Filtering-Correlation-Id: 4c940205-3505-46d6-6f88-08dcb29ee22d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|52116014|7416014|376014|921020|38350700014; X-Microsoft-Antispam-Message-Info: lYWZRUc3KWFRQAIOr9w5WQlcC/jqDpcDOskjB4/AYUqvQtapxuzsuw+sJk+OGOI7ZPuzIwgtRJEUy4JowuLIol8a8TTTvR04G+Be6TzcILCdXw/4dTgtO3vO3rgB61M377pbw0yTU8vqI6RWqOxlj6mtDUA1PfI/q1ecI7ATrvmCOIo14FneLTOX87Nl197jnbgre8mpQ0KfOQeWo4RSioLbBPthVjn3Pjapvm8Bx8js1/G9ZvSrJLQ8D+lPsx1Oo8pyewcoIIl1ujpHO8HrictVo792V/5nFJ4dwIkdnNtXAouYKdsVWYnDbTNAC6tl30QkR85NywNuLMdNF8nvNqWdiqgRYiplI3QdEvnoI6Ur/h6/ygVCfatpbJkf1IH0aJwVzwkBQaqGsYxhPGEcqxVwDrYMvsvhlrbmrNYJUCrAKtUumLbVpc2isMGDtKSnl10Zpg2PmZ3DbSYkDfaE/w+pHgcsLzEFdAdvRSc5l01O5B6qx93wO8N1A9KU17QByV3qur2w1bzXMMSl/odrlcdg986yu/x4XJfq9B2F+MbYjt0F0IT06j2jb1vFWUtv9SI6rDqSbzDxX9jk+cpr7HjehLOEDqZRH1JhXEOCJdqQl0XFrrkNmDH3f8KRS9fdS/KZRxrmKwTNegnFOlxZIjexccOCXN7D2+U4FXjbXYhuV5quVXs7VD9cosfOsIVGinZlD2S2pK4u6KAPhVWuUQVD849/XTpc5dSOcUR8W8o3G/Xf3OALvKWG4iE+36kkzazqYP7+QQfAu/dXZk4G7Jb3LthKHTWwNSZd5B/ACHZQAGeR2R8X6nVOa24LSFD6OlmBAu80be5XDFbSFj/jj/+ybkkP8LNQ+DjixccMVAt6kyYxQ32IuzVCJ+kKYhzZRDKkRBQV70qwHb3DL7jUUlZ5+bgMX32+E3kvZn/QarISUJ39/3csZG/2aSXtq2tELX9yat9R3IeiJRJ3sEUKj6HcXmRi8/5Y+mJghzoAzxRAGxpfwP8LQgqAl+ExmaPEFuQnlQSEY9DKfxpOTGsGrDRLDjmxH9sVuxfGWA2cIUcBxcRUclenkv9gWCq8QIms5JMEjgKM/aIGEJPIniYhuJPpwHp90kZbN6UZjeEjntwfoOCzjlWGelsBjg1p/7MHqTsbVWdqrXPYJnxbrxgna3Nm6cS9t8u2RsJaimsbXZJRyGjY41adYHDSB2verMR+ZuJHyh1f/99o35L23BFlRyeru/lEfB3Fh630/X9ubaKh8k9OeFPMFnhWCnCPBCBojx8xyA1tbprXBZWKzptvT2975oQ9wLREwrXGeV072kuTSSVQ4mWrLH3uao9qlIBQiul4jkFdqrfTM+KAj+ReGGqd+3GOHt6zzu0S4QbNBYEGy1PpBVOCnpbw/iDCXEIZhWR/VvLPjIthfD50EthwCNEjhiDSEMycY2LfCDJwzVA= 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)(1800799024)(366016)(52116014)(7416014)(376014)(921020)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 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NglCWCwzWszviap9GShwtEfa9Bi/zIlwfqrBncXelMe1RgtRHa/KvcTo60DyyfYehotAFm65l+XKbbsn94fSw3PM1/4hjGVcvb6nQY76g5y9v4A9axUyEUL9zDCMKkkOKXSMLSL6uDHzSXAj3wuUJD50NkjD6pU6TLcqki2jxabDk+puNw6KdmmKI+N5P5z1fF02rziacAOIjZOJyELHgHirzLjgcs3c9ygPlCtF4uzRgMqzAF3WDh8+f60qGUrLnLg/VFZnTwwD/3PIhS15+lV1Y7MC0+33CZAbW902/bpMzacO71/irjs8XyhIzrxA11yuWFFlBX/dIKAl2Ovc7LUVIOXcS5JZC2FSi5VD8QaRdqGiBPXhXIgrbqj9opxGmu1nxaAA0fIFDQyO9HG0Vjj6pt1wLzlm7EMaMm45NmHT4raSd00uAt4dZOIzP8MveElOF06tq/knxyIkBkJAuAcvsSwrLYkG+EJvnBe6f6rrrfRBYWtcdUdjzhgbBFxNYoTBvI7XI03zi/Ibhmhn0HLv77/8XgApKD4JPjPT X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4c940205-3505-46d6-6f88-08dcb29ee22d X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Aug 2024 02:57:45.0125 (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: vGyaBiboU+mVcIaorx290VcoZmi7d41BFPm8D5pDUprC03T2i/AoeGJayI0w0yfWHyvJj/+MHCTt7QyJPALvaA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR03MB8376 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240801_195801_256094_11F726FD X-CRM114-Status: GOOD ( 16.84 ) 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. Change function prototypes from void to int and add appropriate errno's for return values. Co-developed-by: Ondrej Jirman Signed-off-by: Ondrej Jirman Signed-off-by: Jacobe Zang Change-Id: I21bf9e21b275452369dce1f50c2f092eded6376c --- .../wireless/broadcom/brcm80211/brcmfmac/of.c | 49 +++++++++++-------- .../wireless/broadcom/brcm80211/brcmfmac/of.h | 4 +- 2 files changed, 31 insertions(+), 22 deletions(-) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c index e406e11481a62..75773f65a9076 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" @@ -65,17 +66,21 @@ static int brcmf_of_get_country_codes(struct device *dev, return 0; } -void brcmf_of_probe(struct device *dev, enum brcmf_bus_type bus_type, +int brcmf_of_probe(struct device *dev, enum brcmf_bus_type bus_type, struct brcmf_mp_device *settings) { 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 PTR_ERR_OR_ZERO(np); + /* Apple ARM64 platforms have their own idea of board type, passed in * via the device tree. They also have an antenna SKU parameter */ @@ -105,7 +110,7 @@ void brcmf_of_probe(struct device *dev, enum brcmf_bus_type bus_type, board_type = devm_kstrdup(dev, tmp, GFP_KERNEL); if (!board_type) { of_node_put(root); - return; + return PTR_ERR_OR_ZERO(board_type); } strreplace(board_type, '/', '-'); settings->board_type = board_type; @@ -113,33 +118,37 @@ 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")) - return; - err = brcmf_of_get_country_codes(dev, settings); if (err) brcmf_err("failed to get OF country code map (err=%d)\n", err); of_get_mac_address(np, settings->mac); - if (bus_type != BRCMF_BUSTYPE_SDIO) - return; + if (bus_type == BRCMF_BUSTYPE_SDIO) { + if (of_property_read_u32(np, "brcm,drive-strength", &val) == 0) + sdio->drive_strength = val; - if (of_property_read_u32(np, "brcm,drive-strength", &val) == 0) - sdio->drive_strength = val; + /* make sure there are interrupts defined in the node */ + if (!of_property_present(np, "interrupts")) + return PTR_ERR_OR_ZERO(np); - /* make sure there are interrupts defined in the node */ - if (!of_property_present(np, "interrupts")) - return; + irq = irq_of_parse_and_map(np, 0); + if (!irq) { + brcmf_err("interrupt could not be mapped\n"); + return -EINVAL; + } + irqf = irqd_get_trigger_type(irq_get_irq_data(irq)); - irq = irq_of_parse_and_map(np, 0); - if (!irq) { - brcmf_err("interrupt could not be mapped\n"); - return; + sdio->oob_irq_supported = true; + sdio->oob_irq_nr = irq; + sdio->oob_irq_flags = irqf; } - irqf = irqd_get_trigger_type(irq_get_irq_data(irq)); - sdio->oob_irq_supported = true; - sdio->oob_irq_nr = irq; - sdio->oob_irq_flags = irqf; + clk = devm_clk_get_optional_enabled(dev, "lpo"); + if (!IS_ERR_OR_NULL(clk)) { + brcmf_dbg(INFO, "enabling 32kHz clock\n"); + return clk_set_rate(clk, 32768); + } else { + return PTR_ERR_OR_ZERO(clk); + } } diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.h b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.h index 10bf52253337e..8111286fc4b0c 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.h +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.h @@ -3,10 +3,10 @@ * Copyright (c) 2014 Broadcom Corporation */ #ifdef CONFIG_OF -void brcmf_of_probe(struct device *dev, enum brcmf_bus_type bus_type, +int brcmf_of_probe(struct device *dev, enum brcmf_bus_type bus_type, struct brcmf_mp_device *settings); #else -static void brcmf_of_probe(struct device *dev, enum brcmf_bus_type bus_type, +static int brcmf_of_probe(struct device *dev, enum brcmf_bus_type bus_type, struct brcmf_mp_device *settings) { } From patchwork Fri Aug 2 02:57:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13751018 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 9B096C3DA4A for ; Fri, 2 Aug 2024 03:00:17 +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=VTGsWd1ku+qXBR ox4skSe5Z8s9/rGXCX5Q09mZ7HZ3vpRO+RB99G8ijQhr3Hy9H5/LxgKMCEWUYVjPJ+js6RqmHJkbd W1qaMjOJ2Otl1GDVj5jk6lnGC0hFVL2ykZd875r5CrTBwKlX/IvVTWN4ejs0FiINPatHywzgtq6Qh U3i3Quk8Fx+UQFd++XM3oHLIPt7J++dmgvOldGZYw1UFtmGMVwTTjWIetJLUEZcIrVE20G9lPhq6V IeoPlE3c8/P/vlXYM5J6h5njEePoGIJo7WS9xpGWSYfM8n7Pv5kfGZusUpA89gA52ni6UMsfGqUuq YzWVE5ypaSoU5tEArQRA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZiWc-00000007R7M-1Ywq; Fri, 02 Aug 2024 03:00:14 +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 1sZiUV-00000007QKW-099s; Fri, 02 Aug 2024 02:58:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=zP/hhOrocXZH3Wc6T+o1NDnjV7JltNBRU0v2Wix/tD8S7FWwhcFBjojejAHU2B+ybLZyT/cOhNFC+wbV4rXpeUXhr7J6iaLyBXLqmqRremED60BbjQZAVfP9hqYIL08yHn415I2rm2eKZ8lLgq5O/WHstcaDPvKElyidBC5kDiryQJo6UuYiAC78Ig/99+n/hBV8nTtxm+HvE2nKKxGOvoIaOHoiBZrsbqm0sCPG1graXOdw7qZkaTTKB+WAx+6qHSWp+0dMbLxT5t3rFW5xoytQ+dze/xTTfSgeVj0dl9jjirnXggxjkF7/pQAQG5Z13VSbG+hMT7tkhx++1rL/9Q== 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=vXIUUG4Dlp8Y1oONiQD9AlDlHszQ8PSrNOQepo4GAKu5LlskDOuEw+G+cBWuVDUokV+xXLjnGi3mWSYlr99EQalf3hUWIbzkeaK5DI7OVgCXtcUZFbhq52l9b4eVEhAAVqj4CVAN3V8QIDG2qtuAbpbjgNZHLm+zfTaKhfnfs0XfHiIshOlEHBlFlD11RS0f8zcW8CwfkJnM2DuSLyIFHpa208hbRHsUqnhQUoj1g+zwRmUiWk5sDHF+Z63iehTbxGX5uRcVOaLqW31lo2BFNQAzLYFnexe69l0Pf53er8CYl/RUQpLz9tkHu+t+PvoSVZQHTPN8jkHG5UzD0okuoA== 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 KL1PR03MB8376.apcprd03.prod.outlook.com (2603:1096:820:12c::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.21; Fri, 2 Aug 2024 02:57:49 +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; Fri, 2 Aug 2024 02:57:48 +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 v7 5/5] wifi: brcmfmac: add flag for random seed during firmware download Date: Fri, 2 Aug 2024 10:57:15 +0800 Message-Id: <20240802025715.2360456-6-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240802025715.2360456-1-jacobe.zang@wesion.com> References: <20240802025715.2360456-1-jacobe.zang@wesion.com> X-ClientProxiedBy: SG2PR04CA0211.apcprd04.prod.outlook.com (2603:1096:4:187::19) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|KL1PR03MB8376:EE_ X-MS-Office365-Filtering-Correlation-Id: 676c7624-5b06-4e87-af2b-08dcb29ee47c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|52116014|7416014|376014|921020|38350700014; X-Microsoft-Antispam-Message-Info: Jvq3XyToX73b2UzNgT5gqV/St3IxQQCYs2pRlgK4KNcl3crE308uTcuS/gcdZbMPcsQmiT0D8rEQq7P6MNOEa2nJ/ho1xh33+odRrXeq/DSlCJAL+B+LVq90QIONCLZ7ybp9e72Lf9jmYbq/EZlLJUdcRDrZHum96Qc2sMQTB3BiHZq1B1pBlKMFqiYiVnt2D+g/s7giQapIMXi/SY51y+VwJ+rX3xQA82nBszm70TXWvySHJA0enysQ3cSb9wfTAFea8XcJHZDLaBRtR9kseUDzEc917F6LYIpUYa3bovUFXTIfbFwFYxTjsZYNl1x40LnLjDyGhLhMLoE8FiM4CKx2d1Q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9CLQzdIZiKLxmYvp2B9yMnm62ISs0= 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)(1800799024)(366016)(52116014)(7416014)(376014)(921020)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: gfTGzo8rMTRnBfHQVhapd1iOw2d6fyMP2XAyB31ZsJSk1dZd1BciERdT6zhg2KgYhynHXVAertuA708WWZrmD98O1HHyn9TvDqB+2um+sip3G8yacAF5BFNvEWSDTUiOx0UcTbaRyNZyf/7++rOrswgZNfawHylJQjzu2Cksogdqn2n2Iy3ZY2UL6DFKDaQEDyEbF0yRK4+99LB8COu+4o1J8gU5H8UhI6WsQ1U/dB2bsCQX6cXvTYgcsOM7g7AV25HQGy/K9voKw0/XM5gFup4r9rnsvGjWHMXIkhb7LtCFLF8aRpPt5sRTkLFCXEoiQxrvPzA/AmdRFRCQtrfdq5bpSNIoPy2UwRaN+ItQKn5b/1mRtmpPAdMpOwm/brIO7xoiWcicAvMhshRpc7IzAh1P1iEzeD4EVdr1tHEhW6ivOg0wB2czIEE5s0ju5g4pQJcoTcit32PSZ0AFjYSkvKkBh08Wml89nnLEcaGa34IRMrgLELKv/Ljwm/gWNuEFLSHyrcew76Rn9jLEeup+4ZHw/0deo+tFo09J0/lIFoN7yEGBvikAtesIsuIfFEKppDXSalqsfkW2TSj5BbeRaVQ/Wgv89vuMwSXweU7XsEhzE8DF81LMiftatg1KOHXS8JmitqvOW3Pg3DTrhsJMTsQ4m+3a8e1bYfv1ty9+gAf8SpGnM9Vs3uIjM+yteCCW7WzmHJ2kWDUv5aJpgv5Yq+9TtR9gu+AJNCoOcv8W/QBEHY0IKyifQ3lwGw7grh8whP1uEFOmApJR4ZawAWTTXavKbjbgTeMkYb45mfpMO2Gf0zD7LpRr3xHrWsrIfCW1xwXJbACvQJWMxv3bxB0C7NxXJt4evrXtUXwVjQoh3yB3Oyn5bWouNPoxY73fINGdrF1LGv+CFuN3wN8MT3XgoLYeWQII8BRXJhYXPA/BQKG6WCBremH3LwK58l4sPK+vNA70Vj36zDV0OTNmPozgLFP2CNLTut9+O+Fa7x4k8LQvDVeF0FfnjxdPl5GBf3QxPUVFkXwOVokN6WBGX3ztrO8Rv6nwSmksCweDwUDNeqt/SdaH5OU0Mc7AIoIfU++nPcqoQ74Jz9mIbTBF37G8+CBuOw6jDccii5YS6KG8kVwpkRT3I68+5zjcwVDt4zRMcoOG01SCwxT3uHAlxdRswNSJtyHdi5ccYN+521iCIQ/fbK2DgthJeH4ywC0jFsy2iYuUohvnn9pkMUbHBPCi2alRfWUu5iJ6bbBQrCdVD5zrId6FTlWRZ0OWZd8Xpui61PtLUnTkeBqy5u9MrGhqiG+bi/BpRWPnRqOO5p8TvIxMncFCvHuKd5oqCFIFmFT3ZRfRqUHc1wGjgQSA/gBeUAg6jSlKuf4tJrd+VZFwWjeLy5zjwdBgxko7jhgjlVNpAC4CeN7qNU0wcLUNVMKE/MqjWej1WRssew/E07iIpCxqWUQuzYQv2LQHY3GleX3Sw8dpfHKpntPgy5PgbmMX/L2KogmDKoYiZjDJvXztvKAtiqykK3KGjVzLv1gOJgSs5uZhD/S01OFgFWbgiPvPdajmNw269cD62aZVBJzdPSUFimNw6KT3NTwqTgjt+J+N X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 676c7624-5b06-4e87-af2b-08dcb29ee47c X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Aug 2024 02:57:48.9132 (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: 91HjvrHmT0Gxda90T2bNgDvsfL5M6ad+WqyaZ6XFXPf+yDC/lOG9JKTTgoysCWcH8ZeD5rwnPbUD46R8vCrjFg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR03MB8376 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240801_195803_165088_AF59826A X-CRM114-Status: GOOD ( 17.04 ) 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