Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6951860rdb; Fri, 15 Dec 2023 12:57:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IHcnv8+vNQV8Bu4GyByOEmB8AiJcyps4CeSWhJDI89Ok3spzAn2HMM6KC6Ee9acYdV3JHh2 X-Received: by 2002:ad4:4e4d:0:b0:67e:ee4a:bbd8 with SMTP id eb13-20020ad44e4d000000b0067eee4abbd8mr6819668qvb.25.1702673842274; Fri, 15 Dec 2023 12:57:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702673842; cv=none; d=google.com; s=arc-20160816; b=QQN6fjcdtRRNdw58VR69k6Jn+9IfJptugMr5Xq1F/LepYOcGsm3tm4Jus60XZJlfDB E6j/Wx6r8FhEf41NQspRriSJQARAZ0Vx838rQm5zhEteBp3EAoR/92FsxzeZ21Zhcyo+ /m+V9dl+aI27Z+cK9bpCjIZpTPF652cA8XLKPxHxCByary7U5bQYFx7Byzw307btFVJ+ 986tB+Xek8LY3UbDFpVWdgjYOvjbUsyk7TeUicAWIJj6fM8t+M6C9kuYwio58MIPgM0c LOoEXDtSyIiclbR4m7G8czLgz8Zcbm25nQaQtCKMqVNvQIDb+4wlSVu3Cl35oaud4zNt pqkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=lOzEZqwTft1RWB2mMtMTa9LdBlI3q5BfIVJqAjCVTW0=; fh=DHsehMYi9JpMrM8jyQrdCpdhabHlMFsog/l3cNfDHkg=; b=sL3oT+HA8k4HH5GIwbYdp1qv0j4AXHfxYr8tcZjOAGDzMCdgurZoOMQT6b/rajsiSh npu9wEq8BdvUrDum8qKTLUARMUCAA0q0SoZwUMifkuJ+GbY2Zu8BVN6L7n5l/wKLIXjS ZiBkhp+Q1Mgg13SX+lEtw2bRdomx0lJy0xcdUxrk1qcEikVUmkRn8ldJOlXAbr0x+ViF Ob7xf6buOs7cFN1k1zUQTgiUmEO1G8Yt1RQ8djAVFkIjAnq4xqOGwgffAHp3BnJ2voyB 5OJ3tA71opWmgDC00sUyqL8UmhWOjMAkRx9D2cpmz4JyzdFjQqErKylix0/NL5YK30PC 3jhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=4kW0X2uh; spf=pass (google.com: domain of linux-kernel+bounces-1646-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1646-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id j28-20020a05620a001c00b007757464e7c7si17121701qki.633.2023.12.15.12.57.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 12:57:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1646-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=4kW0X2uh; spf=pass (google.com: domain of linux-kernel+bounces-1646-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1646-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 0C8CF1C22779 for ; Fri, 15 Dec 2023 20:57:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5F1E447F60; Fri, 15 Dec 2023 20:57:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="4kW0X2uh" X-Original-To: linux-kernel@vger.kernel.org Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 1BC2346554; Fri, 15 Dec 2023 20:56:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1702673818; bh=llzOJtxbkH31ZdRai4uKosxuCv2h8SX3YoPj7mI7JtY=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=4kW0X2uhqogD19NjUBIqkwvrcTnDHeRo2eT4VKcg8nrVYlMVtXeQFz7QLnJS6fNRc jG+6SL6EOqe5B7tG+vwIz9WiEA7wm2g31zNmD+ff3WO45KF5qH4W6KTyZBRvC/qq5O NGqHr5yZ/jJ0Rphill5GVsz8ve5swsoJW7OuZfDdZBa+eakXmSqzndVYYWaywPO5mj O4vRCR4Vf/PID9hCg+euDIPFeoZVPEYOkKTpLBjt7acfgpA80jLC3r4ZBvs9XlTb4z AJkLkF6qJuaoWZy3TMFftwDoV/T3QWuOGLGAQsw3EIgZl9wxPJGMIBGUJRtmhjq+93 Z8ropt8cC3HHQ== Received: from [100.115.223.179] (cola.collaboradmins.com [195.201.22.229]) (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 madrid.collaboradmins.com (Postfix) with ESMTPSA id 4261B3781FD5; Fri, 15 Dec 2023 20:56:56 +0000 (UTC) Message-ID: <491f1a89-aabd-4c38-b33a-a298add1bdb3@collabora.com> Date: Fri, 15 Dec 2023 22:56:54 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 2/9] dt-bindings: net: starfive,jh7110-dwmac: Add JH7100 SoC compatible Content-Language: en-US To: Jessica Clarke Cc: "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 , Hal Feng , Michael Turquette , Stephen Boyd , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Richard Cochran , Giuseppe Cavallaro , netdev@vger.kernel.org, "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML , linux-riscv , linux-clk@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, kernel@collabora.com References: <20231215204050.2296404-1-cristian.ciocaltea@collabora.com> <20231215204050.2296404-3-cristian.ciocaltea@collabora.com> From: Cristian Ciocaltea In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 12/15/23 22:47, Jessica Clarke wrote: > On 15 Dec 2023, at 20:40, Cristian Ciocaltea wrote: >> >> The Synopsys DesignWare MAC found on StarFive JH7100 SoC is mostly >> similar to the newer JH7110, but it requires only two interrupts and a >> single reset line, which is 'ahb' instead of the commonly used >> 'stmmaceth'. >> >> Since the common binding 'snps,dwmac' allows selecting 'ahb' only in >> conjunction with 'stmmaceth', extend the logic to also permit exclusive >> usage of the 'ahb' reset name. This ensures the following use cases are >> supported: >> >> JH7110: reset-names = "stmmaceth", "ahb"; >> JH7100: reset-names = "ahb"; >> other: reset-names = "stmmaceth"; >> >> Also note the need to use a different dwmac fallback, as v5.20 applies >> to JH7110 only, while JH7100 relies on v3.7x. >> >> Signed-off-by: Cristian Ciocaltea >> --- >> .../devicetree/bindings/net/snps,dwmac.yaml | 3 +- >> .../bindings/net/starfive,jh7110-dwmac.yaml | 74 +++++++++++++------ >> 2 files changed, 55 insertions(+), 22 deletions(-) >> >> diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml >> index 5c2769dc689a..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: >> @@ -146,7 +147,7 @@ properties: >> reset-names: >> minItems: 1 >> items: >> - - const: stmmaceth >> + - enum: [stmmaceth, ahb] >> - const: ahb > > I’m not so well-versed in the YAML bindings, but would this not allow > reset-names = "ahb", "ahb"? Yes, as I already pointed out in [1], I wasn't able to come up with a proper solution to avoid that. Thanks, Cristian > Jess >