From patchwork Fri Aug 2 02:57:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13751022 X-Patchwork-Delegate: kvalo@adurom.com Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2096.outbound.protection.outlook.com [40.107.255.96]) (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 853F561FFA; Fri, 2 Aug 2024 02:57:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.255.96 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722567465; cv=fail; b=I/JC7sAu42uWu5G2eo2Gyqiy+15mcJk0dGPfUaNzc1lOsq5rifWLgExhPaGZEoCI1l93jvRckAt4n/APAG3CmVOFlDIGgw8nnSWtiZY+HkSvLZE0zcmFfWSI/VtGMQbltAG10TIS6o5xJlz2RFA7M6o6g3jD4LBnu90xnOIF95c= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722567465; c=relaxed/simple; bh=GVTEwqkQQ/mPTllUAS6ubbQuZTJUz6o8kitGbrIiKE8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=FTfAXrGOwWSfWIDvPGiFq5tJ8XlnRPs0lq/UsunaH719QW1lsj+WqYTlqaiTqV8CwYwj2jWmxXs6kXDYC6g8cktAHYEvNQIm6JC78vjC0GgG5CXzhAilpUKzg3kL1Dve0n13WJkxQdwsO7WlZnQUqPpoH01KWjV0VAAlCRTqgcs= 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.255.96 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=XXgMtcavp8MnxqujSpC9y3gNZ71v7Xt0nrVDrRCkxDVb0qstI2mRixkPaFZaFRwzgPziV7gt0n6D3C5jGmlRWMBz8BERBAUBpM0m9D1IEiYdPX8W+Qw0NBgqc4p3xtQXoAYAqfMT+vYm75ByKC0SXXyblJxX63KEOTQsXsVvOK9ZN5522YHtvKn86Dl5ADLyWk762tsSSrfn+rFTnIyrbUVisfVRxyep1h5qXQkAcOOKTCDCDx8NUTDSQQ8sIMz8ODwOo14acPu391Mltwx29ZYiX3Zqu3Imj0bkMxUaeXS9zwQZqPjtycPW9SxtnYx8POZtscBN/wwRp0OYRP3uLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=2TnsJEftwBYRJiEemJReSfUR5plTkSfIwo0syi9FhOw=; b=Shh0JZlV9OHyBtMEYQ4NsvwVLtFp0M2CGyQCWmgGbuyzl73+10hoNtHbh63lqCaGLNXv0/20/EGkFQvFWaZr0ucXX75q/pns6l939Dt/27W1orYnAnzfSvylb1YJ+B8qco4pQwh89OPeuOtx2nQLFq+1MEUkAV2Q7L+soHQ9U4kOXO4MnsMNk127yp8o28v4XZBNx4/i7mWWnMS3KKE8PKE2UuR6A6MrRJvuE5lUSDBeDrdNDL9JddkjEjSns4tMiGHcWoLWTd57/mSsgpp6a90lPjtPia5h8APJTUT1l04wcnWsFbQjKeHSVh+Fy0ZctI27dBogoIaK/irTn+NDSg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wesion.com; dmarc=pass action=none header.from=wesion.com; dkim=pass header.d=wesion.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wesion.com; Received: from TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) by SEYPR03MB7120.apcprd03.prod.outlook.com (2603:1096:101:d5::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.23; Fri, 2 Aug 2024 02:57:41 +0000 Received: from TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0]) by TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0%6]) with mapi id 15.20.7828.016; Fri, 2 Aug 2024 02:57:41 +0000 From: Jacobe Zang To: robh@kernel.org, krzk+dt@kernel.org, heiko@sntech.de, kvalo@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, conor+dt@kernel.org, arend.vanspriel@broadcom.com Cc: efectn@protonmail.com, dsimic@manjaro.org, jagan@edgeble.ai, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, arend@broadcom.com, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, megi@xff.cz, duoming@zju.edu.cn, bhelgaas@google.com, minipli@grsecurity.net, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, nick@khadas.com, Jacobe Zang Subject: [PATCH v7 3/5] arm64: dts: rockchip: Add AP6275P wireless support to Khadas Edge 2 Date: Fri, 2 Aug 2024 10:57:13 +0800 Message-Id: <20240802025715.2360456-4-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240802025715.2360456-1-jacobe.zang@wesion.com> References: <20240802025715.2360456-1-jacobe.zang@wesion.com> X-ClientProxiedBy: SG2PR04CA0211.apcprd04.prod.outlook.com (2603:1096:4:187::19) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) 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_|SEYPR03MB7120:EE_ X-MS-Office365-Filtering-Correlation-Id: 47c3d5e5-0b2b-436f-b128-08dcb29edfd0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|7416014|52116014|1800799024|921020|38350700014; X-Microsoft-Antispam-Message-Info: 7HuVLuBoWFxcEtQhWNlyeWVpT81UPEwLrWWPvoowZyOXLp68234U1UVAbBJKs0y/p2xcuJEiouT4G74sYFy42PQf670oBxgQXTTHrdPf+TugPbfQvndRcPQqKrTbw623t7HQK9PD1c9PHyfRQOz+yWxYlut2wA0WGGdUtYNC4pIpEkPfng4dUI3YKAA1WwPZkEvpmff0o4mNJvfWNvPAaOh9rc07B+dSpXo+yGh9jBhkCqhYtYm2hOodEX3fMP7kgzcR8iA0kuqRDlYsqnxWXvSQ0ZrRDWyY++Z0yq0NJDzhbfdKO5tXwOf9bePV0BXhUE0gy4hS+T8zPQq0wRK3S+uCem9kgDZAFP9oqNsQKVItGzEOjZpQ4fIrBoEkDv3wsFMnPYagqwBwK4HEDb+4XxVa2bv9wlhUg5dTqNNlbNQfjqpYxAge17gf9cMwqaCTAnkXHzyyXtZbDdxEe3seXCKnIlTDFjjfJ9xca51Sy4YngM6NyuaXxoV/4zzTIdKGP1eKT7p0dIjyPHOIeJAG36qezWDqoJzJbmNsffCkRmsetnF2Z6vHbE5icyLtm0XGJBbVGImOoWVNq76pKIBdGjd+qE5vvrf6IUEF8k2JakdGVdlyc+g/hwRmrDZj1wln8+u9tMsDbqKB1KgiJhhWSs0+QqbmPxftFvrX90R7MGfMgCokbueGzgQVEeJxYp+d5tzLHssJzFiSgHkCKgHU8Kq4qBTlW00wQgB4GHAwJDV/D660rSGHLM79FcXxsE317Y8PYjIc7xuRMheI/HJBwRXvQtGClkPe9VcqU5dliVSP+GdsQrfv4EL/BEyaNott3Sd+WaZzQ712M2YN2pynzmDMMGcbJGtHic3qtK9STR6w8lV2b3nbFS+yLP6vYiBmO+GZmXUdnld1fjcPj/CY7Ast90g7BVqFLPAVZBavPxHGfBrZB9XpuutU1JscAmNJ0bnM3MDnHKpD3hvGjVLalR/nOEip9my6ru4SvgE/rjT09FgUce3Y0HX1CL9qBXi2dsLURTutEi3aenkvJoRfDNYhA3G/ME5XKP7nm1RWykk+q4wWPBPmFsMzZhoG/lnzzKPyZlKTKAZ8MMQZdtlsZ8OIoqGBd4njpl9QCshsom0EwL20sL25HnSbmCQtkGtq1YIkEde2bDQkfdZKa8mHF4ELl47my+RwPLdf8DHtSvnXpa+zsWj6NLzSvcDxc2RSSar8S5vNG+t+bMtEHbDMtblo15o+Z7Pyi+G1wfLN1ulRMUV+Q+Ctf1ybRjTBRuE1TSN7YqpNd8hrHwHn7wY7lBaPIPAoYTaeQndGIHyDT1vGYlLaDadSUjssQsQp4lnQjzvaC7O5+Ih6GMqUd7UZFtZPcWNHEAOUv+7oNdGvPa7PdWjxERcWVGL+V1/B+ZOz1NwC/GScAPcvE+eYvVAQ0mqs0fRT3WKGrXXHmZw2IuI= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYZPR03MB7001.apcprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(376014)(7416014)(52116014)(1800799024)(921020)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: mPVkRU1bYPiiAZ3ngw3MCUsSw3r6IQxl8tFSdxXXoiimblhccD2a8jgNnDBZVnWOCUJwliiUm8mdQzVcabUVWx/oljb8bO+70RYHeDJkaKpr5o0tkatSZl1qjp2FUuAW2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Vy/4KNUwQC7wEIrWD0TPUBvRlc16kjDw1KvwvS6CBrl+O4WpnonTP8pkz7sgs6fFSHdTD7y5S1QKXTwfIJo8idEcBoB5YneMsqfEB5sqpnSMxPtuOnbTQ+lQzMRUeAj61XdZLC7Z/Xd0237iA9B6VdFPKHWaMdHRBbpHYsyj1UpTEwPA7L5/V9m/zTkMWNjpHG3RBmDePh4B+gla6tFMK7WFOHFnyKBcnqp4eIZNtUaBEPPRSrCwPgM8/eTJ7D9pRDmCV78UAjpcdpmXOL149Tp6BUApBkGl5eqSet7Ui1KQOIqawuEIBDpvfc3Z8TCk4c8U5wifC3taSsdx2TG0F92yAempeoCZM7CSoT3N/iNyQaHcQ+GCLTrZp9dM4SVBqGa+Nj8btSau X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 47c3d5e5-0b2b-436f-b128-08dcb29edfd0 X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Aug 2024 02:57:41.1349 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 2dc3bd76-7ac2-4780-a5b7-6c6cc6b5af9b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: EvgwC8OGTeYSIVuicZo56wY3hPWwzpTLS+aFujSpANCAw2CMtEzWFkCjEjMojrfwu9QhjWRoLxEh2CisyxdG4g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR03MB7120 Khadas Edge2 uses the PCI-e Ampak AP6275P 2T2R Wi-Fi 6 module. The pcie@0 node can be used as Bridge1, so the wifi@0 node is used as a device under the Bridge1. Co-developed-by: Muhammed Efe Cetin Signed-off-by: Muhammed Efe Cetin Signed-off-by: Jacobe Zang Change-Id: Id9ec7338a8e86ca8a404058d29af50dbc00df3b1 --- .../boot/dts/rockchip/rk3588s-khadas-edge2.dts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts index dbddfc3bb4641..a3361ca25867d 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts @@ -283,6 +283,22 @@ &pcie2x1l2 { reset-gpios = <&gpio3 RK_PD1 GPIO_ACTIVE_HIGH>; vpcie3v3-supply = <&vcc3v3_pcie_wl>; status = "okay"; + + pcie@0,0 { + reg = <0x400000 0 0 0 0>; + #address-cells = <3>; + #size-cells = <2>; + ranges; + device_type = "pci"; + bus-range = <0x40 0x4f>; + + wifi: wifi@0,0 { + compatible = "brcm,bcm4329-fmac", "pci14e4,449d"; + reg = <0x410000 0 0 0 0>; + clocks = <&hym8563>; + clock-names = "lpo"; + }; + }; }; &pwm11 {