From patchwork Wed Aug 28 03:39: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: 13780465 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 C6AF5C5474C for ; Wed, 28 Aug 2024 03:43:00 +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=0umvK+fGsMQqK0f4X8LiD7RlhXtEo+nkDeoNjhSMm/0=; b=QHO1sbMtmAas6lGgtJMysq01RF 1z3adrInU0y+bvUAS6d2WwppUj+cIGz9UJf3b+HTbxnJ6MU8rDsOSrHsQpNjtewbp854jw9NDoeh3 VBNvT44m+i2c3PP/NqZcg6t5ek3jUEwx66DbKDMWW4wCHGX+XmybKZqhtsPAcMH00c24aWfhoez2S fz4nk22wBuA46VUaSRw/q9hbOuW8uhO2hsblnIGWYylOrTC5dKGQD6Hig4qoUBsl8eGbm0r3quFfR BcT1qst3rprzszYpv9AaBrL1GP5rc+0u1ZQd+wBYaczrjtKM6XqwNny2Gx7nLsQ6gcHyQBZCWvfap KxLu/n0A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sj9a6-0000000DgOb-3cqw; Wed, 28 Aug 2024 03:42:50 +0000 Received: from mail-sgaapc01on20707.outbound.protection.outlook.com ([2a01:111:f400:feab::707] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sj9YW-0000000Dg0n-2U3O; Wed, 28 Aug 2024 03:41:14 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ZycN9GFrPWNolEmj+Uqwd6zO415yGA/fJaHlkk4cAPJivzr+JNYfFnTOzfmE0gaPniIh14Ws6ouA8VHUUnspggFEwLyaJdrI9poi3xFQoQOaYZBrK5J8n4nm/60wx8bm3crWVylXfJjqRZ/RO5fLJhiyPwBbsD10DOr5xlxKyj4X5sgsIaWUQxFIH5a0IZvcIUwOcrx8jb1xN9OPSkJOxD7WZmWjBrJV3Uck/yVbZ8bNNXc+FZxOzqa2QFoEp+3VhWaxvJtWHclCf0zQayX49xkP98CSrRT0pP9ieCU+hGFUjWNPWFmhAT0+W1xj0WFy9gFSNjrkHNmxEwR1qqKiKQ== 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=0umvK+fGsMQqK0f4X8LiD7RlhXtEo+nkDeoNjhSMm/0=; b=mtAmiWrNJ/dyJWC/STxL+NF5DtdJDh110YktgQC1zt7B+gI5dNANtwD8ITtjYGNqBnZGfxj4U0lI44LMOiKq/6LfXek82YoLuQi96oKpqnG2CJ3F+VR1LLK+ZA8ZbjD9isHuHSvjo6AMUEVOPtEd4V2UOpT1g2ua2PtA20WpaBMeJJq3KHUPMu36Rn6HHBC0a+zCvK7UThPU5fLaXLmWiGrDGqenh6b2ECJUGIfcXTafdHpQmHd6hnagqI8SbpJNl7REMucACEZtx6QR4d8W+tn1Aqlqox6145lU2U3Lm09VVbYipeLQ7qX9ln2+lKlWQdcuSdpQlLEf3AylxlZT0Q== 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 TYSPR03MB7977.apcprd03.prod.outlook.com (2603:1096:400:47f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.19; Wed, 28 Aug 2024 03:40:57 +0000 Received: from TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0]) by TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0%4]) with mapi id 15.20.7875.019; Wed, 28 Aug 2024 03:40:57 +0000 From: Jacobe Zang To: marcan@marcan.st, sven@svenpeter.dev, alyssa@rosenzweig.io, robh@kernel.org, heiko@sntech.de, krzk+dt@kernel.org Cc: linux-rockchip@lists.infradead.org, dsimic@manjaro.org, conor+dt@kernel.org, asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, nick@khadas.com, Jacobe Zang , Muhammed Efe Cetin , Arend van Spriel Subject: [PATCH v12 1/2] arm64: dts: rockchip: Add AP6275P wireless support to Khadas Edge 2 Date: Wed, 28 Aug 2024 11:39:52 +0800 Message-Id: <20240828033953.967649-2-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240828033953.967649-1-jacobe.zang@wesion.com> References: <20240828033953.967649-1-jacobe.zang@wesion.com> X-ClientProxiedBy: TYCP286CA0185.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:382::20) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|TYSPR03MB7977:EE_ X-MS-Office365-Filtering-Correlation-Id: 745c3762-8a09-4ef1-5f65-08dcc7133a27 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|52116014|366016|1800799024|7416014|38350700014; X-Microsoft-Antispam-Message-Info: oVJwSxjbZysHIRQA+hU+VvAwU2YuF95j/9pEmsxEs75qfAbYDd/i3jDoXfAopOQcBOWfm+VFYUx+hDu+UNwstpXmklkfLGA29PEYUFiDppb0bnjl7Zz9SpU/2rpOmxRTaQc9f7tYj5omRFPLi+CiaTqVIZ8SLxmY7BHRKohnYukNtRQDL9D9F7tVXs1PBZclHtQx4i/H+O3GfVGkSttc4FszKsnBQQ8oSNPqN2JcvrZR9FlCI5b88ZjrBCnvA16iIgUkrrX8VqsD8l0z3sM7CgyP7USxqu5fLkqwpEmmIm3v6W26izK31V1QK0xGqATHkWO78klWahHh9Qu0uWB+Jq2O70OGjcQ+KYp9GpEPB6nxFvX4UGPnX8hHqxc31DtWw+IU/njbDpGVMGjZ93etRAWjG9ibOkLNNxAqiet7qdR7P6d5xFpPPcycy4nYL6audE4ixPGcJ7YilF89CMBlRoeJ76Q9CMFPtu5dhD6l+5UCF6UhUndYEtpW0yeuiL3VWNPbxQa0fqXDbjymsemBFBdF4iFIr6XEpqkYrbQV+eX+L+TB0tMhrAYbb15mdeuKaIihQMvAm4lEzWTHisB8Wvn+1XiqWKRLUD3E+RcTC1g3GGElquXUXAuTX04Sh6ZQHCDw2U4voy1iz/Pq++SopfUgTS/PMqx+aDgAWakNMW2IlXIHzD5kfj3TJ0yCKh3h4cIgMUwPFB2Tz9OZTInSE7mZ6yzNlya7ufQaRL2ab1iP2z07JsSIbNuZgczwvNBSIjTOLdX2dAFv7WajNCaRXeoCwAgkaAWiJez2+2jmrHNW3V5wUEreNCAD3ogUsE/xJVajGrTHHOGyt9FLbFjvqPtURJgHU2PBJovH86wkISqJ0zXXB/LVc0dsaE8Sh53CjHfImCs4uTh4VRLB3tS9oPGlpVb1LUO50DVrZGxRCO1UKBeexYGXqM1JTISkl78AJoEYR/vYxTcx+QU3VL67WgOik8RdZVwLKqNqHWTFKdWyPvbgMOt8oOatMdrqk5Ay6OO97BMIkvrYJ4CmT1GsocVkATmds9gx8NtaSO4luYz23GK3XhmDs/3awdlIzxPhcuBNivLoAuKn2KL0d4M04hRoKnO82ZKQ+qERkZYxjNpyYCsEP2tYF7JzC9c3FmNESgHqyfdYk4qDKDLHKJKq+Cs0EI95g4UKOrnVTKP9v/BU2DvDpo1TGTg2QZqG0thQLSckXQt7NyrEyjghk8CZ598p8wZ0DnJgtd+vi8fMUA1/gr8UfR/v8pq41WHeydV7ddz6X1HkZs8z8uEYiezns/h0AF0VjgydHL/WBqLtysnB/mn26Mudow58r7mqInmb/V2YhqiomKaFQx1tosARiAJzLz2DfmoLS/MZ+A3P+L7AdCSK2iWKZ20BkMlfXDzvttKMCxC7v8KNBz8pa9sIVQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYZPR03MB7001.apcprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(52116014)(366016)(1800799024)(7416014)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: f7waTfCrTslruicIQ/YmVd89w2uFtSM6cKrAWufUSNXn/HAafoiv1VOta0RNDYL1AKpkX5ciZgn7AWVnIxK1vOGj4yaRm5yFqP5MQe+y7rWSsmm7X4fzR84dYm5D37TC/9nd+d2hPR3oSJCy9Xxg3m2Nx1X1qlHDPxa7PsZXEnZiL1HNsdrJZIjqL6k1/3qFpdiLcIvIwj7Jpwxi84aWaw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keKU1ypiA5sjtT1nm/iEz1AUq3OKTxWsYS43WVcgbdfCZLR1pobM9yUZtISaG0CaTUy01L/fh0f1bhBTZhmaJntDmhOhhwRQsxjXCsQCJqg3c1RiRIQY2+V4tr30UgKubak+jSOGhChHZDYq4X2RBds/M0VdB61uVafaoiXFbBTvEoxPYpLN6g57/qJuLgX6PDV86tW8UPXSJCI/mo6ySKcc/lUlMnAFRJ2rJL5ehzey/bjObGng5UY03SrOLcadLyGWnTMishdnINlLv5lFMdzqxyaTJNTbNkECbmk+rbqfwutKRn+ X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 745c3762-8a09-4ef1-5f65-08dcc7133a27 X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Aug 2024 03:40:57.5417 (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: xB29lSIuzOx0XHECqEOm1KbuDld7rvsTbXJYmvQk/F+LMQRiUxoSWE4p1wAG8Ch2KgDu7TX8gf0uzo12bmKD9g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR03MB7977 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240827_204112_730308_8569F3B1 X-CRM114-Status: UNSURE ( 9.54 ) 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. 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..3d0f55c123d92 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", "brcm,bcm4329-fmac"; + reg = <0x410000 0 0 0 0>; + clocks = <&hym8563>; + clock-names = "lpo"; + }; + }; }; &pwm11 {