From patchwork Mon Aug 5 07:34:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13753202 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 89E6EC3DA4A for ; Mon, 5 Aug 2024 07:36:35 +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=iIkW4FfUFMbDB372Hc7vUF/97sygTteqoqfDmddaAXY=; b=ffyP1SpLnt3UWl x1IJwTEfEy8hQJqR8T5/CVczWpU7nHabLl0T4rR0kvGBTJKA2LWEVTITaHai/C3i7degzj61wGDl1 F/EJLZv3BFyFNkQSFfv+p8wMcHFo5J5Lhv8xESN3tl4k+NL096XAXuCzatIRxLl/kS0kjxyb7Y/9t Rh5WIMAhQ0UR7xz3Fgm+klB9UhyhIddbF2npUrd1dpFYV4VH5BAt0AY9ih1ywybu0WnL/UTxWe7rw qBZwXa+MFPRxxRCb9jxe2OCStXfFkwyD0wd9VSM3v1/HvKXjvwClRZPKm0NoU1WKXUD3nqeCzeBYU MZPgr7HXR4YemYV/LPFg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sasGe-0000000ExiA-11IW; Mon, 05 Aug 2024 07:36:32 +0000 Received: from mail-sgaapc01on2070c.outbound.protection.outlook.com ([2a01:111:f400:feab::70c] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sasFC-0000000Ex98-2ULj; Mon, 05 Aug 2024 07:35:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Dj5m9WQNJh+oEi06ynnjppnfzSwRtvO6EJVjheyrvoVPYyclDCR/qWgdx79562Q5w3RaV/pkvOce0sWvGMRC112dvNW2GSKUMCdeTlCalXHUcJrpGxhKsB+X1BtiPmUIC6soho0k7L4I3NgetHNouIT6fmz1GS8uWwc9hScG0bapEKt8cYtE+aC23QHp00Wb/p42EpVcdUOOEOpQsqQcjYebN1O82iScXL+2LJfErw19x2zLctwdqlnsRfwm6JYXNoG6Qk3Ny6vX2TXCYGVZD7jMWd+HxP1QbuM91tykKywDAAbtkxlLm7zqncvryFR8u3PWVk5V9lbtCU+yMtl+TA== 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=l+rKongEnwgLB9KlWQH3kBPLRrRypq3E65So/m6Tpoo=; b=ed51JNJLDINCWRmeQNONoY/q5Ju0zWXNkACc6/+WwN/cRus27Cbe7B/RpnpujRBJNXR2j25x9nMfVly0AKbQttLafwn9pRqM86TosQNFS89YGCbiGDz/DbfCN4b/jvcI+5eSYX4oTRsP4gTgLHw0bwsCnyFOyxmVpY8yrd+fVWW3x+qM//BJlHXJNppMWEYYL7uhsX6QfXndAO7S3NEFK4pxMhUftCo77+cWK5VRITDoOG/+AwfBhHXnep8wSUDSMVd0lUq5AQPAHOopCsEBEKazgaJ5XgPwXBg4SHvFPiKXbfluo1lPIpMDXgbClsrFFadRDJ9zBuJ0gvucFhvamw== 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 JH0PR03MB8052.apcprd03.prod.outlook.com (2603:1096:990:37::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.25; Mon, 5 Aug 2024 07:34:51 +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.7828.024; Mon, 5 Aug 2024 07:34:51 +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, arend.vanspriel@broadcom.com 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 v8 3/5] arm64: dts: rockchip: Add AP6275P wireless support to Khadas Edge 2 Date: Mon, 5 Aug 2024 15:34:23 +0800 Message-Id: <20240805073425.3492078-4-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240805073425.3492078-1-jacobe.zang@wesion.com> References: <20240805073425.3492078-1-jacobe.zang@wesion.com> X-ClientProxiedBy: SGXP274CA0010.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::22) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|JH0PR03MB8052:EE_ X-MS-Office365-Filtering-Correlation-Id: 8196263a-e8c6-4ccd-d143-08dcb5211739 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|366016|7416014|376014|1800799024|38350700014|921020; X-Microsoft-Antispam-Message-Info: Y7RaXSoWhHTxqUpP1jBcrNIpsAUxlyerBMgG1nZ+RVfzNxB6fboRK5oI2Zlc3U6qwB+gD1dqj4a2OumNgd1cFQ4+/CZ8Oc+INMuyrtYtErLTMYwQaS/ReRPU4fM/iilI2N1n0++aJseg272YwhUWrXEJGko8fFfmQDXeGVMG76G9UHAXeKXa2yMXj1um4fqe6y+FkcdfIEI9Nvy1ok+ovNXzsxCDbtlwlMuitXqyEnZeRXYeU1I/+ZwdRXdcNBHr0w7dvqQcMyNQsxCvzybLr/LsztP2Uiv49XtDkUhnMV43SI2nJ2WthSx1F66y6Mp5Um4+lsf+iB/aSuagMT9uRWyVfoLX79bh/9vJbcp3rBMEHWm4iY51RXRJKSj1KgGlA69wAZPj6lHXO0c46NeJ2GdAvi4C5Lkkctqv+Sz2doxHRNgpM3psal388PT0IlL83HnScIwak3G2SD5n8BcnDyJYJAi78/YWAaMSCLs80oa5fXBcPm/ifXvXdPxdFUcaYude7KjbO9DcUZ/T8B1p0cYuefdVOr+iNwmSVwimo+M65GPXjBoVPEQmSE04dcTdOlWF1NH+EbbACZv0pfLiG8/XtBw+Hlvg82+gkVTb9BDMLJKn/JWKME9gRm8paCSQcIZPfLBvkAEEQHvveE9RDYfvDuERBN9/7Y1gXpXoySapDmO17Dr3Hw5SN9IQmXAcPi4bnf8VSiGlnwjKojjPKnTr/YP7sB7SEPLJaX+YT2HAyQ2qtJ49vWRXYCynr5OdhYKEnpaGRPKPAfyg6IFbZgQH4dT7AMfIAJf+qGuyDvbrq6RrJ0UobxUjV2MpNLtDrxxjZgW5h9LBlUh6JjNvCqFDcVvKefxPN7AX1DAurlkAT4EpqpI4gdrR6nR/hpoS2F30EQya3cb9M+6HySppg6dsq60TGL5Rg8bkFi1eVALmqPWuUNtbyxQ1ub4hSOxnFbFqOqEqv+b+0i0/Pyuaq8zB2GtoMyvlKNLjf9WCiw9+LAMszIPC3f+omDZLGjcSbjppH2d8oWbriUvhHBzolB53r3aYeX5tQ0Tqgik8oT6CqqTPICB71ZNbkvqdqWcj3gV2yYT7FPYmmf6sVpZBfYt5slABIoDYjf/U6rs/D20+NGoSWM09uM3S+PSAx5iYX9VA+77XlPjLDNMVy2N9LKLl3UpxqaY4auUYKONK5kbtJ8vW6wnFjCrtEHtdkW6bHcm+YXfYpvZuKq7Pfgf7V5ehbH0x6AhSrecFnhMisrWUCMrDhNDR3avTb/keupEJYn9Xlc597bAl0KkbJLm1fmMaLjsEfPLeQFfxnXJaDxXT5DOb6fOHWD/WwVqKwDKmy7bIj6w/Ji8+/E1Kk5Ar5EmXIqyZd8aTCKFL0vvlhoIzPsBTdlGXJ27jypgS5fPX23k7Xf4rUuhFuxBR2alvbdiRN/DRme0TDxi/kPPzQbY= 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)(52116014)(366016)(7416014)(376014)(1800799024)(38350700014)(921020);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 1wjF5keYCrixnTih2cIQ+bAsv1MyiN8OdSbmB3q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0A8Se9G2pWsftBSO9gEcaT9LaX2oCxc/dH31XfMEi/nuTgsuOFPglu/WTwJwgrO/6Mug4q0lMmLj1T669QU4u/dGKxiHp5QvUUz7WYeb0qoAf9m+1C889SWgS+HrwixZpkvhfxTdYuLh0UyQ2oxm9943VwyD39kJHvlEQlJhQ1YIjECasbjDrQcAnZX6o6ugyuqw9y2zW5lyniGxRrDG3pohE5njVLV7Oi7robuzhaFBzuwd8wVvzfhitk3uw6cM0Inm1+WGdcuXJ3n7nHrAk9M7LarV3qRg0uJjXZmTjcSa/fZ7G8JHYhoDT2VbDGAkk4uBtP0afPJzfhttnKrMXAdElG0YJ9lpI7f+8+k2Pii7yW8nTDQ3F8vB4rFDuZqqiQWIqUAWp7ZhI8/1cTq+dEmDjwNYIwT41a3vvHyfZ/uG5k10VMnejEYxQiBqbIljyK5VZNNh0VH7oLUybAQwZOer6UTyqbqHOKEVs X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8196263a-e8c6-4ccd-d143-08dcb5211739 X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Aug 2024 07:34:50.9911 (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: BfxlGwoNGyjRmzWkmJEr+tI1F+mgE+t5HFYniGl06qgfDflg/pPYVqbrtF4FEAlFqylgpRAZXs9xSIb2VJCCXg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: JH0PR03MB8052 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240805_003502_706253_A1C05C16 X-CRM114-Status: UNSURE ( 8.88 ) 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 Reviewed-by: Arend van Spriel --- .../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 {