From patchwork Thu Jan 11 02:55:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ChunHau Tan X-Patchwork-Id: 13516721 X-Patchwork-Delegate: kuba@kernel.org Received: from CHN02-BJS-obe.outbound.protection.partner.outlook.cn (mail-bjschn02on2084.outbound.protection.partner.outlook.cn [139.219.17.84]) (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 774D9EC4; Thu, 11 Jan 2024 02:55:56 +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=Af/+2rkbzCPORC2PLJixD617P/EVsDxV6C+5myuYIbNxZAkuzlI3tcwob0GhLL5HyGlLqDQaAqwu5m/DEIAXyX0s6fLyfBONasA9PIzhEK0VPB0LNSaVLAPMKCsR99kNiLK5v8hgo8RZRlxSnT2pQbu+UDT+kO9JceU5WzN6wWHJcYRgVzAUHU59UMw01Ms4lRmJ1+3KRj0o6cYhBnDaGXEyOym8D+8nuS36eO0ouwswlFeVhH0TY8wQMQSDVFMPTEjgjzJPkXzT3uu/efViN4rjVG4g7S2qQO2KSfmmI89dhj+2yzoVUCy6+J/86hbKbLH4BnmjolutCKz/vwe1wA== 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=5C7fXcc5/xoz1o5mDbxfzZ01KRU11HK/v8e/O8SQlBw=; b=E2GiiyFWDyecrnm86F4t0bR/52NRyu8USxYW9z1T/PikQgs/giOe9orrpI7fxG28gRrSUu5ZWU9/9TPEXJiSUCM6BbxEvojFmhJY+kz9p2T1xHwikAX8RQCVTMZ9w25JgQAthEO6IbiStee2g+cTigjiSoFgb4jjsYHZQVrd3MJNwXEThMsQ2jYzQBEmLj6eWrQOpDS1XH0hNO4rq0d642VoNSuyXKFUXCFN2GxQS9+92M6TEhdVp+rIG6DFRGLo5EJBDdx8lw7/GVwXdkMJC4rcF7p8ToAYQ6qWH3Rhsx97tEC+8brdAADMRlEH7rFIpoaa6f78SkNKlCL5Qsv2OQ== 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 BJSPR01MB0561.CHNPR01.prod.partner.outlook.cn (2406:e500:c211:f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7135.33; Thu, 11 Jan 2024 02:55:47 +0000 Received: from BJSPR01MB0595.CHNPR01.prod.partner.outlook.cn ([fe80::9fb5:b2ec:ed6f:b0a4]) by BJSPR01MB0595.CHNPR01.prod.partner.outlook.cn ([fe80::9fb5:b2ec:ed6f:b0a4%3]) with mapi id 15.20.7135.032; Thu, 11 Jan 2024 02:55:47 +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 v2 1/1] dt-bindings: net: starfive,jh7110-dwmac: Add StarFive JH8100 support Date: Wed, 10 Jan 2024 18:55:31 -0800 Message-Id: <20240111025531.2875-2-chunhau.tan@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240111025531.2875-1-chunhau.tan@starfivetech.com> References: <20240111025531.2875-1-chunhau.tan@starfivetech.com> X-ClientProxiedBy: BJXPR01CA0064.CHNPR01.prod.partner.outlook.cn (2406:e500:c211:12::31) 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_|BJSPR01MB0561:EE_ X-MS-Office365-Filtering-Correlation-Id: a0907861-d30c-47ee-01aa-08dc1250cfaa X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: B55cUnE2eXWZs/M5Le5EYcfM15/IF8/uK1cc5u6ivCcCuIT87XZR42bGBpZhXG19SB/aLvI6L6NalMquhUzAXw3UAP89wN1d2dCEUPJiHQ2DCCpI1QA/Z9DgynXoYKy8DGK/vVDsrhoT67RLQnK/fvZfkrIk1HBZ8HheC4ex/jOKVBM0n1acsy2UU4TKQ1OQpwvNKS3AtOa+YekHnYviHoDDAR/NlqS+vHnsb42cDA/t8ibYQKIMBKaJmylxzGr2nT78Qub3+0/NshHTsXwEkCXx1eeehIIJVyuK7QPpxNkEtA1jq8KCo+S73HC1EdoxCSwCYQ9b8Y2YkUst3Oxyl9mmpqn6XwO68dorCXjN0wJjs+8QAMjwbwivwKzaBT6amsmnFeCoxzSoJFBjvhGMBL95sMpwyWZu3HnpzmLT01L8vQLulwq45rf2HABPw+0Qz485x0gFn1NdYULuMArj0GaMTb3tyNuG/sazuCdydXjA2iikSYCZLPdOR00FLup6X2ZFmtfbBHT4tuGMeKYywFyrVXCBuBlmpXmrFLNDjvtB9+aiPGX8aI5lUg05XQ/Xa2czf0NkNBRILuAFJUplSKwlCeK5IpCGxG6AMvtUWDC0KXdP3haRbOnjB8PKvSK5 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)(136003)(366004)(39830400003)(396003)(346002)(230273577357003)(230173577357003)(230922051799003)(64100799003)(1800799012)(451199024)(186009)(921011)(38100700002)(8676002)(8936002)(6666004)(508600001)(4326008)(26005)(2616005)(1076003)(66946007)(66556008)(40160700002)(110136005)(54906003)(66476007)(52116002)(83380400001)(41300700001)(2906002)(86362001)(7416002)(5660300002)(40180700001)(38350700005)(36756003)(41320700001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: hrUqtO2Xv9eLkR7fwzv0InkvfVHufr+C1vpTp3H4tRQ1YqD/gUQ2ykIJZTiCS5vgX8HGVzFMSmpbV/Za8E7NTptGG3rBtiucf3l54QVhuM74/bDgMtKOZ+uBGSU7xesZ8KOXLtpLJ+XhxjuTSOlrXikjwoLBlvW+jTABq5ZHosaYywQcjIz9Aupjv9MRxaDL07SyEY2IYPkkUSwUJC0fknhegIJdnCaP54ZeEF8nyRXFcEmgi9fhRCQkvq79xHIKqqywL248ivGBeUMPufKYM0I5pJFfuGC8gmnsHBZK8AQW8blh0ddVwAvzeXfxb+BgQ6WKkc/b9HD1DDkps83fZf5JP9pk9NUUkNug6JVyw1/Gdy/eR8f4vcamQiJidxCAo9rEssU3Z91uR4M4qNDSygZZbSE+Yvu/+hnRB4kBNj8ufgyC5YpG5SsJWGzyMwgi+65naipY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fI3jX1Uoc3xqQsLwIqMYIJgwGcmYsVNNlkWft879rCmxdF+FKV2faOAGpV6aPYnI2rvabwDddPNUSZcmd+zkQ== X-OriginatorOrg: starfivetech.com X-MS-Exchange-CrossTenant-Network-Message-Id: a0907861-d30c-47ee-01aa-08dc1250cfaa X-MS-Exchange-CrossTenant-AuthSource: BJSPR01MB0595.CHNPR01.prod.partner.outlook.cn X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jan 2024 02:55:47.2995 (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: /biaylpyOB4uP/6MCD4kReVjit6/ggXAXLPbt6/8ybyV+sx5gRS8WwBuaPs1QuZD7O5jEpjtyyJLbNL9xhdottVXKGuc4FJ0YI4PvUsuQ1E= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BJSPR01MB0561 X-Patchwork-Delegate: kuba@kernel.org Add StarFive JH8100 dwmac support. JH8100 dwmac has one reset signal instead of 2 resets as in JH7110. Signed-off-by: Tan Chun Hau --- .../devicetree/bindings/net/snps,dwmac.yaml | 1 + .../bindings/net/starfive,jh7110-dwmac.yaml | 50 +++++++++++++------ 2 files changed, 37 insertions(+), 14 deletions(-) diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml index 5c2769dc689a..350b3d76630f 100644 --- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml +++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml @@ -96,6 +96,7 @@ properties: - snps,dwxgmac - snps,dwxgmac-2.10 - starfive,jh7110-dwmac + - starfive,jh8100-dwmac reg: minItems: 1 diff --git a/Documentation/devicetree/bindings/net/starfive,jh7110-dwmac.yaml b/Documentation/devicetree/bindings/net/starfive,jh7110-dwmac.yaml index 5e7cfbbebce6..7e4547961bab 100644 --- a/Documentation/devicetree/bindings/net/starfive,jh7110-dwmac.yaml +++ b/Documentation/devicetree/bindings/net/starfive,jh7110-dwmac.yaml @@ -17,15 +17,23 @@ select: contains: enum: - starfive,jh7110-dwmac + - starfive,jh8100-dwmac required: - compatible properties: compatible: - items: - - enum: - - starfive,jh7110-dwmac - - const: snps,dwmac-5.20 + oneOf: + - items: + - enum: + - starfive,jh7110-dwmac + - const: snps,dwmac-5.20 + + - items: + - enum: + - starfive,jh8100-dwmac + - const: starfive,jh7110-dwmac + - const: snps,dwmac-5.20 reg: maxItems: 1 @@ -54,16 +62,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 +91,30 @@ required: allOf: - $ref: snps,dwmac.yaml# + - if: + properties: + compatible: + contains: + enum: + - starfive,jh8100-dwmac + then: + properties: + resets: + items: + - description: MAC Reset signal. + resets-names: + items: + - const: stmmaceth + else: + properties: + resets: + items: + - description: MAC Reset signal. + - description: AHB Reset signal. + resets-names: + items: + - const: stmmaceth + - const: ahb unevaluatedProperties: false