From patchwork Tue Aug 13 08:20:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13761543 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 EE057C52D7C for ; Tue, 13 Aug 2024 08:23:39 +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=vnTJOa4JXmWzrBFSD6Yx6B5bbeWEUpHWGbPOD0Sh4do=; b=RfhVdROI9cEcnqroIoAjAzb/s6 HkjCN6YU9IU32ANeaVJGls+00FFgJHFF2UNDU4y2oA8wsSbG0kEAvkvlb3OHcC02WFrz5Y/MtdFMo yPsmKycb+N21C6CTKBhryaLuZb4OtLiTXn96sBWfbkGWzHFo9cdD3Kf4rkTQ6UBoPfWQqbgkpSrb4 WsqU7CyFlDZiJ8cMLx/uX0QRmhQApmI1ZKY0p9hQM6HS4kRdQw6+EtYCjuZCEvL3u8hyHdXWPCSSC glIGrao7yNq4wTLg8F5gQQ/g92MR5Wu1VKM3L/+o8HBSsOttdIQlCfv6ebzuwmhfsq+nJQws1wm61 Zzx7qReg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdmoU-00000002sq1-3vzT; Tue, 13 Aug 2024 08:23:30 +0000 Received: from mail-sgaapc01on20709.outbound.protection.outlook.com ([2a01:111:f400:feab::709] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdmlf-00000002rox-3pUy; Tue, 13 Aug 2024 08:20:37 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=b1G1X9CZDfG4BlquAT86QT84GRyB2i1Hwf/HIb2XteZhOH328pjBBOe+DP1by6gxrkpr+xmiHQOMPMi5wyTia5LCwsC8ehPelMbCZRmbi06ZBL5QEp92fpRjpoDlSBY7MAJCwaZMC/ein2yeCwgTqb0fwWg82Y4bvm52HnChhVNCpAfGIvET+pg0A3rllb3Eafu2J3ah5kuUDuv0ef6eTa11f2VCv/mat7FVbthcJeLsyVYlhX1lNXWLDrHNSboIzwA/fNDQNLlCCgXlF4bGxoZqWljWaguJLUYF0iACiN21So4CGgSzqXaR+XR1y67jPPWPADTjYRQJjEIinf3Q3A== 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=vnTJOa4JXmWzrBFSD6Yx6B5bbeWEUpHWGbPOD0Sh4do=; b=dcyu0n7RC70xpwSPwH1djke6hTE5T/K4IDobqd2AcotgI2HTYl7c+yGUrJIWVp6LLPtwf0+dyyjV77g5dgI/iCMHriRBSXL60a+qv709FAbL3tp3Sr9EDP0tuC3xntBiieObXTZK2JteoC++SM0YKMqho4WB0ZV0rToAFPTMTNGS8oQ8pd6VW/HkYjxtv8JwJimgwJb8RSncc9xvVlxhBioP86yzvNvqTQoZ80N0dx0v2XB7LtTxuk3V4OxC4/Jx2g+nKKzsi73wNB+jPpxNQAorL9kmZSQAPFKlfl7XgcWVtiQjMdQDASeqdTvm/rVpOu4ZfmHKEqjNX62Y/P/5bw== 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 TY0PR03MB8198.apcprd03.prod.outlook.com (2603:1096:405:1b::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7849.22; Tue, 13 Aug 2024 08:20: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.7849.019; Tue, 13 Aug 2024 08:20: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 , Arend van Spriel Subject: [PATCH v10 3/5] arm64: dts: rockchip: Add AP6275P wireless support to Khadas Edge 2 Date: Tue, 13 Aug 2024 16:20:05 +0800 Message-Id: <20240813082007.2625841-4-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240813082007.2625841-1-jacobe.zang@wesion.com> References: <20240813082007.2625841-1-jacobe.zang@wesion.com> X-ClientProxiedBy: TYCP286CA0309.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:38b::10) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|TY0PR03MB8198:EE_ X-MS-Office365-Filtering-Correlation-Id: 8d312b14-9a55-4ea6-1bf9-08dcbb70cb17 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|52116014|7416014|376014|38350700014; X-Microsoft-Antispam-Message-Info: PqvozcjSfvjHLwQstIdowLH4k9tsbQZs6GtBXmuFqHMTKHGfxXW/ZJXDE89uuNzS/KbiKy61S9owHZgRRB2MZII5FFlfdW3OrwNyQUEnZRhqDEbFdiYaKThJuLpSFmkM8Ltk+cvN14NicDR9CBVc7gBM8opuBX1NHZ5mwhAs/m5tBMhzwwCnmj1qs96qO+iw6CLQqE7TEaJsSKAtB2JCuoU8EsLSaRb+uu77g5JYr9xEUyRTid0Tmuvppb0rsg5+WF196knNfNeSC9dk3WKRdHyoifVZi4eGOJWEOzlxM+L4zV2Nt0Q3yFya7wH5XazaUrwoAD9MoPHbssbPPHAgkG6gV8ZNGI7c+NiauEgGnpKJegV8psV0V9H3+ea2i+7K6m28uVb2tlLx+3dXTQfmf/scJbWAU9/zxZzBaAlCUIBBQSDTWvjIVV1aDzkZp1+oZXRRNLRcMeWGaVZtI84HuauxnQl5Pfy+QZ/vnJwxCcG/7KhYtbzMRA3ySG0Us6xafiFmOfov8oeWP0zLeiv0I+7pQN1V+FwQM4fZ0YP4L6BvIM7lGJHwa8s5J2UafVKsCY+wzPOvbJD1qwV3M1umeYZSsET5xvtoWphGLOSFWYWVonQ+TNNT6ip41LlxtBaiMR5+6yrNBMs5DukvBJcMwuf/0odmAqsWt1kqpCtnnihNcJOUTeH2AwKbwicxzv1MwJnfW0ZEFxLNqSmvcexLeirAJgVPI5KUTtC2vYmo7voECS5R+K85vCJt8kB5a7/f9UxKVp/s2e06yDBFaMvRx5IYpUq6xow4TcCkrgV5pZYIGRZHs765nNUi5AdSWfhNk7OLU0s9b/8925quVeCtfBBmo5jBf2Zsv/XQAwvw1Ufez7eiRAMJWJjcy63qzUne6Y1MoNIKuza9uNPM60s7KBXh3OZkU7Q5bjrVkPkN9bimmG4YNjim4WX+DiPPTlMnQOEEqhiWVC3dkK6QxirvqpnMC1LcJEC84mNMg5DKF+pqbMzwqXFoYr8YSbXiz+ct3hGo0qCZJelqPk5TI+h7AjW9Vr8Nv59MeHYfEzLYhGUPAgoZYFrfxvTEFfJeDvik1/RL3hC6jYaoIOdJddS85fJzxxOHKNUlFOK95T81AsScE9FhH7oe7cYYjXBqnoiYKUi9UlrtQbqSGMg0tH9W4NojhbqZbYCYhT2e9//aIXYzAEEj7zE4VKE4DWnW7d2iK2hWQtOSRUg+7fU5CPfQkPuK6ZFIgqxkmT6zA04wONzv//RB7HVPrqlrmU7m2rTsOycQqnhmYcAayhywaWompBcqkqsvEy9ifDwdwf+SyYpjZiisOLkda63DIIjVfFlHdqvUfcNqElxPz3S10g7tPGXdYY44Ngd3MqPys1zT0P0= 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)(1800799024)(52116014)(7416014)(376014)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: //1Yi80VP10FLLNn0uqTKKxsYUzg6uivOa+gL9p6X1dgzrYo4CNREfcWAltwt3UxfA6ZH3rQoBenKwGX8YznNdxrNpjvjpqeL92fLRsNPmN/pc25wHd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JMQjMKd+dWwpm4XDlPuF+RVUP1smddVlVgQVIlyzBUe3qyWF5ykAZLVdDU1zkX0wjJnskAkEt91R0w6MaW3xEK13gOLdhVFvCQKEW8apz3r6F03wD9Is5U8fgmPXZ32poyHozLyputGflqAO69nhvUQVFodcefoyeQm77ksfvXCN7Jo/1xidnQmyZmzTlyUPlt6LGQYi0aWGn5AGKPWX7Z8Jogizq8A7uhuouoa/2GEbi0UalltgQamvnTFebHJyZ5zxtUHWI0qMKLu44Xhm7jyGORn32O0WqApKeuM3LGixIE432g+c9Kyu17qDyFX//8JDDdX8Zb3GZo6txxwvGtUD7wysY8BLaY8ioPDUNfVlFakAp1zB0xQTqKaTR/vgzc7IGhnQRV1++2Uwx X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8d312b14-9a55-4ea6-1bf9-08dcbb70cb17 X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Aug 2024 08:20:29.9402 (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: oCXCxZH8pDMQtMT9TyaFiSF3+lX/UzckakARnUe712w4E/87BqBBrndyrtsLYmy6aEPnH9bPCORZrzyq/VdBZg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY0PR03MB8198 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240813_012035_974258_1C6D72E6 X-CRM114-Status: UNSURE ( 9.37 ) 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. Co-developed-by: Muhammed Efe Cetin Signed-off-by: Muhammed Efe Cetin Reviewed-by: Arend van Spriel 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..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 {