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 {