From patchwork Thu Dec 7 13:06:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 751174 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="TLh4FkGB" Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C564610CF for ; Thu, 7 Dec 2023 05:07:07 -0800 (PST) Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-50c0f13ea11so729779e87.3 for ; Thu, 07 Dec 2023 05:07:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701954426; x=1702559226; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ca1lCqRiuB+dn4eD6wRvmXrlOFXjwi+eXsVfOaPlfrY=; b=TLh4FkGBPNFCOlmVHBuCDYgOkQtnDLuC82lNaertkTOndOCBriygTBHq0Xs+eI0oaG 2mBZ+iUOASuEjlCZFLKuU+yq/v+ROuho5+3XIeyB/kKGvEg6dBV4py/RFZRMFNkpLw71 Rn44jF61KTrJNmzaaA722NQxefrcqC4TnrwrcnkbTWIRJc58hkfqaagzTd6Llnk3ZXev xj7dCEi4NqPn9f6VROJk60q8PK2qN78PdDCYWrR2tOKBhxf2atdwaYaGvXLIS4CVkUFk N4u6Kpfu/3Dg0PL0me8IBzAVPQh/GGGbWTWtWKpNzCLGGjWmWXxNc9h9eco865P7d4Mj +b2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701954426; x=1702559226; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ca1lCqRiuB+dn4eD6wRvmXrlOFXjwi+eXsVfOaPlfrY=; b=Anr1JprxKe/YBorDLccBGlVdZvMJggqtT2ybQUK3f3kKnflpq0vSLW2eF4KxVtvg2x nZYyRJoZ7C8eMfSGdpv4jyCoy6bImUkfDAX5ATCRYc14daYiys8K60l3Re3+qKTuJPWr taONJkVi/FAMsM/097pyde6L8+88EgVz8GE1G8Cod+OYyMQWkqA1Td6ckdvfD/m5oGNF IblnLjR9j642UI0eGZ3B/lvAxr/7noi3HIzD5ks9rDT/+bokky62+keu5sXGD9SonWGD gC0VG/3upp88DZVwzna/d8BmL9Mvb8pJdqSpLMcH6/0upRI7cbbREIJgLSQXlGi+3ovy gZkg== X-Gm-Message-State: AOJu0Yy7rccgXHTl4aBekpgdULcXtqnWw1O12HZYQbMXNIg/vHMcgp/z t3BIMAx3811qnsWV8hbrvEcRog== X-Google-Smtp-Source: AGHT+IGWVhEt5sgampTn26wevOKIkl4VtpaVT5OrP6q/xHul1q3Upen/SVYuPhcl0phV8oGNXleR1w== X-Received: by 2002:a05:6512:230e:b0:50b:e697:10d5 with SMTP id o14-20020a056512230e00b0050be69710d5mr1558263lfu.68.1701954426048; Thu, 07 Dec 2023 05:07:06 -0800 (PST) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id j21-20020a056512109500b0050bc41caf04sm167685lfg.304.2023.12.07.05.07.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 05:07:05 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Rob Herring Subject: [PATCH v5 02/10] dt-bindings: soc: qcom: qcom,saw2: define optional regulator node Date: Thu, 7 Dec 2023 16:06:55 +0300 Message-Id: <20231207130703.3322321-3-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231207130703.3322321-1-dmitry.baryshkov@linaro.org> References: <20231207130703.3322321-1-dmitry.baryshkov@linaro.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 --- .../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 84b3f01d590c..a2d871ba8c45 100644 --- a/Documentation/devicetree/bindings/soc/qcom/qcom,saw2.yaml +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,saw2.yaml @@ -47,7 +47,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. @@ -96,4 +96,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>; + }; + }; ...