From patchwork Mon Jul 29 07:01:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13744426 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 628F4C3DA4A for ; Mon, 29 Jul 2024 07:03:37 +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=NRUqt4k/WvlKGJFOdFHO2kFoLNEuStUTybCV25hPoP8=; b=S0hTZtPi7roOYaZWBKYY55F6rA DgOMGJP/KFDe0/LVT9wsRr2+yLvta07w9YqNmXVpjej7q5cOT0YCEK7J1Cr5B0qzgKgWjV9Y8U2k5 GPJZSpQ942i2xPL/lJKofDr1WDdmyhzmTD41UJn2Ci8IrYL0JjjyxHy08STp4IrO+xbvdF5DnLMTM c+HFf/3/UheHpqxHIs7EqkpI6YvzBRZFVd8QBsmExXhf0OSVjC7iI0NXTKqQ5SJl+KK4sDM95Tr6P zUD8yA25AzTDxHf3qNgCl6PSLzxhf/6nrwWYYO4C3rpUJUqggFH1nm0/SfzBpl0SeFmTFLSFlWgW6 Fs5vnZ8Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sYKPj-0000000AFCX-3HSE; Mon, 29 Jul 2024 07:03:23 +0000 Received: from mail-sgaapc01on2070f.outbound.protection.outlook.com ([2a01:111:f400:feab::70f] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sYKOC-0000000AEW4-3Aaq; Mon, 29 Jul 2024 07:01:50 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=LJhd5CFDx5gWlaLdZXso+uOF4ZqXo0rV9ro8rtJxoUIOH4QWuCSWyiDleNhuTuLv8Ii5+G1aVVVSAUFjChKBVZYyJQN4hfUxtm/3KZd8bHkXlCedj0OZ/tRKT+0Y6YWOuNKH4Cg/F5NLFxzFVqKCqS6Dg0v1pkrpj+pGg+biJ4vSNWXLy3EEQDiLeOHBJaBf9L0YStEap7kkeDkbicgfF9HqHx59ETD5UuJXPH233CpHG0ubDilhEpbg1v4ARAU7V1yl3zQ7QhQGjMNwkWqm26FoVwHzwxNvGYIT8fy3s6xULvRm++tz1NrLlPUZl6udbi7cHwmU8MmLmXddAYorXg== 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=NRUqt4k/WvlKGJFOdFHO2kFoLNEuStUTybCV25hPoP8=; b=YABhPBH7E88T750iPBz937wETo3md5LueYCh6kq7dlhu4Q60i90IVtXIy9hChtBusYbvWLA636v+qg48uj4ilspXSuCO7N45fa0rEvJOqe5FDs+i8M0Yr/g+5FPZsCeKLlYLenQLwnX38pzVR06I9NLISN4Dja4hsULgOQ288RQ8Q4IpQ0sa7PyU0mADJEYLbL/n2eHZq/JyFwDN3hLUkXseS5+wE5z69J+3uJ1PexAF1iYjepu9MDSuRFUTCYnbxOBW3AIceADLQjN6Ws8q+qSqF/ET/kF2IFiU+fLc4ECo9FDBFT0uncimjsJeByRa9Q+LWBTLUMdW6l0OTUdO9Q== 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 KL1PR03MB7870.apcprd03.prod.outlook.com (2603:1096:820:fa::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.26; Mon, 29 Jul 2024 07:01:38 +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.7784.020; Mon, 29 Jul 2024 07:01:38 +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 v4 3/5] arm64: dts: rockchip: Add AP6275P wireless support to Khadas Edge 2 Date: Mon, 29 Jul 2024 15:01:00 +0800 Message-Id: <20240729070102.3770318-4-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240729070102.3770318-1-jacobe.zang@wesion.com> References: <20240729070102.3770318-1-jacobe.zang@wesion.com> X-ClientProxiedBy: TYCP301CA0045.JPNP301.PROD.OUTLOOK.COM (2603:1096:400:380::18) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|KL1PR03MB7870:EE_ X-MS-Office365-Filtering-Correlation-Id: 280962ca-c0b7-4146-4998-08dcaf9c4ac2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|1800799024|52116014|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: +MQg0kVghdWywTtx9/pIfB9jGQdRBR1PxIK9h3OAw06z3vMlxRHsLlmZhwBGf7oyIf2FnS4gK1J92O8deFGQWC9Bpp+T68kLw/7FZszE6Xx2LxtlCOR0RHvP7BmrqoQbZoCrBPyCC77tFEPjmT7LeX2p1SGUs6YOaQ6CudqWxRfd904c0MSXhKu+6mBU7r8yLdcWjrfwBxhTrE3LLvJzFiItN8fcJwzcqfuTzuY23zVDr2YXqQ1wNgfAepD+PKYSRLWn9TjN7g/o2KU3/O/HdklmjNk7TgfFQhH4UH6Gna6EpkZzzxZtDuFVvToo73/3AKQX1n7C5EYh//U29aDMBJ9kUi+bMIxI7MALnyUCnZoMgmCBkDOvZwe3dvwd0gADeoeRyh52CuIEBdyjGNJafh1qg1RRbOaH2C/GNfcR3dz3e32FpkLXz06mmxkmrVmL+cFLzqoEWLlRLin9AKRxrudwXVv+269fALOKpDqpyjUbzCqTbk2h4U3+uoBpSA7ih8Fpdn3HcdB3ORkrzf/B0ZGH6JHw5D5U9V6645T7JtbjgyJNyepFr4FTKM+hVNFL1/EI0MoustQ6WhYLJ7MpG5a4ofu2Nn8PP5pPBs9a6RykbHe4H9b2e98Qd9Y2hRgnHdXuk6/WEDbTXz087j5Lpvz7cOw14RVLaQHzkxqF0piTPnlFpq1ET2aaE46t71eJdSal1ttJDfN7sfjRwweehU2bO3eMA7J0f7jgrE0mRi3JVt4U7dCF2emJ+9YwhHcXLfs/LxQSUpFoaE71AOJO9KuAUAzUwIkRN0b0EhmfWYGBnFn57nuU02WMFh6mKx3lgdvAcgqn5OgLmOZKRhy61grgXZDeoqHYyGFs1pRM34QmfphFLtHXaP6wcgs6BcDzLIv+v2Gn8iwWyeKOMXkqZkiL/SuRzpyqY11WANkqE+ql6QN7WLMyQfRubfe8sSeO/4/jt3dlPeYjyNNDJgUXZB+Id/E+IyE0zL/DBplEH3741Zz3IBCbBVW84+yA1OGBOX9pXL7wHdDg7vjo4wO1VP8uEGlWn8+CMudia5lQtxTaY1VRvUQDzOsTAm7gbal39TwH5zjSk8b9jCEMcbgNvKxNBsixlB8qV+spquccnafp/U7CUKplf0Sellr168qr/rnrnKaNB7ThxG/xFYw9bUpUDsBDS0HWO/sGjUfUTDOCRgwjE5xPHWWB7gncQaoQc9ltPJUQDs0gFoT1XoRHyDIckL5RL+hCDc4U1s6u37ZMOdbhr6eGAPMCR5nAICuZADee/Bfct/VyttqHfQyxn//yLloWjMYRtB7Z6vYO8+hrCiuO71AuA77dsvrBRb+Ljb0IJ7veSkX6P47PhA+hc1mW48a1jZ6aWgdYcZ1jLH1/CD0LMK70d1cSYfp0czaIfS38mu4MV7kV59mMFueB78LsLBWQmFR/HRt4dGxlBn8= 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)(7416014)(1800799024)(52116014)(366016)(921020)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: XMpAM77b6gE+L0Pd18Nir8phxOkf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mSfQeC8XBKfe6BWB74Z/I9099iTplFrSOHbov107WgKHN5lQcf++rZSMVnCgZlDFuN3yf1zQSYLVi79IHCLl42qM3RljKAOsICAp9JZZlQujp4ZxzmxFUwDZ3+bNoi78s7LtImlTLCyoP2E243yAJ2pxwJo7WyyRPLg5edJrPrZiavB5LgCE6ZDwmd7QbuzrZaMOIU98pfp0YF+sDRZtthb3NfyAQ8Ob2ZtuzTtYOig70P/Wh2K1gaL2YScYl5Yegekl4wAQCYPchrtHjUmSOCaq9UcImAlBCzE5B5+utxNl2+LJUcp3TPAU+4UhgxcbaWu4ZjR7aSUW60iMOknk+8HUN7O32A2tGmM3bZtZfAiKJRKF2gvZb996FCNeG86YajemF4TBIAxmB9fmaYjfPZaNmHS6/1/jE+b9yT3YnVmvZqUESgQZC9LTH8ue7kxZ6p40k5l45aT4512wIYHPvCuo4bDo1j X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 280962ca-c0b7-4146-4998-08dcaf9c4ac2 X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jul 2024 07:01:38.5386 (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: mWcx5XNtoAA2wKryCSc76kONfRN1tjRXDeS1iIh6pOczeOKV5bpgq7u4Mqpl5upzBedvtCLwgkeQMlT1iXUoIw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR03MB7870 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240729_000148_846147_F3B0BCA9 X-CRM114-Status: UNSURE ( 9.47 ) 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. As a PCIe device the wifi@0 can be probed without compatible. Co-developed-by: Muhammed Efe Cetin Signed-off-by: Muhammed Efe Cetin 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..b80a552dad883 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"; + reg = <0x410000 0 0 0 0>; + clocks = <&hym8563>; + clock-names = "lpo"; + }; + }; }; &pwm11 {