From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (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 D4838213E72 for ; Thu, 13 Feb 2025 10:22:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739442141; cv=none; b=Z5SBHp8ayt235pogkgvr/8mbu5d9yq5hVyLpRIbheNA8vV8O4XyEPMBjrR+2viO6f7FzdqCAL8QlgL03nLcF/cBMLJ9NoZW5sh0z9DHH2aqVFFpYgHG7jyEsW42Qvy46oLgM/nzXMSQzNLWgbRR4gdzu3LPIdsbr/tzH9c3zjGU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739442141; c=relaxed/simple; bh=p+GnX/qBn0tmrY1mpd3KjfQNTyibWtkyaubFDEJRmsI=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=E+uzR0jsjpHZNwTVYQRfLIpjM0KkFTnrGXJQYFNoYg/CTyWD20oC8NU5mFH+NghJ+p52vCj5HpwKsQuyuB4+ZTk09gexB/s8mlL0y6OvFHezSbfJRvf2MIOOx3f09ggCkKAVsOCrC4CM7oVOOB9ZBkRFd8lKl8bhfvknlvZcw6w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tiWMC-0000vH-7c; Thu, 13 Feb 2025 11:22:08 +0100 Received: from lupine.office.stw.pengutronix.de ([2a0a:edc0:0:900:1d::4e] helo=lupine) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tiWMB-000jZp-2V; Thu, 13 Feb 2025 11:22:07 +0100 Received: from pza by lupine with local (Exim 4.96) (envelope-from ) id 1tiWMB-0003C6-2H; Thu, 13 Feb 2025 11:22:07 +0100 Message-ID: <619128481807b279e5d3b7967b00e7f094dae7ba.camel@pengutronix.de> Subject: Re: [PATCH 1/4] dt-bindings: reset: add generic bit reset controller From: Philipp Zabel To: Krzysztof Kozlowski , Inochi Amaoto Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen Wang , Paul Walmsley , Palmer Dabbelt , Albert Ou , Guo Ren , Uwe =?ISO-8859-1?Q?Kleine-K=F6nig?= , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, sophgo@lists.linux.dev, linux-riscv@lists.infradead.org, Yixun Lan , Longbin Li Date: Thu, 13 Feb 2025 11:22:07 +0100 In-Reply-To: <20250213-cordial-elated-grebe-57aaae@krzk-bin> References: <20250213020900.745551-1-inochiama@gmail.com> <20250213020900.745551-2-inochiama@gmail.com> <20250213-cordial-elated-grebe-57aaae@krzk-bin> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4-2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: p.zabel@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org On Do, 2025-02-13 at 10:35 +0100, Krzysztof Kozlowski wrote: > On Thu, Feb 13, 2025 at 10:08:54AM +0800, Inochi Amaoto wrote: > > Some SoCs from Aspeed, Allwinner, Sophgo and Synopsys have > > a simple reset controller by toggling bit. It is a hard time > > for each device to add its own compatible to the driver. > > Since this device share a common design, it is possible to > > add a common device to reduce these unnecessary change. >=20 > SoC components are rarely that simple and even if it is just a bit, > usually it is part of one or few registers. Yes, in those cases (which are probably most of them), I would argue this binding doesn't really fit. > Anyway, there are already bindings for reset-simple and I do not > understand why this has to be duplicated. I think the motivation is to not have to add a new binding document and modify reset-simple.c every time there is a new SoC. I wonder if some of this can be mitigated by adding just the binding document similar to trivial-devices.yaml, without the actual "reset-simple" compatible. >=20 regards Philipp