From patchwork Wed Aug 28 07:58:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13780872 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 2FCE3C5472D for ; Wed, 28 Aug 2024 08:01:18 +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:Cc:To: Content-Transfer-Encoding:Content-Type:Message-Id:Date:Subject:From:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=/1kHgXmrSPqoIUrNEDouXkjYJiqFWo4tKOJ1j6SrAPw=; b=WPjI1PsEtRcqcwYXmqmiASYWDm b7OJA7QxVA9XSAZVr56so040qaH4zsHGXtnrbZlq2d9/5sNsbnRsIpMG/u/70wwulmqnOcGN8r+c+ 4Vtheo1z7nkgNG+lvJVa1KhJ0S2X7Iv8I9Df36QFMqG1D119CP9gk9piThvEOZdEXRygt0aAgfnfR MOsDwnOqYBMuksdzyM6IIVF19+IJPuhwgt8d4HG2skhAdeAfc8wX+NR1dSsFJe/l9engfRIb2dWNY lacSpaTXzYvctDwmtHtRy3JgUD/UZ5GuUnWSjYw+ALeNKm/3ZpJV9T4IdQraM+ApPN+13sw7pJ3XR hggRLR5w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjDc3-0000000ERbn-1jZi; Wed, 28 Aug 2024 08:01:07 +0000 Received: from mail-tyzapc01on20716.outbound.protection.outlook.com ([2a01:111:f403:2011::716] helo=APC01-TYZ-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjDa9-0000000EQl6-28Z0; Wed, 28 Aug 2024 07:59:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=tlC6lt1sMTf5PLmnr1eSbgY4IRooD+WlFyOnsHFnN5yHmYonLjbNBtnWLPjZzOvgKahedGxkURQAQxUq6lodcZ8E+9ECRyGuVWymNFABLvr62GjlOZiiobKVySzigfRxwj1rSsj8SnaPxI3ZmNTb2wRDgDK89I4aGBIhPcZLw4VtaWj1a2ogqQLemBQR2VwDl1MZ7kGfk3FEt9VOS5UfosRrKws3twOjCyYqB3V59XQzIuhos6qzh9IeHe5JFKTzjb1mnk8BfKSal7HlD53hADsiBVUUv1DnUJA6Kf09NNvqZQF/HPfytl6WzhSDqStF0bLkej7oDAFRZbQ91usYPw== 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=/1kHgXmrSPqoIUrNEDouXkjYJiqFWo4tKOJ1j6SrAPw=; b=bzOoJD8Bfkt+ouh42zUr2wJbNk5zTthrJQlg/4meM4ikOADRhFVBNx0nrY0wgXMmAI/+uIYSWg20MbBYdyfy5xwlJskyyeo1+PtQP2rxShU883o+h/L8fNJX3PDmRn6VSAmY2resOPeaJrb0EsT+3DQprAN9KF1+p9KyTuAbdJQ3KNZwBjxmfP4dI899CyDgF1gYe9dm0NDAuvFt6Anrq+D3yMi0By6HhFNMd2/r7pruhGNp05onQW5cIPZqNM1vnZxRRwEbcf/EX1GOZkc+lXZ6CynrOTtInbxXX7Xxci94O/j5y4eiUUVk2fkR57WKAJumC6zYqQKUC53M0G+06w== 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 SEYPR03MB8765.apcprd03.prod.outlook.com (2603:1096:101:20e::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.26; Wed, 28 Aug 2024 07:58:59 +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.019; Wed, 28 Aug 2024 07:58:59 +0000 From: Jacobe Zang Subject: [PATCH v12 0/2] (no cover subject) Date: Wed, 28 Aug 2024 15:58:48 +0800 Message-Id: <20240828-dts-v12-0-80b6f240f67f@wesion.com> X-B4-Tracking: v=1; b=H4sIALjYzmYC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDI10FJSSM xLz0lN1M1OAAkpGBkYmBhZGFropJcW6hkmGZsbG5qbJJpbJSkCVBUWpaZkVYGOiY2trATBT/q9 WAAAA To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Hector Martin , Sven Peter , Alyssa Rosenzweig Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, asahi@lists.linux.dev, Jacobe Zang , Muhammed Efe Cetin , Arend van Spriel X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1724831937; l=3411; i=jacobe.zang@wesion.com; s=20240828; h=from:subject:message-id; bh=h+Hs0m6/cSuwHWjV9ozDkHgYrLqIDH+FcLjF+oo8NVQ=; b=Z04yZzcTqOww91LskCdHZw0poNS+kA3tcZd1M7QFkUFYMXfKzAEmx2rB+b1g/mon8cVv+sFvS YyoZ/FDGXCaApiBxDA0qMC57K4pG3e0tcewZ38YT+eWsEpHiJGlfRPb X-Developer-Key: i=jacobe.zang@wesion.com; a=ed25519; pk=CkP5TjIqHSwHJwZXTGtadoXZucYvakXcO3HjbR6FoeU= X-ClientProxiedBy: SG2PR04CA0187.apcprd04.prod.outlook.com (2603:1096:4:14::25) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|SEYPR03MB8765:EE_ X-MS-Office365-Filtering-Correlation-Id: b8ad38e3-53a2-469f-9725-08dcc7374634 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014|52116014|7416014|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?0FTaP+74TKIKtpYEPBPI+D3i7k5dWwW?= =?utf-8?q?i7CNxq6x17HBCbwfx+LTSKX+HWGxqmb3ka69RRe4bCdfjEqn10dxo7Swuo4hHpT7c?= =?utf-8?q?ih4vuETIhVPkgWbxooCdmkNUHpPYWDXklNa0ILpbRnQRck86OFqexSkwhFWKd/K6L?= =?utf-8?q?S2phYgMxrYydsojpwDoyVH3PWmEYmuJBwfFFpAp8hKrPEpFUDCflQPcUWyEvuRqj6?= =?utf-8?q?/AkTZ08Izt77gEEl77Afk4Ymz5OtaTxKjGftbJLa2ZbO5Fmao8fzG+eTA8qGwxkhd?= =?utf-8?q?hCxg8TbkCLeboB8rVsyX+vnqGvQWElPBsMk4qkvOkmc198Qb9/dTNhR2uhXrSymee?= =?utf-8?q?VFbntj0wGFPKbFsfrG8p4kbLf8iJJ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lBm6axFJn9rkneapwkkoJNDM?= =?utf-8?q?FPiURigETVJSdF4Yog0JMrg+UDPsojm1Lj7GFVRPE3Te6+ee5nwaa7haKWa431Tbf?= =?utf-8?q?1uvLBPL5xoNjKHJXJisOi2YLTLRaqJOLnA=3D=3D?= 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)(366016)(376014)(52116014)(7416014)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?jV9b/5GgrPvqqpJ/bmDyVjbEVvr7?= =?utf-8?q?ZpYHdLUrumJrrJD6NhiPeo87ydKOYU4U0ycVxiobz1SYlLIlssFFw3BNqALuIGy8+?= =?utf-8?q?0+DNjObF4/vJfRLEMoNuA/oNPBO8kAx5fFxLvJ+FtN3eiL5PbDA8fLQvM2bUAAfnA?= =?utf-8?q?GLnFcihIqReG4gP9ECEldsPOo3EPqip7CQkpb3Sv4V7bJEAc/9ytMAA3eVDWGtmxP?= =?utf-8?q?botLJVljastZSti/YRrv5OaEY5DV3OCHc4I+EMFxK18V/+Hv1j2GeR7lAwBqodx47?= =?utf-8?q?/x36gfuEtdjJJ0vy6AAWhGic99pRyecd8LMWXhLwvj1y5JCAOTnSGFUn+GigJKZkT?= =?utf-8?q?VnCAYsjmOah/vnT8R/TmA+lJ2gFa0Tw6os4PLq/LeDhvCQewarYSGGMNLv/hFyjMO?= =?utf-8?q?eKMEuKmKNMPS6qzxwfVBDy6EqgjjCN9wTqLbuVN3UCig6MxjoWoe0ActTJoaf9B8t?= =?utf-8?q?ND55N3l5n18Aqrcj80wk58SQ24wqjUsZC4CJLWaBgLt+SwusnrHMKQXsIfiP+YTTS?= =?utf-8?q?LUKma4d8u4hTIv+KGBQDiYa6WAXe+6sObH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EDFe4tXYyaZBRGfoNLVI0XChfx?= =?utf-8?q?Hd+EA8fOHhmLPto9FdNu4LmqHBk8TG76NSlRG2MGfBt4ZVNEbFLFlVkJag1PYW27x?= =?utf-8?q?BqSNnIvW27pg?= X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: b8ad38e3-53a2-469f-9725-08dcc7374634 X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Aug 2024 07:58:59.5466 (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: njivwxAuLEWEGFoVFDDuOwoVo/fVu/jKm308KJlstM6sUDdY9wBqa27SY/A+1N9XlxA1WqO9oQVhlIpFB0UBbQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR03MB8765 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240828_005910_036707_160154F4 X-CRM114-Status: GOOD ( 11.53 ) 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 Add basic Wi-Fi support on Khadas Edge2. Wireless driver need to check "brcm,bcm4329-fmac" compatible so add it to Apple's devices. Signed-off-by: Jacobe Zang --- Changes in v12: - Add fallback compatible for Apple's devices - Link to v11: https://lore.kernel.org/all/20240816015214.1271162-1-jacobe.zang@wesion.com/ Changes in v11: - Split DTS and submit separately - Link to v10: https://lore.kernel.org/all/20240813082007.2625841-1-jacobe.zang@wesion.com/ Changes in v10: - Use ret instead unused probe_attach_result in sdio.c - Link to v9: https://lore.kernel.org/all/20240810035141.439024-1-jacobe.zang@wesion.com/ Changes in v9: - Add return -ENODEV error pointer from brcmf_sdio_probe as the default for the fail path - Add if statement for brcmf_of_probe in common.c - Retain modifications to of.c other than the return values - Link to v8: https://lore.kernel.org/all/20240805073425.3492078-1-jacobe.zang@wesion.com/ Changes in v8: - Add appropriate errno's for return values that will be send to bus when error occurred. - Link to v7: https://lore.kernel.org/all/20240802025715.2360456-1-jacobe.zang@wesion.com/ Changes in v7: - Change brcmf_of_probe prototypes from void to int, add appropriate errno's for return value, move clock check to the end of brcmf_of_probe - Add "brcm,bcm4329-fmac" compatible for wifi node - Link to v6: https://lore.kernel.org/all/20240731061132.703368-1-jacobe.zang@wesion.com/ Changes in v6: - Move "brcm,bcm4329-fmac" check to the top of brcmf_of_probe in of.c - Add return if clk didn't set in DTS -Link to v5: https://lore.kernel.org/all/20240730033053.4092132-1-jacobe.zang@wesion.com/ Changes in v5: - Add more commit message to the clock in bindings - Use IS_ERR_OR_NULL as a judgment condition of clk - Link to v4: https://lore.kernel.org/all/20240729070102.3770318-1-jacobe.zang@wesion.com/ Changes in v4: - Change clock description in dt-bindings - Move enable clk from pcie.c to of.c - Add compatible for wifi node in DTS - Add random seed flag for firmware download - Link to v3: https://lore.kernel.org/all/20240630073605.2164346-1-jacobe.zang@wesion.com/ Changes in v3: - Dropped redundant parts in dt-bindings. - Change driver patch title prefix as 'wifi: brcmfmac:'. - Change DTS Wi-Fi node clock-name as 'lpo'. - Link to v2: https://lore.kernel.org/all/20240624081906.1399447-1-jacobe.zang@wesion.com/ Changes in v2: - Add SoB tags for original developer. - Add dt-bindings for pci14e4,449d and clocks. - Replace dev_info to brcmf_dbg in pcie.c - Link to v1: https://lore.kernel.org/all/20240620020015.4021696-1-jacobe.zang@wesion.com/ --- Jacobe Zang (2): arm64: dts: rockchip: Add AP6275P wireless support to Khadas Edge 2 arm64: dts: apple: add "brcm,bcm4329-fmac" fallback compatible arch/arm64/boot/dts/apple/t8103-jxxx.dtsi | 2 +- arch/arm64/boot/dts/apple/t8112-j413.dts | 2 +- arch/arm64/boot/dts/apple/t8112-j493.dts | 2 +- arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts | 16 ++++++++++++++++ 4 files changed, 19 insertions(+), 3 deletions(-) --- base-commit: dabcfd5e116800496eb9bec2ba7c015ca2043aa0 change-id: 20240828-dts-1b163375c49c Best regards,