Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2301845iob; Thu, 5 May 2022 22:31:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYbjOuTSJQNwXAzziBr+avSnVS3Nngmvqio+/xKOkRUlEch0EHBqM4cUZP0c5XjaTiMgPl X-Received: by 2002:a17:907:2cc3:b0:6da:e6cb:2efa with SMTP id hg3-20020a1709072cc300b006dae6cb2efamr1399854ejc.169.1651815090689; Thu, 05 May 2022 22:31:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651815090; cv=none; d=google.com; s=arc-20160816; b=ac806pdm0wniK5w+X9mkb5tU+LC0sCfg2xg59TFi+SrD/k++Y3mKES7oGSgjqO16GG YuQg4BFxbFuGLd/PpKnviXbmijQcR+loecvVviJjNq6vYtPjgyU3L0QrcqrdAffxZpHN 698AKG9Dz222WOlDX6fAfHT3yl3esMRNwHB3zhtdwhzBOT4JYfjzvIYCN1w0tXn66TmM d/BVqRS1+lEnTBh3G4HVLClyNSu25/+GTkq+LugFAJzwjHFrtRQ96s7/ZvnpYW3IpupX w+ZFmUnAnJ1eSlQn4P/5qylpsrPeAGXoya0ZWi3lJRULu3sQczxcy1ZCdIuJ7xjZrTcW 4GPw== 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=g7xpwj8XCmf5ayQ8Lt7FxGTutHxQy3jGvn0Y/Q/9DVU=; b=a6y1Qddf7rsWA6GR6hTYgnhn3nSEDYIrmHx1i/ZIf/OqlZk9sAVY254XHHzreX59pY 110uz/5F9UZIPPg0qHivDog286Ur+n4vdGU+UCuf1YpgN6EGUZw5waToz7NslLKBoFyU 1fmgv2CUqx9jeiLQcjnT52HyfONSb+28VMtj+okJE8HXo34GhqlbevYcXv3GTylF/jKx ibWksU5YUDiQza+AXX+2o9F2HH8QH8Ttfof/vf3yrhLCay1tAV7xdgAAxQFqcPFxmrDv MscH8w87tQAjHZ1ksPtXsHG6MZj47sOW/muL/VVZu3WaPxNfvCto8rsGT4KGbnAUfbL8 K+Jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b="oIZCbI/r"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o17-20020a056402439100b0041d4f190912si4549604edc.168.2022.05.05.22.31.06; Thu, 05 May 2022 22:31:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b="oIZCbI/r"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344440AbiEEJap (ORCPT + 99 others); Thu, 5 May 2022 05:30:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353197AbiEEJa3 (ORCPT ); Thu, 5 May 2022 05:30:29 -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 EDDB03C486; Thu, 5 May 2022 02:26:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1651742810; x=1683278810; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=g7xpwj8XCmf5ayQ8Lt7FxGTutHxQy3jGvn0Y/Q/9DVU=; b=oIZCbI/rSGu+radObH2lMLsd9O0NYSbQp6vHLv3Bo9mnKWVqjCPIOR0N 2L1yQnWhXJsilvHB36NGeuKli9LUjgbfQAuhHa1WmkhNdoobWe6Gm44kW VbDP9c1jxxheIJUUpkn6R/Ym/NH+pA/mgQQOBN+F2tglSjNica9eIdIo9 8=; Received: from unknown (HELO ironmsg-SD-alpha.qualcomm.com) ([10.53.140.30]) by alexa-out-sd-01.qualcomm.com with ESMTP; 05 May 2022 02:26:49 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg-SD-alpha.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 May 2022 02:26:49 -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; Thu, 5 May 2022 02:26:49 -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; Thu, 5 May 2022 02:26:45 -0700 From: Satya Priya To: Bjorn Andersson , Rob Herring CC: Lee Jones , Liam Girdwood , Mark Brown , , , , , , , , Satya Priya Subject: [PATCH V11 3/9] dt-bindings: mfd: pm8008: Add regulators for pm8008 Date: Thu, 5 May 2022 14:55:33 +0530 Message-ID: <1651742739-12338-4-git-send-email-quic_c_skakit@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1651742739-12338-1-git-send-email-quic_c_skakit@quicinc.com> References: <1651742739-12338-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=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 --- 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. Changes in V9: - Remove description for reg and drop unused phandle from example. Changes in V8: - This is split from pm8008.yaml binding. .../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 a41618e..231aaf0 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