Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6953021rdb; Fri, 15 Dec 2023 13:00:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IFPVZ0Hup0tnGSqv1ShQAntGjQ1fLpXCShVCZSpXH38SA0grr65ESS5jQqTLQSLbI8O2Qc9 X-Received: by 2002:a0c:ff29:0:b0:67e:d672:5942 with SMTP id x9-20020a0cff29000000b0067ed6725942mr8938902qvt.89.1702674017303; Fri, 15 Dec 2023 13:00:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702674017; cv=none; d=google.com; s=arc-20160816; b=sQfJuVT0n4XofdhQuyoirhibpHp2m6G3hTOejy5w/NgNfnsJs+WKsbyBAO/UkEZAgc rKLhPKtsaawhRNvoY6J93hzRNMpzmqpvr4h+WCQNBBvPRsGOj3TSpO5x0HQw4FMQ81FE X4L2mzy3SPtezoIyPlQZ45rSrLTX53NSFhDwSHH8lzYprqnqYVPWF9DwD2xy1hRytGGF 2IZvYxeXJUkQ7MCKjO4ZO15SYxHJxrJajX4InDs0Su/yES8E+Uf2ExyMptTmu3TZDEov TQ5ARfZJsmyOfWVA6ur/1tTmCHd6nU2Y28PmlRvoXOkqBFE+cJDbBSGZL2LFHwTly/u6 +2gA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=gl0rTiYA2Gv6EDIq3NUtsAknQdIrbYxzONVNoXH5eNM=; fh=DHsehMYi9JpMrM8jyQrdCpdhabHlMFsog/l3cNfDHkg=; b=yEbJfr8KRjQi7Q0VDNS0Z6i8k8l/D+jYCIMPRnQI2qtKPvSfb+15lDoAptl6kY05+Q rVr3kwsXWhp0fhhW5a8nZDnE9cLlTl7XDcIQqgwaNnK8HLg46uTI913D5nZbQxuFBEHC A1qm7IiZIWI19FDkxY+20Hy2PKoP0TS2XkUlykBMdexm01ft2MXb3fN4TazmAO24AeHj pI3L8680CBZ4WqYp14TKg9a5SE5GJLz3Qr0BSR4oqyxLx/sXUr97MTZysNPKfTTbFh9v AfQxxGyS+p7D5JZF6fkTtaSOpq/YrJCVzcnKHMpKGhCt6vAng8ScWhpIaR9Sw2Y3UUm7 D3fQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=STVO7dLP; spf=pass (google.com: domain of linux-kernel+bounces-1648-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1648-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 e26-20020a0cb45a000000b0067a961161bbsi5365263qvf.531.2023.12.15.13.00.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 13:00:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1648-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=STVO7dLP; spf=pass (google.com: domain of linux-kernel+bounces-1648-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1648-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 13ECC1C21243 for ; Fri, 15 Dec 2023 21:00:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 71E7447F53; Fri, 15 Dec 2023 21:00:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="STVO7dLP" 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 4842630120; Fri, 15 Dec 2023 21:00:04 +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=1702674002; bh=XmjdsnypmM0sVMOODNg7bU4x4gIm/6EultPACYo535g=; h=Date:Subject:From:To:Cc:References:In-Reply-To:From; b=STVO7dLPIsVi6rpyepTxq9ZaRTHmDDoUxqtPx0GKDDsoI6kKYuT5kVY9Ej1rdZ31z 7skxZyTGnWDhXRx3ivcTrWcTn9pS4jn15bf5IuuHF7TKOhf7CjaCQAsFLUqgG+OQw3 TmbB7SYbpCKErLSC8pj0EX7CX9QLnILzsRBE/ohiUJbIFE1IMg/cjGBGPtPajrXG4f sNECYsMCQOlfv1P7YiowMjwE7S+4WEgZ3Ta/BBENvi3lzY5/pUGpbmzJcRRt17LLTu pvJjE5GpakAoU7lTRzhh1ydC3vC2/ToA4s4IC0aoo60dOSNzUN2jT4plhHgrw2rMwr McF7U6Ymc8nDQ== 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 6EFBA3781FD5; Fri, 15 Dec 2023 21:00:00 +0000 (UTC) Message-ID: Date: Fri, 15 Dec 2023 23:00:00 +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 From: Cristian Ciocaltea 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> <491f1a89-aabd-4c38-b33a-a298add1bdb3@collabora.com> In-Reply-To: <491f1a89-aabd-4c38-b33a-a298add1bdb3@collabora.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 12/15/23 22:56, Cristian Ciocaltea wrote: > 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. Sorry, I've sent the previous email too early.. [1]: https://lore.kernel.org/lkml/564503dd-b779-4e9f-851d-f34d9ea5fa65@collabora.com/ > Thanks, > Cristian > >> Jess >> > > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv