From patchwork Sat Aug 10 03:51:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13759385 X-Patchwork-Delegate: kvalo@adurom.com Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2131.outbound.protection.outlook.com [40.107.117.131]) (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 B689A13D50C; Sat, 10 Aug 2024 03:52:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.117.131 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723261928; cv=fail; b=Ncx/vVmsCzm3UOvO31lkwBRSt7lyShTvNsfYkcqYCb0+8IQOAR3xPHSDQD/WrAmb3qiBYVVgyqMIO0SG5aAU6gYjNTYHz4kBg0/0LC7GvQo3FVDRznC1wCp8s64tI0BwbvSHMllHiAeF656EDg2ZsbeuEW0jNnpOOw7aYNhDe8Y= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723261928; c=relaxed/simple; bh=N/RtFVenj3Z7IEiCR7u1dVjyT5hCGTgxAcs3H2GIlSk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=h0kh0Layru2714vFN1Zo9VBZSUStmodUtRxQkwc+rrvyG8j4hjsoAomgQYObV/qogeMRHtKFEFHXG0a3V6lvnEkijsvmkiAYorN7gYqha2DB84om2b90l1hnKXzWv+E2RQcWGfkG9QdDCf3sXVID48m4+wzhHIl8DgDJdS07oM4= 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=40.107.117.131 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=s3+CS9s3jXuyxtISxWy/v9ktnlWwiyHyWdSVkaoqMsmwS78p/eUx+hE19Oy1FiVFXyavJNy0o1vjVX9Gz/IXg/k1OCDpl0lYBR5+3kxnnkAnGWzgypvzstEYS9otkr6Xoysk9XweBSXPAIu/ASQ+1/sEvzMqyigWLw1Y2Z9vM+WSTpB6XkNvWDL2b6GdDoyWHMppqMefjDHgglZiVfPuyRdCR2zJ6RwJdp4ljrwq0M/a8LwgX5imPh3gkOzSOISU5KAsdev1YevJQLVWXTQAtNWE/yYFTOnYVoDDoviy04Rx0ehteAoy98xCDqTYZrtbPToVdYuimtfQRByA9N8ZBw== 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=vnTJOa4JXmWzrBFSD6Yx6B5bbeWEUpHWGbPOD0Sh4do=; b=O9stUF4e80qI9cw6J+uBSSwam1OXsc0tAipW35K1j7pCphI4SXFc+USKdWDXpHOF7zowNqfUCxxo3mA+YReWPcLsYt1QMx2UhxlSQnmmC1jCEYhdWQSqEMd6SzDNocRIHilTcg8vOhOK4Aprffl3DuD+QAERnDjYiEsqAg1nGnmx24uqaywMSslG6D9Z5Dl9kkr3z4dpboZRPqWCYeyIuX83ymV4f7CFXH5nmkV4ZbgfiRZtf9jZ8SoPaC/Oh7Mj9Tl1o261D+4EkIyr3ZvZ+Jj7MQKhsn5+DfogsGm7er1tlCzHV44yTfF+kImro8pYVQemP7Y0nMKThubSpK3f3g== 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 TYSPR03MB8564.apcprd03.prod.outlook.com (2603:1096:405:61::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.27; Sat, 10 Aug 2024 03:52:05 +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.7849.015; Sat, 10 Aug 2024 03:52:05 +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 v9 3/5] arm64: dts: rockchip: Add AP6275P wireless support to Khadas Edge 2 Date: Sat, 10 Aug 2024 11:51:39 +0800 Message-Id: <20240810035141.439024-4-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240810035141.439024-1-jacobe.zang@wesion.com> References: <20240810035141.439024-1-jacobe.zang@wesion.com> X-ClientProxiedBy: TYAPR03CA0020.apcprd03.prod.outlook.com (2603:1096:404:14::32) 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_|TYSPR03MB8564:EE_ X-MS-Office365-Filtering-Correlation-Id: 6fec5e35-4840-4956-ebf8-08dcb8efccab X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|52116014|7416014|376014|1800799024|38350700014|921020; X-Microsoft-Antispam-Message-Info: T8wHyB5dpkTd9yCTOSpd6D0FMNHISyr2Vo+4UDUO190gLjwFpNTU1wq/zusGXwPjCKCe/E0jecqBSVIINwaCaZgUhLMc8wtoyBje7uz4CQwXMy+N3Q451O4mlNg22dFPy9uZNIQlMDBkQDVzfMpfbk2eScZQM2GyrLiiAAbMAonf9l/nuoKvbMXS8JfXVjHje2JYFtlbXWL2qTw/b7NATvasuaO268lOtQlOqUXXZTs6RlYIup/bVUYOPOfcosdnC6quNJxADJzY7iyv5KfaRCjvS69//FdZDA44LO5weCZ2WF0Pg7d28GJuxGcQheIorpQKTcP9hVdJciO+bQiEPte2OHIgc5QiaBwoX2zKrEOViE7y0GTvsro0CN8QZkWbtL/PhprEjiRQkBdeRNSQ81kCjMN+Q4Of/vYgjL1TWd9oS0L+BbJ4VUDkOfNgL+Eu7o1PWvkRmpJ2hYZ7q/DSy9wYWkFHBP3hvCd1H1OOsA4l9zimuP8tbeFSVmby9jxAs8QLUWDlFB5wVZ64Ybkzxkyhf0bsLaTa8jYOtQgBgk2T9Vq8RuoNOgYc2GvL23bZWfSUa+O4dCdQdFnIjG2Ja9U3T2Wu8tQ9uNmLE5Kle3jVsHc5AOBmWTH1xst7LiY4IpSS6nyvcBWFtyiQT1FdtdT8P8asBl+lb4tYtpn/B8/0a/hoF/jIKtbEn4dkO3dgZPfz2JCOg6Zl13dAYyb+OtnSUYDd9bR2Ew5QxUm1o9JWNGNv9vEx6WAW8/R8R0lIGD6YhBbGL8KDkCQ5z3297WfODaNaxFobiZOCxOP9yKTaaNIStuXEr6/NyA5QNuIjLj8s6QXRE1LVT3Ak7qoVVheq5XuV/oFHo/mTpZQQIOWh/hZUbwuSHCQ+9txIjYU2Q2cMoAJnCe3c0rBnCEhsoUkreuxNbSKHE/nJCEAVIYplng1k7Lh8mf4pfmaZJRY19oNWLUhffXhCGTNLPwx/sZaXfadFST+bORwy4xDDDixHajLoou2R6YWmxmuV+PoBJgH14HXmZWOc+XgB1FfowdZEPJENyHyYrtsoTQCNhyFsVsd02YUVHzOzmklkaMGgHOY9OoQu6NiZOPr0jt1/WAju4LHZ63HjKjD3e15SP+07gXBOxF7FQiVo5/0KVSpgmLjNnm/VOPduoTmYIYgGvJIMrh254V1R3cMbVffe0V/Rj5c520fRG0prcbdemqs91hnJhkkCpgojf5Q+cr+Y+oou8/utOtOQISyBhcsPUMsm9E1UKTQRCI/z6BYanOW9AUAiHZ4ZEw2BOy8AGS23IuklXlr6t7W5PpmpTlXtnqa8VTty18jp8wZrivS6HyLgrjuUQ6ZUH69XdaN8jIViLUTWIMN6boS+GskxwjtCAmMiQ2iOKTwpZ4Li874YVycPrBh+WUoFJ/2WF5/evWBFLJGlldyV6el8UgNoe7PGX7k= 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)(52116014)(7416014)(376014)(1800799024)(38350700014)(921020);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: BctJ7RMkAxBUWPgIUxkbc/IV3vRKndj3iQN4BRjgqpt3ZGL7CTgiEc1nzXvRzSJhWIWHMGx17uTmscT7SjAd1UxfLQUpnCzQOn9kh/YtpDDE9ruKZpitt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xktKM3E7hJ66YXT9mHTawGUH6T0TQKsDR2CRMdiUqj9+hBNhQeQziYX3UQZbR8l1POiVuJquhGj4amz6hbE7D6fOnngUo2DEzCXhaLGd8x4FewO1fKonOW5uQTmjopeuezM0Z0Qfa+grGy+fwW7IU5ysV0OZROpIs8Il1iRo34no4nPO5P2Kyz3xNzuqDvEne5pM/aIIjreUGyy1KF0GO9Tb8GDyvPjqjcFvEkZWB4qfErZPsJY36Gu8yxPlIADzbpTrnRGqIqzgIUsNdz3b7Sie/E3BY2YCtrsOxdIiiXfutxIUcuXoBwrZyHUcxXcrdHpuEHCvVKIkDNZldxbAUQ5zvHCNm47qNi9/Z5LEIwPgvgV+whEWHjCgzAfxvx99kaNuW6xAXl5w5XMhZC5WYwXBWuYqp6 X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6fec5e35-4840-4956-ebf8-08dcb8efccab X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Aug 2024 03:52:05.1743 (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: 9QcRbXPu6jy6kXPCR9T1k787mHJZkFA5yludsacstB/aUeMOiL6EXd01RDUaTaQAEY07n8TRKHDete3+rd0uxg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR03MB8564 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 Reviewed-by: Arend van Spriel 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..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 {