Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp385573pxb; Thu, 5 Nov 2020 02:44:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJzSiO7GoiOrsunnY1olp3aR7BwGvKad/5Kxnj8yKoO1Eu83BTPIVjt+WbadJtUjrV9p1PWK X-Received: by 2002:a17:906:280a:: with SMTP id r10mr1604371ejc.58.1604573071089; Thu, 05 Nov 2020 02:44:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604573071; cv=none; d=google.com; s=arc-20160816; b=FJres9rGUFC5lP3KGznplsddcSDV6iRa1oW4sr03bo7uR58MnJmzK1X3kd+EGwhE3r 7lhMMs1KoB3alYzcoYyw74m2ycSBM4ZY2jRE0/kHxJfsbaiEBMja7D2TUiGp7n4wAebb bx4PlCXq6fmYoYF9FXW0Uo1AU/kl1PsrYviQ7i/VCUB8qAT44yGW6EjhNCpHICFQVZjK 02vIOtm01FrX+5ohuAnvY8+9PbkxYjp3JcBp4DB454Magq33KqYyCLss4dqCUoVFBh6o AbshE3ugRqn64verhMicS6Q6QtzZIactk1NfniQHYOL/Q1lPlYDUgDGL2P/5UYYoqpin 2Nqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=WCCTQKcgxT5BgoXvd55cVkeUPDruRceTke7HPT3Hkyo=; b=FUsuCftYlb7QYA6RvAGMEgGiZm460LVfGXUa8ApEDweGKgu3Kizoyc4Y/plNfUvUVf ezMCvZigzg9nW0dewmW/gk4dmqWGXg+aO7i8ymTM0aIfgmQsRgoV48qIBirrAWb2Ep64 9v6gB0nE7O1F6q5yNSPTRrDncwi0xILoI87cwO/4sGZf7PXccsnucdyxp9K0lQ1Z12+p XAewPl0t5VDeECRNhGjKeu+klRJCgLkPg2tto5/TwBretlpYXCGdW587bCVrx+0ImqZz 1w1Ech/mRmaTLUyGMaO+CDRFUsZxX31/2bJB5C84bbnFLjzWuwBsKuKN3IoxVGctpVBG qbqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uI5sjdIZ; 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 d10si760235edm.314.2020.11.05.02.44.07; Thu, 05 Nov 2020 02:44:31 -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=uI5sjdIZ; 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 S1728371AbgKEKkQ (ORCPT + 99 others); Thu, 5 Nov 2020 05:40:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726067AbgKEKkO (ORCPT ); Thu, 5 Nov 2020 05:40:14 -0500 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A0C4C0613D3 for ; Thu, 5 Nov 2020 02:40:13 -0800 (PST) Received: by mail-pl1-x642.google.com with SMTP id b12so594789plr.4 for ; Thu, 05 Nov 2020 02:40:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=WCCTQKcgxT5BgoXvd55cVkeUPDruRceTke7HPT3Hkyo=; b=uI5sjdIZnJfMXmb2BmcneLzfiFbBlet9wY7JQZtjHR0GF8UkHMmcqlXwBrkvsqK1WI SeinhDQqNDH8/hEaMPpSpgwvj0qAA2DAOlij96dLz+WulydyVF4o3fYzumZUYFXFoH1h ZgXb17DvmcshHNZxztv5zRi/aeOa+ymd+joJrRroDAhLo0nx97avxNo1KBPgxXcO+5qD SXvk12UVzaw2/5tEF2FemBinKY4gdRZP1KDwgT69Jbp7nnNi1tx0Yci0mKB/TEHxbTdH hUsmGHEaNuInutK+0y4SPLiOBIQ+CzV6c4LqpUQ2rUe9GYtY4Vnxx2LLLnO7akoNoqHJ X5Yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=WCCTQKcgxT5BgoXvd55cVkeUPDruRceTke7HPT3Hkyo=; b=A7EBGR5dCBUV4r9eWSZUyD6dUjz4pljtDPhH/Ne1IaMGYscGxMhei++yJOahvmYZsp ltGAltyXihUfyKU2hWZkzIN+LfB5p4NlRCQglPWH8YbhvSPuDnTE/L04CS31bH5CC+5C a5zFNyng/rav7FtIAt+qoeU1eDX/7EV3nxMDm7hR+71QMTpz4KY1cxhpmx5oKYvybtPx GNGiQBw4I0xKCb4YaAhdcdLOegeHe3NdXs/B8Y3E0XOP0iw/7mzjm1xhOThcRfiGz4wE l29w8f4H7W5xA3cUIc7VhBoVgaPNeU+fyihWuDRJCJGjuEvIqtALY5QrGeA6ZnIXfn4G FK4Q== X-Gm-Message-State: AOAM532v5smdpMxtfS/5dTCxsa96qWw94XYlCTQtMqyoC4dQXCqvJHhc 7jGtXBsJ/eonst3Fl7Zf8EBwUA== X-Received: by 2002:a17:902:b601:b029:d3:e6c5:5112 with SMTP id b1-20020a170902b601b02900d3e6c55112mr1328833pls.65.1604572812590; Thu, 05 Nov 2020 02:40:12 -0800 (PST) Received: from localhost ([122.172.12.172]) by smtp.gmail.com with ESMTPSA id q11sm1908845pgm.79.2020.11.05.02.40.11 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Nov 2020 02:40:11 -0800 (PST) Date: Thu, 5 Nov 2020 16:10:09 +0530 From: Viresh Kumar To: Ulf Hansson Cc: Dmitry Osipenko , Thierry Reding , Jonathan Hunter , Alan Stern , Peter Chen , Mark Brown , Liam Girdwood , Adrian Hunter , Krzysztof Kozlowski , Greg Kroah-Hartman , Lee Jones , Uwe =?utf-8?Q?Kleine-K=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 Subject: Re: [PATCH v1 00/30] Introduce core voltage scaling for NVIDIA Tegra20/30 SoCs Message-ID: <20201105104009.oo4dc6a2gdcwduhk@vireshk-i7> References: <20201104234427.26477-1-digetx@gmail.com> <20201105100603.skrirm7uke4s2xyl@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 ? > > 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. -- viresh