From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (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 B6AD31EB1AA for ; Thu, 9 Oct 2025 15:25:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760023512; cv=none; b=pchutV5aVm8v1hslNLVVcsJAoVvC3PoY8TnkoPntAgLiDdaISGICj9TrTMW1rNx84lnBzKwHEYS1QLu+5mX1Q/9g6uM7C1bOuegVilOqn7zhl1UkQbAUJNKsQRoh0G/M/4BiJyB4ZqRS3T1l5SEHngNOuZEWiQbUkuSwJgF7vSA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760023512; c=relaxed/simple; bh=pveWC0dGG+QrmADRkCYghiuV6e2N7PQNMtP4GgXIjZI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=cnLHYSNAD+HoG53sszHR+KtBzBOD9yiOwYtXKY3CVoCfhldt5VvY8jPpxNjVD7j9SjXVhD4SpjDrvZ4oKUsDG/HQ7pF0/QGBcHLYzAdRy/ZozePu2FlPAqbeMA/O3ZBQMsoBQ+EtU3Y0dp0ORL8aw7ThjTrV8E0pQUL3GMNS6U0= 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=Z2p6zsSp; arc=none smtp.client-ip=209.85.218.54 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="Z2p6zsSp" Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-afcb78ead12so193369666b.1 for ; Thu, 09 Oct 2025 08:25:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1760023507; x=1760628307; 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=gIgGfpMab5d5IHvagQ8PqT9KdQ+uz2nglD6fw13G62A=; b=Z2p6zsSpQeMb+HUmmfzPT43PfrJslnlMcJyrPDQcpFhcwij6eHJLCOL+3aADB4hioG 1QSswKRT3SUI7aDSO7bwyuumLQXDWXNcwWCybbhXmj+N98dtlep1epGgwTMGDQIiAaLK bl/olTUmndDfiO5f5jAJ4H/TbNG3il6ow0iGkQ/54Mq1Vrc5gOsh7nGJTifatK47fK5P XLxJvl/zYCoKAwN1tduWYCjnEljfio503JzhitCFZLy/FmXb4cS6n5be5cIDM39O9RjA 0tY35QmVtat0G8PjbRnx6U7UuBonTgncLrtC9DEsWBp78xyavSW8LyOEQUX3WvNkHjKH +Pxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760023507; x=1760628307; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gIgGfpMab5d5IHvagQ8PqT9KdQ+uz2nglD6fw13G62A=; b=NkoA5ORc0b5Yx3C2g+5PmMiRxzB4EnF/Okrd1T6Bigig2rjbpEuBLAblQbAB2kwJJM 0i80O2ky2EdqBEwF/gEuTEWSALWOVLQRFijgPjbYBbk7zl6Twe90PH9OMG4ksPqMDS0E wgD1zrHUNm7RqbyLzyleBA7RXzgoQDaAgol7ScWf8HaUSEmIfpF1MHOYEyrjkijQGo7q c98rcbvWo7KdNPoMdfitIK/iosQpS01tIyoaTNBkHaqNnEGedVpszwFUkv7tSqA1BXNm 2XOt2CHsgkidD4UimL/kTCszj9wQmR38h0VZFOnwx9meMnYLk8avuE9FgipOSlxEx52P aUBg== X-Forwarded-Encrypted: i=1; AJvYcCX1RhD7zVklw2LvCi5tuCfMHtvUtDvyRQ3Gryxqu2BdIc++Bq5hv3w+hWv/cXcy/9WW00f6xyqTsXkz@vger.kernel.org X-Gm-Message-State: AOJu0YzPruwz1MSEzBOgzv+ssSEbCTL6ouI5wH4LkgajS2c/F/qeLPN/ Wan8j3AxfMgArzviGHu2jyK+nT0/1XcvGiwy1xq/guz3YL5J8h+dmUTg3Jr28DPsODc= X-Gm-Gg: ASbGncuFaQhsI/VoxL8Mxp34eAonGFqKVA2PFQZXyXURaVnaZ5fDfhGpiQ5fu9ALs+v KrSL37p585ifQTnZKkw3koCJNE6n9+M/kKuKVbJ7FmeNFd2mz2eGJGdBgsjsgJkTgCNAGJEThGb f6tDVhj3iug2WaJbctsmYq1LYj2x1D5cV2kTv07e3zZ0hWocXGozlbX+hOFrc44udoH3EFb4FZb WkH9kNiSOmBfB1U878cCo/C87xriHyKrjNgysWS3ZL2RHnbXFke2aZy79hQH91cyrY2ujzjuBEy HmXN/zX56wlwBfIjb0Uj1M4fgIRtwcc0Tw+IkIPUtHjn55hgVbU7zl4NRz1X3u8Mwt4/e2Kt5+y JqO34ER6iK8ruAme3fMR0QpT/xYC0KHugbVYwqoEkvXsfr4ndXYYlRJUerEkRpgjOao9lwZ467O o/Rm7ga7rGWhENm+u5rmcdqC4aKIXLT+YFDs4lyU/QUhptKoyUKQE= X-Google-Smtp-Source: AGHT+IGg04+IzEonQvFpIX4DqWAql+P+1rz1MPHdkVXRbACm/2BjXy8iSlJQRXa1j6vBNQqyTJPeWw== X-Received: by 2002:a17:906:c14c:b0:b3c:a161:684c with SMTP id a640c23a62f3a-b50aa49025cmr842742566b.2.1760023506601; Thu, 09 Oct 2025 08:25:06 -0700 (PDT) Received: from puffmais2.c.googlers.com (224.138.204.35.bc.googleusercontent.com. [35.204.138.224]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b486970b36fsm1908967566b.62.2025.10.09.08.25.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Oct 2025 08:25:06 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 09 Oct 2025 16:25:05 +0100 Subject: [PATCH v2 03/10] dt-bindings: soc: samsung: gs101-pmu: allow power domains as children Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20251009-gs101-pd-v2-3-3f4a6db2af39@linaro.org> References: <20251009-gs101-pd-v2-0-3f4a6db2af39@linaro.org> In-Reply-To: <20251009-gs101-pd-v2-0-3f4a6db2af39@linaro.org> To: Krzysztof Kozlowski , Alim Akhtar , Rob Herring , Conor Dooley , Krzysztof Kozlowski , Ulf Hansson , Marek Szyprowski Cc: Peter Griffin , Tudor Ambarus , 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.2 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é Draszik --- 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). --- .../bindings/soc/google/google,gs101-pmu.yaml | 42 +++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/soc/google/google,gs101-pmu.yaml b/Documentation/devicetree/bindings/soc/google/google,gs101-pmu.yaml index 209ee2f80d449c3eec568188898b3c6f7ae0ddd4..d18a351b649c0736662e67bb64de46afa01e399a 100644 --- a/Documentation/devicetree/bindings/soc/google/google,gs101-pmu.yaml +++ b/Documentation/devicetree/bindings/soc/google/google,gs101-pmu.yaml @@ -27,6 +27,14 @@ properties: reg: maxItems: 1 + '#address-cells': + const: 1 + + '#size-cells': + const: 1 + + ranges: true + reboot-mode: $ref: /schemas/power/reset/syscon-reboot-mode.yaml type: object @@ -50,18 +58,50 @@ properties: description: Phandle to PMU interrupt generation interface. +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 -unevaluatedProperties: false +additionalProperties: false examples: - | system-controller@17460000 { compatible = "google,gs101-pmu", "syscon"; reg = <0x17460000 0x10000>; + #address-cells = <1>; + #size-cells = <1>; + ranges; google,pmu-intr-gen-syscon = <&pmu_intr_gen>; + + pd_g3d: power-domain@1e00 { + compatible = "google,gs101-pd"; + reg = <0x1e00 0x80>; + #power-domain-cells = <0>; + label = "g3d"; + }; + + power-domain@2000 { + compatible = "google,gs101-pd"; + reg = <0x2000 0x80>; + #power-domain-cells = <0>; + power-domains = <&pd_g3d>; + label = "embedded_g3d"; + }; }; -- 2.51.0.710.ga91ca5db03-goog