From patchwork Tue Jul 30 03:30:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13746492 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 8E2A0C3DA61 for ; Tue, 30 Jul 2024 03:32:45 +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=VY5QsErTdmh3Oq/fyviPFkJplqjLCXZo2+Cmd612vYs=; b=287o8GeF72iSnC 6eseaxvcpjEDKpl2gKXyXi6fJuCpJ+Xi/wDG9dXsmQnv7VBT/e5U3NL71556mM6Q3f/xPAnnZqqxI KWmJLLFY6Pr07LdWBH2vIYppMrwYk4SP2sIY6LWpvmL7CmF34dh2TZjrhghuK3OMcyP4PIgV8fNoG rEGOvPBhvLKvE48HcCmfhHnd0wu1/XLQOXtCyTlA/xxV+Rb+uO9e6vwk6sgyPFHEqnjW375IMUp8D 1K4skmZwRk1j3FnQWnrfsCtRQaqNg9SsMI6ntRuqcc08TrimwaUKCB8kzO7/i3GYxn8YOdMfeU0F4 +DTatilhp72z2GDbTHyw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sYdbN-0000000DUN7-2hdh; Tue, 30 Jul 2024 03:32:41 +0000 Received: from mail-eastasiaazlp170110002.outbound.protection.outlook.com ([2a01:111:f403:c400::2] helo=HK3PR03CU002.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sYdaC-0000000DTwO-22N6; Tue, 30 Jul 2024 03:31:29 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Tq0oEsrnZnZm5EkGEeWv4BZ2VCGe9okk7xh3iZCIoHFoZD9KbU20h9NG0cSp2UmVG5kMkrerB+NZ4EcRSihLH0LZ9Mdqb4xX/fISGAn1wMVKCGIkG6j5HPKXQd5T8D6YGZxG2aMGjuVP4GcmhBWzzXiSis9Dxsn1zetMzbPJZt5MUf2/DnDpH4qjIDId1G1LqQfEWjiUHy35sWCqMjV+uLXJB+E74zRb3nIAwenTUV4+Rm0R8VfbCQ9niEabSChWkW7LAIdhrd6ItoMiA/lh9tpDLqHsFQ7sX8TDzfWUlCY80Y0ou5rsWTroxDA2GX6ssuyFyV1F3/j8Uzz+yD4nBQ== 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=GDLszfaTiyXrVSeO5bo+Fx1/Lx8KsLrl9pfpXaKrTHw=; b=yo9ShBpNofySri1ERzgmChDxMdAUTs5TpDlqnY31HzA8BfbUJa65MZt+Z4umqLoDey4ksIjQBJkL55bqQoh9xzNzAZ2bmz8wAG+nSQZWTUqr1omNPAA4Om8ws2DJZv6U1LgVOaEYDRcFb8aAdshtF4oYRa1Rmib3arxnAMqpBXh3NyT9QMyUbOjERP1fqf+jbkcZzlmxuYMFOzTUclrAwlUreOJK+AE4wHJphMyhHsmus9CR9sblP3tU+/agGOf4YWjwy9QoLBEYMc3MPJ3BaSLyJaiGnXauAi1WhtiYf9HTomDrymTrPq7ZgfkMD/xur495ZegDJd/01WNgm26DdA== 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 TYSPR03MB7705.apcprd03.prod.outlook.com (2603:1096:400:40e::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.27; Tue, 30 Jul 2024 03:31:17 +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; Tue, 30 Jul 2024 03:31:17 +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 v5 3/5] arm64: dts: rockchip: Add AP6275P wireless support to Khadas Edge 2 Date: Tue, 30 Jul 2024 11:30:51 +0800 Message-Id: <20240730033053.4092132-4-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240730033053.4092132-1-jacobe.zang@wesion.com> References: <20240730033053.4092132-1-jacobe.zang@wesion.com> X-ClientProxiedBy: SG2PR03CA0122.apcprd03.prod.outlook.com (2603:1096:4:91::26) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|TYSPR03MB7705:EE_ X-MS-Office365-Filtering-Correlation-Id: 0aa812e8-d9b8-4973-cf67-08dcb0481269 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|376014|52116014|7416014|38350700014; X-Microsoft-Antispam-Message-Info: hJAOuNw1oBhVJAv+QUjJL1vmWkkB79ZGKS0xUhb/QiQiVElR7OA25lZpgyrnxyKSX5z51NLM9Pqj7zC+nvkpnr9aJYO3B9S/5hgGQjZ7qyZnN/ULtrb1eNHQR8sJO9c5Q3/IDoCxtpGLIcZmbO3Y5JcagFOkkrgf8iRfCA+8TXA+/IVCJBM4pHayB50Vt65mrZ712o+ODVie8At68gX0aNXV7pjilOhw4PBhPtWXu0fQQ5M3Vw93zVL4aM0DcXB8ReJLn7YHTdYibZfkU3hz7jz7p2J2yA7LCB3KB2FuJGQpZbfDDURuUtJH8mCzwUslRyUGlZuzXWD6QcyLsrGP9miqVT+HrhwZ1P5I2ETkmUS6/coCWy/rRu2ZHN8CeWiQ1tlnvFIzYok1eYz3BEQhPwWDuaJwWypbzCX+My5Q4Q/T3DBYxGUnHzTON0tjhaWyEAJibjxscmMWlj6pRNK+EnyZqKDoAGUR5BwSfRxvEGYkLHLKmun0CcqwAy8IFUAMpSDo7wxej10sQdTrTtBtrGOHkpD9C9mRB5TQNpBMQ8ABDn2WnOoHWricJFoc2rvv5jaFyYCVYSuza8koixY2DHkCeI2XReV7oyYL5KUjpRFiVLPe62JjenYtA26aFHvzlsFPFHYBJfR1+QMe46FjtzR3dTil6M3Clo2GzhzO8NVoPz2mjqvOL2YKAC08bkHicDHRs+SAxxfqY9aftRe0KCySqqySJEq/l22f4S+mIpoza6No+z++5fXA47iSsGMH1u6zEIO6/xSUD7d3dR6mpcXbjjRrjHIaJx0rOTDTDI1Lkzhi1okaY56O0mBzsDoGqqgL8ownbRYLy8JjIYudSpt4u6WUfUN0fZZMss95j6xmdJMpkJThqTB+/dmXP1jKMAqm+SGIHAS+DVv2UIl8ZEpp/XF+N+xtLyI8IFC7cHvm9lRxYEzitkuBQjl2olR6vwy2OKTUJl0vi7LrCvZRjbJv6Q34nn3OKXSSYKQtfMmsd+JexieURj/cVZaNTAzp0tk0XTpOPKObsNX+Ep9JY+qddv7N4NyNgJQofdsypXny6hfb2GgXsVEy8aCzb7tDp5WY+5STKU2uR+wnyIZs7if1vIu4nTCGj3m1PgLSj5KpXgLWPJLwUNkFNDxtf89n1rk3k3xAssIdh3VsceYQFmoAMExDP3ExjWeTfr5HLudZoiqYmi0lMXZ/ux9tVmlEvFzZKwQlhY9AiqPnuy9SIB8LmMVScZPBMeJfUD45jedlFFc+wNShAuuwfk6tT0LZ+BT/ZMz0JiT/AEZo7X8jCSfE2IWKyEkgBw0KAg98MYmv43rFR5Xk9T/+dE+l3T1Rq3vIIwGIUfi9WfcCdp9w5+vFZBmhT1ii7x1KLydDzFtTY2s4hSGt1vWqRdDeW2kPOyUnXfa6RdJDQhiRue9bNg== 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)(376014)(52116014)(7416014)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ycuhF2IA8Q6ceYs0hZS0CQWJsSmixuoWgyoItMKyrIaX2v1xj3u9TL2+btqL2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EuDLFLQO7aFot/EuD0anFwq61wN2Riz8ScOicZrJqMFlbCiL4k6PQ15yXwN5CTHX7+Bg8AzodsXT8tNNrS7h8siCW+Cm4bDPOnBUuYr0awTTQ6g05vkWE4YhNVXhCTiqpoSycT/AIFJ9rIx15i/tOE328ZiF3VYps/uNnCQ1x5pJBS+uLcIAygJzyXB6gFS81D0hSMyLbN7FAFs3LM21MKXD6W2207iBtKDiueArSmumM7hCz8Bz6z3REWVR2snjUZ7CPhRAKJd9XrFB0QFfCHvQzDMoOj9Lg3AHJb1EJIMBNGmxn8aD5QfutMSDu9rF0XToWsknOAg9hO7JfKn9UxW6afpJHUCZlQKCLCczce69D/LU3mG1+aO0gLrUK9OR1OP18nZLLq51oyeMjebejOcfjYaReLD10Ihh3ViRjO1mw69dKX9C0aWO X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0aa812e8-d9b8-4973-cf67-08dcb0481269 X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2024 03:31:17.5147 (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: jkCjQb5W1jwUvu+UhWEbT9thtj9btggHjpiLt4yZckpn4Fbzu6X+dcQgEX49TcCF67axD+UW6Yp1IkIKfS5EgQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR03MB7705 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240729_203128_552398_B6565E7F X-CRM114-Status: UNSURE ( 9.19 ) 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. 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 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 {