From nobody Mon Feb 9 17:58:22 2026 Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8CA1630F552 for ; Wed, 28 Jan 2026 16:10:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769616660; cv=none; b=fNz4g961GnGUMdwBXvxUpxZTEbgeksmUvbrpG2fBAVWNRw7ZSb4uFMOC8WxgQ9arDnyrv487kf08uxENYJItd+hMaQHNyhCYhMwVPtmib0G9HnPGwXwFWfxtbtux6SOvJYDmBZ2LzUinNRNPVBw4x+91wnQBJ4dCVEZKO90y3Uo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769616660; c=relaxed/simple; bh=wjPITGHpFGOjs4GBxlDoptuom/l/Q78c7MNS9UVGVac=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=nUTpnWL2Z3tlHdUaBmwZG+VE2+pQBtAcLihFwNr8pn4tka6h0nSJ9B5EFwakUl0a3qN5ggOYfl9u/1JmOcS4e1xK6ZcUxwR4LOZLOK2h68z84EANDDPtkCMxjwYyHA/N/N26EmM7g4rWyw6ojNXmjqEmAeMN3+uFeszBnoJIBVM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=z4piCGdm; arc=none smtp.client-ip=209.85.218.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="z4piCGdm" Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-b885e8c6727so215644966b.1 for ; Wed, 28 Jan 2026 08:10:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1769616655; x=1770221455; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=CYVOKvbh+cV5QpKAWjih0XGIXXiGAQB69mHgAD7pq/8=; b=z4piCGdm8kMXQje7iWnuiESnv1MNEkLN6vKf/Z6CJxP2q1h/ziIPp1b93mvG0sxwYh CXUhtJwMKVFOlOO7ZiMfWRZjQT734pAiquV1jK52NyFGP2gsSKScX5FSp0K0JrgFYkmD w0VHaD2cCvPzKD4J7Essgt+UcHKbirud69CRSIUeUoP4Z0qiYK8ZD8HaPDcaDq3laa4h TGDZZP0kw7b/DPf432YoxfKFE7lUE4/kQn9mFgjdaV3UQ34sT4shPlpjUgBMfMl5Etzk KnBKYZiz9wHdH4idzKJZiS9/uwlPOSWUvWDtk0frKy8NFg41IaedeKXeKXGQPYxueHnQ rr5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769616655; x=1770221455; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=CYVOKvbh+cV5QpKAWjih0XGIXXiGAQB69mHgAD7pq/8=; b=BY3pdRvw0fCBK8fvJ3sb6ofmfTz6WUzRwI2AmrrTdHrFXQP5qvT7/LOq9Jr+vyG1TH iiJNg9Bi+VJDXyEkZ81lNPr2t5bg7xAf9reABmST8jL+tQLQ0p6Iup8WoHEC8BRnDoh0 MqAIzUAds6AeB7UHYnfGhvJ8UIra4vcAN57F4UcE5pldtwrsFV3z62IkueHKUF4apCr3 sWIFpujEo1zaVOrXmD8SmftbN7FerST9rL8lE2+trG6YjugxtqJYcG2K5XXAS85AdwUq rcMtSwRvv+jNq+ND579+NgUchqE8EKsJMzHz4s1kwaj2gbofc/5PCKEGNDcgqVQ3amfY YNqg== X-Forwarded-Encrypted: i=1; AJvYcCULMR846yo0SUe9qVD9pg1E5PY2GSXZzs1ttTXilYLGwaRP7jvSYoO2xGK9tkgPE9Qc+teAd6lIyR1TLj4=@vger.kernel.org X-Gm-Message-State: AOJu0YzqXznBaRMt9OEYmVrRE03D+bPfnuDeucJUMB/wa8oq3k2gSTDj cQBI0J+dZQbsgdS8A95QHQnAdwp97O5rFCrJBKV6ZhNfAgzS2SKFFlLrTGoA1JS02eI= X-Gm-Gg: AZuq6aJC+V2XCRwxpewt4ILAXi3kQeKOllSUqybP7dzxTC2hIEapEyG3hniwxjLpnJr 28PdSx/pfrJzKVvR/paoJMJF1ptzUOL8g6UUfBagObtJxfCwtkFlV0KI/E2u7JEjXMMSCQpsdj4 +0uTZ03UZd1aPLvNRSVC53jtC6RsLsQWfcf1e+UmHx3H2XNLD5jzx3nUs9kxWpffWlQYmWJTW8h AIEvlf00CN9MzYH91nwuf93TOwnh3UecfaLzQoSPn0Knd1UCtIXP+ivRAr84uBCa3TrWxUBusm6 XyfRnLbIetfOqvioae4myXONtdbbbrtlbSP+vf4tuWi3L07ulJk2UdPSCfXJgldbjKcey1moxHA 4QoLoTxhDkmdSYzBa/0ONJwtceel7IjgK6Lw+uEj032kaJaLMWwzF2ZBRLnDfpn0/YMCSbSYuSy 0lj8wu2/5uUBz9aydEpOl3u6HnXRsrrS6csy/J93s1hFq74/oRIY7yBDikHpg+oIL4i1o/bpcUb ittoqy4OqNRs4aa X-Received: by 2002:a17:907:3f21:b0:b88:20c0:d37f with SMTP id a640c23a62f3a-b8dac9aacf6mr387798666b.9.1769616655313; Wed, 28 Jan 2026 08:10:55 -0800 (PST) Received: from puffmais2.c.googlers.com (244.175.141.34.bc.googleusercontent.com. [34.141.175.244]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b8dbf1c021fsm148553366b.49.2026.01.28.08.10.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Jan 2026 08:10:55 -0800 (PST) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Wed, 28 Jan 2026 16:10:53 +0000 Subject: [PATCH v4 04/10] dt-bindings: soc: google: gs101-pmu: allow power domains as children 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="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260128-gs101-pd-v4-4-cbe7bd5a4060@linaro.org> References: <20260128-gs101-pd-v4-0-cbe7bd5a4060@linaro.org> In-Reply-To: <20260128-gs101-pd-v4-0-cbe7bd5a4060@linaro.org> To: Krzysztof Kozlowski , Alim Akhtar , Rob Herring , Conor Dooley , Krzysztof Kozlowski , Ulf Hansson , Liam Girdwood , Mark Brown Cc: Peter Griffin , Tudor Ambarus , Juan Yescas , Will McVicker , kernel-team@android.com, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, =?utf-8?q?Andr=C3=A9_Draszik?= , Marek Szyprowski X-Mailer: b4 0.14.2 The power domains are a property of / implemented in the PMU. As such, they should be modelled as child nodes of the PMU. Tested-by: Marek Szyprowski Signed-off-by: Andr=C3=A9 Draszik --- v4: - consistent quoting using " (Krzysztof) - add samsung,dtzpc to example Note: Ideally, the newly added properties (ranges, etc.) should only be 'required' if "^power-domain@[0-9a-f]+$" exists as a patternProperty, as they're needed only in that case. As-is, this patch now causes warnings for existing DTs as they don't specify the new properties (and they shouldn't need to). Only if DTs are updated to include power-domains, such an update should also add the new properties. I've not been able to come up with the correct schema syntax to achieve that. dependencies, dependentRequired, and dependentSchemas don't seem to support patterns. Similarly, - if: required: - ... then: required: - ... doesn't allow patterns in the 'if' block (or I didn't get the syntax right). Rob said in https://lore.kernel.org/all/20251010141357.GA219719-robh@kernel.org/ that this is a known limitation in json-schema. --- .../bindings/soc/google/google,gs101-pmu.yaml | 41 ++++++++++++++++++= ++++ 1 file changed, 41 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/google/google,gs101-pmu.= yaml b/Documentation/devicetree/bindings/soc/google/google,gs101-pmu.yaml index a06bd8ec3c20faf0b364d3d3ef1763502c2b09cf..c1ee9575092a3ab17873d228a88= 468addb62d838 100644 --- a/Documentation/devicetree/bindings/soc/google/google,gs101-pmu.yaml +++ b/Documentation/devicetree/bindings/soc/google/google,gs101-pmu.yaml @@ -16,6 +16,14 @@ properties: reg: maxItems: 1 =20 + "#address-cells": + const: 1 + + "#size-cells": + const: 1 + + ranges: true + reboot-mode: $ref: /schemas/power/reset/syscon-reboot-mode.yaml type: object @@ -39,9 +47,23 @@ properties: description: Phandle to PMU interrupt generation interface. =20 +patternProperties: + "^power-domain@[0-9a-f]+$": + type: object + description: Child node describing one power domain within the PMU + + additionalProperties: true + + properties: + compatible: + const: google,gs101-pd + required: - compatible - reg + - '#address-cells' + - '#size-cells' + - ranges - google,pmu-intr-gen-syscon =20 additionalProperties: false @@ -51,6 +73,25 @@ examples: system-controller@17460000 { compatible =3D "google,gs101-pmu"; reg =3D <0x17460000 0x10000>; + #address-cells =3D <1>; + #size-cells =3D <1>; + ranges; =20 google,pmu-intr-gen-syscon =3D <&pmu_intr_gen>; + + pd_g3d: power-domain@1e00 { + compatible =3D "google,gs101-pd"; + reg =3D <0x1e00 0x80>; + #power-domain-cells =3D <0>; + label =3D "g3d"; + samsung,dtzpc =3D <&pd_g3d>; + }; + + power-domain@2000 { + compatible =3D "google,gs101-pd"; + reg =3D <0x2000 0x80>; + #power-domain-cells =3D <0>; + power-domains =3D <&pd_g3d>; + label =3D "embedded_g3d"; + }; }; --=20 2.52.0.457.g6b5491de43-goog