From patchwork Fri Aug 16 01:52:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13765354 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 E53C0C52D7D for ; Fri, 16 Aug 2024 01:54:16 +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=059gjv5QEVfsIKxX92scvKbvOk J+VnOAkP0eThcFMaShcVYKAAfXtfOBFyoq0FRMQM85sXTqyNvxRZzxCR/z3dVHXBKpILd5tzyT9y/ khH8MHP8fxnJ8zmPowaU96Ijy12ayoTgwu3p+o9YlUNOEPyttnBxMQbROG6O21yTQqa5mVhxYI94B AI+VVDq8ry3+H4adAn5tRdzll2cDBXgyaP8YCMndSJ4w0Y042hR6NvzxynNH+FvvDGY/2f6fgDe9a Hk038IoGNjV+0vHSWFf9g0UfEaX9Qn/jVLfGS81tpXnMMWhVHlagRQUfWoGpZXNKOzkra8YqswACi cjj+hBDA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1semAG-0000000BWQ6-3IrE; Fri, 16 Aug 2024 01:54:04 +0000 Received: from mail-psaapc01on20703.outbound.protection.outlook.com ([2a01:111:f400:feae::703] helo=APC01-PSA-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sem92-0000000BW9t-47WY; Fri, 16 Aug 2024 01:52:51 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=aVLjjBCevRo7HAG/NE6ntLB7o+iL7ZmI2/1eT6++GkFcAB7ePGKnn1l/dv2fsjgv4gzceurbwnYNBMJMrUWx3OMpaSSRPCE5dorws3FIjfx9vFepkKHWkCpxa9cCDRkQ/0Z0/jAHg57Oyh6QR1lrIRP1d4Ad2J/L89ips0T6TKwLKwSd28TF0u1xsW6C6kdHlDg1x2eECbOaRLnYrBxc1Tu4zw9qZ1gDokx3/EAa9HZeCO4xvGESz4EZSe2xPythYRpbXBZvIK1jhfV02ACvsoFiQwg9qAlnT0fSYX7Sjatjzrn9F80tCPi62puK6aVwDeH/4beKK7TfmqxizX2BVQ== 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=uYFFFYrH8me3Zf/SkITecCoU63L8CEDog43WTqiOopdTPLfKJg3OuSd+zvIgVSAY6OAZ9+Ok/e6QdDbGRlaRMvFK0vseyRCp3ton9lRqntV+10nlp+gpK7BcaWbr6INhO27qOVf6qKoEb4joOpxSnw4A5j405ndQ/FDBU/EqhINfnS4YakN1NQsnA8sYpEd2FgDvphyI6il9FdMS3fxGIww1YvHgwrV22DYoqbgIBZcWA3+gxZHdJaGONOcHzlVmIZyfKpX/ns13ZijWdnLPpRaBLLUomwBQQIUhcWc/I4Arna2bpN5+Bx5v/022cTqKsV1KRICrq9Or97kGvtdZ3A== 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 SEYPR03MB7985.apcprd03.prod.outlook.com (2603:1096:101:168::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.19; Fri, 16 Aug 2024 01:52:28 +0000 Received: from TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0]) by TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0%4]) with mapi id 15.20.7875.016; Fri, 16 Aug 2024 01:52:28 +0000 From: Jacobe Zang To: robh@kernel.org, krzk+dt@kernel.org, heiko@sntech.de, conor+dt@kernel.org Cc: efectn@protonmail.com, dsimic@manjaro.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Jacobe Zang , Arend van Spriel Subject: [PATCH v11 1/1] arm64: dts: rockchip: Add AP6275P wireless support to Khadas Edge 2 Date: Fri, 16 Aug 2024 09:52:14 +0800 Message-Id: <20240816015214.1271162-2-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240816015214.1271162-1-jacobe.zang@wesion.com> References: <20240816015214.1271162-1-jacobe.zang@wesion.com> X-ClientProxiedBy: SI2P153CA0034.APCP153.PROD.OUTLOOK.COM (2603:1096:4:190::17) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|SEYPR03MB7985:EE_ X-MS-Office365-Filtering-Correlation-Id: 40800270-5f12-4531-0a05-08dcbd96152a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|7416014|52116014|366016|38350700014; X-Microsoft-Antispam-Message-Info: WGYljkhhw+wHm6uSQZ7dUFpIDLCXpekkbby2rRJyRB9yuoaXpAwLoBLGOG6wGENg97s6CtvuxrjSYjumfysVoFKdzFw9SvY8ESqt+xxv2BKLs7+wyS1Hg5RZYpSsegoUM3ZuWbji/noxiTKPVgWSP0UabBChOYPub3+Z8fz939BT3V47KdDrOT+gc7e+29MlWN70e140z81xWJ2/j2bcv/qHLpoV+gsVnWEAqANV4S/A9teqb8q4jNU9LYd/JC2v/bvsUENUKcZY0cGWN5FuAgck05QD4mfCXGg9kTf//TwxSDoUVks+iLtx6cvjE/Q5h9d42l22AHUu2VLzurU0vuyEQt4+FawzTrKl1F+tffRdsubH/eOtziuKHUuEtAZxe+yNZGRzoO09im8JX/zI+87xj9QNxdAJ/u/uGsRLxB0TtnDsd2NkX/jjZCUXxEhbvtUbEr9QKBhVxGB7qAgwZNAvpdGjXG0qQkdHtzxMYeannODnYx/dsYzvstM/YLEmKMgfLokEEAFRR3QjLpl10abV2bF4jC62MC3Zxqzhd8fbzNrnVV4Esn8IVwZaHYYIo/p8JL1HnSMoYtjkp9oPn6qypQEKYePoktnfdqfbgU2I+Aoc1Ok9XcFZcJDa5a55vja3tNQXHukSV4xVdaGUj5FTRzkDLC2yYuBbDKVZe8MUQoDNaZQHNof1xfRHrZV2U3YsZGNt0zXU9WBcuGjQMj4WjI/GAEQ0q4uddxxg8hIoN9zbbxQQ5WpZDTgrH/OcU7dF8mD975/sZ+wXIdta2klLL0M0DliAvehYeTrOCpLQFGZ5cIj2X2bw3vrYC7fJXUtrKoKaI+O1+vzdFGeMHoYDUeNGiX0qGiWkiz5lnxMoubAy5p494kGrnh0S4X85Mg75F6AFEseOhpaI5Ng5D7NZx9acJXEHmjh99zXEFZAaVWtE/9AuwEBBFffzBomyUkK4IGHtsgv0K8hxOYbYXsUEdwo+RJSRWtN5ZZgQ+GCVMnje0sUQzweFssEpCfXia8nvIfms3mOMHfcqBvTDnm4b++bkjmYsFqGsQz3RMrMHVydWP4kbJLM1/NNduVkmAHeUg1gIcchI3joq1F8J/xqnAwGVGx5CaalUsx1E1uE2f9TudLmT/3YlyfI3Eg0EXYIjHB7ISgHt3MWdJoIISSPadfgKiIlKvB5dvPdOLv9Alco2QlmBE4LuIZbBogPVtmhHZMlhL8ex8OWhSLri8Bq+URJ2ofZoCSlARfGegSc/+2DsIFQKDmn3BLBTRCrZmGQiOuKE6q66ZwT/sEgFHXmohaMVrmDBuQPi4aHYMFylCJAWvdH15TApXk+Is/I9RuOR7/7eCyyHU9jx7fTjuT/DsB12o8Wz8BUUyPT1jkRBrNuTGbhc43aGLJpyFl0lpOS4osJr7l/h4z80COJqUA== 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)(1800799024)(376014)(7416014)(52116014)(366016)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: hL8C2SdsWnq8aPqWyKW9SAwUj0nJWta3HIm/MM0KZBpieKHKcr96baJt/UjuLfOq99iVF6KMqSemFOuRWdn/VScwsUcLbqKjAdR+Y1RZMgwb37jd7x/1R2zHzGEz2jTeXWLhl/6oW6GohxE3d0uPPJBcdqCD5wGXvCaUN48Gt0rocSY5l/Y95MejF9R5+ougb9SJtF2NTiK31B5FLOpARbe9Eba/sUZBrs4yb4WhO6YMiWlBED3WMSwCHpOa3/IHKDUtE7li61ETbzl0DjNIy6+VCJGEBd9tOLDMNi0+G/SQt0s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Kd/UNP/e4x6E72ti4hYe++rLAJ++r6DJxWiyNNf4JcbXB9IL2CZcMiCe7oqubf6dBaeKhyejj2YVlDlwAvyk3roS1aIpo+GJDORvKTMJIGA2vsuDlLBVKS6MS47PUj6V7X+57Wu/TJIngKyUpJpqzIN4HJdQskVsS6LJE07gBSTCKYLEVejfj4j8OFoFsQOwUV27C4DYMJj4Tx47ULcaAnuFpxilH9XQ8fx0/+q91evvWvx+L/rfXhDPxg== X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 40800270-5f12-4531-0a05-08dcbd96152a X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Aug 2024 01:52:27.9660 (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: T70x1H44KXLmlJ5uXdew3IoZpVTWb6/nfEgVaDGm7zXuN1NF0bnUPaRL4C/W0aNRZOtbOs5N1EDDfUPZwN3k2Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR03MB7985 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240815_185249_240491_4E06A5F3 X-CRM114-Status: UNSURE ( 9.77 ) 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 {