mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Sören Brinkmann" <soren.brinkmann@xilinx.com>
To: Peter Crosthwaite <crosthwaitepeter@gmail.com>
Cc: <linux-kernel@vger.kernel.org>, <michals@xilinx.com>,
	<sorenb@xilinx.com>, Steve Wang <steven.wang@digilentinc.com>
Subject: Re: [PATCH 1/2] arm: dts: zynq: Move crystal freq. to board level
Date: Mon, 10 Nov 2014 15:02:15 -0800	[thread overview]
Message-ID: <4c9d54e106214449a1602e6a697b822b@BY2FFO11FD018.protection.gbl> (raw)
In-Reply-To: <CAPokK=p-LXJ0C7_Xy8DR0R0k_YrMRKJSMuh5Z48NWR=wmrQwhg@mail.gmail.com>

On Tue, 2014-11-11 at 08:35AM +1000, Peter Crosthwaite wrote:
> On Mon, Nov 10, 2014 at 7:34 AM, Sören Brinkmann
> <soren.brinkmann@xilinx.com> wrote:
> > On Sun, 2014-11-09 at 01:38PM +1000, Peter Crosthwaite wrote:
> >> The fact that all supported boards use the same 33MHz crystal is a
> >> co-incidence. The Zynq PS support a range of crystal freqs so the
> >> hardcoded setting should be removed from the dtsi. Re-implement it
> >> on the board level.
> >>
> >> This prepares support for Zynq boards with different crystal
> >> frequencies (e.g. the Digilent ZYBO).
> >
> > Even with the 33MHz in the dtsi you can override it on the board-level.
> > Just like the 'status' property is overriden in board dts files.
> >
> 
> Do you want the deletion undone? Even with override capability I think
> it should be removed as the number is board level specific and the
> dtsi should be limited to SoC level information.

I'm fine with it. Just wanted to point out that patch 2 does not
strictly require this change and can stand on its own.

[...]
> >> Im guessing long term this should be converted to a fixed clock. But
> >> I think this at least steps in that direction.
> >
> > I was against that since it makes juggling with clock names more
> > difficult. The problem is that the CCF uses a global name space of clock
> > names.
> 
> I thought it was just a
> 
> clocks = < &phandle >
> 
> Where's the namespacing issue?
> 
> Btw I think the clocks=phandle would be populated the the dts as well.
> So the DTSI would have no clocks = node, and the dts must populate it.
> This allows support for an on-board off-soc clock controller
> controlling the PS clock (which is in theory supported by the SoC).

Every call to clk_register needs to be passed in the clock's parent
(unless it's a root clock). That parent is specified by its name. You
won't see it as user/consumer, but when implementing a clock-provider.
I think there is nothing preventing such a change, but it would make
things more complicated for no good reason. Even if you have an off-chip
clock controller, if that one doesn't provide a fixed clock input to
Zynq, things are likely to break.

	Sören

      reply	other threads:[~2014-11-10 23:02 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-09  3:38 Peter Crosthwaite
2014-11-09  3:38 ` [PATCH 2/2] arm: dts: zynq: Add Digilent ZYBO board Peter Crosthwaite
2014-11-09 21:47   ` Sören Brinkmann
2014-11-10 22:39     ` Peter Crosthwaite
2014-11-10 22:42       ` Sören Brinkmann
2014-11-10 22:56         ` Peter Crosthwaite
     [not found]         ` <OFCF68BFE0.14A043A7-ON86257D8D.000BF746-86257D8D.000BF749@ni.com>
2014-11-11  7:56           ` Michal Simek
2014-11-28 23:58           ` Peter Crosthwaite
2014-11-09 21:34 ` [PATCH 1/2] arm: dts: zynq: Move crystal freq. to board level Sören Brinkmann
2014-11-10 22:35   ` Peter Crosthwaite
2014-11-10 23:02     ` Sören Brinkmann [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4c9d54e106214449a1602e6a697b822b@BY2FFO11FD018.protection.gbl \
    --to=soren.brinkmann@xilinx.com \
    --cc=crosthwaitepeter@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=michals@xilinx.com \
    --cc=sorenb@xilinx.com \
    --cc=steven.wang@digilentinc.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®