From patchwork Mon Jun 24 08:19:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 807218 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2135.outbound.protection.outlook.com [40.107.117.135]) (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 0A3CA4DA04; Mon, 24 Jun 2024 08:24:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.117.135 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719217451; cv=fail; b=TrUu10PvB3QlSdKl8EbEYcRt184T0k2sjvOxdA15+rNPJoFdqb0y7kxGkE/Elzz8v+lup/yVEHFoSc4q6jrQwdXnvGquIDSJgJ7YwFgOB0zSqwCeWs1VL+zkTTZwbT/VbxMsskSt4tSIQZTYU1Vgx0H3iWsAYyw7GQu+wY83Mds= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719217451; c=relaxed/simple; bh=VNoEuhV+caHPR/3VTM8kSl7yQZYWk6N7t2RYH9hl7DI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=WV5i/UliBUhytxP6Jgmq9MvHG+sM+y/9hdv8zrLTYIyw9a1dKNca+v4O4FC/vMq+WndOx1s3AUTUsbosXZGNzeEo2wMW1FJbZernsFMs1SDPFD2aIw+yzyU++gieHKUzahmJn26sDovGW5c8d/6wvc0MT2g0MmzyeiQD5mMwqvQ= 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=40.107.117.135 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=arcselector9901; d=microsoft.com; cv=none; b=Do+ZdP8ZGPH/mwdusDqjLY+o0tZOd/d6EULvZwVk+o/O+qoTVgUW+yKDaCWkRaO6ju9A6k/oHoHmKAmEaUgC1ZtpEqACnRbbd2XTaOoqRT9UHpOSxIJLYoyYpTTC8n49qCiBOdKkH5FlbGROU7BvJCGNx5eaj5DMsbjIYCDE3yWgjjQt+WjukO/pU3GTro6R1Dz3VwWfr9p66eX2JEwX1O4Etgal/K/HdMkBsS5fD6Lppsz/NxT5qdmcFgxQGulx2BJT5NffhAG7dXHQRM6pyyfnpX2dluITiPn59E9Te1C4Imi9GE1kLa8GberD9IqNretCQVLUMOQ/hiW+LNsggw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=dsq/MX6AolyMZm5EIQHaBjPBdjtwCwJ+vJS5BCGG/JA=; b=TSlOEin74pCwAUu76HBPp4UDC2bnid3NJUZvEWWHj5EqwzlNZJkgmY/BL5xyKfkkWsppP2t6p+3bXCvxxva7G5cOa7uG1WzDN+8z6lHPLGHSwh4Gmxp9jtgOEmRtiGCmaFBClYH6sGwOW0GzuwJ9XNOQ8RlP3q+HNE3a6A54n8bwh8ZMG8pqqqQWfKtmy+MoeNipiuuy2AW9KUv+lcrh/jg0C4s7DJVhS+lT9H+PCI9rgc3SxMol16aaadLqJmFUq3Cr6dJnE1YgcSxClCopC0fIRtxRxMldq3UCKlT15L5FxbYqQUc4pUOg5O2gpp3kBS6rUhZfEYSnwvI2vUUhZg== 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 OSQPR03MB8600.apcprd03.prod.outlook.com (2603:1096:604:290::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.31; Mon, 24 Jun 2024 08:24:07 +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.7698.024; Mon, 24 Jun 2024 08:24:07 +0000 From: Jacobe Zang To: arend.vanspriel@broadcom.com Cc: kvalo@kernel.org, duoming@zju.edu.cn, bhelgaas@google.com, minipli@grsecurity.net, linux-wireless@vger.kernel.org, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, megi@xff.cz, robh@kernel.org, efectn@protonmail.com, krzk+dt@kernel.org, conor+dt@kernel.org, heiko@sntech.de, nick@khadas.com, jagan@edgeble.ai, 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 Subject: [PATCH v2 1/5] arm64: dts: rockchip: Add AP6275P wireless support to Khadas Edge 2 Date: Mon, 24 Jun 2024 16:19:02 +0800 Message-Id: <20240624081906.1399447-2-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240624081906.1399447-1-jacobe.zang@wesion.com> References: <20240624081906.1399447-1-jacobe.zang@wesion.com> X-ClientProxiedBy: SI1PR02CA0054.apcprd02.prod.outlook.com (2603:1096:4:1f5::13) 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_|OSQPR03MB8600:EE_ X-MS-Office365-Filtering-Correlation-Id: 71ccb463-ce5b-48a1-7d36-08dc94270456 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230037|366013|52116011|7416011|376011|1800799021|38350700011; X-Microsoft-Antispam-Message-Info: 5fUlq7vRpLFMtsruMG66NmTwBZpFImPSdtBHC1zIFSVgBuVLWMpzVNKesekSmCBhz0Uym+oMxex9wSXS9+wenqPh48Ui0gumE4g1iL5Z7wibg/9cqcCLq83h7X1iPdSCfOFCF2S4MT0skjW2OT/CClbGD7ige15Sr0nawU8DVTth3Q91exWIJgvM0cbuJSWnUybiNWQJMx028vbE4UtXyeNS22oYBSAt4+F/B8QygMHBCCUJ2HK+V1+i74xXwEb5Y2JYcJWPbcGsovMSBsctgGlaoVBL1+DmyuTgz36tjmDysj778IAxsERizLi4d1XXASOiR7MQcoFNMxLzCJqY1delY65sqwdTJ6LVPpm2Ms2GysAx5CEwpqkqEpJ4yooAEiAoJ49Ve2q2Mt3yvkbT6njn2ij278cVl6kx7+6+QRQKCduguwu9nThE5dawBpvYjXXJglzJPVMejMqpdXqE+ouSqqGFXhPr+dGBFAhL7ttRm1RcxHyuTDTC9omShV3tEiXVyWbDwKaDdSfUgOlz0roUNRxSkQL1MYv21nApCUgN6aiQ8Ya1kZwQpMNI1r623dFZB1JnHnEx/K1A1ONI1P8O+uRdWy92BDPV9KVwqz5JDjx+nVA2XC6xzz+nL4PZmv6gTL8SCf40QR4gwGewuEpZjGUAegslSnHGixibABmSmNOnK5Diez+l2DcVofF388S0kwzhw9DCURGeSbYEZrDyWWbvRtL32IPgySO+HRtMrsoaIqXCkKGDwR8iS1IHrbq/UWanrGsZc7uwewSd7Ex0kfc89K0nxsOXyfETt0boZ90suHjXGyT/aVAiMy2w8hQYFWEi5VPY1khg3pRZI6+x6USvGewKBr4L3YzyG2qWlgPLcgJcBjxbhqdnPFhydxw+JRXwbKGCHIPuiBo/mCn6YRxIzwtbr/ro7nVtTrqjs4zFkSOcIUS3ZtHWHBKiYE9HzWJIg8XjaDzEbqLPE2RC2n/eWwJ3EtpBvXYH40FhR7BnR+zDXmBzeVl8uxAA1WutKsc/tcX9Bc06V55O8g04YlMwrV5tfSHBtrtHUWVTa3fxexQ4Pu+RJMZ4blgC7Jt9cmtbLtz95bsleYy0AGNEYxq2Bc1ptNP8d/2yZija4xWOQglZGegEm1DKg+hVkTpRgUVF6jceuxxUPwMzUEY9EA6/2QnZxcpAfwTcGotC17ykxbohIrRFDY6fNeGTMrNfmajjYGA1WnAcaCyGOKNDKpO+eNvv6ohG3E5yKq3fOs+1xFSYLDUsktTjzcFraMy59rYojcy5SYH5LLbg4OJsdGZR5IL4bqME+cFrLtcjvEoq0T1Fj0cB3B09gvnuaQcmPHOseaiKTYjqpTswDGgz6TNfRuyUuIvIXVMqfBw= 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:(13230037)(366013)(52116011)(7416011)(376011)(1800799021)(38350700011); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: uRtpV6OEqJv1MzdynbUDNwe57OtFQjXAaPx7AnzFR/wpnldpx4VCv3izXl9AlzaxwKBGTdMY3ReqokivXsIHT6m40DCO0ksypvVZIWu0x7KYMI/TS+jtY0PxlZQdAEJckU6OPRAG8XDVkRv1y/gIz2tU5nQpHqo1Tu83RUqfnO/Mm1RxLd+/Dt6d42gD8kdUS6HleczW98haCmLVyDiC4+QSk7Iieln2oPs8/NrdWl/s1AGf1i5VoafZ2J8FpBa+qiVTZ9aiHL9lOrMnpTstewcTbIe3i7c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OqxNY2s9E+4SnxVQ63wHcMWtyy3wRZcsdLV0CUPf634oHvzTd3DAOKzAXwvZU7NAGokH2eZvCpQZSWH75QiH5yuYltTPFVD2zaC5H/v5ryUh0JOOh+2MYnRm1/Uk+1eI6PPzQMq2WIWaIW4O2Wj8UCT6SovlUeONldX4rODgPkeMvQEjE8SIJSXUDWdedgExmv1/Xynu4BiyCoTqfr33pckPs14xuewh6Nh/ X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 71ccb463-ce5b-48a1-7d36-08dc94270456 X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jun 2024 08:24:07.8964 (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: WQNp08BM5qERtT3IgySG0PvQiWFu3PRgB6IWu231ky0DfJaE5PoHhy5+LSe8IDORTLoCId1wl6vwC+f2ALOAqQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSQPR03MB8600 Khadas Edge2 uses the PCI-e Ampak AP6275P 2T2R Wi-Fi 6 module. 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 3b6286461a746..f674deb6f7da8 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts @@ -356,6 +356,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 { + reg = <0x410000 0 0 0 0>; + clocks = <&hym8563>; + clock-names = "32k"; + }; + }; + }; &pwm11 {