Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4175138imm; Tue, 25 Sep 2018 12:39:04 -0700 (PDT) X-Google-Smtp-Source: ACcGV60bhxBMW6dh6INYIV9D8D//tdD5DLAvb1PM9sRkRQDL4NvsTTt8C9QJdqn+qlBTEqt3Rm8g X-Received: by 2002:a63:ad44:: with SMTP id y4-v6mr2371460pgo.138.1537904343998; Tue, 25 Sep 2018 12:39:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537904343; cv=none; d=google.com; s=arc-20160816; b=giJCJT7T0VOO3crsxtLQEuQkitulirYIqlDijEeL8B5mWehCl9gVagCP83QuKi3LbE imGjjn4OMMtpBM1q7SMKb5mmsE32+6N5FKCSd40Z6OnBlJWah1wJ0K2wOHMCgaOlVyG7 KIdIXrGEc4TRJ/2ygyqiB+fPjJwBOG9+A5s6MONi/A5wSyHDS5pd5AC8HbknJlIT1qJO BvlVlt+XOxm5xRpaCkigwAe3vdShxk6pKaYEXZXIT7V/WY2jdS4QiwnTAfplNnuxCRPu FImGT3UCNisywCvKaflZYW/lZolc0pt+TdMv78dQiAjeYsnfn4Zq7n/+ciBb6DdZMLK2 eJQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=VuaIwPIaXQ5401D2eejnKc71+ZQMEKyKaaZxdf+8o44=; b=SL5j52AbwFMveUeOuF8EdY7ntq3HPe7tywaE/2r2TDP39JmtU8QI/4ywrKiAysWfb9 uNBttMon/mXjGYgSe4IR9sw9dNpvwk2sO6ILjxi+widtt18rD3nPs+47zKAvyb8jkknv h/TOpHMci+5KpGhz9eWhak0F772dXTzJ2rwM4PDPw9NTt2Wig2syav36NibpD6sOafCO ZGZNyYd0UBjHvBKDkGP4TukkiIrp7iWJGtnYZZe0JaMCqBCUyaxnBpfzH3tEm7bHJr6n yNOdxAseuGXLFXtSoBq77TSk6jGfDLOw4/cSCQNoZa+j6Dp/syUQqZy9StBPF9COeJoX CwgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=di7ygljQ; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t64-v6si2859591pgd.8.2018.09.25.12.38.48; Tue, 25 Sep 2018 12:39:03 -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=@kernel.org header.s=default header.b=di7ygljQ; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728240AbeIZBqD (ORCPT + 99 others); Tue, 25 Sep 2018 21:46:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:42018 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727151AbeIZBqD (ORCPT ); Tue, 25 Sep 2018 21:46:03 -0400 Received: from mail-qt1-f179.google.com (mail-qt1-f179.google.com [209.85.160.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F2D8421480; Tue, 25 Sep 2018 19:36:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1537904217; bh=xj/4bc8BmB5LAPU5G5UHAUBLebKx9+PFS8G7Kix4+jk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=di7ygljQfShl0rD2R0UtoIS3K1lKGBdTzdYTY1X0F9vDsAvgvxDxL4nI+qOtZGT2D VRwRszedzLywmE0IAavTi0XSbfuhRfeTic7bQzdnSo0V7Yh8wEqzdw6UwwvZmHNnzv 2+ZwhBX0xVG0O2MTsul9t4d/9DvvF9BSRGCz/Kis= Received: by mail-qt1-f179.google.com with SMTP id z8-v6so14711285qto.9; Tue, 25 Sep 2018 12:36:56 -0700 (PDT) X-Gm-Message-State: ABuFfohnJF+NaaYfwgPkqEBEoTw7HGY+VBtHxc51VK4870OQOpg0ZCEs J2X9sdsssm1BGPCHfdhF4V5U6NLLv0rqq1vIqQ== X-Received: by 2002:ac8:190e:: with SMTP id t14-v6mr1974644qtj.327.1537904216132; Tue, 25 Sep 2018 12:36:56 -0700 (PDT) MIME-Version: 1.0 References: <20180830194356.14059-1-digetx@gmail.com> <20180830194356.14059-2-digetx@gmail.com> <20180925165810.GA32430@bogus> <074a169d-294b-ad4b-ddbd-6db742278f2a@gmail.com> In-Reply-To: <074a169d-294b-ad4b-ddbd-6db742278f2a@gmail.com> From: Rob Herring Date: Tue, 25 Sep 2018 14:36:44 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v1 1/5] dt-bindings: cpufreq: Add binding for NVIDIA Tegra20/30 To: Dmitry Osipenko Cc: Peter De Schrijver , Thierry Reding , Jon Hunter , "Rafael J. Wysocki" , Viresh Kumar , "open list:THERMAL" , devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 25, 2018 at 12:29 PM Dmitry Osipenko wrote: > > On 9/25/18 7:58 PM, Rob Herring wrote: > > On Thu, Aug 30, 2018 at 10:43:52PM +0300, 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 > > > > The Cortex A9 has CLK, PERIPHCLK, and PERIPHCLKEN clocks and only CLK > > is used for the cpu core. You can't just define your own clocks that > > you happen to want access to. > > > > Otherwise, you're not defining anything new here, so a binding document > > isn't required. > > PERIPHCLK is a different thing. Right, that's what I meant. Only CLK is used. > Here we are defining the CPU clock and > its *parent* sources, the PLLX (main) and backup (intermediate clock > that is used while PLLX changes its rate). These are not some random > clocks "that you happen to want access to", they are essential for the > Tegra CPUFreq driver, CPU is running off them. assigned-clocks is generally how we get parent clocks in this situation. "clocks" is for what physical clocks are attached to a given block. ARM very clearly documents the clocks for their IP blocks. > I assume that PERIPHCLK and other clocks are derived from the "CPU" > clock and their configuration is hardwired. Probably Peter knows how > it's implemented in HW. Yes, because PERIPHCLK must be synchronous. In any case, it is irrelevant to cpu nodes and applies to timer, SCU, and GIC nodes. > I'm now working on v2 that will include more Tegra-specific stuff in the > binding, like custom "opp-supported-hw" property and probably some more.