From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.178 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795633741; b=LOMeVbSOokn6tk/iqmaigSwUkthZVgwhVVzW1d3oXFSC5YUN9c1kAibVJyXFKla6Cv86 /ahdho8vW6+uxXcka2C5jEWuCqRgm75SK6nC/Jjkj1vLDfTmRe/iPEx0MErDXEyYkGaK0 f110CQf6smDd6EO0+mXLLu94x1WStdYkjKmW71TrJjj4XXic5N9NdO00kt80E4oFe7ZgP 2XGH8RoG1gIeeBP47BRfwZh6jyYrTOZWEWZWEIDEt1WbSzLHMY0iIaRj48NM+DDDbPSOc nUIJuheOo/MU5WMeAkjxnQZ05LBXOBWyBldoc+EU4Ddl2GDsVqmeYnDF5ZaI29FVvOA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795633741; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; bh=sUl61wz2FooKjKoGfr6HcICrxyIas91AkAkxcmRZVuk=; b=FsziQFAUFpns+8JqfQpNkxCXWVHO7lm/5vTfifeHhM8B7+RrZaU4QO0I45WlO1XYz9ZK 2+SWCg0u5MYkDtYL6Odm0nOvI/LLzxDC27D+ELYGFX3kwo3oVeEq4i9cW01RIKDjb3HoU m/c8XRJDIvUoaLNnCsezZLBJWSUTc0BcCAiBtp1cAUSSQ4U2X/tY7pBY17Vs0cPoU2mao 7e6Dzh50t4FKjbbrkQws0xAwrvAeGI9Yyg1xS1VtI+ZW+qOr4J0kjzFBm0/KENcPEXXfa EpCMXjjQjJjUDeSy7aF9z4lPBgrgzwWN+rnTieebmZxUx5uxsGaLC3Td3uS61cbeN8Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=IIhBqlbW; arc=none smtp.remote-ip=74.125.82.178 Received: from mail-dy1-f178.google.com (mail-dy1-f178.google.com [74.125.82.178]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F3F69606A321 for ; Wed, 25 Nov 2026 19:08:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org F3F69606A321 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=IIhBqlbW Received: by mail-dy1-f178.google.com with SMTP id 5a478bee46e88-386cf1041cdso2048807eec.0 for ; Wed, 25 Nov 2026 11:08:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1795633739; x=1796238539; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=sUl61wz2FooKjKoGfr6HcICrxyIas91AkAkxcmRZVuk=; b=IIhBqlbWbrprmxMZ+kWojREY0lc0WTXHSKBAg6UU/UXHe1Cnkm2qyYNQdRGc51qR0a 2pYUF3yT5QTuVLqTA2AxB9OD6cZy2UZg0W3D5M2AuJwlpxuiBSy7SBnJetpNQNpU20uB fcUaQhiKZCVdLEj4zfd5cEMWGKjDXRdy1MJ20= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795633739; x=1796238539; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=sUl61wz2FooKjKoGfr6HcICrxyIas91AkAkxcmRZVuk=; b=PUMfqnqR8gr83JQvXW8ifd5+dKnXHC7qmr88MylDHo0wRr53NxG0wjrdOH7H7D2USW ymiGKSZenwQRHKFV/9XDMjUgHFUCp1vkyLW0UNGXzruvECivUfU3Nr0Vzh011poejBCZ z9y+TpdKEavQfe2baWOl/aenkUVmUg6hGzeKY2jG1go2cz82xFie2Da59eWCycCKqRBn lJ/jUXAWzXZuTQ4qHt0hhrA/mg8Q1dRYmsJS21NIb0m8/7c9PIqLHGR1iUMMswme5T07 38YD73EGnlvLT77bh+ftpM2hZExVL2voCcQsaBP6V7ogJGSgHsxXGIwm4jHsHgWQzh+M bPpg== X-Forwarded-Encrypted: i=1; AL+hErHZn0zlbtPCWr9Y37PatzMPnyOZ6q3tXqGtUROpc8fRHIW+YQcd4JodvBoUMLrO+huCZkMswMtR8vid@vger.kernel.org X-Gm-Message-State: APuU4Z/LdRbzy3+9l/3+MO5EuQGMtqvzVaTVneOoz8ZUrMX6rdlD0N2x v+tOFO8uOkkwSKXIbq3GEni0tYG7oEQTv2eiNKkX8AZWEg1+MwZqJAQluewZOds4sg== X-Gm-Gg: AZFdTZdLfvLU211rIFE7b8F4/Yuy02fL3GxsfuPjEZ01P7IrF/9ovXowPglSDp2r21s 6/IQeX7S0IwnLC4NafnYpO2U83akNVqKS6vZBNkvu2tf980xK+soattcLRVRwwE0xgXvBeFrFRT 3xWYWHfu/s0ltK9KRMFgWVyDawpw8QCQC0aqfYDxctreQrrZkk7xpke6JKIX6dZEdWH8KIABDzv fv0VY5F+XNwPRnVd92NC5/JgnQMuQaZh7S3AwRfebq4LqtDPOHNlj2HwO53hEsMAi6bL/taLICH DD4pTmJ32nzYo2ErzIkRs0mHIWtPNooTbGjhG1VkM7dGJF4vb3nbt2zMq95aXejGtRJyOyLwXZn 5qCydbgUenCwUMC/7icrxniNKRQe81XXK06xOlMsGhFjsp9E/f47eNoDahGTxbUgjtvGWgTvJ5M QzAC3D+Lzq9/+3WnT1T/twceYEYjtVl7vTFThB6scs/xHQvlZ6C9zdAJGYyZIRvd77r+PU4ky0m zNjQZy9qh+1bQUzCx9xXjeq3cU9c4emA6XFeqGfIcSwKGgYJk8SmTAMjNwGQURdo8/SYfheeGZ8 y+S/O3BEVXqGRDQjwHV2bGiA7+E6EjgxUw0lFh9NgjuOPdPF8F/Fk37XmfNySvBskGc= X-Received: by 2002:a05:693c:87d6:20b0:386:bc19:6a30 with SMTP id 5a478bee46e88-386bc196d10mr7852852eec.20.1795633739073; Wed, 25 Nov 2026 11:08:59 -0800 (PST) Received: from localhost ([2a00:79e0:2e7c:8:d0a2:f616:6ba:a1ce]) by smtp.gmail.com with UTF8SMTPSA id 5a478bee46e88-385665f21aesm68043117eec.4.2026.11.25.11.08.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 25 Nov 2026 11:08:58 -0800 (PST) Date: Wed, 25 Nov 2026 11:08:56 -0800 From: Brian Norris To: Krzysztof Kozlowski Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Stephen Boyd , Brian Masney , Jerome Brunet , Thomas Gleixner , Ulf Hansson , Philipp Zabel , Peter Griffin , devicetree@vger.kernel.org, Tudor Ambarus , =?iso-8859-1?Q?Andr=E9?= Draszik , linux-samsung-soc@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Radu Rendec , linux-arm-kernel@lists.infradead.org, Mariano Marciello , Douglas Anderson , linux-clk@vger.kernel.org, Jakub =?utf-8?B?R8WCb3dhY2tp?= Subject: Re: [PATCH 2/9] dt-bindings: soc: google: Add Google Tensor CPM binding Message-ID: References: <20261026214359.3122870-1-briannorris@chromium.org> <20261026144346.2.Ib692ddd35c1dbea1757d9b1db6c1c7e938fc4ea6@changeid> <20261028-rapid-daffodil-rat-0adc6a@quoll> <72ef7ef8-acc8-4ad5-9c09-76d9e944bf5c@kernel.org> X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <72ef7ef8-acc8-4ad5-9c09-76d9e944bf5c@kernel.org> Hi Krzysztof, On Wed, Nov 25, 2026 at 08:07:57AM +0100, Krzysztof Kozlowski wrote: > On 13/11/2026 02:14, Brian Norris wrote: > > Hi Krzysztof, > > > > On Thu, Nov 05, 2026 at 07:54:22PM +0100, Krzysztof Kozlowski wrote: > >> On 03/11/2026 03:36, Brian Norris wrote: > >>> On Wed, Oct 28, 2026 at 02:19:23PM +0100, Krzysztof Kozlowski wrote: > >>>> On Mon, Oct 26, 2026 at 02:43:40PM -0700, Brian Norris wrote: > >>>>> --- /dev/null > >>>>> +++ b/include/dt-bindings/soc/google,lga-lpcm.h > >>>>> @@ -0,0 +1,54 @@ > >>>>> +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ > >>>>> + > >>>>> +#ifndef __DT_BINDINGS_SOC_GOOGLE_LGA_LPCM_H > >>>>> +#define __DT_BINDINGS_SOC_GOOGLE_LGA_LPCM_H > >>>>> + > >>>>> +/* > >>>>> + * LPCM IDs of each SSWRP. > >>>>> + */ > >>>>> +#define LGA_LPCM_CPM 0 > >>>> > >>>> What are all these? > >>> > >>> The binding doc says: > >>> > >>> Each reset is specified by an LPCM ID (cell 1) and a reset ID (cell 2). > >>> See for LPCM IDs and > >>> for reset IDs. > >>> > >>> and > >>> > >>> Each clock is specified by an LPCM ID (cell 1) and a clock ID (cell > >>> 2). See for LPCM IDs and > >>> for clock IDs. > >>> > >>> These are the IDs used in the firmware interface to talk about these > >>> things, as many of the SoC resources involved (clocks, resets, power > >>> domains) are grouped in this way (by subsystem (SSWRP / LPCM), and then > >>> with indexing within each subsystem). > >>> > >>> In reading again, I see that the definitions and explanation of these > >>> terms and the SoC organization are split a bit between the pmdomain > >>> commit message and the binding doc. Where would you prefer I elaborate > >>> more? In the binding doc, the comments here, or both? > >> > >> I just try to understand their placement. Bindings should not be in the > >> soc directory, except a few things without clear subsystem owner. If > >> this applies for both clocks and resets, maybe this could be firmware, > > > > Maybe firmware, maybe power? LPCM is "Local Power and Clock Manager", > > and I believe there's essentially 1 LPCM (microcontroller) within each > > top-level power domain. > > How does it help you to have LPCM ID in the DTS? It's derivative from > the clock (or could be made derivative)? For the record: in v2, the LPCM ID for clocks *is* made derivative of a single-cell clock binding. More info, in case you had other adjacent non-clock concerns: I settled on dropping LPCM IDs (and other firmware IDs) from the clock binding (and DTS) in v2. And LPCM IDs moved out of include/dt-bindings/ entirely, even for resets. I thought this addressed your feedback (after a few weeks of waiting for further response/clarification) so I sent v2. I'd appreciate a look at whether v2 is more to your liking. LPCM IDs remain in the DTS for resets though (as documentation [1]; but the driver never has to inspect them), because I still think they are the straightforward way to describe resets, and there's much less complexity that might imply any "risk" here (vs clocks or pmdomains). If you look at the v2 reset driver, you see that just like any hardware indices / GIC numbers in typical reset or IRQ drivers, the firmware IDs are a simple address scheme that are passed directly through. If I do the indirection you're asking for, then: 1) I have to add extra indirection tables in the reset driver and 2) the driver will now require per-SoC handling that otherwise is not required. I see you had a separate semi-related question that gained its own sub-thread. I'll reply to that separately. Brian [1] Aligned with Chen-Yu's suggestion: https://lore.kernel.org/all/CAGXv+5G5z75HGP8nv_i_nwEeSd3qkvyL_h_MYzV_XPT9BpR4jg@mail.gmail.com/