Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp680135pxb; Wed, 16 Feb 2022 01:50:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJwxfF2sZ0pR6fSPwj7PTpoqH4cYYfjIqnhcnD1RY0B27TNPx3HF3JCB6XSEPzGMXN8hqnvO X-Received: by 2002:a63:b60:0:b0:363:a273:42da with SMTP id a32-20020a630b60000000b00363a27342damr1571747pgl.239.1645005042279; Wed, 16 Feb 2022 01:50:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645005042; cv=none; d=google.com; s=arc-20160816; b=t5+kFSFKgen0hYpeUETi3xA/pQ4D3rFXhuxJPdrraJnyqngb1hdaqeboKBtYqLPy2X gW2P6SMdRpfVCFLvkTwBH+/n6pgPZqORszQqxyTas12bCDuH7Nb3l6rMppulsXCW3Rlf TMevLJ3U2GDSuoWaEnwVPWdIrDfK6k7v76PpSeADlkmZBiXpAWxw3Wxf2XzXJeK68z/R TC7Cbdof3y3axDXwjgvlMibNkP7Zo+6SCHRvvfh8jZKGhkLknmXvCGfrecvHa2PEwiCX vYonTV6tV4Hh9Y5AiJ/VNAjcwbdJlN2xMgYnmYBesHzwZiqiKhQjtOZMM7cQJtBOHav+ UJpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=81bV3NmRZ61agZvCLeeJYXOL3xLeaeIO2Ye5ysvG/tg=; b=sKT1uiDRMtBxZ3D/Hq9tau8Z3XfSzI601PdOaZjgg4RvV7nB7QcdkJ4IdDGQz9C6yi GABKs6UCqOUYvfsePjTGbLTLkPo7tRBWvQeDXZ++SjHU2o1x3W2lk7UMNLyHJejMV2r1 U3T2NALrYZ4eblp8Jm5n1tzsXlsKWanKW/2QX1AI+zgnd8UlxANmnrhrIny8wMSP7FSQ 4p5qTRxRzZEh19lmKatlnikgIzrXvkSR7DQDNxSb+Pe0BhrO11acpvz8eOyzOyC2IE7a eYtk+XeSKQT+bbNaVpPbMjz2I2izsX7J1MXhpxYQ3Gn4XP3/XWtEU71KH5oU/TLFPuOm 5/ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b="ijY0Ve/O"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id l184si3585541pgd.2.2022.02.16.01.50.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Feb 2022 01:50:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b="ijY0Ve/O"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 AA2C52A7964; Wed, 16 Feb 2022 01:50:06 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232478AbiBPJuA (ORCPT + 99 others); Wed, 16 Feb 2022 04:50:00 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:40798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232493AbiBPJtw (ORCPT ); Wed, 16 Feb 2022 04:49:52 -0500 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 6779F2B4D80; Wed, 16 Feb 2022 01:49:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1645004977; x=1676540977; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=81bV3NmRZ61agZvCLeeJYXOL3xLeaeIO2Ye5ysvG/tg=; b=ijY0Ve/OjuyhL468d/ManHyI2Z7T6h40rvaoB7ktakFeLaEN3g3k02UM YTNdsfw6dEnuE82dqqSuNBKO5wN6BF5//Aa/78mFRjW6G1ARZ0yXcA1t7 +San+iVzkXqPuQ0hAB3tARr6lCjnG+MvymBWG2UAUDgmBgPR5jaGq1smb 0=; Received: from unknown (HELO ironmsg05-sd.qualcomm.com) ([10.53.140.145]) by alexa-out-sd-01.qualcomm.com with ESMTP; 16 Feb 2022 01:49:36 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg05-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Feb 2022 01:49:35 -0800 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.15; Wed, 16 Feb 2022 01:49:35 -0800 Received: from [10.216.17.95] (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.922.19; Wed, 16 Feb 2022 01:49:30 -0800 Subject: Re: [PATCH V6 2/6] dt-bindings: mfd: pm8008: Add regulators node To: Stephen Boyd , Bjorn Andersson , Rob Herring CC: Lee Jones , Liam Girdwood , Mark Brown , Das Srinagesh , , , , , , References: <1644915231-7308-1-git-send-email-quic_c_skakit@quicinc.com> <1644915231-7308-3-git-send-email-quic_c_skakit@quicinc.com> From: "Satya Priya Kakitapalli (Temp)" Message-ID: <1d352a57-8f03-f65b-9560-d19ebd9f2d16@quicinc.com> Date: Wed, 16 Feb 2022 15:19:26 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US 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,NICE_REPLY_A,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 On 2/16/2022 7:34 AM, Stephen Boyd wrote: > Quoting Satya Priya (2022-02-15 00:53:47) >> Add regulators node and their supply nodes. Add separate compatible >> "qcom,pm8008-regulators" to differentiate between pm8008 infra >> and pm8008 regulators mfd devices. >> >> Signed-off-by: Satya Priya >> Reviewed-by: Stephen Boyd > Please remove my tag. Okay >> Reviewed-by: Rob Herring >> --- >> Changes in V2: >> - As per Rob's comments changed "pm8008[a-z]?-regulator" to >> "^pm8008[a-z]?-regulators". >> >> Changes in V3: >> - Fixed bot errors. >> - As per stephen's comments, changed "^pm8008[a-z]?-regulators$" to >> "regulators". >> >> Changes in V4: >> - Changed compatible string to "qcom,pm8008-regulators" >> >> Changes in V5: >> - Remove compatible for regulators node. >> - Move supply nodes of the regulators to chip level. >> >> Changes in V6: >> - No changes. >> >> .../devicetree/bindings/mfd/qcom,pm8008.yaml | 49 +++++++++++++++++++--- >> 1 file changed, 44 insertions(+), 5 deletions(-) >> >> diff --git a/Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml b/Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml >> index ec3138c..1ec43f7 100644 >> --- a/Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml >> +++ b/Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml >> @@ -44,6 +46,25 @@ properties: >> "#size-cells": >> const: 0 >> >> + 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. >> + >> + regulators: >> + type: object >> + $ref: "../regulator/qcom,pm8008-regulator.yaml#" >> + >> patternProperties: >> "^gpio@[0-9a-f]+$": >> type: object >> @@ -88,10 +109,8 @@ patternProperties: >> required: >> - compatible >> - reg >> - - interrupts >> - "#address-cells" >> - "#size-cells" >> - - "#interrupt-cells" > Shouldn't interrupts and interrupt-cells still be required for > qcom,pm8008? No, these are not strictly required. > This binding seems like it is for two different nodes. This binding is for the same node with different SIDs 8 and 9, having different set of peripherals. >> additionalProperties: false >> >> @@ -102,7 +121,7 @@ examples: >> qupv3_se13_i2c { >> #address-cells = <1>; >> #size-cells = <0>; >> - pm8008i@8 { >> + pm8008_infra: pm8008@8 { >> compatible = "qcom,pm8008"; >> reg = <0x8>; >> #address-cells = <1>; >> @@ -123,6 +142,26 @@ examples: >> #interrupt-cells = <2>; >> }; >> }; >> - }; >> >> + pm8008_regulators: pm8008@9 { >> + compatible = "qcom,pm8008"; > Isn't this supposed to be "qcom,pm8008-regulators"? Yes, I'll correct this. >> + reg = <0x9>; >> + #address-cells = <1>; >> + #size-cells = <0>; >> + >> + 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>; >> + >> + regulators { > I still don't get the need for this extra container. Please remove it. Okay. >> + pm8008_l1: ldo1 { >> + regulator-name = "pm8008_l1"; >> + regulator-min-microvolt = <950000>; >> + regulator-max-microvolt = <1300000>; >> + }; >> + }; >> + }; >> + };