Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2412460rdh; Sun, 29 Oct 2023 15:15:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG5INTnQp/WFy4M4fK0aPbmsIWwOj7L6kGNw82Gasfw18Lnfv6W9k4YReUHubkTerH26Ntq X-Received: by 2002:a05:6870:6b0c:b0:1e9:cde8:6db0 with SMTP id mt12-20020a0568706b0c00b001e9cde86db0mr12919017oab.50.1698617758009; Sun, 29 Oct 2023 15:15:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698617757; cv=none; d=google.com; s=arc-20160816; b=TON4ibxhGsDqWp8t/GIS1JuneRxquwTANP/v7WLhjBZxjsPoyriLZfNIG60f9yYj+J q1gVEoJjbtM3jVzCEXvUdGXPngPvchbSC4n0wxD8lFqrALg4W7SRgifa4XIv6XMfbMMB 7VoYUZufgFGaDBwakBih+x960TGgPVPoVWKtBuqJvQ+1S8dCewv9xKDf0Q+k6zARDuqg secVAcqNR2vS4E1BctNhWKlXNP6bKNYVJwKcYSqNt/v8M3rp9lQlIzvjqw2xUu9rwJlT flRLbcfy+yk2HSuXg5v8/Jfd0gDGNVzygWfI/Nx54/JeyNZa3tsMCnHwto3k321QdjJ7 YzJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=347LRo0/+Exg5LGg6QACCzC9sowE7zkp4r8hKWIhndg=; fh=FMUYpNAGkZddWuF73PI9qAnT8lsYYUgktcJh4BSG6Ys=; b=kbAt7Gw9fRDG6usrAUxDQhYmgo5n9KqFo4Z/lICtu3no4V1eyiyIU/wpzBrIedmvvl /OZGp+UsTkDQl9PMJq7m97RsiUJiZuq1rn0H8T6uVHWH5rqNUmQnWA5wSTpUbgScNiCg AI9IlU+ZnjS710tPYae/6MbtqWBpTIFooyTgCd9BMGBC1cXvSYcCIxMnQkrcCCxbON2M toS3/20kny2NfW/sY8R3+Le5MVl2tpljBrpIfBChabHbHp22FT/1PRqc/qC7jFO+wzpr xwXDZq1lzmDs9NYRh2z2+NvDQBGkx8yXEIaUd6abcuaNlYwOOXzxp8kz5+7i7OMSUNG5 uGTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=DA0HpUwj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id w2-20020a056a0014c200b006ba82adb9acsi4073278pfu.332.2023.10.29.15.15.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Oct 2023 15:15:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=DA0HpUwj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id BB986805F6B8; Sun, 29 Oct 2023 15:15:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230226AbjJ2WPq (ORCPT + 99 others); Sun, 29 Oct 2023 18:15:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229533AbjJ2WPp (ORCPT ); Sun, 29 Oct 2023 18:15:45 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C413DB6; Sun, 29 Oct 2023 15:15:42 -0700 (PDT) Received: from [192.168.1.90] (unknown [188.24.143.101]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by madras.collabora.co.uk (Postfix) with ESMTPSA id 0AB9466072BB; Sun, 29 Oct 2023 22:15:39 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1698617741; bh=CjPNcKIkayOOu9llA0cQzyKcvkH1gHoQq6weHsJqTKA=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=DA0HpUwj+MG6H8VqTIZG9YKjh36wM/9UvhgOUuynwmqi4zwuxP0bcQoERR0/l/aPH FIIyksNtavnGYFGUfLtKBvpyLJb3MS/yp7Q7MAVLDWBDPh0ejzyWyb4kGRzuq8QL43 zJ+vefd93vIr8XnbqJQK8Ii8kdMeA+rbjbW9PhDcRDqUbfuMx5ZSwt+VikYDVsfND3 DR86t6NusBnM0O/j80Q5WD7PWHaJLaYrLtosNjOOo+WLGx/Tz8Ad26Se4u/+c69Fyh wvKsyEknLmue8ZQMb9/dEUX/eCL5ta4x+iN0l6O7aCNr1HYdyBL15w2I8miUippqCJ /7DWFNVOg9l5A== Message-ID: Date: Mon, 30 Oct 2023 00:15:37 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 04/12] dt-bindings: net: starfive,jh7110-dwmac: Add JH7100 SoC compatible Content-Language: en-US To: Krzysztof Kozlowski , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Emil Renner Berthing , Samin Guo , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Richard Cochran , Giuseppe Cavallaro Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, kernel@collabora.com References: <20231029042712.520010-1-cristian.ciocaltea@collabora.com> <20231029042712.520010-5-cristian.ciocaltea@collabora.com> From: Cristian Ciocaltea In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Sun, 29 Oct 2023 15:15:55 -0700 (PDT) On 10/29/23 13:24, Krzysztof Kozlowski wrote: > On 29/10/2023 05:27, Cristian Ciocaltea wrote: >> The Synopsys DesignWare MAC found on StarFive JH7100 SoC is quite >> similar to the newer JH7110, but it requires only two interrupts and a >> single reset line. >> >> Signed-off-by: Cristian Ciocaltea >> --- >> .../devicetree/bindings/net/snps,dwmac.yaml | 1 + >> .../bindings/net/starfive,jh7110-dwmac.yaml | 74 +++++++++++++------ >> 2 files changed, 54 insertions(+), 21 deletions(-) >> >> diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml >> index a4d7172ea701..c1380ff1c054 100644 >> --- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml >> +++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml >> @@ -95,6 +95,7 @@ properties: >> - snps,dwmac-5.20 >> - snps,dwxgmac >> - snps,dwxgmac-2.10 >> + - starfive,jh7100-dwmac >> - starfive,jh7110-dwmac >> >> reg: >> diff --git a/Documentation/devicetree/bindings/net/starfive,jh7110-dwmac.yaml b/Documentation/devicetree/bindings/net/starfive,jh7110-dwmac.yaml >> index 44e58755a5a2..70e35a3401f4 100644 >> --- a/Documentation/devicetree/bindings/net/starfive,jh7110-dwmac.yaml >> +++ b/Documentation/devicetree/bindings/net/starfive,jh7110-dwmac.yaml >> @@ -13,10 +13,14 @@ maintainers: >> >> properties: >> compatible: >> - items: >> - - enum: >> - - starfive,jh7110-dwmac >> - - const: snps,dwmac-5.20 >> + oneOf: >> + - items: >> + - const: starfive,jh7100-dwmac >> + - const: snps,dwmac >> + - items: >> + - enum: >> + - starfive,jh7110-dwmac >> + - const: snps,dwmac-5.20 > > Why do you use different fallback? AFAIK, dwmac-5.20 is currently only used by JH7110. >> >> reg: >> maxItems: 1 >> @@ -37,23 +41,6 @@ properties: >> - const: tx >> - const: gtx >> >> - interrupts: >> - minItems: 3 >> - maxItems: 3 >> - >> - interrupt-names: >> - minItems: 3 >> - maxItems: 3 >> - >> - resets: >> - minItems: 2 >> - maxItems: 2 > > You just changed it in previous patches... So the previous code allowing > one item was correct? I mentioned the possible use-cases in the previous email. So yes, JH7110 requires 2 resets, while JH7100 just one. Regards, Cristian