From nobody Mon Feb 9 17:58:39 2026 Received: from mail-ej1-f68.google.com (mail-ej1-f68.google.com [209.85.218.68]) (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 11669334695 for ; Thu, 5 Feb 2026 21:42:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.68 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770327756; cv=none; b=Ac0zIgDMqU9QJz1IxWLSZQ7DA5TbJtpix++x2VxG8L3DntOM0XJG0gm7pJPvjOPFfdErWxEAp5JTYQX2eYpEcJUDvB5N1qFI/9LLEVQmRBtPvaJAx1VkXycw7gX2rIrZS+xY9u9WSWYWF55cO0gYcMchjeg/MBuAC44boJ7Z0yE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770327756; c=relaxed/simple; bh=eaNC1+5x3wuB6gQAu1fISBSlg5hm+mSHrOAzbV0/Wwc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=obFUASGd255m3hJIhjdtHuxC63d4x3WYDBcy38SIuOH7TT3vU2lfXS3uOQaNsaPXelM/3efsVmtRIaoaFoHpJvyifgIVJoMr/M3zAO9HfqPLBvUcF5HER8yHMv0r9m/Ufowhe6TZMfzUfaRP2bNxx/Zn3L7H7vFMgmqOTzaBiXY= 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=vqzo0BS3; arc=none smtp.client-ip=209.85.218.68 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="vqzo0BS3" Received: by mail-ej1-f68.google.com with SMTP id a640c23a62f3a-b883c8dfb00so237230766b.1 for ; Thu, 05 Feb 2026 13:42:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1770327754; x=1770932554; 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=nvcy5crOR/n7O0iVn83ybwQmabvZYx05b4AZ55A+3Wo=; b=vqzo0BS3CzKMThvUwGReI1soh6GVu7a89Izs9KiVr6CEwSEjwD1nUL9wHmoBOtgfEc qKxHZTYPk6Z//WZXcXIX4QVDrMlauMW+KK5CGLNcAuPhojEsG16Mgd1+KoZj0vTMx2tU xEqdvd7+uZMguZqk8Tqm372s0z18sdveHIKnUXVS7iXO5UqSaYU/u3xW6B5VfAy8aPbb 20owbKilnQaJlzFABr9EtoskqUeGc+31Eigob6QRK3UI0ojLbUCjck9UkFMCE66FdyMj Q6Omj83koxEJZSv265d6HRcP0jwaiBQIrX1iX79h7bIyX9w838WoIVFScKoQjbgyafms Ep3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770327754; x=1770932554; 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=nvcy5crOR/n7O0iVn83ybwQmabvZYx05b4AZ55A+3Wo=; b=EJZXHNE0Y+SdqtJYHp2PgjISlZXIJRgOoddvMyZ8WC6nGGZDB1j7evDN4YK8dVPBAY 37XFfiD1xbQqrjttjwXeKrrzgCwQAjvO7ZHfXpLeSNIj/awfPLopYDQSk2kSwHfngmXz k2XR47SjUAbYqsf9NTtfG+Y4Noj4mm5+PceN/X7Vl3nWjlVIFYM2IU1HUifivN6PiCr5 FU3CKp/N59UJCOsggvjZ6QWdNwZpIl+us3QFTxRzKTn40zkvxD49Pe0nNfBU1FNLPAu7 cjjXuRrJZ1oMO4N1Gt/WcQAPIFKAWrhkucFj4dsAWIirCcfx2ozNcJwVSIhITBE+CGRn ou3Q== X-Forwarded-Encrypted: i=1; AJvYcCW947sc0j2aQUvdwH9AhpOr0J8NwfaxFZKa7h9CMt0lQ52ApiA5mq4xPs/p19JjLDzdQT+HksW4vUOor2w=@vger.kernel.org X-Gm-Message-State: AOJu0YyJWqrKtuwppDT7mixBwjqcWMTNHk4NKOb8LFbATXDobLuXGUNa ZLCASifzJMOBuQue6mmVBqdlQfhzX0J4ClhJeK+OsTYBvruwmtoWZjUQ74ifZLyTy2M= X-Gm-Gg: AZuq6aKjWu2GkivISIGUotwN00wg1wi3dLfCLrRsx5BFKe/arMt8RjVSE3bWwS211/a clHTpJLUjts839gihgg1MSt82ElBwo7FuNGBNQpC78rBytJ6GAghi+rnom8JzjAT9omRJPahw53 p168N+oIUId4WN21kiHZM8JIXjV3m7hmWj0mjajMt+lfRxRvghcBLRUCQJ6VdBIlvlWZoWlBy+d +s/WHJloIqUUD0AHf26MrC/QzPL/jutHfa78Q908Fcv+VBpWqUvsWklkgRxP1Ck1ONLe+4G8H3w UbmjXD/FZ/P2JSeefq+fkjSU+eZGDO4X+GlfNyHvmutf+l5Fh9r4fr2lmpigx3vzK2u5fnxy/wY zSipKcwOGZdI1FJ7jtVwFDJfzGtU5ega9xVHd7LqTjmHJkVjN77LuwTTI7EB0HbVTUlLPTvGAYQ qj1kvux4Y4Mi+p4u4qEYVpsD8GQe92Z5OlzMw+rHoqO0Rm2tFIfWOP/IjTzTypSosmWxPtjzEgR z0woQ== X-Received: by 2002:a17:907:d8d:b0:b88:6dd4:9ca0 with SMTP id a640c23a62f3a-b8edf49d98cmr21661166b.64.1770327754366; Thu, 05 Feb 2026 13:42:34 -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-b8eda7a0074sm21859966b.18.2026.02.05.13.42.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Feb 2026 13:42:34 -0800 (PST) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 05 Feb 2026 21:42:32 +0000 Subject: [PATCH v5 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: <20260205-gs101-pd-v5-4-ede49cdb57a6@linaro.org> References: <20260205-gs101-pd-v5-0-ede49cdb57a6@linaro.org> In-Reply-To: <20260205-gs101-pd-v5-0-ede49cdb57a6@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.53.0.rc2.204.g2597b5adb4-goog