Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp630805rdb; Thu, 18 Jan 2024 14:01:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IF/9ulK5GpPpqPnT29omvs5QlHA5+frZEoalM9YArkZ9o9Wt3JQJiFitVnwXCg0m43mh2VD X-Received: by 2002:a05:620a:3847:b0:783:4037:1923 with SMTP id po7-20020a05620a384700b0078340371923mr301931qkn.64.1705615282742; Thu, 18 Jan 2024 14:01:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705615282; cv=pass; d=google.com; s=arc-20160816; b=CIHN5gsQy4K66mfYX7kineE6MhYu/HXWgnAlulA8HhsFW8apA9igkkIiyy1pgKyDbU 5WxDy5k8YDTzV7Cw3EOqiYKWaC0HECmwfKmUnDSXtvxEK7FCNoMqTirNKbq9MvVPTBwj e8GYBnBqQAbwgMexUNmP3rr76c9TByOBKobsEyAkcA81PMsXgcebNr23dIzoXHUj/ILQ IZQD9TAB5RqKISurEx8jj39NekupictTwEvbPFIO+9mA406e4WsSxsO4Ojy+CrVvGvSD Uo3VfW7G47YYTEPqSRE06lj48gTKodqaC5pmXcMKm+s077Glb+dj7g9HYijHxMfnaiPm JhfA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:ui-outboundreport:references:in-reply-to :sensitivity:importance:date:subject:cc:to:from:message-id :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=rBbx+Wt6S1feccAtybOjt8GIthdRGefgaPTWcRnjuIQ=; fh=XLtAJfEB/3vqyUdOzoiCiWUlBngjwQyYEAZVMFa1RRI=; b=Fc3YpMvxZs1oUuwAm/18llyNlVJqsrOR3ZVRN2GXKxsZwE0NqMK26hN+awpSIpHHek AefPoAxsctnx0ptES2artOjreXEsLPAVqV4fbZtyjTNW2BCOmnMG3b9WqhjBOYI+1P+J xF4d8pRVNcZCMqNryVMhB/Pb1ny4l+GDIAtToil4R4t42G9jUbcDvCd2iwhzQu/udxD7 mjrMfKattzcM/HTvN7X06QGItgmlodmYEFIiMOUUlHtYfl/ScpRGJCyiZAlWZgLWkFev itX1hgh/Ss4YhZhMuNXXcNHm5sLt9CVfhMqrNK5lAYCHpBldw1vvc/4nsPSGav361URJ VNOA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@public-files.de header.s=s31663417 header.b=SNygzZwl; arc=pass (i=1 spf=pass spfdomain=public-files.de dkim=pass dkdomain=public-files.de dmarc=pass fromdomain=public-files.de); spf=pass (google.com: domain of linux-kernel+bounces-30589-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30589-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=public-files.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id dz26-20020a05620a2b9a00b00783044d1e01si15451391qkb.8.2024.01.18.14.01.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 14:01:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-30589-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@public-files.de header.s=s31663417 header.b=SNygzZwl; arc=pass (i=1 spf=pass spfdomain=public-files.de dkim=pass dkdomain=public-files.de dmarc=pass fromdomain=public-files.de); spf=pass (google.com: domain of linux-kernel+bounces-30589-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30589-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=public-files.de 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 C90591C2538C for ; Thu, 18 Jan 2024 22:00:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F05DB31A6F; Thu, 18 Jan 2024 22:00:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=public-files.de header.i=frank-w@public-files.de header.b="SNygzZwl" Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (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 E460F2E848; Thu, 18 Jan 2024 22:00:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.227.17.20 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705615225; cv=none; b=AM38J6gQvGzdqSptVER+eQHj+M1nDgFKmJzcNRu6y6vCDt9n+muAfGppZOWQuEFRM6hIlP+M/G9wZ6b1I8u1M7m+JMk9BKEWs0FLjyrXFeFyheAbu8Xdw9TYAAdhkShaPAVqePlebFj6w9k3dW4IM0jZdQC1IKEgn3tUpzwqnLc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705615225; c=relaxed/simple; bh=wLvsv08eBZtYU7ZaISCpiqBuWqPFTTvXPV3fWg3VUvE=; h=MIME-Version:Message-ID:From:To:Cc:Subject:Content-Type:Date: In-Reply-To:References; b=lvDJxyU9HM6+fdVtRvQo6+oxCZiuedCRNgase7XSvxTwsUKfgaFa/1uo5eJWAzPRKBURFNG/rzCeTOhzWwLFOLFZ6sudaKKJhweynEn8B8SRP/qx4//VfFzZLihrUcmfFGxOGs9zt9wvLokKN6GvGGftTqer32u5tmbYFBqbEGE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=public-files.de; spf=pass smtp.mailfrom=public-files.de; dkim=pass (2048-bit key) header.d=public-files.de header.i=frank-w@public-files.de header.b=SNygzZwl; arc=none smtp.client-ip=212.227.17.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=public-files.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=public-files.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=public-files.de; s=s31663417; t=1705615201; x=1706220001; i=frank-w@public-files.de; bh=wLvsv08eBZtYU7ZaISCpiqBuWqPFTTvXPV3fWg3VUvE=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To: References; b=SNygzZwl8NfRCJswcMPa1qVnqtVMkWjHZFA8tBNg4DXhCdz2eroL9vQ3dbkRQ/Ni aj7x406MCWWHhVcekTs/Ba8hCs6VsigS3bFLa1UwnMyk9lZb7ZHDs6OflttwxQZJ1 nvMcMdnSzcOJUDp64TZx7g1ThNYgkiRnReat+IQ/bbSTQiwLese2F6/Yy4n6AfZqu gmhRIf+u9XOcljJqD2OF1TUDfuqTQTlfbriHhNvPkS7AOI+kzGMjt/mwM4/X2Rfu6 c1yQPaB5n2/OnV+dJphPqXqt3kLdC6X8XD+PmvnlPO3LY2ljEiGTyAe+HAgqvQqHx Ir5lZe60hBiIPyD3DQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [217.61.159.198] ([217.61.159.198]) by web-mail.gmx.net (3c-app-gmx-bap21.server.lan [172.19.172.91]) (via HTTP); Thu, 18 Jan 2024 23:00:00 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: From: Frank Wunderlich To: Conor Dooley , AngeloGioacchino Del Regno Cc: Frank Wunderlich , Michael Turquette , Stephen Boyd , Matthias Brugger , Philipp Zabel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sam Shih , Daniel Golle , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: Aw: Re: [PATCH v3 1/2] dt-bindings: reset: mediatek: add MT7988 reset IDs Content-Type: text/plain; charset=UTF-8 Date: Thu, 18 Jan 2024 23:00:00 +0100 Importance: normal Sensitivity: Normal In-Reply-To: <20240118-calcium-krypton-3c787b8d1912@spud> References: <20240117184111.62371-1-linux@fw-web.de> <20240117184111.62371-2-linux@fw-web.de> <20240118-calcium-krypton-3c787b8d1912@spud> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:i7cKlr7pbBOeeo2MJju4eygi1kMNVyLIp+PFrgFTenIkemr6mJ/6zZ1a/Lg1H9bvFTdMp TI7kGYsJ+UQM26RzgcW7nABwCLt3D1kj+LOIj9a0Cq6nZrtefigXaCJBaeV3x/mcPy6KsMB7kXU9 dM0jDKxM9ibIjtGnclsOb0Mqoog2SEyR9Cko1fqakeMUdslD4rpxVB2ypJfppjPFxuXFdFYGPzQP 6O3N8pLs7UnnLzru6iS1jFdOxB0t/+rjiqYhxiD96PppyYlpd6CUzg/T4yYBP9pq3BNDAGSOm9e5 ik= X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:Gzu+rTj6VvA=;AFUqbzs2KLld0OIuq1bzMhSKPgl Kd7wJWth+9/ff1+bN2OyVvlJR0rjHQ7GcdSOu5Gg2jgh331Cni4J64RQFLkLC/EaHwzxmS2Uz XL44FMFv8vE4oCmSOzKtD24Nr1ISiK9JraRdcY5PZPfIDv122vBbvsk3DHmEjbM+q9fjkMb+q YmREoZ5tY3k9jH3P9QMpN3UYxARaUzCezNsWzSsRDitvRXFPI9fyn9SYTqT9tRfC1Uh9cnCyW m6plg3l/HV2u/4ItKFKwD/yX8o6kNWsy6th/2u0qO4+EDzy7hMz96zo4kkzFTzjzPdATfYYG/ CcQ65Cxeo/Q3IDz/NmtvkpGq7/d+hIR3pNHpweLsy50DWTic+PHXlQ+wc4c3JxdIY/+eJgar9 9dSDWS6xBkRSUzCX26dPWzEowUPPaKtAPl0kkQY9BLoXZmlM1LuzV3oHW0TpGiPXsVR6bPWw+ nhxlc2CGClYR2an6957v3MOMdYtqbNnanhl79XeoEMFIqgqHYiDPrO834OqDPg4AM6b6qIVF1 WR7gsIYRWrdXsS+lhb/FHdIOt+wwG8hBHQ6ihMBrnrUSgm8xTWHEJM+v6a4U3ZQYLeQPEUJn7 omzxu8D1RDFlLgxRO9viMu0N/xh0Qr9W2niMCedv4y4VEjFJMhxK+ygXRKjwzastXE3TYNJea WlA+RXaGs7BDFDEXjBV1DJDzATdgGqXq8AnOW9CtWyrrirW9TJpTV0IRbj6No/L8d5pqf01oj E8+0bhGoBMcdz8f6cL6gqxMCoGGAH1tVzG9IlVljibVUcGPRy8IhPXyxK5yFok+EerEmSq2tL b5i84Et/qC1kETeXvhxKK7ew== Content-Transfer-Encoding: quoted-printable > Gesendet: Donnerstag, 18. Januar 2024 um 17:49 Uhr > Von: "Conor Dooley" > On Wed, Jan 17, 2024 at 07:41:10PM +0100, Frank Wunderlich wrote: > > From: Frank Wunderlich > > > > Add reset constants for using as index in driver and dts. > > > > Signed-off-by: Frank Wunderlich > > --- > > v3: > > - add pcie reset id as suggested by angelo > > > > v2: > > - add missing commit message and SoB > > - change value of infrareset to 0 > > --- > > include/dt-bindings/reset/mediatek,mt7988-resets.h | 6 ++++++ > > 1 file changed, 6 insertions(+) > > > > diff --git a/include/dt-bindings/reset/mediatek,mt7988-resets.h b/incl= ude/dt-bindings/reset/mediatek,mt7988-resets.h > > index 493301971367..0eb152889a89 100644 > > --- a/include/dt-bindings/reset/mediatek,mt7988-resets.h > > +++ b/include/dt-bindings/reset/mediatek,mt7988-resets.h > > @@ -10,4 +10,10 @@ > > /* ETHWARP resets */ > > #define MT7988_ETHWARP_RST_SWITCH 0 > > > > +/* INFRA resets */ > > +#define MT7988_INFRA_RST0_PEXTP_MAC_SWRST 0 > > +#define MT7988_INFRA_RST1_THERM_CTRL_SWRST 1 > > These are just "random" numbers, why not continue the numbering from the > ETHWARP? i can do...basicly these consts are used in DTS and driver only as index. @angelo what do you think? I though also in leaving some space to allow gr= ouping RST0 and RST1 when more consts are added, else the numbers are mixed up. so e.g. let RST0 start at 20 and RST1 at 40 (or even higher, because RST0 = and RST1 can have up to 32 resets). That will allow adding more reset constants between my values and having r= aising numbers. regards Frank