From patchwork Sun Jun 30 07:36:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13717080 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 CBC42C27C4F for ; Sun, 30 Jun 2024 07:37:21 +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=5ERto1UyhkAAKVp0UYqK6we3Ig3j0IzjIphAgeN4UBA=; b=IiuWIcDP4hQ8vHc7o2RVy70F1H degBN4RZ5dLljlxXqK45bQM8i3wdk9MYakG93c45NUVXIX5izgFlXqzCgMyenoKV49O88H8fPtRYT n8EQHUaMZdmd1Yw6EgXJ+4nWKVwFHWo4pTPAjF+wmKOKv/K7U1FyTPQydg9veeWgzpLKPUUwmUEFX hNcacjyYVR165lrwiauzooLhugB4h+IzsT8iTUGX/KMEqGBgtR5EMqFgk6sngPMPXsq99XcEQd8FE DH1Nh6ECJ6tdEBWKD+doOabMvdrFzRv0NFe/y7uIxfUM1Ten9MxrN3cMlb/oQoS2rkocRBqNb569I q7bzt9DQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sNp7V-0000000HZbt-2SpL; Sun, 30 Jun 2024 07:37:09 +0000 Received: from mail-psaapc01on20723.outbound.protection.outlook.com ([2a01:111:f400:feae::723] helo=APC01-PSA-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sNp78-0000000HZN9-1fNF; Sun, 30 Jun 2024 07:36:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kqzouzuX2F0Arb5+ygZabEB3orZqu5SPUfb5TDIUaWgG/yWoJ/wjKmFr6u7BUz96fDLQMj9eab7pug4fixP615qHtnpfyzGgmneE34nNTmN1SHA0AQZSiK7WRXKojh7kpYn/nDgF/havjNJj8FPHH34CSmJMjGqlIBldCt4HHTyL2iiHUC89wLdJOKUSVCf7UyJpF6mw8Adx3/EtWm/c7SxUbf53mQw1q8mG9gzqciKF79Ac9AoOBmnZHEwq323anWPH735N5CVvGo0fFR6jzddaXhVZ3dASS922jQHeHUHsXxnMl7DrvzDAo4nANgoZlHj3EXubJ/0DcpkmW/1oJQ== 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=5ERto1UyhkAAKVp0UYqK6we3Ig3j0IzjIphAgeN4UBA=; b=BcTxFA/Tf6rUkHQ6RSYscs2m7x6f6kWHU9ZSCxFgj/ECUcXSp/ue27hlhnoZL4KStK+HDs4TVUmA6GOxGmtr5aOH4YX/rgu2KmXBJgRLlFPYWT1XEflNjSE5r6+0Nalhd59TdDT6Tjv9xh+whfSCY2mq2I5c3VGgiaHdm0VoxU0emULm1S44oxmWzZQCjVXNLgj9EIqzimWucjPRhN6FxxVWXi8frE9VeAb/HOUSvXvqrSCQf8oY7CjZoOqDL4TXUx5gKIoYcEkbd2ql3auN3pVDxnAkZ6XGOkjPBoFgZhWvKRlZvLGvDHF8HXZ787mZhFoF2DZszIw4hUBqsHsAjA== 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 PUZPR03MB7234.apcprd03.prod.outlook.com (2603:1096:301:118::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7719.26; Sun, 30 Jun 2024 07:36: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.7719.028; Sun, 30 Jun 2024 07:36:30 +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 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 v3 3/5] arm64: dts: rockchip: Add AP6275P wireless support to Khadas Edge 2 Date: Sun, 30 Jun 2024 15:36:03 +0800 Message-Id: <20240630073605.2164346-4-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240630073605.2164346-1-jacobe.zang@wesion.com> References: <20240630073605.2164346-1-jacobe.zang@wesion.com> X-ClientProxiedBy: SI1PR02CA0056.apcprd02.prod.outlook.com (2603:1096:4:1f5::7) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|PUZPR03MB7234:EE_ X-MS-Office365-Filtering-Correlation-Id: bde62b5c-6798-4b08-3dbc-08dc98d75bbb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|52116014|1800799024|7416014|38350700014; X-Microsoft-Antispam-Message-Info: 5mX8ncx06vC6vVmVeAkrVhrcf1dM9PH7EhU3BjYXu8T7gyrwe9wL/vAyAqRW5YrFQAhtSgveDHNTWv518aZEjCFXevsO6pPRrgm48gdXUPlhavUVf1NBFO0Mh/MrsozLD7yyfDFOCUsu0vLIK9LZgLK3RfqLXOphWrCatdBHw+2g9gs0N2+mkzLP0TiYFqAZaHgfXN2qcEiQr0Yj1mih8xEQn+NkvxWS54j5QcUXc17IYQEJKEUD/VAqo8ttmKh99R3bMNOoo8skodfhDcQ9lxrzxHpUgAXLimf4NANN68HFIlG1q94gq0Vvqbram89pT2pN8LX4e+MjxrfVC2rrqcQhfPpPmAOMg8om61JgT8dM/tLjrInGaPM8jtSnYueOSKQ/nv2L1Pdde+g++oKNctqju5+ig3MD4CG3H2Nk2CDZ9HuJzFeo1tj7yZFZE42cvqetJcE8XV92Foz0sV56UtBGCcMjYlEyOHSLr5XuBz2nFtmLmf/pky4oqaPTmMuyikm2B9I7wVhSG5gOOpfFucuqeByqZtiRWvVgCDaFEouOaEZ36K8eAOQhGxu0DzOJ/TgvY1iHSwRB5+p2wwC8Q9mhAMBZ0Lg+YBQonkomX8KUR3SePlYOvfEYdMAfvpZLP9fr7bgEiNe4cxVBQzBK4Hb99MVN83zVtDUm26F5fJY02FC+8Pwl9rAMZKYbkuktBnOhum5J5fXLOmiI/He5iLwCi4vJfGCqZok7DWtVjRvnpbkmbsn9Mb5f/I31IpdX6nBnyZ53tvy3Gcj0VW+I6ki+ODyKOnHU7oqndnTIIsjHhUSC4cru0NXMh+/nm00KHFr6XVc40iLZnyoO4bzIXvwDr1Bz2GnEHEXDO2YP9ppkxlow/BByP3Z3pBCRSop8i+YB00QglhXqecN2JadDuiH+jteVxP9LJmD/cwbCrRYuqT5O1P+JU4YkOv+Uxbb1f1fDL6B5ivBvB61mu6W5oL5CHtFzjaZoZja+HU7gVpVBFsjajLLTKqJVnqYfaoeBfI+kMxA9Mw3TyZQjzf5Oh3EYxxkOcgoiz375kuNDbXJrWul/lSeuXBgf7Z/3sVKzCf2YMUERfpXwYREENBOwgGas/oMTw/qZwjTLyUqtOU2qWEcxS7vrLCB9iQzqpv/DiktTagyLuohvppgORELi5QFnhcdIV0WviZefMCmEcSdsEyH+DfiqcHqeGhSIcNMVIFp1ZecqmipO8GFK/RZDhq8bFQdrLu8PFXwMERR6Mf+slIxejS9cap8hpkWMvbZagjnMBaW8Ses98wxQCrBbrAYBp875aAHCz/WaRNxjdJetGCjo5lnXzOMayhnY0cTok/KdivWHbVBfbphvG75xSGEgKWyZ/MYR2BqwkhBQUjotJaeRAPKQM7lCPcSZ0sk59AZ1DbXyLop0iE2Ekslh5Q== 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)(52116014)(1800799024)(7416014)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: UDg55U+x5N/j2MiA1pbTsYZ9+TVLk08Kp4iwy73xSym4kvEI8/sqPYCz7Kq0407KPalgtijcxNWeKjNGn2M+3yQJ3RSvueEUiJ5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3lB1OMoCgZPQAZUVwq3urB5ZEvXWmXRuPr8ORDfzUeK58wXyxC+SNAPfWImRdI5trfc1xzDBKCm2GR9vybr9vDuY/HV9SHgYjdvZUEHIidlWdD+oFrd+tovmc53tELZp2GH3kl1RC7ZlXGiTbMqyWrh0RCCqfyXjY56vnvj1tul7cpZ9+IBGqOktNuOpTHUlSGBR3HeIPSwSYokpFCOYJ7XITmIixj6dLC+hdJTsPyargVhspw17eal+d0Lco45l7KZgdF8QZDOwJ+ScjAHTpNaUe7zOhODHKoPa+LmAiT8eq6AFHzjqlGaeinkvGa3uzrFRmkUh+jxDI4Lj430b0sByaNOAa9eT+cvbhXeygOWiyuT2aY5s/2EhokY4IiHYXjsnYxMiBof/NpTV3BqGi4dv/ktUNNPIfnd0lwacTCDG/2aQLS X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: bde62b5c-6798-4b08-3dbc-08dc98d75bbb X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jun 2024 07:36:30.6210 (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: A1XiHRiXjBnADk68IDd/97Q9dxvEODoksIvTZsljxi414JW6edFI/69T6tSxy+xssD1Q+anLdvGd0cq7NURlSw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PUZPR03MB7234 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240630_003646_469734_620D34A6 X-CRM114-Status: UNSURE ( 9.13 ) 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 | 15 +++++++++++++++ 1 file changed, 15 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..8c152d587aefc 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts @@ -283,6 +283,21 @@ &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 = "lpo"; + }; + }; }; &pwm11 {