From patchwork Thu Jun 20 02:00: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: 13704809 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 0F90AC2BA1A for ; Thu, 20 Jun 2024 02:01:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding: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=HClTLOHMHdy5kxSydXytS/7hgy0X2wKkFJ3pxOuojco=; b=1nq1BwJeEzuwIQgEAKEjVJ+gHY /gQF2pyjL6Y9tgOquB9srL6An+TIAYKuHCHNQ+h2dVhhawJ9mgLDfjWZqh/d+yeZEDqrjAwToiVrj 7Tu8esWvCzPQKpvaPcYez1OzZOnhMLB2+Q5EvhNlkuJ7GXomB3L5sM13qgUaAPKLvpvC2MDHAmFo1 31dFd4RRSwJwXY+RhKsG5MEMzDs0LWeQxT0RwtHYuQGPxxKdrJp2YeVnIt3ukIclW/gUdL5ONjRFF 33k3o6YlOCxAIzp9HLhGl/r/CTdJEwrnMSAdV1qNYUww3i7Kw/lup8ADlcSDD2B0NtMSiOpP3k4vU bc2t/biQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sK76f-00000003JPD-0D4X; Thu, 20 Jun 2024 02:00:57 +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 1sK76V-00000003JJr-1brj; Thu, 20 Jun 2024 02:00:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fQR0p8zMXGL+YQKuyG9HTgcs7DKkeWFxOK9j3PajvyaBbjskda7UeCVf6o3Iyg08TBLj40MGiMoiGabgTRP+0h/3xbpi0BZQzBZzHDVIo6htHIbMEgzqmIxgzxlTxzdmaPgyGQF/R15tUSDbaVfD/JaEj7M0d3dGhAgFhDcd2ikowrnQuB6Pgce7w0RisuOL78RTs5YPOSOmru1VFMX/vff/TCMSG5kC13lX7/QN5LJYVRrZHDZyoLU6tgrA/3fQvsWvazl2LLVfKV04cfGCPX7Yjb1nEZwA2Vw0+BEKHYW0e3n23KnDiqQgAFkY5gnt1DEH/sz5SLAbA4dcNt63Kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=HClTLOHMHdy5kxSydXytS/7hgy0X2wKkFJ3pxOuojco=; b=Y/U9OtMgXJYV3jeW2/AXGBP5VPNlIQQlcQDUaViaIsRfB5k4TaLL9HGQDEKgiXC+BNUaTR+pV9sj7E21Y4UdAryLhOXGnkcglaSTbJZuwD/M7whCtyZTp8qCY1fcGOBvrhGgMR4KEAFP3h3RQmKEZvlxF0tqQKmXMYXAIx1XmfADFYQoLuRdkd0C3qQJjZCZo993t2Aae9hwC/0fZPwEj7cDsbWShjgC+ZW1YwjYui7t6GJMRESOnVv5gy7QrwhnsxMvVBp0R+KU8kBrzaCO/+J4y+/m3L6yin4dDmRXw0K1YHDae83aCN0nRa7J3nxRNFnw7ZJmLm+dkX8faAMtGg== 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 JH0PR03MB7323.apcprd03.prod.outlook.com (2603:1096:990:11::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.31; Thu, 20 Jun 2024 02:00:30 +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.7677.029; Thu, 20 Jun 2024 02:00:30 +0000 From: Jacobe Zang To: arend.vanspriel@broadcom.com Cc: kvalo@kernel.org, duoming@zju.edu.cn, bhelgaas@google.com, minipli@grsecurity.net, linux-wireless@vger.kernel.org, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, megi@xff.cz, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, heiko@sntech.de, nick@khadas.com, efectn@protonmail.com, jagan@edgeble.ai, dsimic@manjaro.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Jacobe Zang Subject: [PATCH v1 1/3] arm64: dts: rockchip: Add AP6275P wireless support to Khadas Edge 2 Date: Thu, 20 Jun 2024 10:00:13 +0800 Message-Id: <20240620020015.4021696-2-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240620020015.4021696-1-jacobe.zang@wesion.com> References: <20240620020015.4021696-1-jacobe.zang@wesion.com> X-ClientProxiedBy: SG2PR04CA0185.apcprd04.prod.outlook.com (2603:1096:4:14::23) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|JH0PR03MB7323:EE_ X-MS-Office365-Filtering-Correlation-Id: fcbf89a6-db5c-477b-75b2-08dc90ccc329 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|1800799021|52116011|366013|376011|7416011|38350700011; X-Microsoft-Antispam-Message-Info: 0TLun5Kn4HFeib6KHzl17TP7Uc73lXkxiN1JQRA+7hBz3xztDK5gyaq8cC4ZmBCdQg9focb/nb14EXZRihEhA1U3DzAx54jT0CkJG1EHmht2erV01JVtki9pb8DgcoHXEBieXui0dPXzucG98Z/YlK27cZvQ3WFVarHd/UxcPZGCaYHMRWDs04JZPArBY5pArMs/BAgJtim5DgeCtfrWwf8qvNWjT0AMkW5stuye/0lf8l4PBHDhPifQdSJR078bvbPPKvH67qpylbU9pwhcGv4dFXYDG+JHS5V3qTe/6ZJ/ZemNgvcj0vN1dlIVN3F8Ygm7grJ2Q2DVP2ozG/ZjJZqDDV0Nf7yr7TfVga+YNJ8BJjJy2D8J5PISkbZy1/29M6ML5GlAM8pRvi8T6mIX4sPsxeWLyPwp/tbRAYx6sa6/UCxRc0nnA0hEiX1KHeWcGcB4Wk4oCdE8r1FU1lYQonzkSPyBXx9GEZbFQ2mCFG24RWcFTMuYaNWu1XiiOa7dRT54RdoLL3bGausin+29ng+CywEbaxW3J1wOxUlLVzxlXcqIKQh/eQkOEr+6+RcQkaQy9gO4uTgtwzn+2UTtqllsjSPlgfJvakobl/JL3bsxr40A+9CNHff6sQB5B7EScIvEYJhp+HKhxmOMR9QdBWP72Zex4tLCpeiUgdrOTyOaoplre4wq9WNyOOcVKzalqulk00ootgMy+neBzhVCGBwj2cXddLgyUU0UYVTv/pUfyG2hGNSH81yGk5kOlOvf37Z/Yb3la27wDK74HbFXhhgB38H21QIjlKfll/kZKLlXZPDeE6fI/YAKFL+wGUvXv4O/dqnT3HYJp+XGG0VX/Pl6Bi9B7COSuULoUyduxXRFZa36Jj5cIjM1SXPy+oVIyQkYeCJBj34ZuPFAlSkifOZzo2AihDFAmCoh3whyTlGEv9bqU5hKDSsX0YCIe8wZpcFm0tAPsm/s8I2zZfWdPkg8Cg0VSLHOIoVi0+9m2RTPd2vpXX6qCq+6MXNT/1cup5RWWJRuDOV0XBwi6zNUlnQcWm/dnkSJpPKmtZJUFndyzN9Z2kKzLQ1TCFbO9W1XuyCYjfiyOI4YpgmjZ/4w+Ch2BZjI4a/huipoX3OCX2ZVLwG8aTAec5ppViMaafU4CZEw9wbS11S0+NqwKjwta0pCKM8y5mV0rvFMA+o1pcgFmEB1NKwTy/ZCvwQTfu95Zk5GQQmhAfMRSSGLtpve897ERXXenUQGfcS07W8jsz0ncoerTCTif9LQT+vyeMsDL3BrYJiQPQnlcXzag0a9JsvzMMax4cbF7Z33Dykb2nnCFECEUimJw3i/WOThZrL1K6/5tVZcvJ0/TlJjQeZZgBcBxtiOGZUcFLwFdcHUQBc= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYZPR03MB7001.apcprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230037)(1800799021)(52116011)(366013)(376011)(7416011)(38350700011);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ntECe9EVN6vOf/o8XHIfdx+spvWFwIica4l3DfK37htTfN2K36AgHb0TtZarUENepE5GN2SiO0UPZPDUa968MkdH5mcAOac5rDTtf4OVrEEKQWcgQdPLZZkRjl0OI7nDQ/+HxIOOZ2eKvtRqiyZC6X1LzeXQIUQdqJXaAY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4Czk6Z5biFtZW5TnfnpUeW1IhyNMgMHE44KCUPdq87djUnj+AZ1lVKCvCe3rE0MSLEBq6hVCZ32IB8sIBfs1QayCjq5CgJrz1f7FMeCwF2Hr7msLfJkZfeogrYTt/9IB3NlkzVMRhqTNspDWtMvsex8AiKYLGieLPRsVgGLXMMrOyiCl5pUAM/cd0vQHl0tOTyHKBjN/n5OEDmneHH0RxgGoyXjNz+isQj+96Xk3JFY+siizVfVZ4T2XK56msgSD4JYYurb/YTMhx8Z20E2eEpgHyn98QWJq/v/Hw72yjKPZKSMp99qRlTsUfWxyCooIuRDI8gExAaX9nKSElN3HLKKz5+rM X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: fcbf89a6-db5c-477b-75b2-08dc90ccc329 X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2024 02:00:30.3614 (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: zlp8ha6CWXb2ymY1oJHYWeXiTOx9xmK+4g7kzbgpB2fYVluBk3pWAUcX4LZJMJ4KbsJM14Y4KDCffo+5FxsCug== X-MS-Exchange-Transport-CrossTenantHeadersStamped: JH0PR03MB7323 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240619_190047_454257_D2C01E36 X-CRM114-Status: UNSURE ( 7.78 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Khadas Edge2 uses the PCI-e Ampak AP6275P 2T2R Wi-Fi 6 module. 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 3b6286461a746..f674deb6f7da8 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts @@ -356,6 +356,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 { + reg = <0x410000 0 0 0 0>; + clocks = <&hym8563>; + clock-names = "32k"; + }; + }; + }; &pwm11 { From patchwork Thu Jun 20 02:00: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: 13704808 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 5A574C41513 for ; Thu, 20 Jun 2024 02:01: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:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding: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=ZkVurDLG07C+m6bhwpnrsDKZOwn11qTfnd6KEOFHxhw=; b=lm7tPUWf21WPF4YfyyFBFYQyuP 3yG9+YGFuaKGUGh+vZo1MwrMdEqSl481BoS50PfQXqkssk5Y3Sh8KUKGuJjtZ7XOXH/F0bsEfgrVf LtCDJfqgmJumQCz+cP42f7nE0qCblcD/aSmfOpQAkKjr/c96NIaKtsQ0YlFhf8J3H6+fdxKpioJ2T T+FJbvrtn+Zo2gP0XkO3LFi5MYW+MXFAk6xsmdHZK8RG5Tz+eaAtFFY4JV8VBS5Ob8Bhms7HcQyzu Md66isiY8fnNzrCBBnvfpOM74EKPACNF+aXWlcRpx6CVys88C/SPKD4MXJPav46+cIDGZCcMGIjQA /3aFQ4QQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sK76h-00000003JQy-1b9b; Thu, 20 Jun 2024 02:00:59 +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 1sK76X-00000003JJr-2b8A; Thu, 20 Jun 2024 02:00:50 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bjAtLp4ogYh9Av550FuUSPy48Q+fPNi38asCXdkT6qWlga+eqV1FH0qXvlJWb7vB095FnBfqTw57o7jJwK7ys07bbSquT9Mwn1lVhk8z+asm11YiYVdYIlWX/wYWL7SzO+hB30WtU/yNHBV57Q2euOMDRFwTcI5FRt4CG9eHw228uTm7I82dR2HW1y1aoHj4dX094hFPw50qY1vhnotnofX7+/AV2KkZahH33hJHdO4V4H1uPOynbPYsrg4aViB1+5FyB8Jx/YBqJgSaGK4NrqE/RKXjMAxkTwAJBfpwMY8HEpHMm6Ud2P1cf182I+SFXSGG6sdej2w+AaUqqfVXmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ZkVurDLG07C+m6bhwpnrsDKZOwn11qTfnd6KEOFHxhw=; b=RkZNrbrFVvn3WjtXjGnlzkeQ7lxdI1udI5mWD5Q7zJMQc0JAdj/AoVGe2LTDc0G6naqWvBZsf0lBj2iAzSpj6aJR4eBItyLFajwb9VUeWuQ2BGMExwx+HZlc67hb9/CvHSXxcNGarMfGQklQxhanee9USL2qKHubQjGp7zENQCW4Dnhz7YYFcrz8s1vE5bRIyZZzDXPddX2yo7BUkGAS+OY3KIt7Is9Nk3b5a4q6SfLqqwW5IZDWzPg1Q7tNPaF41a1z+DPC6LDtRKju45TX0ddl/cTpbv5PLUh0lml7P/3s1vkm++DbiSgWSbOHkYh+4gcdAUWsXV0G6KNIsIwwpw== 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 JH0PR03MB7323.apcprd03.prod.outlook.com (2603:1096:990:11::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.31; Thu, 20 Jun 2024 02:00: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.7677.029; Thu, 20 Jun 2024 02:00:33 +0000 From: Jacobe Zang To: arend.vanspriel@broadcom.com Cc: kvalo@kernel.org, duoming@zju.edu.cn, bhelgaas@google.com, minipli@grsecurity.net, linux-wireless@vger.kernel.org, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, megi@xff.cz, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, heiko@sntech.de, nick@khadas.com, efectn@protonmail.com, jagan@edgeble.ai, dsimic@manjaro.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Jacobe Zang Subject: [PATCH v1 2/3] net: wireless: brcmfmac: Add optional 32k clock enable support Date: Thu, 20 Jun 2024 10:00:14 +0800 Message-Id: <20240620020015.4021696-3-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240620020015.4021696-1-jacobe.zang@wesion.com> References: <20240620020015.4021696-1-jacobe.zang@wesion.com> X-ClientProxiedBy: SG2PR04CA0185.apcprd04.prod.outlook.com (2603:1096:4:14::23) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|JH0PR03MB7323:EE_ X-MS-Office365-Filtering-Correlation-Id: 543bd33e-76a7-44ce-607f-08dc90ccc51e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|1800799021|52116011|366013|376011|7416011|38350700011; X-Microsoft-Antispam-Message-Info: Kd1HIC62lZCb8yMBfnmviq2h9u8AtfuunTq60eRrLguJk2Y+MCF7WoKg0gVnO6P7oJ/ruyuShzxkNHZHae23ehBD3B95BnvS1W7omHO+wCxw0I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Rd7tFS6suqipZi1eF9xyKGotd8Gv076KDVdUkS3RVB7lJHCHJV2r0JHtNfmVhBu/lbaSQRvro7scN38PVS8AuAiL8p7GiPCMw3qnsMDamXNVBPs7y+Tk+Yq54puZf0ynPjiuP4Cfu9Tk4u2cwtIAcIseWMVvrvx1ctDfDpVFoDdJCLuGEc4TLfn8JppowHLtbNjI= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYZPR03MB7001.apcprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230037)(1800799021)(52116011)(366013)(376011)(7416011)(38350700011);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: yTsCvNPjMBDLAxliKcWzFromRPDT3rtSy6C8zKLQmJK1xMvhRbsksR/kl3blxryVufDPnN0UCFo/2Tmv7y4htqjnqw3qVFnAIZe8Vs8k1CsOeNy4rjlzrErUM78ZyHfTXJU6Fm1hGckdFH2v7Ubq+K2eET6Q82DC2yr/laIt0Ov6AFzcvxUgeog5euvB6jvDAPIHnVd7fYlHquUzc3o4hNXEe+Y/WT+2NAhUCgow0y25io41vv0oKc0+NncFvKSBP7O9hpkCcTG3l64LPLF9j9zNSCvUA/OZ2seQwNSXgZGMXboOVh8kSga0M52e7NsI8DUY/1qvqwIQUpN92dsXppaLOL4mCziUNGiSUi76N37d3tXXejTMU15o5xHtSG0uD41qw7ah2l3keigQ1u/FLNZjSjMzTrgZ4w/aQhr2gq9wVKzEJw+u++3VX+lDmNhtqfo+O3wQ4ZSZyjp+8FYHgSwSzwrIpFCq1tNLwiUQCfbk6LahqYNXRRgXdN+wZ8A+IKi89UZ5WsMcnmVKjLfEMvnZY6W+kvKJIgmiZm/baKediu0gr4k4qNzlP5+zEktkVWZkECAjbtxWk1KShnM71A9b7H3zUNOMoj3nvomcxELoviLAYvUfjUWcIPZgzxRNppUWtIE/BOqBlX3ULI23T9JDxWwl+BX3CK0xz/aB85AwsihYA9s+57o6cV7RUStZdRM5DYCtxQHzu1MuS1TpzzdW1E8IeKCqvKBk37++0AsdZUL+CMUOfkAjQmieIxRMDhC5KMO4hSau8w+84tX+hNNaGByPdt89U+MrOM9gIzhGcJBCRkoEoOWeER2x1P9l3Hq0GnZBnLGBcr3y28gWlCI01JdRXo6+JFD3fSAAZE9VtgnmZBWi2b0wy4Nh3R6S1Jv18Q/FiiLsOt1wOYhq3lnQF8xj+iJUpxfZFEQ7XpdtOyBSjvCkeeErucFdQ5eyGPU9w0lPVL8no6mRy2wp/tCf3wkCXgkPlxVDZN3oGOrTU2gLbeO+yWBtLvLOtRwtfRmCE4c69FLoAyb5Rgsx/AB0OpyUd7+yTchLSb44fyi8SoQhDvQJiXx7DDWsERu25pi5w/awQjSHzb+FiBSdWIW2Lq5iyXHJ+Em/crzOC/8OwwcLAY8UIqR/6lyduV2jmgD4LdlL+MPopb9bFpSAXhCDTlcWJocvkUlB+nVfhW05/AFGRvQ4Xm0L8LKTVDIi6ISYmacISTzWoIV+TL+EqPsSbpO0B1icw/Kruv1HvkuElfDfRRGh09MjrrqcVUCLy4a/74EfVUVZE86X53PIIxzeDCLOvaWmxVFZY/kR13+eqhIZlGhAcBtWOAbLofSu3u8f4p4BkhtdRahJnIJNNbik8vTldiNXykSx21/IgWon1kcM+MN2NIeimWBC7Q3YG6JJrgM8BKtPHfYcVlT/R5pCYcfv66wYvZxHFhl2pADUy/mPtm1aEtv3KtwQtqCC0Kb9FJE2BVDXflOXMD3VKBzV2inSCTVHzUsPOnD0HRf/2u1kLyKyzv7fmS8VRUHJVLNDDH8bTkUaUdW7xi1kojNqu1Jd5YQgpGZXH3DavNA3GZ0ooJWzi7vag2vBrOow X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 543bd33e-76a7-44ce-607f-08dc90ccc51e X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2024 02:00:33.5745 (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: Plwdek2JhgaZRn8R9ndd32MvoodXSXkvdFdWYoMlVe4ed4VARqC01dNu5kK6u0rbvOVPDW3tnP2LNTciknoFQw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: JH0PR03MB7323 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240619_190049_753458_C0D775C2 X-CRM114-Status: UNSURE ( 9.68 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org WiFi modules often require 32kHz clock to function. Add support to enable the clock to PCIe driver. Signed-off-by: Jacobe Zang --- .../net/wireless/broadcom/brcm80211/brcmfmac/pcie.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c index 06698a714b523..f241e1757d7e3 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c @@ -3,6 +3,7 @@ * Copyright (c) 2014 Broadcom Corporation */ +#include #include #include #include @@ -2411,6 +2412,7 @@ brcmf_pcie_probe(struct pci_dev *pdev, const struct pci_device_id *id) struct brcmf_pciedev *pcie_bus_dev; struct brcmf_core *core; struct brcmf_bus *bus; + struct clk *clk; if (!id) { id = pci_match_id(brcmf_pcie_devid_table, pdev); @@ -2422,6 +2424,14 @@ brcmf_pcie_probe(struct pci_dev *pdev, const struct pci_device_id *id) brcmf_dbg(PCIE, "Enter %x:%x\n", pdev->vendor, pdev->device); + clk = devm_clk_get_optional_enabled(&pdev->dev, "32k"); + if (IS_ERR(clk)) + return PTR_ERR(clk); + if (clk) { + dev_info(&pdev->dev, "enabling 32kHz clock\n"); + clk_set_rate(clk, 32768); + } + ret = -ENOMEM; devinfo = kzalloc(sizeof(*devinfo), GFP_KERNEL); if (devinfo == NULL) From patchwork Thu Jun 20 02:00: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: 13704810 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 0EE65C2BBCA for ; Thu, 20 Jun 2024 02:01: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:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding: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=U6hbGoEs9Vr71hwrQ+0VzO3tMCpU/yX3mus5cqX6VQ8=; b=hZRQKeDhpRPbjpqZNfx9OPCH6A ZKDyfM06UmQFINdg73Jl/Ld7ZZHE0bEXlG7prkE1T1BTDhgCpxlO4E+3n9vBroDIDuwV7AYtrwae/ vfqYqB9mnoKxAHTKixa/J2wMePVdvMh3hzeBvkJidNLuBj+v4FBj0vD2keLFelCxbPcPl7vCZiTVi 6MBu1ZB1RXlTrXXtcKpBTncZgtQLUILK0DTSKRHa0b2G5j9MmeZdJTATR6WG8aQLE6xKOxFXdIowQ SWp2aWY13oW3lNbBIIYuEvagdxrH9l+rOWraswQnPmW4f44+HmLJasJmBaPzZ1ZNzjtZ8MUDwgkI9 eeo3UYJg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sK76j-00000003JSk-2uKD; Thu, 20 Jun 2024 02:01:07 +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 1sK76Z-00000003JJr-1POt; Thu, 20 Jun 2024 02:00:52 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fFufsblirz2lMH2CycigsI8yd5EDLYFUQg/hrlDtA75WH9Jecjg1h3YNIeRGste3EM/nG9exizCjKWmRPj4ljHSDJebP5bRmQsfa8Wj2DNe6pGXRubjUUCGUlFRrJT1/3xcDtFY5UAs1FiCSSsji5J/NnyNOqxrOSUqQkDbHFLI9Uuhn/uVl4Y6E/Y4uaJpuqF+kGAVcAZdhwP71h4bEyDCTB1AWqUIZoxNZQDsXN9q2xoxRocIXbxYunFpbp8Blr/pOXCLWtsMxOMmDa/hb0vX58IklL44nT0fEkkPT8CtnUFbwORCXCrZr6tY538GKsVEmNDIbUvXIC2vC+KKFBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=U6hbGoEs9Vr71hwrQ+0VzO3tMCpU/yX3mus5cqX6VQ8=; b=cEs8HzxhNamXOm/VM/WMn8xYgwsh/fmyRGqjSTnItrbWgavGGtDHMf5+EZgYbicZVl3x2AWBB3oae1Celqi/0CSJXVxiXnEKFtgBEUxiBedn8fBvusYZDnnL/LwKMrAgKni1yegPEmoVeBi6WiXwPKAR1LLV7klSuas8XOZjyACoM20m+osLUK+1pgtJJpgD6c6S00ojgAMPOEKDg+qga5qLa6VpH+jC9mqMjZYTLEA5I4k6EICeIc1ZydM2AVaSdglyE6TxAgJw3Fw/O1+wVhWyN5D7K4jqAn0uVWzsJeyLE1y8KtkC/MH05w29wsmESHGedDJzGURROymY8/AyBg== 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 JH0PR03MB7323.apcprd03.prod.outlook.com (2603:1096:990:11::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.31; Thu, 20 Jun 2024 02:00: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.7677.029; Thu, 20 Jun 2024 02:00:37 +0000 From: Jacobe Zang To: arend.vanspriel@broadcom.com Cc: kvalo@kernel.org, duoming@zju.edu.cn, bhelgaas@google.com, minipli@grsecurity.net, linux-wireless@vger.kernel.org, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, megi@xff.cz, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, heiko@sntech.de, nick@khadas.com, efectn@protonmail.com, jagan@edgeble.ai, dsimic@manjaro.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Jacobe Zang Subject: [PATCH v1 3/3] net: wireless: brcmfmac: Add support for AP6275P Date: Thu, 20 Jun 2024 10:00:15 +0800 Message-Id: <20240620020015.4021696-4-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240620020015.4021696-1-jacobe.zang@wesion.com> References: <20240620020015.4021696-1-jacobe.zang@wesion.com> X-ClientProxiedBy: SG2PR04CA0185.apcprd04.prod.outlook.com (2603:1096:4:14::23) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|JH0PR03MB7323:EE_ X-MS-Office365-Filtering-Correlation-Id: 46453918-9b87-4954-2289-08dc90ccc73e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|1800799021|52116011|366013|376011|7416011|38350700011; X-Microsoft-Antispam-Message-Info: krYlmyyAyhxcgjUe+S0xXL8S49r8oANhVx/+ECJyyd8UfSntPwPTkzPB1cGazh2tZl2gn8nDcBu7+2TunpF5b9noOG/waaISUXpiPhCM5t4MOE4bBlwClVkmC6JMs75ziL40FRDXv65PTE7BbpK76EojgtxIBxhltPM8v5ZLmUgzwUCkc1aVjXUP89bIsCpWwMTNaYPOMkjTHNxYQt/+/GeckFerQLZsMnlpnd/WWEc8spRxhMkuD6MPpOGX6WKoRWG9rWq+Ak9S1vkjLIKa/AZ1AuLlhQ18DcpmKBRPTjXhs/CklVpNIoSin8caJok26UGgqt5jAyYaJ1UwXSap7z25WKRq0hJHGkdKOBpB5LLw9fzcEhsZBh6MT0iLrgfQBj4u7Iw2/V5asdUDowaErTat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.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230037)(1800799021)(52116011)(366013)(376011)(7416011)(38350700011);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 6fGwhQi3QihAEmZ6okwKe8fG0sCEHU6swgO232K63o7O3FN2wH4d1d0XJMVSQeDSfhe+BfVCfILHOC7cWzWzfcoQBJ6gmNzmj0tVOADV3V+hlZEiIYnL/iiML4mKYj58jKMRb7nNJ5vqm4pXfPFA6oWuMXHIIa8PzzWeqUhwHdFhyAPiTiy4osxWToZ/mtjfsyi6lby39QLMANZokkvaxIuebA/WQd1Ktcy3E76RrjeRixv+YEBoOag55PsV2njR1EGN3FLBiHaJzI29iniiDGjW9ryHjMC+ipjIa2z2zpZCy2nRSvIF1FHjWXuLRmCopdnVOqz4/h28oQAa0wyEEUtFza30JG5oGcxyGYNjnbCFMLebfCswdf8Hk9KsuTyJwFVf0Wl7WqX/3244SS3T7c8VZDqTLwA4iTkY0yebLj7AiF0K54qejXYXh9QvM+qFs8SRRYqLpZq2AdweXajtul7QIMi7eyjDLbzQkFJWpttb9SHroDr9LVT4pYsicXtge/NmeUjFP28p/sHkdOtLBEw2+DodRdQ0j6AEGotJDpp/Krw0qs9Z0JSyHBKHokbq0+ViHlKw49mDe5ROO/lalGnK3/FbIlna6vRpQkuQsGL7Fwu5eKqlZmVGWUkyW5tLVrZi3IPdChU5nY0h/WSfN9qm8UDQVj2/2vwPv5K4hrUjDevnjwqNJCcEog6tk9TZDMKAkOynMoB1E7zCAAejd7kStucvrbLnT6v5hZzxqfEnXgJCX89BiuiNqKLseQ2bAkt/MSZarRDZ9wrxLDo3ry8Y2cLcY3gjHw0rphMdAXgEdgP9cH8pjxh87L4o9YKEpwHC5wQlOOMwGbkWRnLRgZw73hAWch/5JcHriwChvv4Yfq9l1wCwb4psyGNnnJo5zZb9xGKBFz637tCeykbHtjlQA3tHR/zRf3afpNIRNI336sNcw3B/PE1mTd+nQ0aVj0+GcWg9GP169QkLys+0YCKKzO4K6j0Dr4Jc1lJx4pNh2oMtFHefX1BLYv854uueqOtyU2S0PYfdU7Ao/Sp2TtTk1TbItAm1eON2I4b4lnmL1nSvMcPSMO+dWEQjEj0x3CiHsDS31d/dvFDR4yHqDtx2IGk5h63ohVzbZ+dn7KFAQGWakKo9ZdVe/u1SbpyIyTxdsvlwz73wCnd61AzSeLMVDMh3NjuQDVcCshHQZe8fEYadLvQUyaW3CLO809uv9soo9p/nAJhKHZdSRJ6CtFqeRrEqLJQmsFf3KtLH2OuWmIBWI+M8/vJ8Mr7CIUS0aFI1uTGnbYJsDauWz8TpeITqaB5Lf5c/I3z1lbTco7P2RwD03rhLmJ1QhCCjNNpUzlCjpsELS/SZEvkqgi6I9GmBQDxPz1JwpgHLYQFMxEiMWYch6c//73bzr5W1uO5O8FBU0w0D4Vk8lXutHqhbz19NtU1LAOPujiTIeBGdN3nGukgGD88ZEPxk7GcZ5LVgjiu0L/jNPtf3WTt1hl2DqdFtridB9WaY5YonRzv2FFWBG1SSMtAWP7E8ICQz6Ikj4cd97DZrjms2M0HqXmR7Etey8Xi7Vfnmkci0P58hmFT/lVoJzOs6nOhTdzo76NOl X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 46453918-9b87-4954-2289-08dc90ccc73e X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2024 02:00:37.1366 (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: YKAryeTOiiOeVp7EfePtAGQ8sddXyadTVCmnvjnJcihw0vv0fIAd4GCjLX5l85Sqar6/MqSdDjCXIyyV+RjO6g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: JH0PR03MB7323 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240619_190051_414690_BBCB2DC6 X-CRM114-Status: GOOD ( 11.06 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This module features BCM43752A2 chipset. The firmware requires randomness seeding, so enabled it. Signed-off-by: Jacobe Zang --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c | 5 ++++- .../net/wireless/broadcom/brcm80211/include/brcm_hw_ids.h | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c index f241e1757d7e3..add317731126c 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c @@ -71,6 +71,7 @@ BRCMF_FW_CLM_DEF(4377B3, "brcmfmac4377b3-pcie"); BRCMF_FW_CLM_DEF(4378B1, "brcmfmac4378b1-pcie"); BRCMF_FW_CLM_DEF(4378B3, "brcmfmac4378b3-pcie"); BRCMF_FW_CLM_DEF(4387C2, "brcmfmac4387c2-pcie"); +BRCMF_FW_CLM_DEF(43752, "brcmfmac43752-pcie"); /* firmware config files */ MODULE_FIRMWARE(BRCMF_FW_DEFAULT_PATH "brcmfmac*-pcie.txt"); @@ -105,6 +106,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 */ @@ -1721,7 +1723,7 @@ 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->otp.valid || devinfo->ci->chip == BRCM_CC_43752_CHIP_ID) { size_t rand_len = BRCMF_RANDOM_SEED_LENGTH; struct brcmf_random_seed_footer footer = { .length = cpu_to_le32(rand_len), @@ -2710,6 +2712,7 @@ 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_43752_DEVICE_ID, WCC), 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), 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