Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2476pxb; Mon, 31 Jan 2022 03:48:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJwCy3s8rEo7xzhUXCdr8yO5SqI413jWd4BaouKstLcqdNGG5nQstXp40gc9BVzUGv13kqGK X-Received: by 2002:a63:6984:: with SMTP id e126mr12794833pgc.249.1643629730284; Mon, 31 Jan 2022 03:48:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643629730; cv=none; d=google.com; s=arc-20160816; b=bOlFnPjV0VIXEcGzWnGiSgUGgN1KNVOagdIEzuN5AVIt/CrIxf5S4zN9YiKLAyUL+u KRHhROD2uliFJIltaTDySCqaar9Cfjq6P432gCfNFT+zQfsH9f+lVOly1T5Igd4R9Py/ 13Ok3Xey+zZXuBldb+OoI31F4tnZ8ke1wWihCkdxgX15IzdetAsYzJoSIojv8U/URWnA SrtjtRgWZ0Rqht7869vUF2jxnKB6noN1qu7O5ArTvQTfYPVPhNLH8qJ29VXJU1Cl97uq CytxIjbXRxiTrmCEyJZZSFdnOa+rAoAS9wVCbQInnlNpoihmTFJNyYZq+tEUW/A603hZ NOsA== 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:dkim-signature; bh=/WErSQ5riLjTn9G82iWYYkqLnkTM7a6hv6C1CsU4/Wc=; b=rLFDcIgZBdDMAT8JC2ZGz5NRMol95ngizUqIlYuZY/97TG36aMTmeETXBQ1pVvIGxr wj/S73lsrtjy9uHdzjjYQZbpV6CfnSX76MCNsRR+Yb8EBKKtjEtm8UJQNKM+WmCeRuc5 QcZgvdLUhBQPy501Wdf1XVFcu1fYmobDzvJqk2x4yhcsC43RSv/okgc1LiBkPN2LDJLv gmyPPUYsoIupwTv1ozm8qXpxFW2xoRT6dtYbSltvPcpQAWZtwlu/XvBbSUbuNbrBhUXA twEHGVYKq3UC5E76vornjtduNtv3cHIGstDMQrOnTvoDC7UMmQxk1+zXWALCkcyn3ri7 +/wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=U04MmxlR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 189si13324169pgc.346.2022.01.31.03.48.38; Mon, 31 Jan 2022 03:48:50 -0800 (PST) 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=@quicinc.com header.s=qcdkim header.b=U04MmxlR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245259AbiA1XJf (ORCPT + 99 others); Fri, 28 Jan 2022 18:09:35 -0500 Received: from alexa-out-sd-02.qualcomm.com ([199.106.114.39]:10080 "EHLO alexa-out-sd-02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243573AbiA1XJe (ORCPT ); Fri, 28 Jan 2022 18:09:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1643411374; x=1674947374; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=/WErSQ5riLjTn9G82iWYYkqLnkTM7a6hv6C1CsU4/Wc=; b=U04MmxlRcwoYYqlGGmwnFCId4ynwzyuk1vC+YhBdrqnqMSPaG+1h6BzC oMKQpeQleFOIrNtflnGlZVKtfpViJR+KVSpB95LtCu9qmKph1c5xBvAiA sR/DjUQJC0o+9iaYIYwbxB5ZwdGg9OQpTlDEf+5z1nNZVAmFvHhqUOiTM s=; Received: from unknown (HELO ironmsg05-sd.qualcomm.com) ([10.53.140.145]) by alexa-out-sd-02.qualcomm.com with ESMTP; 28 Jan 2022 15:09:33 -0800 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; 28 Jan 2022 15:09:33 -0800 Received: from [10.46.160.247] (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.922.19; Fri, 28 Jan 2022 15:09:31 -0800 Subject: Re: [RESEND PATCH 1/2] dt-bindings: firmware: arm,scmi: define support for name based regulators To: Mark Brown CC: Rob Herring , Sudeep Holla , , Liam Girdwood , "Cristian Marussi" , , , , "Subbaraman Narayanamurthy" References: From: David Collins Message-ID: <8355035c-6d90-adfd-c4e1-7bb37a2d8055@quicinc.com> Date: Fri, 28 Jan 2022 15:09:30 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="windows-1252" Content-Language: en-US Content-Transfer-Encoding: 7bit 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) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/28/22 11:32 AM, Mark Brown wrote: > On Mon, Jan 24, 2022 at 04:27:35PM -0800, David Collins wrote: > >> Name based SCMI regulator specification helps ensure that an SCMI >> agent doesn't need to be aware of the numbering scheme used for > > What is a "SCMI agent" in this context? This is changing how the DT > bindings are specified, at some point things are going to need to be > hard coded. An SCMI agent is the entity that issues SCMI commands (i.e. the consumer). An SCMI platform is the entity that receives the SCMI commands and performs the necessary operations (i.e. the provider). This is the terminology used in the ARM SCMI spec [1]. A typical system layout could have an agent that is the application processor (running Linux) and a platform that is an embedded controller. The system layout that this patch is targeted for consists of an SCMI platform implemented in software in the primary Linux OS on the application processor and an SCMI agent in a guest VM (also running Linux). This provides paravirtualized regulator control to the guest VM where full virtualization is not supported. During the course of development of these software images, it may be necessary to add or reorder the set of SCMI voltage domains (regulators) implemented on the platform side. If the voltage domains are only identified and matched based on the ID number, then it is easy for the platform and agent to get out of sync. Using the voltage domain name instead of ID number for identification and matching provides robust assurance of correct regulator usage in the face of domains being added, removed, or reordered on the platform side. >> + regulator-name: true >> + >> + anyOf: >> + - required: >> + - reg >> + - required: >> + - regulator-name > > This is abusing the existing regulator-name property which is there to > allow a human readable descriptive string to be attached to a regulator. > It should have no effect other than being included in diagnostic output. Would you be ok with a new DT property being added in place of "regulator-name" in this patch which serves the same matching purpose (perhaps "arm,scmi-domain-name")? Thanks, David [1]: https://developer.arm.com/documentation/den0056/latest