Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp748466imm; Wed, 17 Oct 2018 07:44:49 -0700 (PDT) X-Google-Smtp-Source: ACcGV61ObJBuzynjRbFzqdng4CyjgJBM6DYi/Hte2ZC0N+uNs2vP2tIFq/Hw1Oi45hzTPdj/uNgA X-Received: by 2002:a17:902:8690:: with SMTP id g16-v6mr25162588plo.302.1539787489382; Wed, 17 Oct 2018 07:44:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539787489; cv=none; d=google.com; s=arc-20160816; b=VGgMGd3G+wK1iFrwnYBIB1vNHQ48ufRKk9o8sSYiBBEsZIbeq5jsR/LR+To35Vli5K prHZsw6pDnGT4fEuSLNMtV3pOjrhXbBmBBU3dzSCjVcSI/FZKSkuUDSjjIAghQzART4Y VX3OPitXDzaRM30iYPiriJzUzERnqCO85/pPjvVLaHDusV5GWHXNeIIs1oblvmVZIchD kUQy4bXIG/3RztyLLDEb7ESMSLKxbcZKHoj1SDjl6N5MuqbQZom8fhSwWrTfo34dFTfJ JRycc0npIHcQBMG5drF9WeNSBrkLb6xOD6BCcbmQai6lcaxZKpkvg1QIcLJ1WpqaaHww qWDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=bhCsnRC0c0VP5TShrD8h1g8vF5cGlsC+sCSGh/LDMQ8=; b=DYntnQ9K6+5DdTr6RBmg+aUPMdIhKb/zD4orfdN0a0ET+o/uBpE6y0hSpSF/zrLFgO IeLt7chpU54Q1j+vkiWvKo+cznlabIz32OBQ6x7UjbX3It3rb/SB0EMkWNGGR1yym5fE wUVpe8S7P6iAXudepZqONBmGvzDNBROwzCi4BdvGbHwfdFebvz+v6kv1g8OSfG7tsT/W uh78rm3Dxv9hRZACiWKIlIrxwNKXbGxq86N+OEO6RnFKOZh9jS8lLxaNft9N2r5YovVN hNMJhiZSizky8fJel4zrO6Csx6ISN6+O+N3agUcHi4dcFf5NAABiIw3YH6NUdX5KKsfG XG9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MDoi+DU2; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b59-v6si12330100plc.257.2018.10.17.07.44.33; Wed, 17 Oct 2018 07:44:49 -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=@gmail.com header.s=20161025 header.b=MDoi+DU2; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727751AbeJQWjq (ORCPT + 99 others); Wed, 17 Oct 2018 18:39:46 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:35142 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727024AbeJQWjp (ORCPT ); Wed, 17 Oct 2018 18:39:45 -0400 Received: by mail-lf1-f68.google.com with SMTP id r191-v6so20028527lff.2; Wed, 17 Oct 2018 07:43:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=bhCsnRC0c0VP5TShrD8h1g8vF5cGlsC+sCSGh/LDMQ8=; b=MDoi+DU2jByuXNyK4dTtCICBtTmrvsgQ8Glph60UZDTRHgZ4kegV6v7p1aQ+EqSflH trYPAtBhUAhiicRjGJec8FoEDbjIfjesktxpYuohzo9Uw0Zen+xwT24fe/cyY3v6DeM0 6b5FfmrgL2VBVBLSLOBbE7PJqJvMf3DZDS4jAu38tNlt/DcTAn3gQKddjBePAqTMEaxM M0TXnMe7iYgJuPrfKTg9zzYQZcMdEDD6Hl6aS3vGLvqdLm+FOwLd/33EuHqvFb9hEX3/ /gLPcesVtWS1QooXlYPzMzQO9n4d8JY1GPf8nPZrnw8GZIGa3yvpq0aCl8TdcoaatEtP NnaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=bhCsnRC0c0VP5TShrD8h1g8vF5cGlsC+sCSGh/LDMQ8=; b=qpbX1XyhIpAkFfoMSy5ziivxZhrxDD/G5kmvw0+412GVFzWt7gZtNgqrfmVuK7fMq0 ImjJht1bg6ySsz/GEKBi+vd0eOjoQvOspmweXTF88ZN0O3sNDjlcEfKtLM5r9aTHA0lz VBnSYmKo7zvh+4XYtIQrS9OU6+49cTsSbR7kByOCKiEcvkvmn4tqxdFmXHd8oi6mM3Ko 4u6CC5TDcAqaDNL/C/4bM5cqlTdbkjg/Xi3HA3D3/u3YDbr8g/hlBytSSDIYvw77mlhc yVCOql0Rpv0LDW7ZLkjuTq9P6aeRvNpZgemRhbqqBSgF7CpbH1x44MU+R3TAwzqUP8r4 w2Sw== X-Gm-Message-State: ABuFfoi92DlaFwUyKfsAFvteJVyoqPmdwrqN1pv/I+lqePvH1EIU+1Xo cxThsTrUWrKwU+JvkSDBXztaYbzC X-Received: by 2002:a19:c98b:: with SMTP id z133-v6mr7995170lff.150.1539787421363; Wed, 17 Oct 2018 07:43:41 -0700 (PDT) Received: from [192.168.2.145] (109-252-91-118.nat.spd-mgts.ru. [109.252.91.118]) by smtp.googlemail.com with ESMTPSA id 71-v6sm4201153lja.90.2018.10.17.07.43.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Oct 2018 07:43:40 -0700 (PDT) Subject: Re: [PATCH v1 1/5] dt-bindings: cpufreq: Add binding for NVIDIA Tegra20/30 To: Jon Hunter , Thierry Reding , Peter De Schrijver , "Rafael J. Wysocki" , Viresh Kumar , Rob Herring Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org 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: Dmitry Osipenko Message-ID: Date: Wed, 17 Oct 2018 17:43:38 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <4db9c51c-0c1d-c9a2-b781-250c053e6e24@nvidia.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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?