Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2488426iob; Fri, 20 May 2022 10:25:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhEyOAd1AtFW5RDr3qX2h3hWno9/CODSCjpP7T1B9w2K5+ymL54ygMxn+ivpoOtOSKPbpf X-Received: by 2002:a17:906:794b:b0:6f4:85e1:d7f with SMTP id l11-20020a170906794b00b006f485e10d7fmr9462439ejo.6.1653067528035; Fri, 20 May 2022 10:25:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653067528; cv=none; d=google.com; s=arc-20160816; b=ehJWDHZolCsT94K8qRfmSBRXuOd5h3flts+x50QoQ/gKkBFy7gdSMyLlEBbybbKQkP 6PnQGdfq3sjh6kNvYCP3J1seEAUyGohZRMmZDmJ3Wn53jE1CD9SCk49Z7jsbNYHddOBe dCfQaSnBw9GPQaoAb+Xt95TKKjJ6ks/aThRkycOyMYL4GnOPxhCMJIwAiKN604YnUSGc daAAL1KsJVaEdEMM7pfEfDyJyBTy1Qnfebk8hG/FmHxFNKHQeGkktnKnnBgFEjzN4UXR 7sIBW3odC0Ep3rwIqNCdJveXW3ehNRcmTfR+q60Om8msip69by+3fpaeqL4ls3P8VxE0 nr4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=bDLidO+uz/WxZLgd7T0KPUs7o3mI46xraJxkCn7ZFMc=; b=d3uoCwpIALAn2I0FcUGSoYP9SAC4IHRVi9HtcAaK0KlEsPlxUwopXYo18fwGAE1Fd0 E4NldnP/5FDRXg7sSMCvDqVzbxKXPJr/+UJ3hc9o5L66G0sw6MAcXwwdEjt7FooEaT4g i8NgQpfuoBlrQgKFu0Gn38pdeRu/N/mRYbWZV4kXSkTck7fEEFPW1FCOTzZJIGQ7jtKS ujU9nKSCPXfaUXiY/UF+A02AfcWvP1VGigIpoKhLW754ZBusJE/N1zYRFJNbV/dbaHxk wq1yu0wCqlsluXYqNB+i9ogZJBHdMpwYDCbXQlsdRqPUe9koSwUr2rVlY2YnQtVsGE/I 1qeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=L3bmzxmv; 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 n21-20020a509355000000b0042ac1c6784esi9190688eda.468.2022.05.20.10.25.02; Fri, 20 May 2022 10:25:28 -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=L3bmzxmv; 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 S244014AbiESWbQ (ORCPT + 99 others); Thu, 19 May 2022 18:31:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233817AbiESWbO (ORCPT ); Thu, 19 May 2022 18:31:14 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A954A9FD2; Thu, 19 May 2022 15:31:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1652999472; x=1684535472; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=bDLidO+uz/WxZLgd7T0KPUs7o3mI46xraJxkCn7ZFMc=; b=L3bmzxmvKv0afo4OS0Cl3vprFCz4ygPt8+5thrqcpI0TsSTFMv/tB3GB Ra84KiwHRxeIvkx8knnfaOROkXK/WC3FfEgcB9A+jbGxHB6Ac96R/UtPC qRp3vOnmALkUpMyLH/tnDSBNduAwtNtIAHkcEZkybHN/ECzglUQo4Wj6L k=; Received: from unknown (HELO ironmsg04-sd.qualcomm.com) ([10.53.140.144]) by alexa-out-sd-02.qualcomm.com with ESMTP; 19 May 2022 15:31:10 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg04-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 May 2022 15:31:09 -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, 19 May 2022 15:30:38 -0700 Received: from [10.110.88.175] (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, 19 May 2022 15:30:37 -0700 Message-ID: <27515993-18f3-8891-4835-9b6a8d7f86b0@quicinc.com> Date: Thu, 19 May 2022 15:30:37 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v6] dt-bindings: power: reset: qcom-pon: update "reg" property details Content-Language: en-US To: Rob Herring CC: , , , , , , , , , , , David Collins References: <20220422191239.6271-1-quic_amelende@quicinc.com> <20220422191239.6271-2-quic_amelende@quicinc.com> From: Anjelique Melendez In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit 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=-5.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 On 4/25/2022 2:45 PM, Rob Herring wrote: > On Fri, Apr 22, 2022 at 12:12:38PM -0700, Anjelique Melendez wrote: >> From: David Collins >> >> Update the description of "reg" property to add the PON_PBS base >> address along with PON_HLOS base address. Also add "reg-names" >> property description. >> >> Signed-off-by: David Collins >> Signed-off-by: Anjelique Melendez >> --- >> .../bindings/power/reset/qcom,pon.yaml | 19 ++++++++++++++++++- >> 1 file changed, 18 insertions(+), 1 deletion(-) >> >> diff --git a/Documentation/devicetree/bindings/power/reset/qcom,pon.yaml b/Documentation/devicetree/bindings/power/reset/qcom,pon.yaml >> index 353f155d..65ec8197 100644 >> --- a/Documentation/devicetree/bindings/power/reset/qcom,pon.yaml >> +++ b/Documentation/devicetree/bindings/power/reset/qcom,pon.yaml >> @@ -26,7 +26,24 @@ properties: >> - qcom,pm8998-pon >> >> reg: >> - maxItems: 1 >> + description: | >> + Specifies the SPMI base address for the PON (power-on) peripheral. For >> + PMICs that have the PON peripheral (GEN3) split into PON_HLOS and PON_PBS >> + (e.g. PMK8350), this can hold addresses of both PON_HLOS and PON_PBS >> + peripherals. In that case, the PON_PBS address needs to be specified to >> + facilitate software debouncing on some PMICs. >> + minItems: 1 >> + maxItems: 2 >> + >> + reg-names: >> + description: | >> + For PON GEN1 and GEN2, it should be "pon". For PON GEN3 it should include >> + "pon_hlos" and optionally "pon_pbs". >> + minItems: 1 >> + items: >> + - const: pon_hlos >> + - const: pon_pbs >> + - const: pon > > Did you test that 'reg-names = "pon";' works? It doesn't. The schema > says 'pon' is the 3rd entry in reg-names. > > As 'reg-names' is new I thin this should be: > > items: > - const: hlos > - const: pbs > > And if there's 1 entry, then 'reg-names' should not be there. > > Rob currently reg-names is not consumed by the pm8941 driver but rather for users to understand what each reg address is associated with. With this being the case would the following be acceptable? minItems: 1 maxItems: 2 items: anyOf: - const: pon_hlos - const: pon_pbs - const: pon If not we would be ok with getting rid of the reg-name property.