Message ID | 20221216231349.22835-1-quic_molvera@quicinc.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp1251796wrn; Fri, 16 Dec 2022 15:22:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf7QNlRUhoSdGQVPeDMsM5ZxLcnouSIudqn2ThVR1eC7ufJXqih5irNvAiedpa/OxqNHu6g1 X-Received: by 2002:a17:902:c3cd:b0:189:d3dc:a9c4 with SMTP id j13-20020a170902c3cd00b00189d3dca9c4mr33389469plj.36.1671232954786; Fri, 16 Dec 2022 15:22:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671232954; cv=none; d=google.com; s=arc-20160816; b=LtrGhRuPvxZrRnK+2ZXR1NcNttsKgtavJNlh545ygqTS0w8RUkCR7RPjq9XxbemoDF RYYX5xYFAZL483YV+kHUbbf2oFxduZFaZndRycOY9IbcnkMyVxiGNwq7AtHCs9FwHllb c2+y5V3PsUrPZ7uj9+VO/qY7JbJPt0Tl2EV+CalmKdBuyhbb9Magt66fSb7sZmqOOHfn wf/viHVjszCLCvbAlLsBZqWV8gqxnERoUHiswc4NDIvTiKel+l3YEVlwj0fRULuH7Dto FwkUIcBr4SsM4k76Wf+3PlUF7NWM7Inq35ktErf6m9wzkVwXBbkapXCMB6Lzsd+N/Do5 EzMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=GG3y9hqpWkjOzOhPgzeUiZRZR0VGzftL8K9tkA1WxWU=; b=sWnzDRHp1gEdFQGhBnrnXt12NbwVtdASOSJvlzZt0pUyT1cx5V1SMxL24X/4psYC57 kuGjVOnh8Ubb+lpJ3Ak0AZ0XT/BobLyXqs7plAdDee2RPWZqyO1VCML/auAequjnFuRC m9eF4/9rgeA2lFzZmqQiLkijXSWccIXsV0VETN31WguHWiKhbrA6gNVtpPxzw5UBU04P x7c8kHtZNKGhP+ABOXdMK73uy37clDcnKCIjuY6y5g0RwW6Tli8t6kmy/krdWsenJ+n9 UYP1f55Xtkn3ijUGieJpRmirzIWioMNBBas7hGaoctFAdl5fuvLNg0/9f2fUmJvuHds6 eKLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=thKmNv2u; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i14-20020a17090332ce00b001899477302bsi4185972plr.588.2022.12.16.15.22.21; Fri, 16 Dec 2022 15:22:34 -0800 (PST) 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=thKmNv2u; 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 S230084AbiLPXPH (ORCPT <rfc822;jeantsuru.cumc.mandola@gmail.com> + 99 others); Fri, 16 Dec 2022 18:15:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230218AbiLPXOi (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 16 Dec 2022 18:14:38 -0500 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 1ADCE248CC; Fri, 16 Dec 2022 15:14:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1671232440; x=1702768440; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=GG3y9hqpWkjOzOhPgzeUiZRZR0VGzftL8K9tkA1WxWU=; b=thKmNv2u/uSSfjhSE3++oDjBK4qT7ChUO5NjrQLmj2JRlMJUOUgl4INv iU46T+wlLsddiou7AAh6K2cDYhKzyM9RMV5YwOOQREwNCJ76cPYxz1QQU 8X11bg/f0H8EHBmxqoFScT/TlrGIKydy9xtc1XlKQssN/BwGVwps5ihvC 8=; Received: from unknown (HELO ironmsg04-sd.qualcomm.com) ([10.53.140.144]) by alexa-out-sd-02.qualcomm.com with ESMTP; 16 Dec 2022 15:13:59 -0800 X-QCInternal: smtphost Received: from nasanex01b.na.qualcomm.com ([10.46.141.250]) by ironmsg04-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Dec 2022 15:13:59 -0800 Received: from hu-molvera-sd.qualcomm.com (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Fri, 16 Dec 2022 15:13:59 -0800 From: Melody Olvera <quic_molvera@quicinc.com> To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org> CC: Melody Olvera <quic_molvera@quicinc.com>, "open list:ARM/QUALCOMM SUPPORT" <linux-arm-msm@vger.kernel.org>, "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" <devicetree@vger.kernel.org>, open list <linux-kernel@vger.kernel.org> Subject: [PATCH v5] dt-bindings: soc: qcom,rpmh-rsc: Update to allow for generic nodes Date: Fri, 16 Dec 2022 15:13:49 -0800 Message-ID: <20221216231349.22835-1-quic_molvera@quicinc.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01b.na.qualcomm.com (10.46.141.250) 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 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752414766654774294?= X-GMAIL-MSGID: =?utf-8?q?1752414766654774294?= |
Series |
[v5] dt-bindings: soc: qcom,rpmh-rsc: Update to allow for generic nodes
|
|
Commit Message
Melody Olvera
Dec. 16, 2022, 11:13 p.m. UTC
Update the bindings to allow for generic regulator nodes instead of
device-specific node names.
Signed-off-by: Melody Olvera <quic_molvera@quicinc.com>
---
Changes from v4:
* updated regulator pattern to accommodate more regulators
This patch comes from discussions on [1] and is separated out. It also
has updated pattern matching to match the comments left from [1].
[1] https://lore.kernel.org/all/20221026200429.162212-2-quic_molvera@quicinc.com/
---
Documentation/devicetree/bindings/soc/qcom/qcom,rpmh-rsc.yaml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
base-commit: ca39c4daa6f7f770b1329ffb46f1e4a6bcc3f291
Comments
On 17.12.2022 00:13, Melody Olvera wrote: > Update the bindings to allow for generic regulator nodes instead of > device-specific node names. > > Signed-off-by: Melody Olvera <quic_molvera@quicinc.com> > --- > > Changes from v4: > * updated regulator pattern to accommodate more regulators > > This patch comes from discussions on [1] and is separated out. It also > has updated pattern matching to match the comments left from [1]. > > [1] https://lore.kernel.org/all/20221026200429.162212-2-quic_molvera@quicinc.com/ > > --- > Documentation/devicetree/bindings/soc/qcom/qcom,rpmh-rsc.yaml | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,rpmh-rsc.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,rpmh-rsc.yaml > index b246500d3d5d..5bb624f62edc 100644 > --- a/Documentation/devicetree/bindings/soc/qcom/qcom,rpmh-rsc.yaml > +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,rpmh-rsc.yaml > @@ -112,8 +112,9 @@ properties: > $ref: /schemas/power/qcom,rpmpd.yaml# > > patternProperties: > - '-regulators$': > + '^regulators(-[09])?$': Wouldn't this only allow regulators-0 and regulators-9? Konrad > $ref: /schemas/regulator/qcom,rpmh-regulator.yaml# > + unevaluatedProperties: false > > required: > - compatible > > base-commit: ca39c4daa6f7f770b1329ffb46f1e4a6bcc3f291
On 12/17/2022 8:29 AM, Konrad Dybcio wrote: > > On 17.12.2022 00:13, Melody Olvera wrote: >> Update the bindings to allow for generic regulator nodes instead of >> device-specific node names. >> >> Signed-off-by: Melody Olvera <quic_molvera@quicinc.com> >> --- >> >> Changes from v4: >> * updated regulator pattern to accommodate more regulators >> >> This patch comes from discussions on [1] and is separated out. It also >> has updated pattern matching to match the comments left from [1]. >> >> [1] https://lore.kernel.org/all/20221026200429.162212-2-quic_molvera@quicinc.com/ >> >> --- >> Documentation/devicetree/bindings/soc/qcom/qcom,rpmh-rsc.yaml | 3 ++- >> 1 file changed, 2 insertions(+), 1 deletion(-) >> >> diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,rpmh-rsc.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,rpmh-rsc.yaml >> index b246500d3d5d..5bb624f62edc 100644 >> --- a/Documentation/devicetree/bindings/soc/qcom/qcom,rpmh-rsc.yaml >> +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,rpmh-rsc.yaml >> @@ -112,8 +112,9 @@ properties: >> $ref: /schemas/power/qcom,rpmpd.yaml# >> >> patternProperties: >> - '-regulators$': >> + '^regulators(-[09])?$': > Wouldn't this only allow regulators-0 and regulators-9? Yup; my bad. Will update regex here. Thanks, Melody > > Konrad >> $ref: /schemas/regulator/qcom,rpmh-regulator.yaml# >> + unevaluatedProperties: false >> >> required: >> - compatible >> >> base-commit: ca39c4daa6f7f770b1329ffb46f1e4a6bcc3f291
diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,rpmh-rsc.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,rpmh-rsc.yaml index b246500d3d5d..5bb624f62edc 100644 --- a/Documentation/devicetree/bindings/soc/qcom/qcom,rpmh-rsc.yaml +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,rpmh-rsc.yaml @@ -112,8 +112,9 @@ properties: $ref: /schemas/power/qcom,rpmpd.yaml# patternProperties: - '-regulators$': + '^regulators(-[09])?$': $ref: /schemas/regulator/qcom,rpmh-regulator.yaml# + unevaluatedProperties: false required: - compatible