Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3983016pxb; Tue, 25 Jan 2022 00:38:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJzg1oYA6QsZYwIVrHKqaZ8m/2sgGgTSmbj3v8Gu5D1Zy41xALu1Prmp/fos9w5aSfGfQMDI X-Received: by 2002:a17:907:2d25:: with SMTP id gs37mr6047965ejc.693.1643099904135; Tue, 25 Jan 2022 00:38:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643099904; cv=none; d=google.com; s=arc-20160816; b=gAcTbNRu4jBuDGw7BZkIvuhwhp5ZmyGuDnAqHlZkGBiJEMlsqgt9rkG/Ab3tu2HUJw EcBWZhBs/OhySZjsvKSkpz9NffX7GznI145iLn9FTm/Q+tuJaSJXai8h92VDgjny7c/x 7FL1iLk5py1qbfrgQo6jO0jxVTTvwb185obpO8dBBbenewSPfsxalPp91d6bVPs3hU5J +EYJziXBQIEN44En7q1FfECRt2ykG+Qh8JPHONAaIjoHc0p9Kmx9y9AAajbNj/oEHg71 CViy3MaodzHUi2i+o+ZY7Qj4j62a+wjL/M2Nv946J6u8LFQRqhzVNMpYYP/39eQyoXOy tRCg== 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=2wr8SGhJDgwc1rii8kTEvDvFvWDeC6rw0Za8FEAfY5c=; b=M6alWBVJW3ecQLDlLrKi6FytKi9ljNqma2LujHUCIfsENkVBDhiFA2mdC+WRkrWsKw hHChrH8xPdGr5zGpOXm7xe0mUXKOwzHCX0mhsFwIqui9187GaiU7Cf1uagWAz5x31XaY R6lby0IS08Y52g7sPQp6Jdn7GP6lQb/7qO4YscUYq6bPZN35Ir7pqq3aQsypxKnTHwcc RxXiX2Nn360/U9FdOOnLTlzb8gtB9lZaZ19Y3sR69n9yWJzHj99vjqcvDEv+oVznLmgU 2IbERGz8ehEkEDAlEgPj4loGr3QlUwtwpmBZrXy0b0XZ1/Rs3/Ph3M5OGP15nX0A5lZU so4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=zEdBN0Vr; 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 hr36si3937200ejc.955.2022.01.25.00.37.59; Tue, 25 Jan 2022 00:38:24 -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=zEdBN0Vr; 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 S1316117AbiAYCzM (ORCPT + 99 others); Mon, 24 Jan 2022 21:55:12 -0500 Received: from alexa-out-sd-02.qualcomm.com ([199.106.114.39]:2671 "EHLO alexa-out-sd-02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1449430AbiAYA3x (ORCPT ); Mon, 24 Jan 2022 19:29:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1643070593; x=1674606593; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=2wr8SGhJDgwc1rii8kTEvDvFvWDeC6rw0Za8FEAfY5c=; b=zEdBN0VrxUpikyZyazrwgStqjz/W5rDlChaVr7UbKcuOiJGC1ZSUL/8L D7ZEOuDQzWo0wX/RPGY/8jVTA5+9xGRXsInKFz4G69YkFNSWz33n8spDr FzI7UT+FBBPo2lPZ8182c74sAB3LXvAIM/c4uQPc8HN5gvzXIq9eaSu+i 4=; Received: from unknown (HELO ironmsg01-sd.qualcomm.com) ([10.53.140.141]) by alexa-out-sd-02.qualcomm.com with ESMTP; 24 Jan 2022 16:27:50 -0800 X-QCInternal: smtphost Received: from nasanex01b.na.qualcomm.com ([10.46.141.250]) by ironmsg01-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jan 2022 16:27:49 -0800 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.922.19; Mon, 24 Jan 2022 16:27:49 -0800 From: David Collins To: Rob Herring , Sudeep Holla , CC: David Collins , Mark Brown , Liam Girdwood , Cristian Marussi , , , , "Subbaraman Narayanamurthy" Subject: [RESEND PATCH 1/2] dt-bindings: firmware: arm,scmi: define support for name based regulators Date: Mon, 24 Jan 2022 16:27:35 -0800 Message-ID: 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) 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 "regulator-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 Reviewed-by: Rob Herring --- .../devicetree/bindings/firmware/arm,scmi.yaml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml index 5c4c6782e052..bc4a84fe25d2 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,13 @@ properties: maxItems: 1 description: Identifier for the voltage regulator. - required: - - reg + regulator-name: true + + anyOf: + - required: + - reg + - required: + - regulator-name additionalProperties: false -- 2.17.1