Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1485541rdb; Sun, 7 Jan 2024 23:59:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IEAUvXlyBkgD4VxH0xmccML6GNOqOWqY7ieheziCIUmsaw3+WVMpD2AzDPDUGJbLBi8qRWB X-Received: by 2002:a17:902:d506:b0:1d4:638f:3ffb with SMTP id b6-20020a170902d50600b001d4638f3ffbmr1401907plg.39.1704700753843; Sun, 07 Jan 2024 23:59:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1704700753; cv=pass; d=google.com; s=arc-20160816; b=j3KJQvw3mpvrt8KrolmJtZaoYFCVJSzuEd5d25KtMORQQ++FXJPAKFpttCMPP9B5V2 mWT1YQeISNY7jN8yaqfULZKNSJtbFmM+Kk/C3DjEPyL8pCmDHGgH/5Ne8M12zegujpqJ bLulSdDgW2LTqL4vLRrnE9Lj51OuswZR6dap5DTw3zziOMdD5uDPsoxejYatSMjq1mUn 1LvYpkXMfqovciRkxMasiI6x+AVhOQVNf0l9quJ4gXevd+OBgxu3vQ3FOJeOfq3Vr30X luEjKyleNTrRXV3DEgcp54ZFxn0NVb7O9JJl61F0kwoune82gQ9umm5nClHLHYGYsOig DrKA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:references:in-reply-to:message-id:date :subject:cc:to:from; bh=YK94xN9AQ/lqYfbefucmPNmp0jrrmLEUKefe5NaBudA=; fh=vWnV1oEyIR/pD9sd8BphNvx9taYh3xzcnHd4ENg7YF8=; b=GRZz//VrwKg0BQw9v0/7oNxJsUpIFoCHd3QjChM5iLnXeZXVQbUEm3v3B1/+CJjEVi PEKlrvXRf+9ec3g6vyChx0XmAe/3ILtNMwNFOnbUneJxQScuNH2ZF2ZtEiROquj/d7S/ eHB4YR+yOK2bfg17hCv8o8YNRGeqlMX0zmgvN+GHw8Rhqistf565JXE8czFldFzZk/FM 94Cc+ZDif/xcb0vDsQ601W2M83zkjz5ATZdp66blBh4wm6aEx+HIEgkFiP4dj6uUMQfc g7EDWEDf8dk7+O9/vAB+dNc94G2e9NRiiS7VPoRqUUuW6QU6/oXmkX2wBajokG8tcYuC mpXg== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=starfivetech.com dkim=pass dkdomain=starfivetech.com dmarc=pass fromdomain=starfivetech.com); spf=pass (google.com: domain of linux-kernel+bounces-19167-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19167-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id j12-20020a170903024c00b001d4be5f4bcdsi5641715plh.505.2024.01.07.23.59.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Jan 2024 23:59:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19167-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=starfivetech.com dkim=pass dkdomain=starfivetech.com dmarc=pass fromdomain=starfivetech.com); spf=pass (google.com: domain of linux-kernel+bounces-19167-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19167-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 7C4E2281048 for ; Mon, 8 Jan 2024 07:59:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7A1F4C8CE; Mon, 8 Jan 2024 07:58:33 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from CHN02-BJS-obe.outbound.protection.partner.outlook.cn (mail-bjschn02on2085.outbound.protection.partner.outlook.cn [139.219.17.85]) (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 0F39F9465; Mon, 8 Jan 2024 07:58:30 +0000 (UTC) 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=aXScslhls6FvC4xD56NHAfCDwIDsUtnP6ddG85T7wTgfuajEoHiqdCZJBTV6B5uiEFRKnP/C80j8KmMcBKcu+F1NjboTNV7YKXAPL6/g/i+DdHqxkv4Mq0r8dDXjp4XIaItP6VYscAz76GBl1drED70Y3qu54QH2atrAsLtgFjOciChEXM20NH9Jw25plBIyPqyns/MSInPRI5OxLIKWZqyOX9M30CMtqr5fwHTx/64Y1eB8Rca7vjCOjaFJXJfW//Oobk8kc3p4Aell7PiXOoNRqnIxw8E1stYW2AwgMAJCJccOBPsHbjIs3PRChaHbF5rXFUmglDSxyB3lS/SmtA== 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=YK94xN9AQ/lqYfbefucmPNmp0jrrmLEUKefe5NaBudA=; b=M49mO2zFoNEpVCBz4UIPmoBx6cThVD0AH798WXjGKBp4rdtTDQcEdWfw5lyQQd+QkVrdd6DsdEXxYzCUYs4wLR7kTV+byvYl118rsNfGaglHdcRcnYDT0crN7hTSE6wkee/IdQCUIa2KJVpzshFBsYvFahdk9rVkf2AfVTgWP5VicQeT5DowXGlrMB8+3luTBWcPpJyErOdpc1Iopk3V2ulP/yMfAJH5jDLTHMHpaH5brP6bpdDtvd2J0Z8nx3/Z6q0vBWL5dGCXveMXfStCke1T1OgbWXC9N1Ug/BbwEI9h2h5GakiuRpCbUBZwy+B0I7b9gD9eTltSltutv+eyKw== 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 BJSPR01MB0755.CHNPR01.prod.partner.outlook.cn (2406:e500:c211:1c::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7135.32; Mon, 8 Jan 2024 07:58:24 +0000 Received: from BJSPR01MB0595.CHNPR01.prod.partner.outlook.cn ([fe80::aaac:167d:8e0d:3acb]) by BJSPR01MB0595.CHNPR01.prod.partner.outlook.cn ([fe80::aaac:167d:8e0d:3acb%5]) with mapi id 15.20.6933.032; Mon, 8 Jan 2024 07:58:24 +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=20Kleine-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 Subject: [PATCH 1/2] dt-bindings: net: starfive,jh7110-dwmac: Add StarFive JH8100 support Date: Sun, 7 Jan 2024 23:58:09 -0800 Message-Id: <20240108075810.14161-2-chunhau.tan@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240108075810.14161-1-chunhau.tan@starfivetech.com> References: <20240108075810.14161-1-chunhau.tan@starfivetech.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: ZQ0PR01CA0018.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:5::15) To BJSPR01MB0595.CHNPR01.prod.partner.outlook.cn (2406:e500:c211:e::20) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BJSPR01MB0595:EE_|BJSPR01MB0755:EE_ X-MS-Office365-Filtering-Correlation-Id: 921d1e00-1e77-4008-b92d-08dc101f9706 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4cL+9c+VhF8ExEKukhRljI8rLTtxV8r8ZVTeiFEpSh8w2zEN6TYqZn6FLEhScA5mbsvlKwWn6ArZNcIShH8qaGcri02gC9qGnekGRBeF0kJlqo+s7nC7+07F8DIe/L5VpIBPzYbNg3t9AzesKjMKbZXSPHH97M+RKCrGRvNhWfo3QT3QzWOaj1jtDVz2QbaMWE5W9dcFSlEwI8sP2mbhK9OhuksRMzs+mpQlcz/x3M18ESFCvRL72CXKtS35w1nRzfXJCSXEhqu51dtTxTR/AWeGiRMbaNO6UZhfL3UOh1TqC/lK81iEstPM9ippxIZj/nDdM6APi7xlbYhpkBBucrPIjn+dVoSRPdEdu84/rBVHkun0fljoLsX8HP1zbaednTmg/ykEQZP215ToUg5qefbuX5wirLWjzMSVAZembtDXUFF7TY+Yg6Le2HTqgRxU7WwH71Sg5fQULMLT0WrhUKV86RWTx4N8s6SZ+gCRdNwv1upPuGPGdFGLPw2FPPlSKJLOdhaDpCdsXGtefi6VvxP4feMlW6hIQc0TDlpVusiRL1TnU1TfImWiOH0f5UoLDGk/fu5wxdwEgbLpSzZyYohvjFuwkTzjylSAkIzoLRFQLwuEHnlHltkHW8JXCLmd 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)(346002)(39830400003)(396003)(366004)(136003)(230922051799003)(230173577357003)(230273577357003)(451199024)(1800799012)(186009)(64100799003)(26005)(1076003)(2616005)(83380400001)(38100700002)(41300700001)(8676002)(8936002)(54906003)(110136005)(5660300002)(7416002)(2906002)(4326008)(66476007)(6666004)(66556008)(52116002)(66946007)(921011)(508600001)(38350700005)(86362001)(40180700001)(40160700002)(36756003)(41320700001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?V/p1TYCJv+9vMHwX+EMJOY5dKmrN9uo461UgjA0xFKBzECE5S+7+7IZiGDa3?= =?us-ascii?Q?KPlLEkL341uwAJb6t6R5HNsi/w8QPvl/+reiobl3VPxTUCI+owd17CZwaKzp?= =?us-ascii?Q?cvcl9jN9sG/7H2aIieKbxFXq2/io6vzOcOnlLKCbpMPyfPIeeXQ/QSefxdTE?= =?us-ascii?Q?qAVO8o10LANlhXo9ox7407BZRp1kRz0HW52Hiq69TthccVEp8I2nRhcZsqil?= =?us-ascii?Q?+dEWwjAx0MHGIlKG5vbci+w5W5rJQl3A2CZrjKKAKnK73nMWkFkI1MvbfLMf?= =?us-ascii?Q?iOPhOIfCsDoQ7K8aYcWQ8O80I8B7pAeb+P51aLtL25iYyaO8haG/oJud2ScK?= =?us-ascii?Q?aLktRJeGU0IVj9L42BSpvA3bSBCFRKseEpSxNbhT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oIO0y0ZDjT7LTgDqsnrZtCXNInYJRaBYPpP8yF5jYSCbhl8?= =?us-ascii?Q?D3LYdW0uIa/IZf4qz4chJ86m3B8jPhg8i3Csr0OIBb4V2K+TTjB5GxserO92?= =?us-ascii?Q?Eh0jj6xie2bBTPwvdm1+tRq9pNdmgZI5i4X+nbA2k1Za0NDsgP70JBj2oSvH?= =?us-ascii?Q?2QqjU1/sw/8IclvIFDPpnvRQ/qaSiU37a/0dP+rZ/wuvNlDR/oSONgFNyfwd?= =?us-ascii?Q?rmhLvuTcHCkK1AgKXFBL0+BnKKWiLtfp3L86sy7mjO3ZWF3dMduuyjUv+jC7?= =?us-ascii?Q?GsQWR6aUSkw6D7HbcrorHV1daR0PFpaOBVL66ZvJbY1qVErODs7Nx7WvcWc2?= =?us-ascii?Q?pg=3D=3D?= X-OriginatorOrg: starfivetech.com X-MS-Exchange-CrossTenant-Network-Message-Id: 921d1e00-1e77-4008-b92d-08dc101f9706 X-MS-Exchange-CrossTenant-AuthSource: BJSPR01MB0595.CHNPR01.prod.partner.outlook.cn X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jan 2024 07:58:24.6189 (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: NIYY0u/BF8gq/86C8uI/LA1KaakfNJ6beqyoADsUAsAnJgDACo7TkUtUVbjsAZAsoaO5OE4rrlpL/xWvpteks46DB6n6xlMKdCwo1yKFWoo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BJSPR01MB0755 Add StarFive JH8100 dwmac support. JH8100 dwmac has one reset signal instead of 2 resets as in JH7110. Signed-off-by: Tan Chun Hau --- .../bindings/net/starfive,jh7110-dwmac.yaml | 28 ++++++++++++------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/Documentation/devicetree/bindings/net/starfive,jh7110-dwmac.yaml b/Documentation/devicetree/bindings/net/starfive,jh7110-dwmac.yaml index 5e7cfbbebce6..3d0447726902 100644 --- a/Documentation/devicetree/bindings/net/starfive,jh7110-dwmac.yaml +++ b/Documentation/devicetree/bindings/net/starfive,jh7110-dwmac.yaml @@ -17,6 +17,7 @@ select: contains: enum: - starfive,jh7110-dwmac + - starfive,jh8100-dwmac required: - compatible @@ -25,6 +26,7 @@ properties: items: - enum: - starfive,jh7110-dwmac + - starfive,jh8100-dwmac - const: snps,dwmac-5.20 reg: @@ -54,16 +56,6 @@ properties: minItems: 3 maxItems: 3 - resets: - items: - - description: MAC Reset signal. - - description: AHB Reset signal. - - reset-names: - items: - - const: stmmaceth - - const: ahb - starfive,tx-use-rgmii-clk: description: Tx clock is provided by external rgmii clock. @@ -93,6 +85,22 @@ required: allOf: - $ref: snps,dwmac.yaml# + - if: + properties: + compatible: + contains: + enum: + - starfive,jh7110-dwmac + then: + properties: + resets: + items: + - description: MAC Reset signal. + - description: AHB Reset signal. + resets-names: + items: + - const: stmmaceth + - const: ahb unevaluatedProperties: false -- 2.25.1