Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp3291145lfo; Mon, 23 May 2022 00:51:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfpWl90fDYYi4e8Ft1J9SS8DhlWBsdViQqBX5Y1SaY2xizPs3D6xlw4avIw/IyHdh5RjAU X-Received: by 2002:a17:903:40cf:b0:161:6650:e244 with SMTP id t15-20020a17090340cf00b001616650e244mr21300583pld.128.1653292314057; Mon, 23 May 2022 00:51:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653292314; cv=none; d=google.com; s=arc-20160816; b=pUeA3IqcD0SrR0WhsfZEwgp/e5N1MDZt8U++uSIKpqaQbjFnEabtTKAxjdShzOdbzt hGcaNaiC1kapksMY77ZC9Y2l2FE1XWbYWLXYucuFXlZ2yTBjk4YnxM6/+UdZTzV2XSC/ dttRnLqvpkRAAC0Yd//6Amy6NZaUqqSCZb35zh/J/f5TAOW+mF6DWPgVid2qjuFoYn2J 8EvcgcJ3FvCbCFxjZw7zb4bsmJ2UIbaAC6HJRMd+XfEdB8T7SJqqOY3DFVFySlxNWbTg xmAegEyS7589zVoAoG8t6xhLq+yWQ9LCXA1kUW1wZKWD/LkNPiraC3gQAvRv9MYDoeB4 AHMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=iCYBKXd+rEGZqXlRxiyRiWhZI8xOrk6nz5d1vWVFKek=; b=dqnqXF1nn5iNe7ogaBVG0bXgD9ga0reUPUWubA+bWhi0eVwRJ3klvfuM02v9kvrx6k 6EHuVfNp+rhJbXkl9wB44xbrRGp07TnDyipOj3CXZ+T6LzQlmsL5l2Sii+NDpoiA0VNj dE04fgh2ou1OWXt1SguWTQ2RmSHliAUGVVxsqH5O/A+y1GlisnLo1olzVE1UKZcpCu6E DMInruWmUhszP3xtCeNYlQv/65Pjpy/SOzyXUfSO07oYbKGa/Yq3fbO3GH1Eh2OOzDab j/neTKR6CxlnZAi+RTBODQXAERuXMVwfVx4HbWEfcH3uuYyMVFaENyeYF8jYPkZhI/8P 5Zbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=N59IBIzQ; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id s1-20020a170902ea0100b0015f371008edsi9035102plg.396.2022.05.23.00.51.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 00:51:54 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=N59IBIzQ; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F364E23F3A9; Sun, 22 May 2022 23:57:25 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348289AbiETKuQ (ORCPT + 99 others); Fri, 20 May 2022 06:50:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348294AbiETKuN (ORCPT ); Fri, 20 May 2022 06:50:13 -0400 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72F99793A1; Fri, 20 May 2022 03:50:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1653043811; x=1684579811; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=iCYBKXd+rEGZqXlRxiyRiWhZI8xOrk6nz5d1vWVFKek=; b=N59IBIzQFDvnyUu2y/+i/nX+xh6NDNYu9bT/FJ1kesqHQrbFebiKYdjh pRmg3OojewrnKcB5NK7iiI09JML77Dk7De+EEju4iNe66MWCQPHhXgqh5 7rbmr7rNQb/mD0MqOv1Dc6faJa9+KcAh6ZLz+mPkNYiVDD+EdCIMfhR0B k=; Received: from unknown (HELO ironmsg03-sd.qualcomm.com) ([10.53.140.143]) by alexa-out-sd-01.qualcomm.com with ESMTP; 20 May 2022 03:50:11 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg03-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 May 2022 03:50:10 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Fri, 20 May 2022 03:50:10 -0700 Received: from c-skakit-linux.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Fri, 20 May 2022 03:50:06 -0700 From: Satya Priya To: Bjorn Andersson , Rob Herring CC: Lee Jones , Liam Girdwood , Mark Brown , , , , , , , , Satya Priya Subject: [PATCH V13 3/9] dt-bindings: mfd: pm8008: Add regulators for pm8008 Date: Fri, 20 May 2022 16:19:31 +0530 Message-ID: <1653043777-24003-4-git-send-email-quic_c_skakit@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1653043777-24003-1-git-send-email-quic_c_skakit@quicinc.com> References: <1653043777-24003-1-git-send-email-quic_c_skakit@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add regulators and their parent supplies along with example. Signed-off-by: Satya Priya Reviewed-by: Stephen Boyd Reviewed-by: Rob Herring --- Changes in V13: - None. Changes in V12: - None. Changes in V11: - Add ldos directly under pm8008@8 node, remove the intermediate "regulators" node. Changes in V10: - Regulators are added as a part of pm8008@8 device. Change bindings doc accordingly. .../devicetree/bindings/mfd/qcom,pm8008.yaml | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml b/Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml index a54d1ce0..fd3c51e 100644 --- a/Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml +++ b/Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml @@ -47,6 +47,21 @@ properties: reset-gpios: maxItems: 1 + vdd_l1_l2-supply: + description: Input supply phandle of ldo1 and ldo2 regulators. + + vdd_l3_l4-supply: + description: Input supply phandle of ldo3 and ldo4 regulators. + + vdd_l5-supply: + description: Input supply phandle of ldo5 regulator. + + vdd_l6-supply: + description: Input supply phandle of ldo6 regulator. + + vdd_l7-supply: + description: Input supply phandle of ldo7 regulator. + patternProperties: "^gpio@0,[0-9a-f]+$": type: object @@ -88,6 +103,27 @@ patternProperties: additionalProperties: false + "^ldo[1-7]@[1],[0-9a-f]+$": + type: object + + $ref: "/schemas/regulator/regulator.yaml#" + + description: PM8008 regulator peripherals of PM8008 regulator device. + + properties: + compatible: + const: qcom,pm8008-regulator + + reg: + description: Peripheral offset and address of the ldo regulator. + maxItems: 1 + + required: + - compatible + - reg + + unevaluatedProperties: false + required: - compatible - reg @@ -120,6 +156,12 @@ examples: reset-gpios = <&pm8350c_gpios 4 GPIO_ACTIVE_LOW>; + vdd_l1_l2-supply = <&vreg_s8b_1p2>; + vdd_l3_l4-supply = <&vreg_s1b_1p8>; + vdd_l5-supply = <&vreg_bob>; + vdd_l6-supply = <&vreg_bob>; + vdd_l7-supply = <&vreg_bob>; + pm8008_gpios: gpio@0,c000 { compatible = "qcom,pm8008-gpio", "qcom,spmi-gpio"; reg = <0x0 0xc000>; @@ -129,6 +171,14 @@ examples: interrupt-controller; #interrupt-cells = <2>; }; + + ldo1@1,4000 { + compatible = "qcom,pm8008-regulator"; + reg = <0x1 0x4000>; + regulator-name = "pm8008_ldo1"; + regulator-min-microvolt = <950000>; + regulator-max-microvolt = <1300000>; + }; }; }; -- 2.7.4