devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tomeu Vizoso <tomeu.vizoso@collabora.com>
To: Stephen Warren <swarren@wwwdotorg.org>
Cc: Mark Rutland <mark.rutland@arm.com>,
	Alexandre Courbot <gnurou@gmail.com>,
	Ulf Hansson <ulf.hansson@linaro.org>,
	Russell King <linux@arm.linux.org.uk>,
	Pawel Moll <pawel.moll@arm.com>,
	Ian Campbell <ijc+devicetree@hellion.org.uk>,
	Simon Glass <sjg@chromium.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	Rob Herring <robh+dt@kernel.org>,
	Thierry Reding <thierry.reding@gmail.com>,
	Kumar Gala <galak@codeaurora.org>,
	"linux-tegra@vger.kernel.org" <linux-tegra@vger.kernel.org>,
	Dylan Reid <dgreid@chromium.org>,
	Javier Martinez Canillas <javier.martinez@collabora.co.uk>,
	"linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH v2 04/11] ARM: tegra: Set spi-max-frequency property to flash node
Date: Wed, 28 Jan 2015 11:24:17 +0100	[thread overview]
Message-ID: <CAAObsKC8T7VR6JEY41pDEsuvJzLqwW0CUewW=QB-sSwkP95rfw@mail.gmail.com> (raw)
In-Reply-To: <54C7C16B.2080003@wwwdotorg.org>

