Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3679382pxb; Tue, 7 Sep 2021 05:22:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuTH24dMGDxCSGQ60IgjWBZ6IPENLmyBjFGQSYW3lppjXHd4LU+3QNH6UBYWh1Y5mUs+KS X-Received: by 2002:a05:6402:3098:: with SMTP id de24mr18712383edb.326.1631017361168; Tue, 07 Sep 2021 05:22:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631017361; cv=none; d=google.com; s=arc-20160816; b=hziJmeLy/JDsfT+UxsnX7AomPq3xOKMf/ddT/Pzf6Gn9jWr+I7q4yOld/RcmEazFlq X2ktfYulaWaqonLK4W6WlGS85MEGnKdtZAP5NmZPZZm3owJwniA4UYf0AF8ywnGlIbme 1t+D36hMemcC3EuwK2G0xAYjM629IOtbTlsRFj3e4n4vx8Yno2PmNIr73V4Iass/iXIa aMmPL+gWC3tQycZ/8SEKvaEMN4G+erogUIly4elopSt3nP2RqxFOQ1W9FJUYzYLycat7 G3AWFor3gE1SrPxYbjV/VYRg/yRyiubYz7yZXTM1Fww+nWTXSWXs7ByzdMrZnqr085Cf wWgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dmarc-filter:sender:dkim-signature; bh=5HlGghoP2b2ht8fi4G9mfxQrkVUoJI58Mvkt18+LJGM=; b=PFa5Jm3wlXUfpWqPnO0Ic7DaC7ntvpZfMOApqz/AukouCq/9kboKe/VIYOaTozDmBg x50kxIATBRO4mB9Pfw23SIOnPTu9+NggwODrQEvV2OBvLRKF/+Fty/Rpj64bSImPxQ45 3qaQq58s9MpFU3mUcaCQr4bWe7FqpVhEDIVzau8NI/q4j9mL9VF+coAkHysigCMOk+Jr cYyl1RHzNexJPFmon6rAi1GVdv8GNbIn7E4AIVxgqD109TDGapWB+CxjhKWeYIorM5F3 QhN+lUa8IWAiWSSjH+8G2ECEt6eGpLoJJQAhHiKqvQiaRJAOTo3Fni5Ngvk6V+Sy5l4v L4Cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=E2PKS55+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id js2si9608998ejc.576.2021.09.07.05.22.17; Tue, 07 Sep 2021 05:22:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=E2PKS55+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344131AbhIGMVo (ORCPT + 99 others); Tue, 7 Sep 2021 08:21:44 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:23924 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344717AbhIGMVO (ORCPT ); Tue, 7 Sep 2021 08:21:14 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1631017208; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=5HlGghoP2b2ht8fi4G9mfxQrkVUoJI58Mvkt18+LJGM=; b=E2PKS55+oBzsdq3iszSYbCnh8g0jmMRh/Ngv7yg5jhNY5paGFJ8W4BgAMHRN8g0Dd3Fmo7/I 8mWFlE3AyZgzd63trw+i31KLhgUKXflyMoFdCzGk4On6igi3zyUlm46F9HTrvGvnaWvDX71v giqtJ3s+tRU/eghIhAe3q7uKXgU= X-Mailgun-Sending-Ip: 198.61.254.9 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n02.prod.us-east-1.postgun.com with SMTP id 613758e91567234b8c943a57 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 07 Sep 2021 12:19:53 GMT Sender: rnayak=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 4675FC4314C; Tue, 7 Sep 2021 12:19:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=ALL_TRUSTED,BAYES_00, NICE_REPLY_A,SPF_FAIL,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from [192.168.1.105] (unknown [49.207.193.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: rnayak) by smtp.codeaurora.org (Postfix) with ESMTPSA id 339F4C43619; Tue, 7 Sep 2021 12:19:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.codeaurora.org 339F4C43619 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=codeaurora.org Subject: Re: [PATCH 1/3] dt-bindings: usb: qcom,dwc3: Add multi-pd bindings for dwc3 qcom To: Sandeep Maheswaram , Doug Anderson Cc: Rob Herring , Andy Gross , Bjorn Andersson , Greg Kroah-Hartman , Felipe Balbi , Stephen Boyd , Matthias Kaehlcke , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-arm-msm , Linux USB List , LKML , Pratham Pratap References: <1630346073-7099-1-git-send-email-sanm@codeaurora.org> <1630346073-7099-2-git-send-email-sanm@codeaurora.org> <1dc7aaaa-a8da-565b-664e-64f529a861b1@codeaurora.org> From: Rajendra Nayak Message-ID: Date: Tue, 7 Sep 2021 17:49:42 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <1dc7aaaa-a8da-565b-664e-64f529a861b1@codeaurora.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/6/2021 2:45 PM, Sandeep Maheswaram wrote: > > On 8/31/2021 1:37 AM, Doug Anderson wrote: >> Hi, >> >> On Mon, Aug 30, 2021 at 10:55 AM Sandeep Maheswaram wrote: >>> Add multi pd bindings to set performance state for cx domain >>> to maintain minimum corner voltage for USB clocks. >>> >>> Signed-off-by: Sandeep Maheswaram >>> --- >>>   Documentation/devicetree/bindings/usb/qcom,dwc3.yaml | 13 ++++++++++++- >>>   1 file changed, 12 insertions(+), 1 deletion(-) >>> >>> diff --git a/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml b/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml >>> index e70afc4..838d9c4 100644 >>> --- a/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml >>> +++ b/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml >>> @@ -41,7 +41,18 @@ properties: >>> >>>     power-domains: >>>       description: specifies a phandle to PM domain provider node >>> -    maxItems: 1 >>> +    minItems: 1 >>> +    items: >>> +      - description: optional,cx power domain >>> +      - description: USB gdsc power domain >> You need to re-order the above. The optional one needs to be second, not first. >> > I wanted to use required-opps for cx domain only. so I have put it first in order. You can always put a <> for the power-domains for which there are no required-opps + power-domain-names = "usb_gdsc", "cx"; + + required-opps = <>, <&rpmhpd_opp_nom>; >>> +  power-domain-names: >>> +     items: >>> +      - const: cx >>> +      - const: usb_gdsc >> Why do you need the names at all? The ordering of power-domains is >> well defined and there are no holes in it and there are no legacy >> reasons for having the names (like there are for clocks), so you >> should drop. This is much like reg-names and I always point people to >> this message from Rob Herring about reg-names: >> >> https://lore.kernel.org/r/CAL_Jsq+MMunmVWqeW9v2RyzsMKP+=kMzeTHNMG4JDHM7Fy0HBg@mail.gmail.com/ >> >> You'll have to change your driver to use dev_pm_domain_attach_by_id() >> but that should be fine. >> >> -Doug > > Ok..I will try using  dev_pm_domain_attach_by_id() > > -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation