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: 816028 Received: from HK3PR03CU002.outbound.protection.outlook.com (mail-eastasiaazon11021130.outbound.protection.outlook.com [52.101.129.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D544212DD88; Tue, 30 Jul 2024 03:31:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.129.130 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722310282; cv=fail; b=A8QDkjxRB7uPJlavRM+UDeKIp3WkTYEXsr2FSyk/8hX4B/GCu+86Is+OcSawuFeg3EazUG/iQm1ZcFZilB+m9zzydffkOUe47Te4KiKs8cwXKQ1A5B2AqpauJRNvWCqWHJZCkiyD91W3UiuqfxFW9FtgVmrWM007g8BSZo3vqRY= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722310282; c=relaxed/simple; bh=DXcRmnONLjNZRQY8t02lISgeJnDwKFlK+PlRzNTdKzU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=Kpk6QBce2TezSBiRgF72ZnPR7OAAYaBb7RG7w6TsT2P6IrogfmcWLTZyMZLjX0+jcXn0xleZ8IAhEdXM8ea+XOMlsmJohMz+oHzumiuqXV26QQC3VLdWQqnj5c9E5aY1rpRn532cFooKhQJ1q5hG48xKA8TdVvYdDLjd174JH/Y= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wesion.com; spf=pass smtp.mailfrom=wesion.com; arc=fail smtp.client-ip=52.101.129.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wesion.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wesion.com 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) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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+btqL2C3EbBU4Uzf7cUajD6MfCzI5hn+q9S1L4AZkh6xKY/xb1umbSb2sBO/xxFyySNZSr2zRRfpI1LnZ4r09u/2VAEDgmWL3CjHFODXOTQzNrXI2KdoPJ92I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4YhNVXhCTiqpoSycT/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 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 {