From nobody Thu Apr 9 18:49:27 2026 Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) (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 D6E7237D105 for ; Fri, 6 Mar 2026 10:29:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772793003; cv=none; b=uE+z64JDFIRYaA9PiaBsrcgz5CszB23od0PVj8u1bd80rtdA/THoeSY9Y/HaATkCTRJBdbHy0qh+oMPJpXDU6Qlu5AWvc7BwpK5CTJ7eZYNMgjtEfWQip+q9TNrHJ+DPusXfNBYogvuBOjcV+cJK8uGqJQbN/sI8hMI7AL3khkE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772793003; c=relaxed/simple; bh=gEkS+KNCFb0DbKDNC52RYY6aT/xJwnLizD3yMfs/RpA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=SlaHeK4VxOPBu6M34NM7rGk/OCNdia/FoTtFVp70VQ5CW9qbWT+ZHiRfQZ8tmCxGV/N0hesugm9pdHDyLz8zCQ4HCKgL2mzNqzTNzfeA1xAPJwDfO2Hko0PWU7lmhNPLoLQhTncu4WX/T2ED4Ja2OREnikQFTafWiTyVSaOtt2c= 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=zacejEse; arc=none smtp.client-ip=209.85.208.51 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="zacejEse" Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-660be63279bso5160147a12.1 for ; Fri, 06 Mar 2026 02:29:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1772792997; x=1773397797; 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=bsgk7ZObqyZr/3jbiTlB5XfU/jafWS+xFJNQ3TVojOs=; b=zacejEsez5XKEYwcdnSN9M0+cmTz6cSMr7jO6/iSt2Kgn9c/XkERN7efuDnd9s6pDc u/isEHYn/csrdC1Kwk+ay3cdQYcR65wQ+3FcfHAcfHAe3cBjLFPHl8XsMfx0NKjTTLzd YH4wgeDWqkVFDsajhkJ7dCvZ3z4T/2rj3p3+AVbEkDA7cdvSvHMD7uQzqjVHKj1bpcK9 QH5LAQU3ut/pmEKjIh8u51nooHLgQIar3vAk6TzYj2yHTBqBz7VlP9Je5Folxo6FX5Qk EP7jOLyBKCj6URoR7os9exnsqdy2UQxYiWr2QiYpWipsAPSQqox4g3FixM5nxlcnIdKz xFNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772792997; x=1773397797; 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=bsgk7ZObqyZr/3jbiTlB5XfU/jafWS+xFJNQ3TVojOs=; b=Ej54B/0aASf95DL54uUYeo1sDIXLAemmYAW7nEt7Nye37hFx/SKBKn2ZSOlsLWpOOZ PUnCgxc7T84NDUbhveIIILJ4kCvveAGgkIZWh0a/WYABqumscq+n+DjDcExshzmyn5Cp y+Cz9srNPPMjGvlTHG3JixBKgdYoETN2zNqy0cq7nOJSZ/q8WgsD/6B2v7XaIqQSoSXU VnAfKbq7KczrWYq7LMdz/vcjaZPZQ12pDpFzR6XJdbwVOuaDQNMArth/a++wCA6gJrRD vDJZxeoHUu5lODMmezWvbqbMaNx7fJFjER56g4R8QF/OBJ0vxqG5pOyh+9cBpCxAzdLk Jj9A== X-Forwarded-Encrypted: i=1; AJvYcCVscLaPEcZoox0d0Rk0AA87dnfh5+NRs3+ogsoFRJkybPha5n6eoe5hejo1m06nGDGmWGvcAw9TnYYgFyc=@vger.kernel.org X-Gm-Message-State: AOJu0YyBwC+P/6nwUGMJX4HsP2CIZnisA7UIiiqK/mcTj6LEjAbKcjee 1XnMq+o1H72ZWMQHwQby0Z6K96Wo0lVF8VsBFt0NDa5Y1k246VH1AiTTxPkXz4tsegI= X-Gm-Gg: ATEYQzwqoH2iO9OfFiRDZhsUiS+OSr+lsY6q3augQOrDn2HJjfkVwnZfGAg6dXOalmh 1kPpaq/y/VcB5rFqdaDBkBfsWYR2Mey8uhc1wgdkkdt7nNbtCh0P90yMRrZpXiDKla2l6Q3iHnC aR6vSTCPY+f9FdUvYsPqrVmwbjd9xF4ODWCplZCb1SBYcqYuTzbcYfyZffJIOPV6IP5clOUr9eP CNaXsBY+dML6NKymuql3djuAomJf+U6BRx02BtEKjkUT3uIC/ePbQwqXTvZ5LF8/kz4JI3RLJ45 onflW1RJEfGPfE7ZjYUWDYwwiyk8m3wWTWVxoz9rf+Nz7bVpNf//yi7SWHBBO7zmYaaeJi9YKQP eGFMQglpSpS7edNRBy9QHb3Gv7Tpcb1f5BdUYeMtJS/a7Hbe5UFNIzzySF7JTIwdiJDzhi9rM08 +nLWDc4yHmlP1VBOG8Q/l8C7stEGIbN7nfW2jTibMCk0SDJ2HkUeLQEmzRgPPKNR2Ll7ArWnJqR 1ZP63mq4+dA2htRc70tyc8TCQ== X-Received: by 2002:a17:907:8690:b0:b8f:c684:db28 with SMTP id a640c23a62f3a-b942d06f624mr92068866b.12.1772792997027; Fri, 06 Mar 2026 02:29:57 -0800 (PST) Received: from puffmais2.c.googlers.com (221.210.91.34.bc.googleusercontent.com. [34.91.210.221]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b942ef8c95csm42907266b.21.2026.03.06.02.29.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Mar 2026 02:29:56 -0800 (PST) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Fri, 06 Mar 2026 10:29:55 +0000 Subject: [PATCH v7 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: <20260306-gs101-pd-v7-4-03f7c7965ba5@linaro.org> References: <20260306-gs101-pd-v7-0-03f7c7965ba5@linaro.org> In-Reply-To: <20260306-gs101-pd-v7-0-03f7c7965ba5@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?= X-Mailer: b4 0.14.3 The power domains are a property of / implemented in the PMU. As such, they should be modelled as child nodes of the PMU. Signed-off-by: Andr=C3=A9 Draszik Reviewed-by: Peter Griffin --- v7: - really be consistent with quoting (Krzysztof) - drop invalid tested-by tag (Krzysztof) v4: - consistent quoting using " (Krzysztof) - add samsung,dtzpc to example Note: Because the properties added are 'required', this commit breaks DT validation of the existing DT for Pixel 6, but a) that's simply because the DT is incomplete and b) a DT update will be posted once the binding is accepted. It is not possible to write the binding such that it supports old (incomplete) DTs in addition to the full version, but as per above it's not required to keep supporting old DTs. --- .../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 a06bd8ec3c20..dfe6f87e5949 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.53.0.473.g4a7958ca14-goog