Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2369464pxp; Mon, 21 Mar 2022 18:14:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzj+vFIrJ+y6aFBRy6m1BkELpvWYOozUUj+vgQ1f1h0w6cS98/Glc2BO8POTgvHdMroAREi X-Received: by 2002:a63:e952:0:b0:382:65eb:257 with SMTP id q18-20020a63e952000000b0038265eb0257mr8667830pgj.465.1647911666765; Mon, 21 Mar 2022 18:14:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647911666; cv=none; d=google.com; s=arc-20160816; b=VkB4ZH+5bWjZ1gZoGUhDlKSxmAyRnR0WtFaWtUpCWFsssaQpRJ9R+eP/Xs4isy4+Bk P62mnycFmhMoyowhlPP6eiFqtzs3Uy+gQNtyUgeaWyRKTDJNiCi1f1Gys4s3PISHEohy NKLUG16+GC41F42EjTVeqBjKOSRWYqbPGIguK49fmtr21vTLQ07/0weopSioXmahTgna Mz+legTbKZU9ys16sumq7B/6pv/OOMlf5e4fc7eKVfNErFSoNLL2B+RXLMid9rTSkQAU WEd9ip9c1RPHBAqE17w6pB5PcCCkOQ6dvrn5eIw65blRrBzBLg/uGTuHxNCYPS6SMuFp c9fA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=C5lTDdOfMPAE0ajPAQDA9bQQeuDZypCaA114x2yCVZU=; b=C6A09rJCLAOOOLZ1nxHkehTMuDP7pejFpV0rRNpCDeagFXsBxXacjruJ47TKiyhhP3 3Lo+xMrBSx+jqiGI+r10BXyjGUhqwy6I5vONmk7+x+PPpx+1QKSketR1Non8nEoQRLBK Hc7HCA3DZyZ/YdswN8GCHCGOoAjgPqVxMlg69YcvJ3ChIicN3/fKXwWd9X9+Gzll9i5H iIYcSv7+uNRWWUbE8duCSWuspx/AbmT5pBQo4FJa8Z5kaVDu/jrhL+yK3pz9Y9VjkClT 3YGStryfTSI4CyiAIm+JKa+jA0E7L1mNhaQLNvDoTquIVV7q4tjTrRE2RHDt4mDpy435 t5zA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=b5elKTMm; 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 t13-20020a170902b20d00b00153b2d16579si12385286plr.385.2022.03.21.18.14.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 18:14:26 -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=b5elKTMm; 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 AE8532CC94; Mon, 21 Mar 2022 17:48:04 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234478AbiCVAtS (ORCPT + 99 others); Mon, 21 Mar 2022 20:49:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234445AbiCVAtO (ORCPT ); Mon, 21 Mar 2022 20:49:14 -0400 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B356275C8; 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:mime-version; bh=C5lTDdOfMPAE0ajPAQDA9bQQeuDZypCaA114x2yCVZU=; b=b5elKTMmROsEj45tUc83YMI6w6gAzXPsz0x7YOdzBAvScUgneGdazAvS E7IiglN7xATYSiU169dSKMC9YxYqCe+8Q3TJTSFrrfnFM16tTClZPWjdE LfasyRA4XCKGtBc4grRX+8JJ8tSRdIh06j1QJ1Ys0jaOYHyt7/R6UgOwo 4=; Received: from unknown (HELO ironmsg02-sd.qualcomm.com) ([10.53.140.142]) by alexa-out-sd-01.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 ironmsg02-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Mar 2022 17:47:47 -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 , Mark Brown , Liam Girdwood , CC: David Collins , Cristian Marussi , , , , "Subbaraman Narayanamurthy" Subject: [PATCH v2 0/2] regulator: scmi: add support for registering SCMI regulators by name Date: Mon, 21 Mar 2022 17:47:18 -0700 Message-ID: X-Mailer: git-send-email 2.17.1 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 Add support to register SCMI regulator subnodes based on an SCMI Voltage Domain name specified via the "arm,scmi-domain-name" device tree property. In doing so, make the "reg" property optional with the constraint that at least one of "reg" or "arm,scmi-domain-name" must be specified. If both are specified, then both must match the Voltage Domain data exposed by the SCMI platform. Name based SCMI regulator registration 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. Changes in v2: - Replaced usage of DT property "regulator-name" with "arm,scmi-domain-name". v1 of this patch series can be found at [1]. [1]: https://lore.kernel.org/lkml/cover.1643069954.git.quic_collinsd@quicinc.com/T/ David Collins (2): dt-bindings: firmware: arm,scmi: define support for name based regulators regulator: scmi: add support for registering SCMI regulators by name .../bindings/firmware/arm,scmi.yaml | 15 ++++- drivers/regulator/scmi-regulator.c | 58 ++++++++++++++++++- 2 files changed, 67 insertions(+), 6 deletions(-) -- 2.17.1