Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp86304rdd; Mon, 8 Jan 2024 19:08:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IHwpVps4ag7wXFeJS14NvWWyIpQ2uecyGlMGZhRozWq/31seFLfE/BSvp49iZmi14k377CV X-Received: by 2002:ad4:5c4b:0:b0:67f:4cf9:c9f6 with SMTP id a11-20020ad45c4b000000b0067f4cf9c9f6mr6427043qva.50.1704769734362; Mon, 08 Jan 2024 19:08:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704769734; cv=none; d=google.com; s=arc-20160816; b=kDmnmwFIE19OPw7SwQzE/x2aqz6wXyqBlNl0G7hxv7t+TyHkE3Y75K4ELQuP2dbLNA SjPMs36tFg19InL1233SRClGBpHuXzjYf4hQ9WXbA6HHVtnT+04sjH+hZDMJ0G2+bkfL 81LyydiGqpSFpE6ObdaB2EKief2OqloVTgCyB/Ac7Vf3CdyC7s3AATHuc0WJyNLclW+2 pgh/N8J5GvI31cH+PmUx4pP6Tq8Fu+2/Dfpi+E5aXpcE1eME6k6F0F5Ct3gROuRhKZSQ rIdAx17uTaubBuip/dh5grHd4jPLbeQYMKIzcoXuWQ59DPUBbbCQWD7VTeNjP0KHP7HR 3xyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=AQwKo1lKZ6wF+EzIOx+wV6Lu2tU82BSInPo/4IOj+PA=; fh=vXU9b1/5zqCIqnh5fBRb9Pf1OhGBovXnVslkNt5J99I=; b=ZUWCk5GOePtWRZz1WJt9Cy81vak1XTD5/fRcrcr//UUhxfmrZBC8uJRovxF5bLx9Pp nkDFeUUh75KjR8mVEw9kOQ7/dRFEqVRCXVv3pTIiqDfYYFtw7mS6roz8nJ+FxpyASgjG E+2Pw/IrluON0wVsxWoyDTjazyMvFCqKt1a/lPhM5Q47h/8S3W4vrnu4V+XXqxKvxVnD Sj4ZJmSc/CPqo8deJ6Vz5fDv2pWAzJpXEZ4+CiGCv5urUZUP7hP5rsCOoFRqVHjR4jkC f2m8gfY0/V9adLMsQKgaUXfyAnJ1VMVkxIR45wUwN5Puyjie9KO5fU9dvL32+nmwd7kx w7cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="cWF/8z7g"; spf=pass (google.com: domain of linux-kernel+bounces-20317-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20317-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id z20-20020a0cf014000000b0067f9d0c7fedsi1429856qvk.360.2024.01.08.19.08.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 19:08:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20317-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=@kernel.org header.s=k20201202 header.b="cWF/8z7g"; spf=pass (google.com: domain of linux-kernel+bounces-20317-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20317-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 236F61C23504 for ; Tue, 9 Jan 2024 03:08:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5AC94443D; Tue, 9 Jan 2024 03:08:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="cWF/8z7g" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 82C2C28F5; Tue, 9 Jan 2024 03:08:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E5EC1C43390; Tue, 9 Jan 2024 03:08:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704769722; bh=X7kLVVcgvRdRs5HuITPBpohSYBsG52ZbQ+d0igx0eEI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cWF/8z7gvhelK5fSDl6ViLjJPYNYtDbFAc8ELim8A8FX7vyieyQNDAnNCvQG89/wX kX8dhcDPob67N9nBWsmfXToLZ6UZYrblaARW/qxu3cAaTe13iPiiD2BQ4M3EefPCCj X4mEFCRxdpGg67nJc7Oe8jRLaF2a4JGv9zjOBv7kVCMiHWaF2L19/nSvqqw79IJf+2 KOQ4ff9CejwvUR85cmPF+m+lZH1ywGaNBOjAl1yLPGDBlslWTyEtac5CwAVNMLVvrB qNv31l+35GFN0t0yfNaVk9tGZYi37irlAC9d9goP8himHObfAf0o+LDuWKfHWvMCmH NeyatUY26gaiA== Received: (nullmailer pid 2468474 invoked by uid 1000); Tue, 09 Jan 2024 03:08:40 -0000 Date: Mon, 8 Jan 2024 20:08:40 -0700 From: Rob Herring To: Cristian Ciocaltea Cc: Paolo Abeni , Emil Renner Berthing , devicetree@vger.kernel.org, Alexandre Torgue , Krzysztof Kozlowski , netdev@vger.kernel.org, Andrew Lunn , Giuseppe Cavallaro , linux-kernel@vger.kernel.org, Rob Herring , "David S. Miller" , Eric Dumazet , linux-stm32@st-md-mailman.stormreply.com, Jose Abreu , Conor Dooley , Jakub Kicinski , Samin Guo , linux-arm-kernel@lists.infradead.org, Jacob Keller , Maxime Coquelin , kernel@collabora.com Subject: Re: [PATCH v3 1/2] dt-bindings: net: starfive,jh7110-dwmac: Add JH7100 SoC compatible Message-ID: <170476971804.2467890.1994452217560064962.robh@kernel.org> References: <20231222101001.2541758-1-cristian.ciocaltea@collabora.com> <20231222101001.2541758-2-cristian.ciocaltea@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231222101001.2541758-2-cristian.ciocaltea@collabora.com> On Fri, 22 Dec 2023 12:09:59 +0200, 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. > > Additionally, drop the reset description items from top-level binding as > they are already provided by the included snps,dwmac schema. > > Signed-off-by: Cristian Ciocaltea > Reviewed-by: Jacob Keller > --- > .../devicetree/bindings/net/snps,dwmac.yaml | 11 +-- > .../bindings/net/starfive,jh7110-dwmac.yaml | 72 +++++++++++++------ > 2 files changed, 57 insertions(+), 26 deletions(-) > Reviewed-by: Rob Herring