From patchwork Wed Apr 3 10:05: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: 13615653 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 88FF1CD128A for ; Wed, 3 Apr 2024 10:06:30 +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=+jlNqtsRpEF1p9ory3NM8+2i46YbnhqBmX2KbPBWz3M=; b=nooIxgVLXlxItJ OhXdu+wsLczo1xwsKBh2CTDd7bGLbsbaeK4SuJOiXzcHCaL+mYpML++Sa+71y2iM+AMNqX7cH/ff7 gt3XHHoC1NQ9v7PGcr4j9S176k0a0wH0bgupVmNcRof0T0KhgyOw7y0+3otfdiZGUuY0op2fC+2cc m5duEtPBCvXppHRSMGYFm6YNVvShTaelqFfM1vicgzzwZ3MWbxWXULvG01v0t2wmCMm1IMNqlmp+r EH4BNMmNCelo79eUjZtZ3dcTeXIqPUqAdDbqspugIqHLFGiw9xZQsI0JOEkfK9COHGzzynyoCwmZ4 ei4kTVptNJUk9BrC85aw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rrxVj-0000000FNp9-0z2L; Wed, 03 Apr 2024 10:06:27 +0000 Received: from mail-sh0chn02on20729.outbound.protection.partner.outlook.cn ([2406:e500:4420:2::729] helo=CHN02-SH0-obe.outbound.protection.partner.outlook.cn) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rrxVW-0000000FNi0-2iKu; Wed, 03 Apr 2024 10:06:18 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cAR/1xRVUQletMJRvteiSxd8u8lGfl9vrzrsliXPwokZUB20YhvEwnb6dhRw91wvUFK9cunV3/qhzjXEIz+dyJjNL20kTu8Qt3j9hg0Qv1D74jYAwiigRwGGRkt+wDqbZrJxMH88g78hpLZ9J5Llf2x2phkEE3q5+dh57vDr1llPim9I1AK81J0W5Z0d9ZVxaRbSMS+0BG+RXef9J8bRMSctxN6cjmMckZexTg+hYIHZhJqHjEjXuEeRkodzL8RyaKurc14un4gtfId5b9eAPh3WLhjQY9OpzFzvMguECfP1hpiPfKuDJyZ2AfbNFNbzcbGgCXP1pXZoOVKx4bdQ4Q== 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=wwoCZbUdbrnOE1UoQBMJSHzpdpGSM/3cm3STufcIBiM=; b=OX3s3DJufoYoW0BSDM2gui9oFdGBvcLvIDX0PAliPc0m63oWok/7jp3JZNfNqNDHRWDp9S0A+bWjgy0q2qVM0Ym782gVUxqdvVZvLSCu8s8xPBJ8VS865FIMQV2DLY1EKtJIDvK7EbhAbi/1NEzc48LhL0FdAeFITA8l9Lp+WTidcUfc0MkLkncqeAJfjM9sMcN0qHXVul50Y4RwGFc1tWmIhhfCEQ4brSzOB5TfWszNr56xSukJmDHp9DXEPRH5g7izReNScJwpYwbsZmd3qXh+5x0tH2mEhiCZYQvXC3IckCj/Dxtdvcy40puKRxEW6oapvumdPjC/UhmijU+0+A== 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 BJSPR01MB0675.CHNPR01.prod.partner.outlook.cn (2406:e500:c211:1c::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Wed, 3 Apr 2024 10:06:10 +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.042; Wed, 3 Apr 2024 10:06:10 +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 v6 1/1] dt-bindings: net: starfive,jh7110-dwmac: Add StarFive JH8100 support Date: Wed, 3 Apr 2024 03:05:49 -0700 Message-Id: <20240403100549.78719-2-chunhau.tan@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240403100549.78719-1-chunhau.tan@starfivetech.com> References: <20240403100549.78719-1-chunhau.tan@starfivetech.com> X-ClientProxiedBy: ZQ0PR01CA0020.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:2::9) To BJSPR01MB0595.CHNPR01.prod.partner.outlook.cn (2406:e500:c211:e::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BJSPR01MB0595:EE_|BJSPR01MB0675:EE_ X-MS-Office365-Filtering-Correlation-Id: b2510a23-9c59-4001-55dd-08dc53c5afc4 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Bcf26wWBaiFXBMsLieOlQ46s4oUovn9r+jQ4yrOI1ZhuZxEa9BXHXMnirpdOXJEQxsPWAXVFdHtcCoR3CNtrP2WpIRRYnD+3it+OD6KkaLC4NbPJcLR4sJYV91TtCBgh7FeGeMih8412O9Y2oDMBJdJib3lsrDedhIx4JRM5YD6XGPCoBZG9DAU7DAN5hwSG0qXrPldWdgfF21WuvJz7L+CAlHWfkknBd3MGYL4zCl3cg29331M2Ge3jzcY0gh9AHRKAJPnscV1g075v3tPyiEsQ5/3+71We6KpM3xqAvm6dt156I2ZmtZv1AfvpdNdsdNEDC/lsXow2GbdauxGqNP2+dEvXHbOwg08wpqpVYSDU3zGvf/wyCgzbRHZ/ZYz2kF6/HHkCLoFKN9Mvva+eyaB9vdL4xv1U8AvEuO/vaLWn5qi9KDConvtb7+mKIbvsLpMRL6pMpQeMq7/4R9Q2I8p0pHr9Ww7O7Dg8Fm11TZjvoPyPG0A/s0A9+dAAVG6wbrLlSxmVSLtMG5vCDyMpyEpv+qlJefZW/sS2u6eDfwUEASaMO6NtF+ycHi12/7LYl7wVbS7u1DOETqamX44zkz9g0pBvxpAOewlxVm8b7lmPmRKJuqmlXHTApv5RFHTFab3EL9c0r2QIWK/R1qZOBw== 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)(366007)(41320700004)(7416005)(1800799015)(52116005)(38350700005)(921011);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: qxotFmP8BLV4aGIyaboBgdkZxMQA/AqjX1ThgzlsEQeGuBqxLFatGe80tLM3TsenInSdMYVGK2YV8wD3xETAmsZLlgroWe0y2CKwURcKkdJlDgnIIyFUmJkj4GphFBTZJoIXbX8fFExtj8LNW2P1ypuGpegxHqSw6BI6Re3SH9B77hLpqoJ0sLnJtUwYM9GCge6YgP4VSuGR2CoF7akLTjDEX+Q2C+uEoeRBz4Bbr4pkoRXx/OhJzMfVr0cq44Z7p9aYmsF4eux98Iobmg9K4TuugeI8haR1Ygz9KnEsl4tyifKDNsxZJLUgynkID4OAOHj5kVW+MvYSwd2JDpbIejQdtLt7GPL3jWcgLG8v5Vf1pp1F6h6M7lqsIWfDCLpiKJmbRIn2QUHNe8flnKaWv+zj28pOp3ZGU7yP4nPlParhrtZaOGMsh81C3wukyd9Hb1QJ4EP/tL8dQ8mSe/gv+VwEh7KkY3H7ui4cHG8L+emGeGNoxrNLC6kedvvECyPd6vnehOhAbs+UJhuCew1+8+5wKJxJ4UeMiB+8+gBe2tkP+zIUCbCB7BJ1nRNpiXtnHvs8mR8wrfO+3+Y9mjyG8P9ImwX6pNS5mRGIrrEVYFn2DaJq1yeDgJ+pNM9zIYIFj47ZIb+gy15vNnVCvqjGduyn0XETPtLFjfRjM+xLGaTE4b1QwsPAqeekFbCt/jerOJ3+uhDkLwA5LSOKd4+Sd6MsG3BpDM9M6QNhi7thAdlNC/wT1mY2phDrOmYueuUJfPzi7WS/1tLkCkyPn8ont731ZCELyORO8GYYjOjsROuayIiBv1evMjHxR0ON3Nit8AuOCkxpxDgwd9YJQMszorcxclFCxzQbwm9zKg+/YmGQQm9Ud1K0dWyp9XzioIvh/oc6nEj73dv78GNd3s6t/zvDeLHvm+p3Td77FrN5MsUAJcyDbm7umo8OlXbdvbeTZalSnGPxS5nUwCTfJaeIwcgfSb8Ci/9vkKsstvI59Qzu6oGWOT8zbh03yXuA6mis2CleHgV41+B1MgGHngTlfyAi6TIPGPr8+NwJwJ/RArISpQy1lUPHhyoSRoWxxNBZVfNURNEoskilANF5liHw/FIzT5rGwfu5wUW8buE7Xbx3Ib+nCYBCZkc1XKe4xff6GzNr+BFatkHQqXxMujIfehdQjCbber1NeDXwL07fX/LxjWEEt/g7cNhPq4yWXlKHDo//fkArbWUVr4oq6DTe2akQ7bHsYC5O6+cbi4a+EvUUJ65TqDUNiHcK77PRc9Zih5xnsuPd7PVnHocCzN2xfZQM12VGYZeb+9thTKDLFKBmuk4d6L962f3IfE+TnGtFTO/WVAdCHkTjMaKF1+cFdGyhL192sy2Tb0hPJbeHE09CumQNDeQAVGTdXn/rp9UjIxX3iA0+spBgKpEqxabqJPhvUFUHcDEcMYBdWIa1g1DKYmPoSX91ccqrGrwAURzj3NZBpYLaYgYB4nFYlpHptTMOJxOu5/tMv/mcflgxrcXx8aYxh/XAa5IOstgCXRGYNEDWTInEt0z5QdUow/kTjswDz9gIlAzMzThSJAps/WopeP9nCHPAo/59PlCN1UPucn9BSqLQA6NHV+gid6Lnsg== X-OriginatorOrg: starfivetech.com X-MS-Exchange-CrossTenant-Network-Message-Id: b2510a23-9c59-4001-55dd-08dc53c5afc4 X-MS-Exchange-CrossTenant-AuthSource: BJSPR01MB0595.CHNPR01.prod.partner.outlook.cn X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Apr 2024 10:06:10.4355 (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: i9fxGg63qLIt8Eaar3wgt24Sfo1QZGzGWnTsDqoeFFKJ7cg6a6zBgvZO0PxdM9NuX2yzU7A1q3FbRofLLLb/p/TB8NyCOsJ8nW5VEcalKsg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BJSPR01MB0675 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240403_030614_710674_4199B55D X-CRM114-Status: UNSURE ( 9.70 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@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-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org 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"; ... }; Signed-off-by: Tan Chun Hau Reviewed-by: Rob Herring --- .../bindings/net/starfive,jh7110-dwmac.yaml | 28 +++++++++++++++---- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/net/starfive,jh7110-dwmac.yaml b/Documentation/devicetree/bindings/net/starfive,jh7110-dwmac.yaml index 0d1962980f57..313a15331661 100644 --- a/Documentation/devicetree/bindings/net/starfive,jh7110-dwmac.yaml +++ b/Documentation/devicetree/bindings/net/starfive,jh7110-dwmac.yaml @@ -30,6 +30,10 @@ properties: - items: - const: starfive,jh7110-dwmac - const: snps,dwmac-5.20 + - items: + - const: starfive,jh8100-dwmac + - const: starfive,jh7110-dwmac + - const: snps,dwmac-5.20 reg: maxItems: 1 @@ -116,11 +120,25 @@ allOf: minItems: 3 maxItems: 3 - resets: - minItems: 2 - - reset-names: - minItems: 2 + if: + properties: + compatible: + contains: + const: starfive,jh8100-dwmac + then: + properties: + resets: + maxItems: 1 + + reset-names: + const: stmmaceth + else: + properties: + resets: + minItems: 2 + + reset-names: + minItems: 2 unevaluatedProperties: false