Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2369255pxp; Mon, 21 Mar 2022 18:14:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzS87IUi/2MDe98ZyJIe24KGpR3RQSZrCMojYniaQt+ajVvGUnqUWXViEz1oSGC4TzspcGc X-Received: by 2002:a17:90a:5302:b0:1b9:ba0a:27e5 with SMTP id x2-20020a17090a530200b001b9ba0a27e5mr2019045pjh.91.1647911648024; Mon, 21 Mar 2022 18:14:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647911648; cv=none; d=google.com; s=arc-20160816; b=D02zOSNglVbeby8IyciBH3J/vDRh25TyuEX7n/L2iqN5vG2ziJI66thAIi0uYN6MDV lupV3ieEk6OjWoyXKW5THwdLg2kBk9LjUUhHVxLslvlyoBq0sfrJfkCjSt2VO0cmif7d 8cR9Ac7XF+UJhMzafm9mdfwZ6GAXrGJEgGl0lxB582ZYUJAoy8uFTQx8DFxM+8jww/Nx E0ZY/fykWj8OoiGuu7EPmyLtPMpo/VR3/Fs+vICXqN9Xs2Cpuyj0oW3apHiWTmtnkCh0 qmGv34VdN5tQb8LfNAlxktTR/LJh5otgDtNIA9+qAqwhShzNFqZjjOXOVimif5SfvPoR Zutg== 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=ubdrenh8RZbdb9SUuFRL3yPGdNKdx7dpJeScfreUfxs=; b=cb4RWZ+uKH/RDXM8vJgxRiCefFFceTFGVOpyr6QTinDPokMIJTkv2JgT7kNB57QTaT NDsOfoEERRwZrMI1i8vEXhAI3PrjVclZ66TpNGi3EjeVwEDZYaVdjGw4hU79NZ1j+FeB od3OhCRU+kpKPHgj/EM3hfHD1m7tGlN0XtJkcoRp7LBFPr7xTu3yrLO7rMNG7O7ggyGZ SDk63s1+zPJpnTMMHzvhBV+d3HsEEFKON6Amz7EmIogsn/pTeGfK6uYaAZPrTiK9N8eh qQ1DJFf878sHtxxI7chWziJco5l0EEsa0MAm7sXSZHYV3Sc157N2c2cA1Hw3I3VSAhqp c15A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b="oV/gQ17i"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id bc9-20020a656d89000000b0038211e6803fsi12354838pgb.108.2022.03.21.18.14.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 18:14:08 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b="oV/gQ17i"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 AC01128E38; Mon, 21 Mar 2022 17:47:55 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234459AbiCVAtQ (ORCPT + 99 others); Mon, 21 Mar 2022 20:49:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234341AbiCVAtO (ORCPT ); Mon, 21 Mar 2022 20:49: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 72CC42715E; Mon, 21 Mar 2022 17:47:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1647910068; x=1679446068; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=ubdrenh8RZbdb9SUuFRL3yPGdNKdx7dpJeScfreUfxs=; b=oV/gQ17iGHzNyojLz15qsnxaDROH+Rej42hWjC0+p4lE5Z1eJ5I8xAKY dA8HbI562z07F4HgPFv04SjVvicx0E8bc1VEVHuDCN40F5iGEqQTMRzXx aqIRIbqHy/nJeuiNkRi9yO01he6a52rSc8K+8L7zBf3tpecWhD0ShV95X k=; Received: from unknown (HELO ironmsg05-sd.qualcomm.com) ([10.53.140.145]) by alexa-out-sd-02.qualcomm.com with ESMTP; 21 Mar 2022 17:47:48 -0700 X-QCInternal: smtphost Received: from nasanex01b.na.qualcomm.com ([10.46.141.250]) by ironmsg05-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Mar 2022 17:47:48 -0700 Received: from collinsd-linux.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.22; Mon, 21 Mar 2022 17:47:47 -0700 From: David Collins To: Rob Herring , Sudeep Holla , CC: David Collins , Mark Brown , Liam Girdwood , Cristian Marussi , , , , "Subbaraman Narayanamurthy" Subject: [PATCH v2 1/2] dt-bindings: firmware: arm,scmi: define support for name based regulators Date: Mon, 21 Mar 2022 17:47:19 -0700 Message-ID: <4c94b4351b8d38167e972df46fbc507f9499513a.1647909090.git.quic_collinsd@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01b.na.qualcomm.com (10.46.141.250) 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,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 Allow SCMI regulator subnodes to be specified either by ID using the "reg" property or by name using the "arm,scmi-domain-name" property. Name based SCMI regulator specification helps ensure that an SCMI agent doesn't need to be aware of the numbering scheme used for Voltage Domains by the SCMI platform. It also ensures that the correct Voltage Domain is selected for a given physical regulator. This cannot be guaranteed with numeric Voltage Domain IDs alone. Signed-off-by: David Collins --- .../devicetree/bindings/firmware/arm,scmi.yaml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml index 5c4c6782e052..08cb5de967ac 100644 --- a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml +++ b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml @@ -155,7 +155,7 @@ properties: The list of all regulators provided by this SCMI controller. patternProperties: - '^regulators@[0-9a-f]+$': + '^regulator.+$': type: object $ref: "../regulator/regulator.yaml#" @@ -164,8 +164,17 @@ properties: maxItems: 1 description: Identifier for the voltage regulator. - required: - - reg + arm,scmi-domain-name: + description: + A string matching the name of the SCMI voltage domain for this + regulator. + $ref: "/schemas/types.yaml#/definitions/string" + + anyOf: + - required: + - reg + - required: + - arm,scmi-domain-name additionalProperties: false -- 2.17.1