From patchwork Mon Jun 17 07:11:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13700233 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 6CCDAC27C6E for ; Mon, 17 Jun 2024 07:12:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=Q3oVDtNY5tRYIFn4XFFgSiJLygh81+TJkddz0b440T8=; b=G+jFHx7XJYFvAr 4UOp+jzYOhlXx+qMm/qjaE3QTaMWrZ51oXknVtPHo/EN0lpX9pq986f67qVRIsQbM6p+15kAQaGj/ 3HBc8MVlPfNufuFUSp9Mf/lOIqOvdHAuj/yVYM509emt/8pep6ZdQUUZHeLIf6zipEFR3ZxaRXy3U dbyLzJf+eUzA7Vp9lyTeUNBzXK/vrBvk6M7HmMFir7m4CwGrYRkby4P7hKIKnd4r2KpYnrMX3GFOY EgWxwojBewUwZFUT1y+69nDkOr4iKTb4uczRJLTnye72HEt9gkeKX0Q8OAz+vPPcxKzMEERtxc3vr KrBHg5whXCxJViQ/+kbg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJ6XM-00000009Yjp-322s; Mon, 17 Jun 2024 07:12:20 +0000 Received: from mail-tyzapc01on20701.outbound.protection.outlook.com ([2a01:111:f403:2011::701] helo=APC01-TYZ-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJ6Wq-00000009YN5-4AQU; Mon, 17 Jun 2024 07:11:50 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YzQbDt2iB25R4c+/mlawCG92HXF3xuL0Tc3nwsaYuEmLbFqwexhhc9G4z/jAk6/h1JkpOihTMMPAbICDAMUNm+5LxboG3nVUPkqKtLUkEtUBWIiz4AViwdkLAFjBw88gH+my4q14/mzczlNDeu+NxVudNrhyAV5gVIwDfjf1YZG5EhD5OzkhbD84x6N49CrJpXpBQSY3lNhHx+VZ3KqEib2gQWKIVb9ryI3My2O8izQ4sMQ1DxfdM3walpZyi4Z83bltRz7W/Btc3r4sz4LTOVkyE5BHw9H+J3AXHeLtK88IqyqmegW0IqbTqpgc+49457NOp7YOzyZ14et4p0+LTg== 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=TdzMnZ6hnydbPcbxzcpTAl3xkMClQP31BdtgdcWbrto=; b=hPTqzUCFxtA7bEnl2UCeuVw1jOZSlIaE3HFWGyt5MR6v3MhTkGwPdYp4cSV9b6bqujpg0rCN67olZXV9abz3Ejpg8dTkjqfUHsuDkQ7MONiXzLDeQy+nirJdR50E2PksNZ3tTDBzJ3pFzi71ZzI+L72UCsVDxQRpWLQYosVr64jyNGjAXmO7r72UrNQ2aV+PWSYCSkXMb7PqkJFllZxE1DLMYpLmw58N+fldfZ4rRB5TG43TaTmlVFbrC7CYUoC6Ub1HXJLJZI+0mBdU1dKp9egEQ9j8Pwt4HUqp/W+bQd96t5X9JLKsfbkmiujfpkp6GInhVt9hy/ZV+mdzG4XwHw== 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 SEYPR03MB7968.apcprd03.prod.outlook.com (2603:1096:101:168::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.30; Mon, 17 Jun 2024 07:11:31 +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; Mon, 17 Jun 2024 07:11:31 +0000 From: Jacobe Zang To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, heiko@sntech.de Cc: 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 v2 4/5] arm64: dts: rockchip: Add AP6275P wireless support to Khadas Edge 2 Date: Mon, 17 Jun 2024 15:11:11 +0800 Message-Id: <20240617071112.3133101-5-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240617071112.3133101-1-jacobe.zang@wesion.com> References: <20240617071112.3133101-1-jacobe.zang@wesion.com> X-ClientProxiedBy: SI2PR06CA0017.apcprd06.prod.outlook.com (2603:1096:4:186::15) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|SEYPR03MB7968:EE_ X-MS-Office365-Filtering-Correlation-Id: 122b36c8-e5ac-4c6f-ae02-08dc8e9cb704 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|1800799021|52116011|376011|7416011|366013|38350700011; X-Microsoft-Antispam-Message-Info: O6DTPmyGLKqLyBp3b2AsbM7AA4hasQecLDpW8wnotFzuTz9eSfzCH9bQlI0MdWulnEHLRQhBWx+KxqgjmpO2ll6jjisQaXMn8H0LmOESMbnWGKo7b1V/MzbJpc/bXicFbcOD5YVvR5tXGQAKSyZoNfNSFki1H3JQrY0hevcbC9IZBfIzvFAdLygvaMR3/8m5VtTsIlB6P3yAbJyFxt/KHQPAxwzaL81dCSBVRr6q5V5B+UH9fgACjfVZTIPK9fKxctBv4vsYUN2ElF/0g23ReDLRlYv+B9kBrjgnTcuTe883etCSC+swg7VJrdaOWriRuI39VtYhhj5sBt7tvreOJegNX4kQM6eYPLlWwAsNZU+MdhtcRqC6BQzNR55pp343TRftJP1vxueq0H/2Jnb1FddF1liQKp4a1uY9RC5xcifCmNz4v/nvRYzv0UHp4AldmSpCYzpkoEZpL3Db02D89eAvmAQDDjjGVFQyoQI72ztBzOuh17h/6c6dSYIHm49vDj8onApecLFTcgWZniJ8/EtJhSscRkaqoVMB1B/K+uSB6V4eq+6PAoCU1JdDlvyXP1ceYYR3EZnrJaUQPcZxWvP5cfYcakcuQ/ZL//mFncKpQTiueitDOOAx1a8BKLs9yh3BbZWw++ENgXCk2UpIY3Wt1TI+YjmutUlfc+78teoNFGIp+wKdLkR4lvLf9+0vsm52vuj9x/Uid9h2PaxdjNFT8x0y6g+mTTnNwkM8qT6fvEcpp2iEAdAC56ikapYEIWMXZDcDMc3tiXcgmzsxutuGiBuyhzUV9iFJbVBlkeznroRtKE1h1lBh1xRJFgsYRE/yWLSLbP8lxfK5Crng/87XCXFhUziRfwNUNLfPBAULwurR40jJ1vByAfoQ2XggITuAdnNHjstM7He37k2wzloQ1skXxOpmhv8a1/in8XgmsxtEbg2lPW1uY5LgA9r88BCCrJvNtUrQiwsGTREM/PFv4QHd2IRsUN1QnPs4y0fa5QJltVT60+y7Z0XG1blaauwlwbTQ7JLDSAXQ823glyXtSiELQ6RvGpaNzuUBK6WFrt1z0fV61D4nbTalVHQt/jnUP7icZHE7yktHCTwBPrG8Jmaw7aONdOsieUSE7NtIO3nk8AClnAr/jSPNWF8Rbg67jXSC1KzI17JFxwniZwSZZ8rzTPRF/Kq0B5qpDc74H0f5/9cvYoNmvMihc7FY0V8iahkhglgoG4vpXSP/M2jTG3vmOcv/xnDntwpOfWCxpZ99o3BEiA1+wYiPs/2kmT8R1AcahMeOmaSxpyEiRQz7TLvUNslQKKRMKq665Nl/1tDWQ2kgYrHQP6ZUs1+SzTIGX7EHNkbX/eg0BRF7Fn1bsBPLGLSGP1TlTD66Zlg= 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)(376011)(7416011)(366013)(38350700011);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: lhi57PAps6WrlH0bgqiWkfrlc8nzBQl1m+M0YNjs+igQh2Me3cT7uwd1JCLjjnD41Iolz5e2sY5ZrQzMgrI7WRxZ8/u/JjGJ3qeKJ9MLAAlS9BSh86tJbKU1YJq1Cq3dRUnCiUgjOZ3OmbjGXzG100hzQk8mnWNKky00xSHms5gKU6OGLygrbAiWo2SHqOsHTTWiL7iI9Cx8WG2tNxQdqx5Xxx6skur8MZqlkx9UuwayxwGxSG0+QMWIVmUkV2Uil0cVBtJS9NKR3lGKU7gWfLH16ik6fSrwkTfo4d3UW8o2OFguZcft6caJ1j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6QSgD602Rch8AZdK2QmtyvTQRVR9OHKpdVtaLXbEoZjBdWiwpPBKL3C2JWMeGzj3F1lVXIlmRSKnQp9hxJi8tk9V4Y9X2by4ZklWJathrsDJipUh/aOG6bfMVAD/tooXp2PQWR3fnawGaZ57nRHYK6Hdq6u6iw469ipkCXkWlPFaILev0t1eyMSxrtNuL5z4nngizwpYnsrTLqujKJs4yUoO9GwsRLm8zc9Nw== X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 122b36c8-e5ac-4c6f-ae02-08dc8e9cb704 X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2024 07:11:31.8174 (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: EdIoMJoh8n4usGsxWe0+VUXG25Pb8maaSxekX2onTwim91EKi+/zBf2Nqozw2Ifcm9FDnVn3kNFR5ygj3ItFkQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR03MB7968 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240617_001149_082345_AC6B065B X-CRM114-Status: UNSURE ( 7.66 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=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 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts index 233bab17bffd2..7d7cc3e76838c 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts @@ -365,6 +365,23 @@ &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 = "32k"; + }; + }; + }; &pwm11 {