Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7874950rdb; Thu, 4 Jan 2024 10:15:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IG+eslm7z/YccyocyAefGRMQJIc43G4Ahsf0GYA/E11Yt+3i0cTk+PVZmGGsABq+jjSeLmQ X-Received: by 2002:a50:c251:0:b0:557:e5f:8bbd with SMTP id t17-20020a50c251000000b005570e5f8bbdmr251558edf.35.1704392120157; Thu, 04 Jan 2024 10:15:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704392120; cv=none; d=google.com; s=arc-20160816; b=VKL32uhyvHe6I1hmtNnF05+9YIupIX56L+xCp2HYJbl5aQ91OKYQkXWIZHorH08Ldr k1otZ/DRZSMO2mhEO3GuUSTTyICU1TSFz4FSuXjgBrD39gsDrOiO4lRyb+CZ852LMRIt BbCeBG/uwaoqo9XDr0fefE7N6qtQPFM5NjL+euXrEHYgMTiiZ4k+o0OjU7g4XPcjyaMH drkuegzq8agwNLAp7cdXX20RKPp1sU4HZC8rGQGDvJ8i9AUbIbmtRFZt4LzxuENPnmZ2 2i7s1I92sx8uo2FwizLvfeRlGKqGJ0S4DcwQnkPCcdklI+SEBKgz8xRIi+4l0R1PpAUn uVoQ== 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; bh=4cK395isGrAma+OOXpsB9bl6jtmaMPzcERJWwriy8w4=; fh=R4RmuUjjJ5ssHr2a3zZxkQtFQvRtEDWJgA5YbC6ZXJM=; b=i02RLfBznA4/atOs1SE2CoUFVV/vsYJWK2wTgQ+pO2uCW74sgRhIW9SV21t8AU7VIO FxMrMCmHD3qmyuwXp2rtlLMGbgOZhzx/pkUa64MQUDygYwUZ85fExe0X21Mr62XeZG9y do2aZU5fMvHhbHcVm/Uu9okVoVfV2vKSK+F1r9zAuX2qGfSvzvpmY6qBT0aWrg8QWkVt nb7wG//K7X5V3p2TUASODuEoREBY3Xc0MxKccSvYa3+HyRJlurXi71qEYYGBnu4k5pmT 6YueAEIO+7OXtuppidPX9EhmxeguNJ+s8j3rk6cmbhMpcgI8XEDZPbNrhE4WSBNuK+r7 V7cQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-17078-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17078-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id q9-20020a50cc89000000b00554aff4ddfesi10487122edi.203.2024.01.04.10.15.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 10:15:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-17078-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-17078-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17078-linux.lists.archive=gmail.com@vger.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 am.mirrors.kernel.org (Postfix) with ESMTPS id DD9E41F22D38 for ; Thu, 4 Jan 2024 18:15:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F2F2528DDB; Thu, 4 Jan 2024 18:15:11 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) (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 C406E28DBF; Thu, 4 Jan 2024 18:15:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=makrotopia.org Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96.2) (envelope-from ) id 1rLSEx-0003UN-12; Thu, 04 Jan 2024 18:14:48 +0000 Date: Thu, 4 Jan 2024 19:12:10 +0100 From: Daniel Golle To: Frank Wunderlich Cc: linux-mediatek@lists.infradead.org, Frank Wunderlich , Michael Turquette , Stephen Boyd , Matthias Brugger , AngeloGioacchino Del Regno , Philipp Zabel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sam Shih , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Subject: Re: [PATCH 1/2] dt-bindings: reset: mediatek: add MT7988 LVTS reset ID Message-ID: References: <20240104173930.13907-1-linux@fw-web.de> <20240104173930.13907-2-linux@fw-web.de> 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: <20240104173930.13907-2-linux@fw-web.de> Hi Frank, On Thu, Jan 04, 2024 at 06:39:29PM +0100, Frank Wunderlich wrote: > From: Frank Wunderlich > > --- > include/dt-bindings/reset/mediatek,mt7988-resets.h | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/include/dt-bindings/reset/mediatek,mt7988-resets.h b/include/dt-bindings/reset/mediatek,mt7988-resets.h > index 493301971367..3f1e4ec07ad5 100644 > --- a/include/dt-bindings/reset/mediatek,mt7988-resets.h > +++ b/include/dt-bindings/reset/mediatek,mt7988-resets.h > @@ -10,4 +10,8 @@ > /* ETHWARP resets */ > #define MT7988_ETHWARP_RST_SWITCH 0 > > +/* INFRA resets */ > +#define MT7988_INFRA_RST0_THERM_CTRL_SWRST 9 I suppose this argument applies here as well: "IDs should start from 0 or 1 and increment by 1. If these are not IDs, then you do not need them in the bindings." https://lore.kernel.org/all/59629ec1-cc0c-4c5a-87cc-ea30d64ec191@linaro.org/ As a consequence, as what you are describing there are hardware bits rather than IDs used by the driver, you can just use a numeric constant in device tree instead of adding dt-bindings header. Or change the driver so RST0_THERM_CTRL_SWRST could be defined as 0.