From patchwork Tue Jul 30 03:30:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 816029 Received: from HK2PR02CU002.outbound.protection.outlook.com (mail-eastasiaazon11020135.outbound.protection.outlook.com [52.101.128.135]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C8BD6146D6F; Tue, 30 Jul 2024 03:31:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.128.135 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722310274; cv=fail; b=Gbh2G0oVgttkpeL3ld588xkUYG/SS2iqiySz3iemN3A3grqQH23UFRUDsmMhOuPfNWh1xtpXUhEAcs3adCBk6UjvBZ8dzszCB8/cG61/bpHhmwgVgNNGCdVE90ZxnCi6NbecrptfELNXsfmvwNISuO1ILlVWVSLvj1lkvktGOE8= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722310274; c=relaxed/simple; bh=ktRJBsGGjJAW7tpIhCoDO5wtOo/XHcwQyHY92weMLU4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=GGd9a+ki/PF55IKMNB0q3tWPDKpY2G5zpAVPQYDkKl1XkF5gjPeo5vInjexiGLjYF2feyB9Yri3zVjfHCFQvL3H6n8hAvW18gelNFxQdipv1jKDWIEjFF3OWdvl36AuE2whvskyJIUX8/aLanLC27F9naUbH5XM3dzCBnGf0FnY= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wesion.com; spf=pass smtp.mailfrom=wesion.com; arc=fail smtp.client-ip=52.101.128.135 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wesion.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wesion.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=K3bnBSkeUwf0MskPZohyFw8TdpvXKzW3z9Xm5nboKHRZ83PtRAPLh4d1nDpxiUD9sBCbqX+8FF+taZsMe72u/ylkD3N7LEurTw5ZCRfxwV8yt5QVkD1RNYBpXvyVRWX3zdXwMv6vBwfmjhbdE8LfSFehW98Nfgjmw8XCOWJxsBJzSHp1lHx+wwYEOC75ofGzkt3flv1SsbwgTtswtgBupT1VsGG/SKZn3RM4MLEAYeFu77SqI4oKOpFICTSI7uwV95z8nSCXwqg1NcztSLZ/b9z1sfGlMZub35U5DCMfWBJ6j9mcmNz/YVq89Ru+YBFdB9anuWhrWiYTtu2IFLG97A== 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=H6zTTdkpi6ahsF6jVbVHnvRxzFTyyYnmY/2NIU7IZ6g=; b=NcP1Wm8wg0vE1Ylj86v+TJj8As3AAKNg0tUVRNKOBSlbdAo4aMeRXCOG3UI3MUAKg2UdiVxMpMavKsHpZFGX9QLsGBbKtqbxbGXOHtNEMb5918jnHV9tPgnnoCO4EgAXHK7NNSSdkHFr08Z1XgBbWtX8o1NArPMEJF6aRMc0kep9juO5Qov+Xa6UoFoCOQIjcHAxcHfIiBHbWcFJqUlD3y3gnuD/d4Naav33BZSa5SiQrwIsUPMOfkO6/61CgzXy6OoCAZGB8SIKjusUVn52x7v3xZ/2BP3y66F9sbMunFNqwzppnyjELq8cHwTKWOmaDo89aD6horGRVZguFmqGBA== 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 TYSPR03MB7705.apcprd03.prod.outlook.com (2603:1096:400:40e::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.27; Tue, 30 Jul 2024 03:31:09 +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.7784.020; Tue, 30 Jul 2024 03:31:09 +0000 From: Jacobe Zang To: robh@kernel.org, krzk+dt@kernel.org, heiko@sntech.de, kvalo@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, conor+dt@kernel.org Cc: efectn@protonmail.com, dsimic@manjaro.org, jagan@edgeble.ai, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, arend@broadcom.com, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, megi@xff.cz, duoming@zju.edu.cn, bhelgaas@google.com, minipli@grsecurity.net, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, nick@khadas.com, Jacobe Zang , Arend van Spriel Subject: [PATCH v5 1/5] dt-bindings: net: wireless: brcm4329-fmac: add pci14e4,449d Date: Tue, 30 Jul 2024 11:30:49 +0800 Message-Id: <20240730033053.4092132-2-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240730033053.4092132-1-jacobe.zang@wesion.com> References: <20240730033053.4092132-1-jacobe.zang@wesion.com> X-ClientProxiedBy: SG2PR03CA0122.apcprd03.prod.outlook.com (2603:1096:4:91::26) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|TYSPR03MB7705:EE_ X-MS-Office365-Filtering-Correlation-Id: 2cd3f42c-124a-4ee5-2972-08dcb0480da1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|366016|1800799024|376014|52116014|7416014|38350700014; X-Microsoft-Antispam-Message-Info: x+4YdlnXem2Ut725KmYXgPzsUiYn7Q9C+7knHQJpz0R64nrEStvn2WsiI3T7IIN7KojAs3auKNSYtDqXoz0mIZX+oP6LELt6CCJc86PH2RK2/j7cVrVYLpYJ1vuYsbyU+4egRwwiyR/Un3gjzHQliG2hffE9yW5ajnZOHC+4W+nbtd4TDPGvir3//I/JUh/4/iVbvJcFVWhoQwQokesTcQ7b2YZW3TKm8V/wltvokHS5dr0AKnArZhibQogU0BC0lVqFATRMIsJSjMshypIyGLAfaAIUg1utvIU3Pl5qXttu0dgQH6ctTXKFD5DZMd+7FaE3et4By1RRzYBtcIUDEgZwVpwN9Yc1iF4kRAzQ57rrveIop+VaCvoVr0ggMDT08T/VXmfgFkH5zLUD9oDUb9Ys1b/nBZeFiHK2xq3eUSZs+WKmKq5zJR/Vyy6SGFSkqHx4Ys6Slphgz0XYUEpoHqOoVOk8DucjdOKdjvmLCuabIjE1grrqAm5bPCabaa/2lpRELlgXNCchheCunLG0Knr//mE3342ha2szRDzLtn49mUl8VfZN6UHZIxH7KzhWuDlagqLOdR/LdrX/dxCfk/UNJ12l8Q+SUjqVDs65p7gou8OojvQfBKloQUzqtCL1aD6c0yfagmFFReAtu+c4Ny+OtMSPk1XfGgbvAAoInC6RM7xYJSIM0EkU+gWqL3kqY96M52nDPpTxfFfg4tTVayfDwoySjo0Zjcp+QIRLsbXnflFD4ZIb5sM6c6MR4Lpe4R9Dm3jeuRSDdfQT7MWR0tS+aD8N1aXgr7mEGs2iBvxdTpSaPCKiuygWO/4dZfQWkGl1+30XPYuXFy92ZLL9kzJ8dbR+QE+IgK0vv/fYVHxgBvNN/SeW9oGZ80B2bvd2/1lI814c1H9qDjnEhaauZj7G5v3JUfkqjoI0DqfvESttslNbLu49jVw7BW0dWtVBcWO8D9lP+LSQKH7ZHI3zgIe2GYM8kGoonalAAqM9MUXBA5iLMssc6zBnTxtdz5X6kwjEZv17ub2lWjyNocl+dcbg8YKMpYIydYwAdeBC+RNYUBd1GKAZlVmj66CjeQa8ck8TyxnoEQvH8jtcL+o+9izL1TZ3bciC2W1AIancnYY68KicRSr8Xzl7wIwEJThTRbHZiODzW9or8jiA90bwqyYseENscVeV2taAZ1FahlwXb07Fpp5i4wzPcAxulUm0XSJGIXInJlSsFf9amJGoP0O5WPcixYki5NyPj68XT6HLAPhtzIszt5l6lGKn2/KpRv0RcKrnwKhjJ6GxzIQc8JEOgqmfqvfR/OzOPpMjxLqDjNPw7XGg4MkuQ6pOnnwb2fezkVVF7fig/VQQdHl9W6JIDFblYB6YZpfxNYncNfdSU65vGVnni4/eTYIaq60SeoebZ/5810nyVLXR/IJz+Q== 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)(1800799024)(376014)(52116014)(7416014)(38350700014); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Q5k6XdVGi6wKR3AKkLQhMrpGMcEQ2gRxpH6KONYZrLOCkCsvW5Mz8Y87Drf/oTVgNYAJWz4A2pNJTTZyA4FknLw24UULaiSg9Hdak7l5TL3wQVwIG1pPa2aZ5HnNJAo3pPk1bEsrAHqjPES45z0Ztukec7HpYD7OoXSG2LKsjO0t/+27747d1fZE5bY5FaP/k+dwop7xGsh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+xzs4/nDddTMCmFwZhtsUfWYn3RLRm+fNGPPF2Gw+58YWZI//HJ8c17iMSRHd7pJG1kWPM6Y3+15j86Ns4/eQbCylYbqrfXUNu0Z7P3KMoAZGk1naWU9pQAr0dB4ooKISxDPkhOgRx4KVVb7jetdFaTitk0zkQTF1cb4i2exXYyp5DCyvsBRnf8h52dsZmAoTPpcjTdKUUC9Z+BNge/xa7p1nWvFKHK1cMjoO842HrlMharMq1EAhklTxb1ZlbfjpJ77TNt6bHZePwm8LWV3ndG+gMglQGyoTrPbAaYY7Hmm9FnXoLTjHV54PvGP4ay X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2cd3f42c-124a-4ee5-2972-08dcb0480da1 X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2024 03:31:09.4542 (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: +U3zU9T0BHvsAPUjBUfhWFbaoMbH6Rxv268ORjTPpAEcLcKMBLuNJHJOQRrSSVi2Sbkkc9v6kPDZIhDU0dcbKw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR03MB7705 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 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 Tue Jul 30 03:30:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 815625 Received: from HK2PR02CU002.outbound.protection.outlook.com (mail-eastasiaazon11020135.outbound.protection.outlook.com [52.101.128.135]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AFCDE15FA73; Tue, 30 Jul 2024 03:31:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.128.135 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722310276; cv=fail; b=q1PGH4mveBct/8Hndn58aimModRFiiziFcRjaH2Jhru4oFJzzqUBifmZrqxEbX/oqG4QGdCp3tq2V7itkDk0M1Dupeg3lzYt0hX8aQB6VlE3ifsI2BFpskNxTU14cGsZvFLzvfKMfWOqlLwk1hFrHbwX6IO2MH/dFv5XF+FlJic= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722310276; c=relaxed/simple; bh=uL82/wogyoRCq3mcXnifCJK981f+VZHcY1NalDUMBmA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=ciwEApxZlPkIG+UWTc6xYF7RFxh621YySyiwNXCydAYifo4lHKUF92kny6wfLyHrDdbIF41uuLctLyzMMt9VI+Ctx9lzW3MUYk3mXNEitOjwPodz3G7fDPVT/NkWgOyRf0vIGk+iPCwaIyW4U3GcKZZ2ahb+T8xg5jegBvWmP9Q= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wesion.com; spf=pass smtp.mailfrom=wesion.com; arc=fail smtp.client-ip=52.101.128.135 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wesion.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wesion.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=rOLF5RFbs9YpD9fCEg1MCK9uN0SnIB59QLyNTiXxiKAH0oBPNry0NiSNpMMi2ITgsYwaXLKhmy4nIF5bBw/5FZQz2iA1zb4Zb/jozbTF5gozXtP8/FptaBckUA8JCDU4bjIDPRU1zCrOmg5qlYeQXCm7cey0y4Tx72bW9uJEktKM0om7JSieQ7l64LondP+nt4pD0y9trhG1pGU0SEjRl4Tmu3bMj9RmG5QE8tg/hzxIQ6U0LVOIUgxpPg8oLKcf3W6zO4BLBQuXxO6Oo2mynKSYBrJcFqX9ecEspSXisw8TtjxeAOIRlQMPVDv5AFChuxECkIVwxeSzp7jTdmt59A== 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=PI47zx0yd/mcR8Vkmrbc2IcjL56mTtLT1d9YrKiBBoQ=; b=AMV9bbabeWrW5icWtMAI34CsVHzw5YEu8IMzsKGFcET83HAIQwrqEaU2YDXvc4K/GAORQd4PfhB406IVzE56QV8zGtaLWwICj6oSHFwwAd8/Pq7az5GwCc6Nc77FCI3JYPUJsCDbm2ybBqxgAdacGW6kTD61Y2YnPdCaNUcyvhKWM24HoxhbSZDTQIxCy8TABIxYhpjUI/C+rHbfMyj+GJyExYvH5Gw8vIAmHbSzFipR3OxfkoZE9yuv0lWMQawpbKHBW2z897h8oh4X4CC0RTIg0nKnCcBE4qjfByX3s1LMTiPzT+wZ5nSehMV9IETSuEMrPFbuKUfhFpMYHoD/UA== 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 TYSPR03MB7705.apcprd03.prod.outlook.com (2603:1096:400:40e::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.27; Tue, 30 Jul 2024 03:31:13 +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.7784.020; Tue, 30 Jul 2024 03:31:13 +0000 From: Jacobe Zang To: robh@kernel.org, krzk+dt@kernel.org, heiko@sntech.de, kvalo@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, conor+dt@kernel.org Cc: efectn@protonmail.com, dsimic@manjaro.org, jagan@edgeble.ai, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, arend@broadcom.com, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, megi@xff.cz, duoming@zju.edu.cn, bhelgaas@google.com, minipli@grsecurity.net, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, nick@khadas.com, Jacobe Zang , Arend van Spriel Subject: [PATCH v5 2/5] dt-bindings: net: wireless: brcm4329-fmac: add clock description for AP6275P Date: Tue, 30 Jul 2024 11:30:50 +0800 Message-Id: <20240730033053.4092132-3-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240730033053.4092132-1-jacobe.zang@wesion.com> References: <20240730033053.4092132-1-jacobe.zang@wesion.com> X-ClientProxiedBy: SG2PR03CA0122.apcprd03.prod.outlook.com (2603:1096:4:91::26) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|TYSPR03MB7705:EE_ X-MS-Office365-Filtering-Correlation-Id: 5fa517ff-e9dc-40e8-fc1b-08dcb048100d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|366016|1800799024|376014|52116014|7416014|38350700014; X-Microsoft-Antispam-Message-Info: JceNe8CBuE0xYD8mhhIiXXCp7E7QYsnDQZPPKD3Sl2swSy41o32XHfzCkxYr5bWd4yogXIkEJD2Tg2SWIPv0JR//qjye09kB4jDZVodH1rdT/rN1fkt09XQNSY8FQUqW36mgqdNC5IhNIEKzu1cpV5ZepD7xiDEcX64ei9XhNZ9QilTU+OiAT2wqWJim21vbJ5X6SOfo+v8DvNUB/6qA2mBu2ACRt9iMt7eHJiPMYi7YV3x50ajkztMrBwyd5uvrxk3RkGCJR5yKD9vMHqksqtpzU/Jp+zW3VMgeQh8Q7NOuzoFcEpomQ6lJVWJyxG8MHC62WSLoQ/qFaalIXLh9IA2mDJ8RWHf2pC2w8ErQz9WNWtgewvcWa8NR9FSGXqJUjVhBWzY2T99E/f1KYrE3a44JN5q1OeZ5Xjl4qtgX3rV07TmBZYMoUA4u4eZNwzNdW/65/Qb4v5qfTz03OtEE1tWncBuKEbkgDagxlS5WC2WIqssD0vNuxcr8XSJ+7Mh+8eSdEnKZijLKF7BPnGGYZjp9n55t1k1Mh7xyeNt2Efnjxq1k0dyYF2SqP/wMOG4GHHqLLX+d9bJptfd4b+DqYW5nqxeelrmkQZwQHF83Kr9K6j3K0MCQ13jcIV648E+x0BiDtSXSLS5jrurtzbPteLA0M9XJkwPLw4f9m8hoBPCJmQCpcjfBlW/V1ZndNFdl6ezWoSA1x8EY7jk0MAMVHrRt+cuchgs3mlPpXfl2Wg7ug3v3lbl+jWUkOg/RaXFaXlWjPl9TyOSWp3107S8lycRhy/xcBPb8SnB+0Lk8qOrqdNYLFS2v3ABhSwdf1MtuCArjljOEFl0uPfJc1IWJYLU1hwdeasxJEsrP6lhoc084oJdkzQYp2V/ukQb4JtBJ57ypmDjRb1F+H3R4MUe/q5e+iiIAeFKKbCC0K2BtVhfnBROWO1lWHxo2kXcYOkITVa22LFoi4sKXEayfipFnjlbB8xp3kHyvv11hweUWCprszRcTHQiFoV1YZfGp2UZBW9gSo5Xb4cBTYthT+gnjUvvdDhYsRVPVhS/yfJLtuPAkYetHShEwKZmu8fiArJfOvRWdMxEAVOWLDcKk9O2x5JBUUSuw7kaGoH7zCiVzI5q5I1ncikqVKQlp67AOCYQUg7yjPaGjznCJQfL4RKkucMcIK0xWPGEwzU8L9mMcpRlisz/IezueYmkIpdqGy4GL8Z79KA2fsd9/IjwnNzVd066qbdXe/xjaRBulpqSarJ5Fvnf2FOAFpJTLK4UDNbG94umAQWn+A18mEMCmXdi1hGg3ab/4U/qIT8D1FUaXtbqrUJWnBpFCRCpZ4JrAoYwUtv7PTmWPJrQqBFn1wPLcCrdiktFVklhsYF7tdHmDCTxeTr6nZHCZ6wJjMpEzLyed7ueozeUErUsA4/ZpnPyjjg== 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)(1800799024)(376014)(52116014)(7416014)(38350700014); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam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ILXLMx2Lek3OgwXPoIdV8kExwg+xgnCcmZYCpAG2K0LeTioqx+hBwvmX27EuSl2rdobVcoksZUOwz2ohY8exqX2E66ni3Cd+ZkNn0tlxzWYmy2G+mDlWjhyNyiHltV5bwoEnY4iRQbllCPjfHbjWHaR2Hm0nNeMDwySU20Gq55anKXkZ1wTXaZXLgqgpTPnJ4DdErD6yQisXvZeHuxSVFJ1KBV/Pdd5VqDg1Px1w5Mhjai/7G4Vrx+TnMp1QA/thGzr1p77+OKvyBwPZaivu64Wsbme6aC4Nmg67yAsPY9dR4BFzgPFnOw142I7JiuWg0XhFGSqTk63g8yy7CheE3rpmPc8063Zc9Fq5LTri7MXVL3RRODyWhQ+MBthYQrSCY3hB1oRp6Fcj7entwLAgu0GC7yQi4/5inwt4rifX3aOHgvHP/MgAkWHEsNS1mwc9Oc+B3RBXaVp2Z5zuBtZhE9Umdv8/nc6iakBIi4cgLClxtulfF3E5C17jOYshg5Ksk6gmx6NzZf5LWYmdhmHiNA X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5fa517ff-e9dc-40e8-fc1b-08dcb048100d X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2024 03:31:13.5257 (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: 4T1W0sC09j9eNgXIcA7WAS5C/6MfEZXtkbRqFto6+W6i2njFqrRfzJUzqLi7QJgdrWVB/2TUl5OidCFwYOzS8Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR03MB7705 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 Signed-off-by: Jacobe Zang Reviewed-by: Krzysztof Kozlowski --- .../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 Tue Jul 30 03:30:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 816028 Received: from HK3PR03CU002.outbound.protection.outlook.com (mail-eastasiaazon11021130.outbound.protection.outlook.com [52.101.129.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D544212DD88; Tue, 30 Jul 2024 03:31:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.129.130 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722310282; cv=fail; b=A8QDkjxRB7uPJlavRM+UDeKIp3WkTYEXsr2FSyk/8hX4B/GCu+86Is+OcSawuFeg3EazUG/iQm1ZcFZilB+m9zzydffkOUe47Te4KiKs8cwXKQ1A5B2AqpauJRNvWCqWHJZCkiyD91W3UiuqfxFW9FtgVmrWM007g8BSZo3vqRY= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722310282; c=relaxed/simple; bh=DXcRmnONLjNZRQY8t02lISgeJnDwKFlK+PlRzNTdKzU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=Kpk6QBce2TezSBiRgF72ZnPR7OAAYaBb7RG7w6TsT2P6IrogfmcWLTZyMZLjX0+jcXn0xleZ8IAhEdXM8ea+XOMlsmJohMz+oHzumiuqXV26QQC3VLdWQqnj5c9E5aY1rpRn532cFooKhQJ1q5hG48xKA8TdVvYdDLjd174JH/Y= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wesion.com; spf=pass smtp.mailfrom=wesion.com; arc=fail smtp.client-ip=52.101.129.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wesion.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wesion.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Tq0oEsrnZnZm5EkGEeWv4BZ2VCGe9okk7xh3iZCIoHFoZD9KbU20h9NG0cSp2UmVG5kMkrerB+NZ4EcRSihLH0LZ9Mdqb4xX/fISGAn1wMVKCGIkG6j5HPKXQd5T8D6YGZxG2aMGjuVP4GcmhBWzzXiSis9Dxsn1zetMzbPJZt5MUf2/DnDpH4qjIDId1G1LqQfEWjiUHy35sWCqMjV+uLXJB+E74zRb3nIAwenTUV4+Rm0R8VfbCQ9niEabSChWkW7LAIdhrd6ItoMiA/lh9tpDLqHsFQ7sX8TDzfWUlCY80Y0ou5rsWTroxDA2GX6ssuyFyV1F3/j8Uzz+yD4nBQ== 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=yo9ShBpNofySri1ERzgmChDxMdAUTs5TpDlqnY31HzA8BfbUJa65MZt+Z4umqLoDey4ksIjQBJkL55bqQoh9xzNzAZ2bmz8wAG+nSQZWTUqr1omNPAA4Om8ws2DJZv6U1LgVOaEYDRcFb8aAdshtF4oYRa1Rmib3arxnAMqpBXh3NyT9QMyUbOjERP1fqf+jbkcZzlmxuYMFOzTUclrAwlUreOJK+AE4wHJphMyhHsmus9CR9sblP3tU+/agGOf4YWjwy9QoLBEYMc3MPJ3BaSLyJaiGnXauAi1WhtiYf9HTomDrymTrPq7ZgfkMD/xur495ZegDJd/01WNgm26DdA== 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 TYSPR03MB7705.apcprd03.prod.outlook.com (2603:1096:400:40e::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.27; Tue, 30 Jul 2024 03:31:17 +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.7784.020; Tue, 30 Jul 2024 03:31:17 +0000 From: Jacobe Zang To: robh@kernel.org, krzk+dt@kernel.org, heiko@sntech.de, kvalo@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, conor+dt@kernel.org Cc: efectn@protonmail.com, dsimic@manjaro.org, jagan@edgeble.ai, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, arend@broadcom.com, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, megi@xff.cz, duoming@zju.edu.cn, bhelgaas@google.com, minipli@grsecurity.net, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, nick@khadas.com, Jacobe Zang Subject: [PATCH v5 3/5] arm64: dts: rockchip: Add AP6275P wireless support to Khadas Edge 2 Date: Tue, 30 Jul 2024 11:30:51 +0800 Message-Id: <20240730033053.4092132-4-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240730033053.4092132-1-jacobe.zang@wesion.com> References: <20240730033053.4092132-1-jacobe.zang@wesion.com> X-ClientProxiedBy: SG2PR03CA0122.apcprd03.prod.outlook.com (2603:1096:4:91::26) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|TYSPR03MB7705:EE_ X-MS-Office365-Filtering-Correlation-Id: 0aa812e8-d9b8-4973-cf67-08dcb0481269 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|366016|1800799024|376014|52116014|7416014|38350700014; X-Microsoft-Antispam-Message-Info: hJAOuNw1oBhVJAv+QUjJL1vmWkkB79ZGKS0xUhb/QiQiVElR7OA25lZpgyrnxyKSX5z51NLM9Pqj7zC+nvkpnr9aJYO3B9S/5hgGQjZ7qyZnN/ULtrb1eNHQR8sJO9c5Q3/IDoCxtpGLIcZmbO3Y5JcagFOkkrgf8iRfCA+8TXA+/IVCJBM4pHayB50Vt65mrZ712o+ODVie8At68gX0aNXV7pjilOhw4PBhPtWXu0fQQ5M3Vw93zVL4aM0DcXB8ReJLn7YHTdYibZfkU3hz7jz7p2J2yA7LCB3KB2FuJGQpZbfDDURuUtJH8mCzwUslRyUGlZuzXWD6QcyL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yUnXfa6RdJDQhiRue9bNg== 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)(1800799024)(376014)(52116014)(7416014)(38350700014); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ycuhF2IA8Q6ceYs0hZS0CQWJsSmixuoWgyoItMKyrIaX2v1xj3u9TL2+btqL2C3EbBU4Uzf7cUajD6MfCzI5hn+q9S1L4AZkh6xKY/xb1umbSb2sBO/xxFyySNZSr2zRRfpI1LnZ4r09u/2VAEDgmWL3CjHFODXOTQzNrXI2KdoPJ92I2a9uGisPXm007pl76nFp24XrPplkD76qOpqWKLglgjYxNBMwfX5010HvwsoxDn8yRHO8Q+UahIssBpVEUnvi9JDrFto2SrUxiwhj5QJHLeCvu6NAYIoNUFGLxHEJcYK922ZfxiO7fUfM/+vcLwBTHLjqYUQ58Mzf2lbGXDhhtjcphoEjzXHe2c+jdV8HZFXEni7EqrRn/FeE0tEU0xr0GBJjgYpqcBHbWkaGwn18TwUi34yoMLjV+/gUQbkCwpEE3GIRQmgLQLWbBnGxlA38vtoFGJBX0XXwzEkyOqTqZ8pIy+T840dApCNCNRxymF0rqEPOk7aST6zxxJcggcaJAip3odyYncToG3LMeeFdbmE7jVpQqdfktbheu+H19LyINO3wH/eSGujKMwwxEOquqnO16FP7gPKO5/DajtDcKJIUAm3L4uN+RQG8aSoFQVbcc7oOSeBYJBoSycCcpWjL3+wdp1cxxrvpSOuKipLPhPE3h/2/Ceoqj6DhqQya3TIBuGZM0TuRjZ4Oiu5mRBBF+aee3xTKyeCIQpyFP8v7TF9gYPIav28srzzAY9GzecsLfHWxsDbgZCwJ12E0AzcDdqjsF51uCNGknoY+xkIhG3d9OA+AQyivGVLlcA6E/Uof5MahNgSIonYcvbyfRou54Kf78qofzcpzyCr3x72mbV+9QCc/7yecrohwc7EM0W1sO3Z6LCs/6u0WAIdsopkWXefYFAVOuV4ULxOQwSz9R160p2a7pFQhvPxBWY9k5WC5evjmNxur7CAt72AkDihGprU4TF416fiiq25sKu+Pm4lzaC02Powu2U9BVk+SJV1XuTwORRhVs2rIYF1IXbrq3biJ3WsHTqCGhBCP0sYevF9GcqEVvV2utRNNXRckUlakkXnvPxPVti/9up7v4QMc/hzezVaGweTYtcNiHsUBTIpM0Rt0Ho793LGFFhbvoB2gM46wEK/IBaQzFX5zM5HKf+9VEuDLFLQO7aFot/EuD0anFwq61wN2Riz8ScOicZrJqMFlbCiL4k6PQ15yXwN5CTHX7+Bg8AzodsXT8tNNrS7h8siCW+Cm4bDPOnBUuYr0awTTQ6g05vkWE4YhNVXhCTiqpoSycT/AIFJ9rIx15i/tOE328ZiF3VYps/uNnCQ1x5pJBS+uLcIAygJzyXB6gFS81D0hSMyLbN7FAFs3LM21MKXD6W2207iBtKDiueArSmumM7hCz8Bz6z3REWVR2snjUZ7CPhRAKJd9XrFB0QFfCHvQzDMoOj9Lg3AHJb1EJIMBNGmxn8aD5QfutMSDu9rF0XToWsknOAg9hO7JfKn9UxW6afpJHUCZlQKCLCczce69D/LU3mG1+aO0gLrUK9OR1OP18nZLLq51oyeMjebejOcfjYaReLD10Ihh3ViRjO1mw69dKX9C0aWO X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0aa812e8-d9b8-4973-cf67-08dcb0481269 X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2024 03:31:17.5147 (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: jkCjQb5W1jwUvu+UhWEbT9thtj9btggHjpiLt4yZckpn4Fbzu6X+dcQgEX49TcCF67axD+UW6Yp1IkIKfS5EgQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR03MB7705 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 Tue Jul 30 03:30:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 815624 Received: from HK3PR03CU002.outbound.protection.outlook.com (mail-eastasiaazon11021130.outbound.protection.outlook.com [52.101.129.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A15341465B1; Tue, 30 Jul 2024 03:31:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.129.130 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722310284; cv=fail; b=FmN0TSxyE781j/CyzvWFOSloazRqS92f6WceHl6PeR4NfcOG4Aytxb/y3teNLjubNd1k4lWEr9QV1WxSkPQvo8ke8L6hCPE1nyqpTT+wHyAhJ/0y4S6Qd9zGS1oUsaRrvY1avt496A3SCBFEVcyxkhdMlESy33WKY/TXiQwTmjs= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722310284; c=relaxed/simple; bh=ek52fnBz04htlTkhLeEw692vR6FLjNTYPllqp+XT9dY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=MyiCnS/nOloE9MPTjXrQZuonYyE+hO9um+1iW9uNI8KaPqMLHkBl5DaahRydElxwFPqGTflYf17/NshjZhXDzuEfsVGVSe5cTAmeAAuydqer96nBuHPFznIYMP+UCVOe04DnUIMnwNTeDF2LoEOIDhArL3cwQCdELu2MXnhnHNY= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wesion.com; spf=pass smtp.mailfrom=wesion.com; arc=fail smtp.client-ip=52.101.129.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wesion.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wesion.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=cetq/FNQv3oN1QPUM9dKQp1TJifRxt+cSZcpMdZBkbuNuGlp9F1KU8ti049KoBaraiNp75ZprQ0Rp34gx+1fbt0qpNXF0aI8zh9BPk97MtKw7lIkMFGALfKMfung2vR6sMWtyKABshcrdrS0se0vBSzTRx9wGfAXkXrCg1OKCVig/cdBLBn4YnKX6KPZoHUjNXchzCLdQnwN6fMLdCZrWCY9IjI/1O9EEx7BaLEQkHAb/wuLVh7ReB2Cl3hXEioxTXCkQ4u+2MRQ6IIfNsYmeEZurKVhjwYmRMFcjfgUG8zUYknPGaEQf9/GZJLagExG6tlj5psYp5KLntuu913Heg== 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=Rspe/NDPnfZ6Do/p42MpgllFIGSSJ0/L4KOhKjDQjM8=; b=CQUh2RlgiCgqLMc3wAI/m0sR8b5jQf0hCyMRXVW1AzYtlq9I4VAXLxWOxvr7MVl3sCFtQ6yJbVhPi0P2IsVY1rkWbeSuKCCiRzGnvGiWAdQJErvcClBtkPw15HaOUUgj6Cj4pG6/qKpQ6KWWNP94Sm9INDODkc7ldJqa287WHrZynOe7fQ/uQoa5Ufikt8USG947r7JDaKCAoUmFEHEkAnva1EMg6vQdq2iOg2pYazH1eBQ/AFnl1sOIpajhYulv/2bEssD6uXpnDsm4bJredUp/NG98kjXGfN2h5Sq0I7P3435q9j2iKvnMmgxHpCeZ8tQGluTlr1CFjT1HhCzmlw== 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 TYSPR03MB7705.apcprd03.prod.outlook.com (2603:1096:400:40e::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.27; Tue, 30 Jul 2024 03:31:21 +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.7784.020; Tue, 30 Jul 2024 03:31:21 +0000 From: Jacobe Zang To: robh@kernel.org, krzk+dt@kernel.org, heiko@sntech.de, kvalo@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, conor+dt@kernel.org Cc: efectn@protonmail.com, dsimic@manjaro.org, jagan@edgeble.ai, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, arend@broadcom.com, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, megi@xff.cz, duoming@zju.edu.cn, bhelgaas@google.com, minipli@grsecurity.net, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, nick@khadas.com, Jacobe Zang Subject: [PATCH v5 4/5] wifi: brcmfmac: Add optional lpo clock enable support Date: Tue, 30 Jul 2024 11:30:52 +0800 Message-Id: <20240730033053.4092132-5-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240730033053.4092132-1-jacobe.zang@wesion.com> References: <20240730033053.4092132-1-jacobe.zang@wesion.com> X-ClientProxiedBy: SG2PR03CA0122.apcprd03.prod.outlook.com (2603:1096:4:91::26) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|TYSPR03MB7705:EE_ X-MS-Office365-Filtering-Correlation-Id: 410c6696-5990-4dfd-dd96-08dcb04814cc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|366016|1800799024|376014|52116014|7416014|38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gD0ebst5jsczlWkpbm3PSNBa0kKqX/G3qXZ1nigkuY/W2weohIekkyIBxUYOOVeMntaDlrEIRtnLuKBeHoXpGkfnadjRz2G5WBBqRsQup7DbIJ1NsyKIMX72kO0hrX34iMZAEAbwZZbor4mn7jyC+wzFmZcqn18Q5t5F3MTq37fY7yUs7yz2yoHPrFwB2k25vTo/w5nKETqW+Fv8dSMuFfI5Sa5R99rNACxCv30YUoNacszsAa+IcgrR9VqOeZ0Y5vaduzJxcykdjBjgAVkSPDz+gf7Urs9rcOHpSsPXwfLiUyTRF84wsxeqa4KSaAzLkM968kfSNwE9QzoPMzc5v+MxCLSQ8rlR0QDjj3TKWfLg== 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)(1800799024)(376014)(52116014)(7416014)(38350700014); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 0GVZM/kSW1NhxEpFecNhyiRobXEQrlUDzpXoNKuCzQDyJXyoSnoUlhEhGjxIRDm8/wMi6IlwEkaLpRksFy/gt4tFgYZZ5c5DL5VhWueyGlOHmVpfUjCv562wfmqAPdJ40oXYn1liDupLjEPKBhPlSbdK8tL7mTlZ3pmaOYhCzOoAWst/yCoiDLZzojZvyQ6mVzNoWOIR1PYrzf4mnPFl003q08rPOw8YG3fddiLrK1pvCGapaYwU8RO5CR6Z9zMb2NBtl7k1ARBfLlMY3QN/zyK9YIrLOWxekrMvPmdQjOuTT35MxZP20YANx2hzWlECQjHFbCXMpIZr0WLRLqsxawKYXi18bup+14ux4P8EWqh/vAPBMd9fpF2XPl3RFDehQuSojWCLv5cP+zjyMjDzFjI3PNzan3IUBKL6cKjKnfYkXMSGQ5DD1HHyCc3N2HQXo1is3Whi1zu7qZZAJh6+95wwA6fezzmXsR0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ZI1SqdxzLY0YtCyh16D2MLS1pwwuTD X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 410c6696-5990-4dfd-dd96-08dcb04814cc X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2024 03:31:21.4401 (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: iJoxW3Z+iR53aW0CuwmSCwm5lTHt92aoIMRx1VSg5ztPv6tASCOp81CxifTjJ2gLIMO3IP6Sno9Z3iLgw7XzOQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR03MB7705 WiFi modules often require 32kHz clock to function. Add support to enable the clock to PCIe driver. Co-developed-by: Ondrej Jirman Signed-off-by: Ondrej Jirman Signed-off-by: Jacobe Zang --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c index e406e11481a62..6246e3fd7399f 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,6 +71,7 @@ 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; @@ -113,6 +115,12 @@ void brcmf_of_probe(struct device *dev, enum brcmf_bus_type bus_type, of_node_put(root); } + 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); + } + if (!np || !of_device_is_compatible(np, "brcm,bcm4329-fmac")) return; From patchwork Tue Jul 30 03:30:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 816027 Received: from HK2PR02CU002.outbound.protection.outlook.com (mail-eastasiaazon11020083.outbound.protection.outlook.com [52.101.128.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A858614B07E; Tue, 30 Jul 2024 03:31:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.128.83 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722310290; cv=fail; b=YHDG+23W5L8FKOzg7Bpv8iMlJVCl0MVpYDXJYXpywGmysuHU9KFH42SEFrgrNLHQUe7WcTveiS4OJESfoCgqt6AbaN1xiMpyH1pMOvsplwzDWKf7hIAJaEISj7Q/JtlLNjC0/cW07FDr3EAN1znVmp7TCJyC2zzDF1Nez4uTp8U= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722310290; c=relaxed/simple; bh=8fr2le2RRkyBxxo0cMbqgGIl5Pqcs8qpx2qLsAezPSE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=rLfuGIWIIV40H9SJAnyzgNUU30Ku5W/LY/HlE/10UvHvUfTtS0i1cXT/LFvbA2h8Pf7CDJXb088WnvJsan76AH0zqxQfAXJv1+mld6CHBx62VoroP863Pqb58J1cyY6cde+krKIQnj4fsj9zQ/D6h+48de45uqb5SwhRvskDTHc= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wesion.com; spf=pass smtp.mailfrom=wesion.com; arc=fail smtp.client-ip=52.101.128.83 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wesion.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wesion.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=G7PCdMB15Z85A4n+vAZsCSXhwCOtNy1wnxkszpPp/KKh0auSm/UJngUOHayLM4F3mGsBvxQI3G/L9MizEuuazUDjxLSbzf1ef85bFH8uVI2SP/S8iKyxOZVmU8HnV+HfF4sUO8bdSBeOkVFnV9g8kjUhbH0OJ1O7jSwHj1E/MEXAKSvuxpRGJo+jw6WExYWu8mlFlsuY8XIZIGYynat3emFqXPVy2KQ2unNh9Y8RVPtcNMr5mr/3kpBZWUaRmO2OcPWNyWE9LOIoRe8vri7kOPgjx/HnzJbxoAMROr62z42mZNcarsJCy5JmhuOG9Ym37YfRIEJM7YiIJ0annnVxjw== 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=iJv2oEsgUurQ3uQXg6X0FVKDjaYVvAhZR6MRlOddqBshDc3yXN8l2NepA46GZdDMV7ClBZuCJK1uTw8w0EMokyesJn0eZJlw8o0ghig80t7Y6gx0ZQpg9UNHxG8dUQZTsJul360ydCU/40XrdrY5Fgv2Z1cCzh6F2Rko49dZFKABh/4dAlZPUKRI4U5AUXD0KMjY5yrU2tWdn8Q0PYMw6ATmRDm28qgVCKEYUVqUJaM/Cf4q2rbAvPPOzuhDfQ6aFO7uXstPKDJcopPwTq4EfIz0doMoOYBiWeYftGDQjkMvEe2RqZSQ9TSMlrT2eVUH/XMMT/JPKAAEg1k8yKH0pA== 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 TYSPR03MB7705.apcprd03.prod.outlook.com (2603:1096:400:40e::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.27; Tue, 30 Jul 2024 03:31:25 +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.7784.020; Tue, 30 Jul 2024 03:31:25 +0000 From: Jacobe Zang To: robh@kernel.org, krzk+dt@kernel.org, heiko@sntech.de, kvalo@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, conor+dt@kernel.org Cc: efectn@protonmail.com, dsimic@manjaro.org, jagan@edgeble.ai, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, arend@broadcom.com, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, megi@xff.cz, duoming@zju.edu.cn, bhelgaas@google.com, minipli@grsecurity.net, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, nick@khadas.com, Jacobe Zang , Arend van Spriel Subject: [PATCH v5 5/5] wifi: brcmfmac: add flag for random seed during firmware download Date: Tue, 30 Jul 2024 11:30:53 +0800 Message-Id: <20240730033053.4092132-6-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240730033053.4092132-1-jacobe.zang@wesion.com> References: <20240730033053.4092132-1-jacobe.zang@wesion.com> X-ClientProxiedBy: SG2PR03CA0122.apcprd03.prod.outlook.com (2603:1096:4:91::26) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|TYSPR03MB7705:EE_ X-MS-Office365-Filtering-Correlation-Id: fc1cd126-7959-44bf-d137-08dcb048174c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|366016|1800799024|376014|52116014|7416014|38350700014; X-Microsoft-Antispam-Message-Info: yx/m4UzZm/P08RoNvCzMKUTupM+fl28+bW8ZbHEjuBYiU3FsMIK4tFjtu0h7C45AhfGxBXIwmjBrhsE4XnyacF6Ic7UrWOtc0aMWeDa6tVdSV6GgZpta5ssbwc7/BVGu0GY1wTSPmoLM3N0uTqgTQmH+kV1nlMPyeEpakLPbkLYS/TYElpxO5IVCHPr9tGpyrL29BN9/5dRTSry1u0jMuLyxyjB7152fHiNNm9SKBxF2zdjTM6kFZA9rRFXHgJHcRL2AQ99VWnco0k90KRpZ2LIoKG9568bk94hVViMSfZK/tH5pbBryYMUg4+8M5D+RHenwxSXKPZbjvHj7h16aENdNWpg8/RjdTTfLfoY/Pl2Zs9HEsVPtjczqGsZ8cU7OMNdsZhYhWXBVABJ9//nLrEd9pxB9Z6uH7T6v8Dy3eB6XmMdLdr8t8qBC5e+prwJ5fUDtV+yWeKyxSLCf3vd/rWl7uRfk2Ylqw9b2QprrW5ggHaRByRF4n3kAQNqUqi7qYXyRi1ngikSdDiKzvljXSsrndvt8xisd9FGjfrEYILW04b1g64GfgiAK5py9feXqMdKbV5md+153NJzu96sSqbEK+aTn/GhxxEOF3WY9CJgDdfljWUKbe3njthhtjQ5pp/u3PCiHJWH8vCUzJ6hlcpIa72cuMttwMlUIrxxbny/EjsQQ/vi+RibuPvBhQfWTla3UTNcedz7K0yOhOV9KJXtOnlDCzJEUxNlCWUdeQzWQ8wgoezydGZhlGUiYRsHVZ39aaSxpo6cX7roA+7nH3b6RCDlFyXa54R99PBoZU5K5AWF8FeZZB3bUGGYEIM25e6O3eJ/rBjo8Jm7h5F9zQdp0/l49ESjXuj8y+ZajTuNN8VrdLoJdxDWiEOQ4+OOl8PHRzLIneWV++NI49fvezTor1dy9guoOMs3cZ9fMOKitcdT/KzgnoJRLomL3iy9RNZ94ffCBrsPWlrjlxKbnuHNPUc53cSg9lvuguP2Z6ll7L0+KWHjIzSNCYP0b29d9z9kISOzAxC+XsJxKWYavpkRa0KsumAN3o35FmW0M60Cw7o7/O3Ot9ogrClkxjy237GlTIUIlX+TDxGMhjvSfEpO65YqL30KAG4B9Aw6Cnn+SjO/JZU1/tRu1YzjjBAewLKc9RcVqiNIiRZBcIXszJcTjxTeKsk0xPxL4H9r+W/eqMke70IwaPfybqcgLwpetc2tRoFyCCPnzkEGOQjT57Gf1a4Ie4FPfCUsjz5Ow9t4183ux+DW91kcUP3gVLsxRiQCXwhxYv4xozoYHk91FiwhO2jPivEPULYAFJIx3x+QZj3zGlsSqiyO3H4ZNQGsuT/LLys5KfUi9BOHMPHqWu87dos+VNYc+tNRngXMug2ha7GoHZN0Bw1bAtxGcjYXmaDmINFiLz8YRdN1mIStxhg== 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)(1800799024)(376014)(52116014)(7416014)(38350700014); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: O0RegJ3PDUdQgUp0ssB6gRiwSqlNA++ViwMeCXPcx0Zw1Vjf4YbXtyYkbRWJzAe9yYugaYi6U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pbtLlFA3bMmfnMWVBTE+5qrfjsADRXexf57v7kzdK4ON/U5Qjm8HPVo72i5VA2wmpHi37x0YvbtwZIEn4IH6k6Muu1Vtq28llxAuoGMQr6mMELd+JooylqtrBO2qBoUHJTpNp2ULZQbg6/LPejzYFgulZ3DJGGfuT8PKP/f8b9EjvLhy1YCcY20IcDs+qYI+jMugpvHCxpyGBOkQVwdVlUqUsSK4T6bZIAI8pBxXbzLakweQE4sb4QJyYXnHRnsaWySdqTZ196shMk0LpAJ/gO5RuJ2AdSag86UdLzf7/2U/LF1Yd5NWlESUTBChttzRyNapq/4iZnPoxnFNQ2qdAJ/pHEWy4qgILGl+a3D74+cNdk+gURnhdFO+EBwqoIPwgxXfg7oejr4LjPBky/yA2ex9kRWwk1DxiurIOjb1Chi/2vT1rsnmBW6PDD X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: fc1cd126-7959-44bf-d137-08dcb048174c X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2024 03:31:25.6035 (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: Nmp5DzqrNinX2AkT66WtTC7WllcnqxBkl2bZc5Y4jnFt7uWj/tSIHH0LX7fHWjoxUjrsGYOyZsLBr0gmue4zdw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR03MB7705 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