From: Martin Fuzzey <mfuzzey@parkeon.com>
To: Timur Tabi <timur@tabi.org>
Cc: alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH] Sound: sgtl5000 Allow codec clock frequency to be set.
Date: Thu, 21 Mar 2013 09:39:20 +0100 [thread overview]
Message-ID: <514AC738.6050900@parkeon.com> (raw)
In-Reply-To: <514A63EE.7000707@tabi.org>
On 21/03/13 02:35, Timur Tabi wrote:
> Martin Fuzzey wrote:
>> +If a clock is provided, clock-frequency is optional
>> +
>> +If no clock is provided clock-frequency is required (this represents
>> the codec
>> +being clocked by an external signal not present in the clock tree)
>> +
>> +If both a clock and clock-frequency are provided the clock's rate
>> will be set.
>> +
>> +
>> Example:
>>
>> codec: sgtl5000@0a {
>> compatible = "fsl,sgtl5000";
>> reg = <0x0a>;
>> + clock-frequency = <20000000>;
>> + clocks = <&clks 162>; /* cko1 */
>
> The code looks okay, but I'm not sure this example is right. The
> binding says that clock-frequency is optional if 'clocks' is provided,
> but here you list both. You should probably have two examples.
>
Hello and thank you for your review.
No the example is correct.
With this patch and that DT example the frequency of clock 162 will be
_set_ to 20MHz
If clock-frequency is omitted the binding is still correct (hence the
optional) but the frequency of clock 162 would not be modified.
In the documentation I wrote "If both a clock and clock-frequency are
provided the clock's rate will be set. " maybe this is not clear enough?
Regards,
Martin
WARNING: multiple messages have this Message-ID (diff)
From: mfuzzey@parkeon.com (Martin Fuzzey)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] Sound: sgtl5000 Allow codec clock frequency to be set.
Date: Thu, 21 Mar 2013 09:39:20 +0100 [thread overview]
Message-ID: <514AC738.6050900@parkeon.com> (raw)
In-Reply-To: <514A63EE.7000707@tabi.org>
On 21/03/13 02:35, Timur Tabi wrote:
> Martin Fuzzey wrote:
>> +If a clock is provided, clock-frequency is optional
>> +
>> +If no clock is provided clock-frequency is required (this represents
>> the codec
>> +being clocked by an external signal not present in the clock tree)
>> +
>> +If both a clock and clock-frequency are provided the clock's rate
>> will be set.
>> +
>> +
>> Example:
>>
>> codec: sgtl5000 at 0a {
>> compatible = "fsl,sgtl5000";
>> reg = <0x0a>;
>> + clock-frequency = <20000000>;
>> + clocks = <&clks 162>; /* cko1 */
>
> The code looks okay, but I'm not sure this example is right. The
> binding says that clock-frequency is optional if 'clocks' is provided,
> but here you list both. You should probably have two examples.
>
Hello and thank you for your review.
No the example is correct.
With this patch and that DT example the frequency of clock 162 will be
_set_ to 20MHz
If clock-frequency is omitted the binding is still correct (hence the
optional) but the frequency of clock 162 would not be modified.
In the documentation I wrote "If both a clock and clock-frequency are
provided the clock's rate will be set. " maybe this is not clear enough?
Regards,
Martin
next prev parent reply other threads:[~2013-03-21 8:39 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-19 17:03 [PATCH] Sound: sgtl5000 Allow codec clock frequency to be set Martin Fuzzey
2013-03-19 17:03 ` Martin Fuzzey
2013-03-21 1:35 ` Timur Tabi
2013-03-21 1:35 ` Timur Tabi
2013-03-21 8:39 ` Martin Fuzzey [this message]
2013-03-21 8:39 ` Martin Fuzzey
2013-03-21 16:11 ` Timur Tabi
2013-03-21 16:11 ` Timur Tabi
2013-03-21 17:46 ` Martin Fuzzey
2013-03-21 17:46 ` Martin Fuzzey
2013-03-21 17:52 ` Timur Tabi
2013-03-21 17:52 ` Timur Tabi
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=514AC738.6050900@parkeon.com \
--to=mfuzzey@parkeon.com \
--cc=alsa-devel@alsa-project.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=timur@tabi.org \
/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.