Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6355053rdb; Mon, 1 Jan 2024 21:18:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IHIMm42QD34qOxDHmjvvvaiJO3b+dCNeOf974x0F8AkIWu/vtici7vkFCPFI2/NWhcgx01O X-Received: by 2002:a50:d594:0:b0:551:edae:1545 with SMTP id v20-20020a50d594000000b00551edae1545mr10653598edi.17.1704172692411; Mon, 01 Jan 2024 21:18:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704172692; cv=none; d=google.com; s=arc-20160816; b=nO+d8aQLHcLeDaw6EMwIeGVsX/hQ3xUjFNGZH9yBmdrOe+5sOHaQygcMONDqqYSVh8 RWg0gAYclBNvgPTwKsy6L0vKyopTMgpSk5L6c9jT7NTiloRYGYagMzbBOuIPZYLG+Oyd sy+gC9Y3D8DGBJCtNmqDqNxqx2VUM7BPntPSpuzIEvIXS1BIuxglnHA38Plxr18I8iGS TVNSbWGf8YuZwHV9H4QQA94SBbIkYeSouiGarUpM6fvST5NZ4f26nvfPmF3YMghgaGdc 38AiTsk8/0pIyVkw1rPf5i8TwCmdXsH3k/KWn6s16vPx4akxYxhsS35v4M/qPyA5MPRZ TowQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=YcDgKhTpVkiCZ87wc3ZDfeVZRYJIopeLPG2L1KNJt/s=; fh=17ml8MPYDVnzBcSC2gxb7TVqwJNvuwTgY+537De2xEw=; b=QrJzF/mOyv7hsKt8+nIoIBrdIlkWZTd4J5eR9wFNlaUvAeY8yv8nLo7wRYRmKHTj9v uAxzXQTeqGVyPX4hTAStFdl6TSeH+SNBdFImnRXxr/0+yz5bB0LPHTTZ5UpQf20A7XLC 1gjUz45mbfUGP5ZhPbTwyJu3k+B1LIwFUB3YEh92LTZl8/CFaU4rZqcsMI59jY36w6Xj T5qA3pIwlcrPuxsrfOFeLbHSlyehRUNhndPRhqYDFaU1RMXYgOB8EKY346ledTycH9pN VrSg5T+KpUHWzEQnEXu8H6ioxWnAHyUyW9tNhO/3UG4UQmOw5HEvVffa+Y5bGozzX1B3 4upA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qPqY0I5d; spf=pass (google.com: domain of linux-kernel+bounces-14030-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14030-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id z65-20020a509e47000000b005534a8b4e64si11000953ede.252.2024.01.01.21.18.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jan 2024 21:18:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14030-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qPqY0I5d; spf=pass (google.com: domain of linux-kernel+bounces-14030-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14030-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 2EB931F21A14 for ; Tue, 2 Jan 2024 05:18:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 90C3746B6; Tue, 2 Jan 2024 05:17:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="qPqY0I5d" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.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 86F9723CA for ; Tue, 2 Jan 2024 05:17:31 +0000 (UTC) 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 Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-50e78f1f41fso5924233e87.2 for ; Mon, 01 Jan 2024 21:17:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704172649; x=1704777449; 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=YcDgKhTpVkiCZ87wc3ZDfeVZRYJIopeLPG2L1KNJt/s=; b=qPqY0I5dGI+QHcqYux/sI9gRyK5nuKbHNfaaKgJjuBZliRkZrhOqoUZR5Wwg4e2Zuo ZKubO6K4PzdzHxdMYQrIoMqKoYiO4GgQRpBgJ5EzB1+031FmG3+cSu5JYowGl3gJA/sj MB3XvWi91SFIMsPrGfZ+1B2muNxSDTC8TWDaxjBEDtAWP1f5LxYQ4yUQQIGiM4MWCIdh /c7SmSXjNGsaCOhaHAVIJKJ6GC60y7lFYntosqHWl3+FCtv/pPV2tMkotrPQg14cJAA8 MOAHjgPQO6ikKhflBU71BxGwthLOZ+RLHddZ1Uim+BWaZDbzhh/mBoQrKZtVg8FOwzEq mV/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704172649; x=1704777449; 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=YcDgKhTpVkiCZ87wc3ZDfeVZRYJIopeLPG2L1KNJt/s=; b=RUYsIQHsO68kIYT5jWtXJ/S4fJpMWNODubfMzpXPS+JrCRGiFG9P/2fNb1xoOnONL9 ggU3PE/f1cDklRSgWDQqFyXvyK2YSC8KidB74grj8GQsM5NENiHjs0/ECFFw912hgVbG N9NJWiahTYWsXHXbdbM8QLR9kyCgDboNGoJV7433ndILx6seOxlZLl337FnqSxQEZVWN 1JY0Zt+7sToOhgEj25dcdjzcU90fCqZt+HlpeVeMFK+G2zeQ1BrlECkKoj7orl5E+uX8 Q0qY3pqfiKmBxMzq+8ZLHW2N7b8CSzdHZkYbaTz00K+AwJSwG88LLIF4wyaf//c4j4O3 snoQ== X-Gm-Message-State: AOJu0Yyhl35FfvfTQai2qRr5INY977IzZlqxANWzPuihwWXTTxRZfJbo D3YUIFg6yhjomwbyNA5Ro1IUbwLuIq2HZg== X-Received: by 2002:a05:6512:3131:b0:50e:8ed1:cf10 with SMTP id p17-20020a056512313100b0050e8ed1cf10mr2458643lfd.42.1704172649757; Mon, 01 Jan 2024 21:17:29 -0800 (PST) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id r25-20020ac252b9000000b0050e810689e5sm2081827lfm.33.2024.01.01.21.17.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jan 2024 21:17:29 -0800 (PST) From: Dmitry Baryshkov Date: Tue, 02 Jan 2024 07:17:23 +0200 Subject: [PATCH v7 03/22] dt-bindings: soc: qcom: qcom,saw2: define optional regulator node 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: 7bit Message-Id: <20240102-saw2-spm-regulator-v7-3-0472ec237f49@linaro.org> References: <20240102-saw2-spm-regulator-v7-0-0472ec237f49@linaro.org> In-Reply-To: <20240102-saw2-spm-regulator-v7-0-0472ec237f49@linaro.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , Andy Gross Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Rob Herring X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=1595; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=J9nNZuFfwnbU/JQ2vIl1k7NuQXRwdpcziIbn5fTYJBw=; b=owGbwMvMwMXYbdNlx6SpcZXxtFoSQ+rkOckPJZZMe8m66WrMRc3JVWYBtToP3e3LvpQs8HU6c zdH4BlnJ6MxCwMjF4OsmCKLT0HL1JhNyWEfdkythxnEygQyhYGLUwAmYvOe/b9/evQnp1NaQr9K FWtOlS+7xieW+869333997Bfn6fv/N/dZ1LUu/2I9kVG6ZX+TPYbzWdXSh66mZrGy9x/L39Janm OYG8Qs6Bb+LQkw7I9ley3pNaaf14q1eFnVBW0fGn3uRlTZwvUlPZXuK/yLm54+ql+3oe6romx3j enS+YdDT1oHqT9a57EzqeO/hvEz30R83BaYs+m5ePCNz3C7PmPk4UR5tHx0/1mHKmfqudiWf2zN eHtPNbjM+/1xs2ZrtcwcWvy4ygtDqsJiRrGBY6trVlFx/cHysto7LwV/G6hfp5FnkmBxKPm7KYG 20QdqVdvbDZ+Ndi59j17pfi2WU63goWUzCo9WsXDgjgA X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A The SAW2 device can optionally provide a voltage regulator supplying the CPU core, cluster or L2 cache. Change the boolean 'regulator' property into a proper regulator description. This breaks schema compatibility for the sake of properly describing the regulator. Reviewed-by: Rob Herring Signed-off-by: Dmitry Baryshkov --- Documentation/devicetree/bindings/soc/qcom/qcom,saw2.yaml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,saw2.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,saw2.yaml index 2178fea37b8c..f9306f2a6e99 100644 --- a/Documentation/devicetree/bindings/soc/qcom/qcom,saw2.yaml +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,saw2.yaml @@ -53,7 +53,7 @@ properties: minItems: 1 regulator: - type: boolean + $ref: /schemas/regulator/regulator.yaml# description: Indicates that this SPM device acts as a regulator device device for the core (CPU or Cache) the SPM is attached to. @@ -102,4 +102,17 @@ examples: reg = <0x17912000 0x1000>; }; + - | + /* + * Example 3: SAW2 with the bundled regulator definition. + */ + power-manager@2089000 { + compatible = "qcom,apq8064-saw2-v1.1-cpu", "qcom,saw2"; + reg = <0x02089000 0x1000>, <0x02009000 0x1000>; + + regulator { + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <1300000>; + }; + }; ... -- 2.39.2