Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1600974

Re: [RFC 1/2] clk: dt: binding for basic divider clock

From Stephen Boyd <sboyd@codeaurora.org>
Newsgroups linux.kernel
Subject Re: [RFC 1/2] clk: dt: binding for basic divider clock
Date 2017-03-15 02:10 +0100
Message-ID <tl5BT-6B-3@gated-at.bofh.it> (permalink)
References <tl1eW-5s2-25@gated-at.bofh.it> <tl1eW-5s2-29@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 03/14, Markus Mayer wrote:
> From: Mike Turquette <mturquette@linaro.org>
> 
> Devicetree binding for the basic clock divider, plus the setup function
> to register the clock.  Based on the existing fixed-clock binding.
> 
> Tero Kristo contributed helpful bug fixes to this patch.
> 
> Signed-off-by: Mike Turquette <mturquette@linaro.org>
> Tested-by: Heiko Stuebner <heiko@sntech.de>
> Reviewed-by: Heiko Stuebner <heiko@sntech.de>
> Signed-off-by: Markus Mayer <mmayer@broadcom.com>

These sorts of details should go into C code. Is there any
difficulty in writing a driver to do so? So far we've avoided
adding the generic divider, multiplier, mux, bindings because
those usually need some register level details that we've been
reluctant to add to DT.

That's because if something is wrong with these register level
details or we need to make some policy updates, e.g. favor this
divider over another, we can't really do that with a DT update.
So we really want to see DT nodes have some hardware specific
compatible string, and also put the logic for the driver into the
code so that it can be easily fixed and updated after the fact.

The DTS file is there to tell us "I have a divider from company X
here and it's connected to this and that" and the driver is there
to do the work of driving that piece of hardware so it works
properly.

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[RFC 0/2] Basic divider clock Markus Mayer <code@mmayer.net> - 2017-03-14 21:30 +0100
  [RFC 1/2] clk: dt: binding for basic divider clock Markus Mayer <code@mmayer.net> - 2017-03-14 21:30 +0100
    Re: [RFC 1/2] clk: dt: binding for basic divider clock Stephen Boyd <sboyd@codeaurora.org> - 2017-03-15 02:10 +0100
  [RFC 2/2] clk: divider: modifications for 4.11 Markus Mayer <code@mmayer.net> - 2017-03-14 21:30 +0100

csiph-web