All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sylwester Nawrocki <s.nawrocki@samsung.com>
To: Petr Kulhavy <petr@barix.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: DT soundcard driver with special clock routing
Date: Mon, 14 Dec 2015 13:28:45 +0100	[thread overview]
Message-ID: <566EB5FD.2000803@samsung.com> (raw)
In-Reply-To: <566EA8B1.2020908@barix.com>

Hello Petr,

On 14/12/15 12:32, Petr Kulhavy wrote:
> 
> thank you for the explanation. I can follow the clock description in the 
> DT and it looks like a reasonable approach.
> However neither the codec or I2S seem to implement any clock provider.
> How is the implementation side done? I mean someone needs to set the 
> PLLs, etc.

Yes, you need the clock provider somewhere. In my case it was the I2S
driver that registered a clock provider. Probably you can add your 
output clock provider to your SoC's main clock controller driver,
and perhaps use pinctrl API for the pin function mux setup.

You can place assigned-clock* DT properties in the clock provider
node and the PLL's will be configured by the kernel's clk subsystem.
Grep for of_clk_set_defaults or see last chapter of
Documentation/devicetree/bindings/clock/clock-bindings.txt.

-- 
Regards,
Sylwester

  reply	other threads:[~2015-12-14 12:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-10 16:31 DT soundcard driver with special clock routing Petr Kulhavy
2015-12-10 17:13 ` Sylwester Nawrocki
2015-12-14 11:32   ` Petr Kulhavy
2015-12-14 12:28     ` Sylwester Nawrocki [this message]
2015-12-16  7:54       ` Petr Kulhavy
2015-12-23 12:43         ` Sylwester Nawrocki

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=566EB5FD.2000803@samsung.com \
    --to=s.nawrocki@samsung.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=petr@barix.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.