Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp393324pxb; Thu, 5 Nov 2020 03:00:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJzM+x4pxvah3hmYQB543CuttBTicosR82X3YYGcK9KaVA3d8Eazz2JYIsyrProdM9aqoT/x X-Received: by 2002:a17:906:854b:: with SMTP id h11mr1698992ejy.273.1604574049305; Thu, 05 Nov 2020 03:00:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604574049; cv=none; d=google.com; s=arc-20160816; b=cbozwl7SKq4iLAn4ssB8ro7sjAbeyzjMqhGaI6Kz0kMt6dyNzAk3g06xvznxhZ8C8I F7/PAm2pNqyMQLwFhHTM6J4ZTK6+t7a4Dre7meXdOh/tzN0pVx7XduqDq2zH13tPfjbQ N3Dgzh1BEdpr/Vd9t9r6TdJq6B4PYXh/MAGbCfWc3zdbdHN4OGS+pTmFJm6nxRvNlFXk Hz8Wkec0gu2x4jAdJJNXhyoePqORXlXaNAXogsE4NfADgshESnbO3eDfJl6bJm7o7Tqv KNrmy8mwK0hqqhwmadVNkW4BuK/K8nWYvG9Wo/tttOqIDGJBsXLvWYqiB3njIm/aof1+ 15hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=NZmePoLLIiaP7pYwZl5Ym7F23h4GkDT/CkXYHiP4lxo=; b=I+ILZIAKH+vd9VND9SWTVxCs1+jCzogAvlpBA+sabyqhBnQMz4NcGS3iPtGh6WzmR0 4gP4rpc/OCgYbYOOwvSGVEZz8QTOCdRQByBN81DFA52z2FXqx0894TpaEUf/3ogoFXhn r0bIImxApzizWN9qBpyeXGmlqpzi8f3mPAzcTvJCvYIRMMHsP0H7TLizLUuIh7nYePQ/ omkJjy3fYj22Bx1W+wyHauxdm7DrsnSemU/M/v9Q3TOMmUjylFYV+q6brMtNiB1YncRR sRfZwLbXXcuQamReeGhJBZDD9RtCfudSMmvgBsOue6X+/+lDc2cAX42xZSauu9d8Uv7A Ab3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sMrO9GRU; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ch5si817280edb.190.2020.11.05.03.00.26; Thu, 05 Nov 2020 03:00:49 -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=@linaro.org header.s=google header.b=sMrO9GRU; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729992AbgKEK5P (ORCPT + 99 others); Thu, 5 Nov 2020 05:57:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726665AbgKEK5O (ORCPT ); Thu, 5 Nov 2020 05:57:14 -0500 Received: from mail-vs1-xe43.google.com (mail-vs1-xe43.google.com [IPv6:2607:f8b0:4864:20::e43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF1D8C0613D3 for ; Thu, 5 Nov 2020 02:57:14 -0800 (PST) Received: by mail-vs1-xe43.google.com with SMTP id t8so524911vsr.2 for ; Thu, 05 Nov 2020 02:57:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NZmePoLLIiaP7pYwZl5Ym7F23h4GkDT/CkXYHiP4lxo=; b=sMrO9GRUiQTa3qJHIC5F27I3pHGV5/pX9nBuQ9TmRTxE01Ehxii8CB9TiezKwc2tYJ 3SHV/Rhxs7BmoKB4aJ9W24W7rjat8dvXU+F20+lfe5dyWM1qwmiRT2/Hz4E+yVMLYnPt b7MnO/qq1/9P+on1rkNYRYvwC+wu1WaH12rx3rIlc9KubXnGg8K8RqrwvSVobVT1eBhL S5jUjJHcPKtkeDXyshEdMUlmsFSrn0JHuPLo57AVegznV5Ma/kMzEcO9yRsB/eDD9c8G VI/lxjTY1cQzy9HDsuMni9iMjRs1YrWj3PYOnqX2Fk0T+EROO60K2racmtEoxOny53Bc Vckg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NZmePoLLIiaP7pYwZl5Ym7F23h4GkDT/CkXYHiP4lxo=; b=V1jp7zD0ae1Cui7BFUunWM0a6Zj02BRQgbM4eZR95lMTIbUjbQ78y7Nbhcy5MTgIbQ e2FNz4/KQn6GDNbl87LXqyDsu8uNwqHF13LSq/Gk+LcfrGmtbJFXfIvuiheco0kU/Seu ja1GEP393omMaihsDNriNmS26DHXqH35DfO9ZDxmh3cMlkyWfFW9+FF3EB7PhzM8KVHq Msqs5swzsLY58XTfONILnX87Zq8OPhsl4Uhb/So+bFPUrVFdyvSmpKKqK2Z5gRWoUX0J QNhw5RKG3UreZBVvsaHM15OprCRqctVbOzTEfO7a70QHYIChm47AxW6JdL66chakj8vD 1UCA== X-Gm-Message-State: AOAM533F4WCxLA+3dDgly/9muPaBykSdgs3Tb4VF1SNetIHMkUGv1QwN 3OYXoD4LKZ9Ttor/g6gEAhQA7r0He7hHuhfyXQDL6A== X-Received: by 2002:a67:310d:: with SMTP id x13mr785780vsx.19.1604573833960; Thu, 05 Nov 2020 02:57:13 -0800 (PST) MIME-Version: 1.0 References: <20201104234427.26477-1-digetx@gmail.com> <20201105100603.skrirm7uke4s2xyl@vireshk-i7> <20201105104009.oo4dc6a2gdcwduhk@vireshk-i7> In-Reply-To: <20201105104009.oo4dc6a2gdcwduhk@vireshk-i7> From: Ulf Hansson Date: Thu, 5 Nov 2020 11:56:37 +0100 Message-ID: Subject: Re: [PATCH v1 00/30] Introduce core voltage scaling for NVIDIA Tegra20/30 SoCs To: Viresh Kumar Cc: Dmitry Osipenko , Thierry Reding , Jonathan Hunter , Alan Stern , Peter Chen , Mark Brown , Liam Girdwood , Adrian Hunter , Krzysztof Kozlowski , Greg Kroah-Hartman , Lee Jones , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , Mauro Carvalho Chehab , Rob Herring , Marek Szyprowski , Peter Geis , Nicolas Chauvet , linux-samsung-soc , driverdevel , Linux USB List , linux-pwm@vger.kernel.org, "linux-mmc@vger.kernel.org" , Linux Kernel Mailing List , DTML , dri-devel , Linux Media Mailing List , linux-tegra Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 5 Nov 2020 at 11:40, Viresh Kumar wrote: > > On 05-11-20, 11:34, Ulf Hansson wrote: > > I am not objecting about scaling the voltage through a regulator, > > that's fine to me. However, encoding a power domain as a regulator > > (even if it may seem like a regulator) isn't. Well, unless Mark Brown > > has changed his mind about this. > > > > In this case, it seems like the regulator supply belongs in the > > description of the power domain provider. > > Okay, I wasn't sure if it is a power domain or a regulator here. Btw, > how do we identify if it is a power domain or a regulator ? Good question. It's not a crystal clear line in between them, I think. A power domain to me, means that some part of a silicon (a group of controllers or just a single piece, for example) needs some kind of resource (typically a power rail) to be enabled to be functional, to start with. If there are operating points involved, that's also a clear indication to me, that it's not a regular regulator. Maybe we should try to specify this more exactly in some documentation, somewhere. > > > > In case of Qcom earlier (when we added the performance-state stuff), > > > the eventual hardware was out of kernel's control and we didn't wanted > > > (allowed) to model it as a virtual regulator just to pass the votes to > > > the RPM. And so we did what we did. > > > > > > But if the hardware (where the voltage is required to be changed) is > > > indeed a regulator and is modeled as one, then what Dmitry has done > > > looks okay. i.e. add a supply in the device's node and microvolt > > > property in the DT entries. > > > > I guess I haven't paid enough attention how power domain regulators > > are being described then. I was under the impression that the CPUfreq > > case was a bit specific - and we had legacy bindings to stick with. > > > > Can you point me to some other existing examples of where power domain > > regulators are specified as a regulator in each device's node? > > No, I thought it is a regulator here and not a power domain. Okay, thanks! Kind regards Uffe