Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1052762imm; Wed, 17 Oct 2018 12:30:38 -0700 (PDT) X-Google-Smtp-Source: ACcGV60iJ5TuWZCOZ48OigUujpnu8uMs1jPbdLKybOMLPyNG1frHM1JfyPV00jgqeUS1PYXMQnCU X-Received: by 2002:a63:2483:: with SMTP id k125-v6mr25510083pgk.287.1539804638448; Wed, 17 Oct 2018 12:30:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539804638; cv=none; d=google.com; s=arc-20160816; b=LIsU72s5FX6sMpqRaKSl1tatLGGjvC7dZ37OCsHtZpyxR1iNlWJWyt3oSoenRZT3R3 xc1wJjz0S2fruPYctZhNzeGo4Fq0i7HohqwBExzLQ6aBz69/iMqrRkMQpVOO9LdUZurS kPrOxm18mZjegXAb0O1hpK3np+eChJPIRGw46krE4bDZeaSAHsjlzMn36FU/Zm8Ucydu GefCTCHfPd6e3BFlzTWS3AqAe0CrWxaAOVWRoUCmSp8R7GyDcIQQ71/phw3qGmhAW25g VT3wnGw1GbB/pnL7zPPlI/JpTQIdgdwTHRk3MsO1I2UyiqIFIDowIectPv44RZpO9SUG 9Vpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=Cyh82na/0sMkUPn+O1RLthSaTIcgRxqqd1C7XhNjsyA=; b=SpnHe4YPlpoT0NK390pdduEcFHIGRhEBQWn9c1lxzG8/02tJV6EtP/bx+aN6GDXM6s 05DWlXo7EH3dOebV9ncyMACzq0pCa/cpGIyf/acgjpRB8BQ4E0RPgqrmoae7EvuBxktb 7dOoZq5bz5xKvj3da4q73JkF26N+GTsjiL/v46rxsrjjmooYvr/kY6gbMwNu7cYnsO3c Otl5CqfW523pK7spgGEIAnKh6QBzvvYlI4uM3XmUP88yLjV47+8VeDzMKCRhHbQr8WVS tXioMNiJOxw2sE4l66WxLyoXI1wSAFSza8thepizZfKq7T1SW7xFFhHTdV1uUIVjW3J0 Ur/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=RWgx6VgZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 32-v6si4843287pls.331.2018.10.17.12.30.22; Wed, 17 Oct 2018 12:30:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=RWgx6VgZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728397AbeJRD1J (ORCPT + 99 others); Wed, 17 Oct 2018 23:27:09 -0400 Received: from hqemgate14.nvidia.com ([216.228.121.143]:19499 "EHLO hqemgate14.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727128AbeJRD1J (ORCPT ); Wed, 17 Oct 2018 23:27:09 -0400 Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqemgate14.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Wed, 17 Oct 2018 12:29:51 -0700 Received: from HQMAIL101.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Wed, 17 Oct 2018 12:29:58 -0700 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Wed, 17 Oct 2018 12:29:58 -0700 Received: from [10.26.11.110] (10.124.1.5) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 17 Oct 2018 19:29:54 +0000 Subject: Re: [PATCH v1 1/5] dt-bindings: cpufreq: Add binding for NVIDIA Tegra20/30 To: Dmitry Osipenko , Thierry Reding , Peter De Schrijver , "Rafael J. Wysocki" , Viresh Kumar , Rob Herring CC: , , , References: <20180830194356.14059-1-digetx@gmail.com> <20180830194356.14059-2-digetx@gmail.com> <1448e619-35c9-0195-c68a-604d10f4dc8b@gmail.com> <3c72f573-d109-b607-b7b7-d70aea3e03df@nvidia.com> <4db9c51c-0c1d-c9a2-b781-250c053e6e24@nvidia.com> From: Jon Hunter Message-ID: <821c13a9-ff9c-c9bd-83f6-7566f7bb4477@nvidia.com> Date: Wed, 17 Oct 2018 20:29:51 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL101.nvidia.com (172.20.187.10) Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1539804591; bh=Cyh82na/0sMkUPn+O1RLthSaTIcgRxqqd1C7XhNjsyA=; h=X-PGP-Universal:Subject:To:CC:References:From:Message-ID:Date: User-Agent:MIME-Version:In-Reply-To:X-Originating-IP: X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=RWgx6VgZGic8/LHIMlpalGpttc6zgq7v8BEZJEUmduMs4d8MRQrdWmBEdzxzjMUpt c9a+CUdaOxizN0yne5F9y2CBJ/NDRiwrSQf6YvR0uIl1eSuBRQapjWAKwa7Bsp8Poz ZCOUeX7sp5dtJy+NfXZ+N6SFEJCGmLLbbQHDTQLUnGrgCz70292lAXueNLVXLeCxZm RyIa6tJuEWTRok/XjCs59N3XgfKvyIuEYn9Y42D57FIMlltfvb9EhEfOad/mVTSTWS 5eikx+ylWhsA8CY35FYdIkkieRwE8tMNvIwgVHbMAIiHD8H3W6AqfkeV1D9IT5oobu 0A/KlB5apePSA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17/10/2018 15:43, Dmitry Osipenko wrote: > On 10/17/18 5:14 PM, Jon Hunter wrote: >> >> On 17/10/2018 14:46, Dmitry Osipenko wrote: >>> On 10/17/18 4:34 PM, Jon Hunter wrote: >>>> >>>> On 17/10/2018 14:07, Dmitry Osipenko wrote: >>>>> On 10/17/18 3:59 PM, Jon Hunter wrote: >>>>>> >>>>>> On 17/10/2018 13:37, Dmitry Osipenko wrote: >>>>>>> On 10/17/18 11:40 AM, Jon Hunter wrote: >>>>>>>> >>>>>>>> On 30/08/2018 20:43, Dmitry Osipenko wrote: >>>>>>>>> Add device-tree binding that describes CPU frequency-scaling hardware >>>>>>>>> found on NVIDIA Tegra20/30 SoC's. >>>>>>>>> >>>>>>>>> Signed-off-by: Dmitry Osipenko >>>>>>>>> --- >>>>>>>>> .../cpufreq/nvidia,tegra20-cpufreq.txt | 38 +++++++++++++++++++ >>>>>>>>> 1 file changed, 38 insertions(+) >>>>>>>>> create mode 100644 Documentation/devicetree/bindings/cpufreq/nvidia,tegra20-cpufreq.txt >>>>>>>>> >>>>>>>>> diff --git a/Documentation/devicetree/bindings/cpufreq/nvidia,tegra20-cpufreq.txt b/Documentation/devicetree/bindings/cpufreq/nvidia,tegra20-cpufreq.txt >>>>>>>>> new file mode 100644 >>>>>>>>> index 000000000000..2c51f676e958 >>>>>>>>> --- /dev/null >>>>>>>>> +++ b/Documentation/devicetree/bindings/cpufreq/nvidia,tegra20-cpufreq.txt >>>>>>>>> @@ -0,0 +1,38 @@ >>>>>>>>> +Binding for NVIDIA Tegra20 CPUFreq >>>>>>>>> +================================== >>>>>>>>> + >>>>>>>>> +Required properties: >>>>>>>>> +- clocks: Must contain an entry for each entry in clock-names. >>>>>>>>> + See ../clocks/clock-bindings.txt for details. >>>>>>>>> +- clock-names: Must include the following entries: >>>>>>>>> + - pll_x: main-parent for CPU clock, must be the first entry >>>>>>>>> + - backup: intermediate-parent for CPU clock >>>>>>>>> + - cpu: the CPU clock >>>>>>>> >>>>>>>> Is it likely that 'backup' will be anything other that pll_p? If not why >>>>>>>> not just call it pll_p? Personally, I don't 'backup' to descriptive even >>>>>>>> though I can see what you mean. >>>>>>>> >>>>>>>> I can see that you want to make this flexible, but if the likelihood is >>>>>>>> that we will just use pll_p then I am not sure it is warranted at this >>>>>>>> point. >>>>>>> >>>>>>> That won't describe HW, but software. And device tree should describe HW. >>>>>> >>>>>> Hmm ... well that's my point exactly. So why call it 'backup'? Sounds >>>>>> like a software description to me. >>>>> >>>>> Because HW is designed the way that CPU parent need to be switched to the backup clock source while main clock changes its rate. HW also allow to select among different parents, pll_p is one of those parents. >>>> >>>> Yes that part is understood. I am just splitting hairs over the actual >>>> name. We do the same for tegra124 but we just call it 'pll_p'. See ... >>>> >>>> Documentation/devicetree/bindings/cpufreq/nvidia,tegra124-cpufreq.txt >>> >>> tegra124-cpufreq choose to hardwire to the pll_p, but it could be other clocks. Technically abstracting backup clock should be more correct, but result is the same in the end. >> >> Yes and that is probably intentional as that is the configuration that >> has been validated. So unless we are planning to test and verify every >> possibility, my preference is to keep it simple. But yes the result is >> the same. >> >> I was simply curious of your intention here because of the other series >> you posted with regard to the cpu clocks. > > Actually I tried other parents on T30 and they worked with no problems. The intention of having 'backup' is to describe HW properly in the device tree, that's it. We'll have backup set to pll_p by default. ACK? Yes but I don't find the name 'backup' very descriptive because like you say it is an intermediate clock for switching frequency. But at the same time I don't have a good suggestion. Anyway it is more of a bike-shedding comment. Cheers Jon -- nvpublic