On 27 January 2015 at 17:48, Stephen Warren <swarren@wwwdotorg.org> wrote:
> On 01/27/2015 04:13 AM, Tomeu Vizoso wrote:
>>
>> On 15 January 2015 at 18:26, Stephen Warren <swarren@wwwdotorg.org> wrote:
>>>
>>> On 01/15/2015 09:12 AM, Tomeu Vizoso wrote:
>>>>
>>>>
>>>> To silence a warning on Nyan boards.
>>>>
>>>> Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
>>>> ---
>>>>    arch/arm/boot/dts/tegra124-nyan-big.dts | 1 +
>>>>    1 file changed, 1 insertion(+)
>>>>
>>>> diff --git a/arch/arm/boot/dts/tegra124-nyan-big.dts
>>>> b/arch/arm/boot/dts/tegra124-nyan-big.dts
>>>> index 9a9cffe..94c7ba9 100644
>>>> --- a/arch/arm/boot/dts/tegra124-nyan-big.dts
>>>> +++ b/arch/arm/boot/dts/tegra124-nyan-big.dts
>>>> @@ -1660,6 +1660,7 @@
>>>>
>>>>                  flash@0 {
>>>>                          compatible = "winbond,w25q32dw";
>>>> +                       spi-max-frequency = <25000000>;
>>>
>>>
>>>
>>> This property already exists in the SPI controller. Isn't the max
>>> frequency
>>> supposed to inherit from there? If so, shouldn't the code not warn when
>>> such
>>> inheritance happens, i.e. it'd be better to fix the code?
>>
>>
>> I don't think it's supposed to fall back to the controller's max freq,
>> as each device has its own maximum frequency that it can support and
>> it's not related to what the master supports.
>
>
> If the controller-specific frequency property isn't ever used, we should
> remove it. No point carrying cruft that looks like it does something but
> doesn't.
>
> Logically, each device's max frequency certainly should be influenced by all
> of the controller, board, and device max frequency. Those should all impose
> a cap on the speed used. I'd expect this to be expressed in DT as a single
> property in each device where the user has calculated that max for the
> device, with the option to have all the devices fall back to the "default"
> provided at the controller/bus level if the device imposes a cap that's no
> lower.

My understanding is that each device node needs to specify the maximum
frequency it supports, and the same for each controller.

When configuring the transfer parameters, its frequency will be capped
by both the device and controller maximum frequencies.

So we currently need to specify the maximum frequencies in both device
and controller nodes, and it sounds like a good idea to me.

I'm probably missing your point. Is it that it should be possible for
device nodes to leave unspecified their max frequency and that in that
case the one for the controller should be used instead?

Regards,

Tomeu

  reply	other threads:[~2015-01-28 10:24 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1421338359-27467-1-git-send-email-tomeu.vizoso@collabora.com>
2015-01-15 16:12 ` [PATCH v2 01/11] ARM: tegra: Add node for trackpad in Nyan boards Tomeu Vizoso
2015-01-15 16:12 ` [PATCH v2 02/11] ARM: tegra: Use the generated pinmux data Tomeu Vizoso
     [not found]   ` <1421338359-27467-3-git-send-email-tomeu.vizoso-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2015-01-15 17:25     ` Stephen Warren
2015-01-20 13:59       ` Tomeu Vizoso
2015-01-20 16:20         ` Stephen Warren
2015-01-15 16:12 ` [PATCH v2 03/11] ARM: tegra: Set the sound card model that alsaucm expects Tomeu Vizoso
     [not found]   ` <1421338359-27467-4-git-send-email-tomeu.vizoso-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2015-01-15 17:22     ` Stephen Warren
     [not found]       ` <54B7F757.5060002-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2015-01-16  8:50         ` Tomeu Vizoso
     [not found]           ` <CAAObsKCad9O_=TUQrF7fVbBvjDTmfJsLPgr+EasCyhvY+xhdHg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-01-16  9:01             ` Tomeu Vizoso
2015-01-19 17:10               ` Stephen Warren
     [not found]                 ` <54BD3A75.80009-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2015-01-19 17:11                   ` Tomeu Vizoso
2015-01-20 17:01                     ` Dylan Reid
2015-01-15 16:12 ` [PATCH v2 04/11] ARM: tegra: Set spi-max-frequency property to flash node Tomeu Vizoso
     [not found]   ` <1421338359-27467-5-git-send-email-tomeu.vizoso-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2015-01-15 17:26     ` Stephen Warren
     [not found]       ` <54B7F84A.6020906-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2015-01-27 11:13         ` Tomeu Vizoso
     [not found]           ` <CAAObsKDx_W23OTL2RE4xxgXL-rtp3npkBtx6qMHV1j8ZXmo1rw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-01-27 16:48             ` Stephen Warren
2015-01-28 10:24               ` Tomeu Vizoso [this message]
2015-01-15 16:12 ` [PATCH v2 06/11] ARM: tegra: Move out nyan-generic parts out from the nyan-big DT Tomeu Vizoso
     [not found]   ` <1421338359-27467-7-git-send-email-tomeu.vizoso-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2015-01-15 17:28     ` Stephen Warren
     [not found]       ` <54B7F8D2.4040400-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2015-01-27 12:57         ` Tomeu Vizoso
2015-01-15 16:12 ` [PATCH v2 07/11] ARM: tegra: Add DTS for the nyan-blaze board Tomeu Vizoso
     [not found] ` <1421338359-27467-1-git-send-email-tomeu.vizoso-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2015-01-15 16:12   ` [PATCH v2 08/11] mmc: pwrseq_simple: Add support for a delay Tomeu Vizoso
     [not found]     ` <1421338359-27467-9-git-send-email-tomeu.vizoso-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2015-01-15 17:32       ` Stephen Warren
2015-01-15 17:33     ` Stephen Warren
     [not found]       ` <54B7F9FB.7030100-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2015-01-21 10:44         ` Ulf Hansson
     [not found]           ` <CAPDyKFoO6evBoAbEE30XiZg51KsM-sD4viFMvqaDwGoHeVL-6w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-01-21 13:54             ` Tomeu Vizoso
2015-01-21 14:15               ` Ulf Hansson
     [not found]                 ` <CAPDyKFoYj3xBoYsn87mxjoqDDnCtopAugX5JbzYritxWn-7XaA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-01-21 14:55                   ` Tomeu Vizoso
2015-01-15 16:12 ` [PATCH v2 09/11] ARM: tegra: Use pwrseq-simple for the wifi in Nyan Tomeu Vizoso
     [not found]   ` <1421338359-27467-10-git-send-email-tomeu.vizoso-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2015-01-15 17:34     ` Stephen Warren
2015-01-15 16:12 ` [PATCH v2 11/11] ASoC: tegra: add sink for the internal mic to tegra_max98090 Tomeu Vizoso

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='CAAObsKC8T7VR6JEY41pDEsuvJzLqwW0CUewW=QB-sSwkP95rfw@mail.gmail.com' \
    --to=tomeu.vizoso@collabora.com \
    --cc=devicetree@vger.kernel.org \
    --cc=dgreid@chromium.org \
    --cc=galak@codeaurora.org \
    --cc=gnurou@gmail.com \
    --cc=ijc+devicetree@hellion.org.uk \
    --cc=javier.martinez@collabora.co.uk \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tegra@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=mark.rutland@arm.com \
    --cc=pawel.moll@arm.com \
    --cc=robh+dt@kernel.org \
    --cc=sjg@chromium.org \
    --cc=swarren@wwwdotorg.org \
    --cc=thierry.reding@gmail.com \
    --cc=ulf.hansson@linaro.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).