From patchwork Wed Mar 27 01:57:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ChunHau Tan X-Patchwork-Id: 13605437 Received: from CHN02-SH0-obe.outbound.protection.partner.outlook.cn (mail-sh0chn02on2098.outbound.protection.partner.outlook.cn [139.219.146.98]) (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 29A4B3FD4; Wed, 27 Mar 2024 01:58:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=139.219.146.98 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711504697; cv=fail; b=QEBi2ZFFtxOzrMxn+mmXegVksG6N/33wIxPppJzFFmfwDZIhgqS80Ic1O+6a/HJvbksKs4fsazw5L4jP9b6vaXWt1GF5Q/9Ej/ex9X1i/J8G46aGKIu5R5Z/sMVIeVHdcN0FZr8NNSTl8rkbhIEj77010Xf/F2JevRdD8iV+aFk= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711504697; c=relaxed/simple; bh=sKMwxzTK/FSM9aLIjdmFhCdJVSY0F8PpFI4pqz5Ammg=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=pQs5i26n9TGPv0PgAPOLn9kvJBkTJrSs0Zq4KiR5436mxenXM7G3jxKDt+8dF605s515dgBtc6gZR54dXDihSa1pXKm4MXq8EQrXaADx6p/iBhYZQOoh79mr7VAjq2zAbVzpS/vXYNDPFTt058ty985YvfL3xg0SfftuwfTQhS4= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=starfivetech.com; spf=pass smtp.mailfrom=starfivetech.com; arc=fail smtp.client-ip=139.219.146.98 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=starfivetech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=starfivetech.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=g+PQOM2pL51R/uS6lzRUWJbHRo4dai3pIpV3OOIQkF661SRiSL+RPqoEDkz/0ksjX9KpAOgtxOBp7Od720m3pWPE0gVqFBmLz3eIW+kNVXB0K4QSFTfMrAch/D8VSmdtF2YlonctwmXYP15QhwNKJSwCPIHgSi7eWyAWbWFLRnJiGVlOwQjTpcTH9vVUmP8hzlkLj0KBu2FKtu1fUurxeus32H4uCCTOkCayFwXMVKkFs07B7P1AaJOIaiGjYPyBLOEIuH77zjRBoDfZ2yg25tyXdAxlqKfPwhd1rIFTT9R1aw359J9YiXHJcCMDpcPsG1V6N9Q+BeWtl4TTkZsYwA== 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=KKQkxDcvtl2Vv4vN1RK04Khe3CW1nTJMlaooL+jisJY=; b=HgM6fzElMAOk3IADLVD9MaOKWC9UDUJxR+LoI2LjQq68bGPGNGi1o94n26rQh3iE3u4tAyVU+P1t05RhTvSozi72W/0gTuJvwKmVpWVyiOWIvvFY/ZUuC8E+6kUPB4cBnax3byL/FUqbNQIg+T26DF2Wjfsp9gSZQKlGdoPCc94YkXwB4HHh8f0p+6pTh3azIk6qmcnZfIqtX6OqmhC4QlvReL0X7ZMaXtKdov/6L3QTM61WzS80vyCWx8gXeSFU/47A9n3e+HOdWeKDo09jujJTzjE8Db31O5Jx4Gd9Rz5zyow8nKsYpv3lLJsJ08zx8lddWzOXzF2YlMR/im13Cw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=starfivetech.com; dmarc=pass action=none header.from=starfivetech.com; dkim=pass header.d=starfivetech.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=starfivetech.com; Received: from BJSPR01MB0595.CHNPR01.prod.partner.outlook.cn (2406:e500:c211:e::20) by BJSPR01MB0689.CHNPR01.prod.partner.outlook.cn (2406:e500:c211:1d::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.33; Wed, 27 Mar 2024 01:58:05 +0000 Received: from BJSPR01MB0595.CHNPR01.prod.partner.outlook.cn ([fe80::d0cf:5e2e:fd40:4aef]) by BJSPR01MB0595.CHNPR01.prod.partner.outlook.cn ([fe80::d0cf:5e2e:fd40:4aef%4]) with mapi id 15.20.7409.031; Wed, 27 Mar 2024 01:58:05 +0000 From: Tan Chun Hau To: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Emil Renner Berthing , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , Simon Horman , Bartosz Golaszewski , Andrew Halaney , Jisheng Zhang , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Russell King Cc: Ley Foon Tan , Jee Heng Sia , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org Subject: [PATCH v5 0/1] Add StarFive JH8100 dwmac support Date: Tue, 26 Mar 2024 18:57:49 -0700 Message-Id: <20240327015750.226349-1-chunhau.tan@starfivetech.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: NT0PR01CA0001.CHNPR01.prod.partner.outlook.cn (2406:e500:c510::12) To BJSPR01MB0595.CHNPR01.prod.partner.outlook.cn (2406:e500:c211:e::20) Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BJSPR01MB0595:EE_|BJSPR01MB0689:EE_ X-MS-Office365-Filtering-Correlation-Id: cb8e123c-bf1f-459f-f990-08dc4e0157ab X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: on3vgimkHLbf8+U5F+qytdCh4iq99DEfKWl102n2Tt4IPx08hh9j8NATyxWVbIy4n8xIMKiqv3Spa1tk8bTtNtqRdJ5fqjnx6IO1yQx8fCBS7QWHgtVPI+7G9Zxa4jXD65Epysulkcp3BRiaTKcgDw3XrlM7H9uV0NZOZk8iG6BiGdTEmfV5GhJgf2JVC5rByCzg/2gD+NxNf+MKbVchot2nJkar3YNo7XCU48K618zEYMbwg+3Xw2XZLKLhHIUoNzw5PYn5jusQc4FtERvkPshvFz8b65teK0VYXRP8f4Rucs/K3bY2IJa8korFEh4xxOZ5CmlLjbnN7LayRgK0nokmQ54ZCTXPEY8AaiB+vn9xFb8kDkUHSU8wJtb3Mh9xaPCiqpB9ua7UcaoHS69Tvx2adx2amydPJvrmPFliIK6dk78SoprUPTrDZp0rny+STkj9ugrsBTDUx+OHbyTT+14RFte4tys7q56xIvzHrbSDS727Akq8UdyQrN+YDpOyPAlTxCkvxAmMGs1g9B55KfCqyVpPr9cg87gtXYL18c3FJT0IS22hMYGsR5UkN5E2M6LiaHCpc8BchvtUpPDuOtjSg8g593o9zTIDHVUzn/YrFjRjYx3lIJhrfOCuxV4SVbt7nliEbjgthwSHrvE4Yg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BJSPR01MB0595.CHNPR01.prod.partner.outlook.cn;PTR:;CAT:NONE;SFS:(13230031)(7416005)(366007)(1800799015)(52116005)(41320700004)(921011)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: PIpq3JYcih+nyiZ2ABVEWarInpD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6n8XrWIFiHTC25BHzsAE/2DP/rcdkYCikKZr6u0q5XVqjLVxYZfBTy2LuMSDDH4mJJdxXdVpXQXXa6bG9TLH1FxEEvM0eH/fyhgMKSyh3l9/ZTIbYeS67ZRNWO/q+gxU2BvMGNPLklUfnJv8vr8CngXudn2+Xr9nWjsrD1yJCEtA/9aLKQ7CdfRv+0XgfkyrOofMTk8WaCtromvudJaUaRVAb5w+wKpXtEc0RZOrocgta7XVxRxnHDI6JzRxjW1tqR9whNi8dHhuFBU/CBKHRtMpguMDJtONtqVJKb/RikCh9u5tFH1zx3vkdiUa17b5hyfkWZzsKN/mEcwTRk4t+dVR5psXEh81l0R37Ut3vDuS9ORFC9sm273XULQDcw1b5cHOe6EhmOSrevMH+ikwa3biS+WbVer2nhCrPOgR/68PLAPiNVCQrKu0FvP0W3cmvSsCXEXH3+6k2o8+/NVGRTU/0jTIxa1tw8urwCTI/xkh3/FRmiKthEV+DgAkF68hAA== X-OriginatorOrg: starfivetech.com X-MS-Exchange-CrossTenant-Network-Message-Id: cb8e123c-bf1f-459f-f990-08dc4e0157ab X-MS-Exchange-CrossTenant-AuthSource: BJSPR01MB0595.CHNPR01.prod.partner.outlook.cn X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Mar 2024 01:58:05.5001 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 06fe3fa3-1221-43d3-861b-5a4ee687a85c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: pxU1Ln5CgAIkuHDZXt70M/Q3pAzIE5p4ZLjbZ7vVMBnDutEkiFbAWDiog8ioWEYBYYnaTqg/SxsdMKo4CIkD3ZQc8E+KoGsO+9RQtxmc2PY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BJSPR01MB0689 Add StarFive JH8100 dwmac support. The JH8100 dwmac shares the same driver code as the JH7110 dwmac and has only one reset signal. Please refer to below: JH8100: reset-names = "stmmaceth"; JH7110: reset-names = "stmmaceth", "ahb"; JH7100: reset-names = "ahb"; Example usage of JH8100 in the device tree: gmac0: ethernet@16030000 { compatible = "starfive,jh8100-dwmac", "starfive,jh7110-dwmac", "snps,dwmac-5.20"; ... }; Changes in v5: - Addressed duplicated interrupts and interrupt-names. Tan Chun Hau (1): dt-bindings: net: starfive,jh7110-dwmac: Add StarFive JH8100 support .../devicetree/bindings/net/snps,dwmac.yaml | 1 + .../bindings/net/starfive,jh7110-dwmac.yaml | 29 +++++++++++++++---- 2 files changed, 25 insertions(+), 5 deletions(-)