From: boris.brezillon@free-electrons.com (Boris Brezillon)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 06/11] memory: atmel-ebi: add DT bindings documentation
Date: Fri, 7 Nov 2014 16:49:40 +0100 [thread overview]
Message-ID: <20141107164940.663f5423@bbrezillon> (raw)
In-Reply-To: <CAL_JsqJvT-gnr6AYHq42qfgS+ckZ1y6DFiPK5+-MBhHefB8_Sg@mail.gmail.com>
On Fri, 7 Nov 2014 09:21:39 -0600
Rob Herring <robherring2@gmail.com> wrote:
> On Wed, Nov 5, 2014 at 10:01 AM, Boris Brezillon
> <boris.brezillon@free-electrons.com> wrote:
> > Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
>
> Perhaps some commit msg?
Yes, I was just lazy and though this series would make another round
anyway :-).
I'll add a commit log to all my commits...
>
> While this binding seems mostly okay to me, this is the 2nd memory
> controller binding I've looked at in the last day [1]. There are
> probably some others already as well. This makes me think we need a
> generic binding here. At least the node structure and how we define
> chip selects should be common.
Sure.
Any suggestion ?
BTW, I don't use any specific property to define the chip select
associated to a device, because it's already encoded in the reg
property.
TI AEMIF binding define an ti,cs-chipselect property, is there any
reason for doing that ?
Moreover, IMHO it would even make sense to have some sort of
framework/helper functions for those kind of interfaces to external
memories, but this is another story :-).
>
> While I like timing information in time units over magic register
> values in the Tegra binding, the reality is converting timing info to
> register values is generally very hard to get both correct and
> optimal. In the end, you probably need to hand tweak the register
> settings anyway. So I'm hesitant to say it must be done 1 way here.
Well, I'm not a big fan of timings expressed in clock cycles, cause
this implies changing your DT when you tweak your master/bus clk.
Expressing those timings in nano or pico seconds let the driver figure
out what's the best value according to the current source clk rate.
Regards,
Boris
--
Boris Brezillon, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
WARNING: multiple messages have this Message-ID (diff)
From: Boris Brezillon <boris.brezillon@free-electrons.com>
To: Rob Herring <robherring2@gmail.com>
Cc: Samuel Ortiz <sameo@linux.intel.com>,
Lee Jones <lee.jones@linaro.org>,
Nicolas Ferre <nicolas.ferre@atmel.com>,
Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>,
Alexandre Belloni <alexandre.belloni@free-electrons.com>,
Andrew Victor <linux@maxim.org.za>,
Jean-Jacques Hiblot <jjhiblot@traphandler.com>,
Rob Herring <robh+dt@kernel.org>, Pawel Moll <pawel.moll@arm.com>,
Mark Rutland <mark.rutland@arm.com>,
Ian Campbell <ijc+devicetree@hellion.org.uk>,
Kumar Gala <galak@codeaurora.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Tomeu Vizoso <tomeu.vizoso@collabora.com>,
Arnd Bergmann <arnd@arndb.de>
Subject: Re: [PATCH v2 06/11] memory: atmel-ebi: add DT bindings documentation
Date: Fri, 7 Nov 2014 16:49:40 +0100 [thread overview]
Message-ID: <20141107164940.663f5423@bbrezillon> (raw)
In-Reply-To: <CAL_JsqJvT-gnr6AYHq42qfgS+ckZ1y6DFiPK5+-MBhHefB8_Sg@mail.gmail.com>
On Fri, 7 Nov 2014 09:21:39 -0600
Rob Herring <robherring2@gmail.com> wrote:
> On Wed, Nov 5, 2014 at 10:01 AM, Boris Brezillon
> <boris.brezillon@free-electrons.com> wrote:
> > Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
>
> Perhaps some commit msg?
Yes, I was just lazy and though this series would make another round
anyway :-).
I'll add a commit log to all my commits...
>
> While this binding seems mostly okay to me, this is the 2nd memory
> controller binding I've looked at in the last day [1]. There are
> probably some others already as well. This makes me think we need a
> generic binding here. At least the node structure and how we define
> chip selects should be common.
Sure.
Any suggestion ?
BTW, I don't use any specific property to define the chip select
associated to a device, because it's already encoded in the reg
property.
TI AEMIF binding define an ti,cs-chipselect property, is there any
reason for doing that ?
Moreover, IMHO it would even make sense to have some sort of
framework/helper functions for those kind of interfaces to external
memories, but this is another story :-).
>
> While I like timing information in time units over magic register
> values in the Tegra binding, the reality is converting timing info to
> register values is generally very hard to get both correct and
> optimal. In the end, you probably need to hand tweak the register
> settings anyway. So I'm hesitant to say it must be done 1 way here.
Well, I'm not a big fan of timings expressed in clock cycles, cause
this implies changing your DT when you tweak your master/bus clk.
Expressing those timings in nano or pico seconds let the driver figure
out what's the best value according to the current source clk rate.
Regards,
Boris
--
Boris Brezillon, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
next prev parent reply other threads:[~2014-11-07 15:49 UTC|newest]
Thread overview: 85+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-05 16:01 [PATCH v2 00/11] memory: add Atmel EBI (External Bus Interface) driver Boris Brezillon
2014-11-05 16:01 ` Boris Brezillon
2014-11-05 16:01 ` [PATCH v2 01/11] mfd: syscon: Add atmel-matrix registers definition Boris Brezillon
2014-11-05 16:01 ` Boris Brezillon
2014-11-05 16:01 ` Boris Brezillon
2014-11-07 13:45 ` Alexandre Belloni
2014-11-07 13:45 ` Alexandre Belloni
2014-11-07 13:45 ` Alexandre Belloni
2014-11-07 14:14 ` Boris Brezillon
2014-11-07 14:14 ` Boris Brezillon
2014-11-07 14:14 ` Boris Brezillon
2014-11-10 9:47 ` Lee Jones
2014-11-10 9:47 ` Lee Jones
2014-11-05 16:01 ` [PATCH v2 02/11] mfd: syscon: Add Atmel Matrix bus DT binding documentation Boris Brezillon
2014-11-05 16:01 ` Boris Brezillon
2014-11-05 16:01 ` Boris Brezillon
2014-11-10 9:55 ` Lee Jones
2014-11-10 9:55 ` Lee Jones
2014-11-05 16:01 ` [PATCH v2 03/11] mfd: syscon: Add atmel-smc registers definition Boris Brezillon
2014-11-05 16:01 ` Boris Brezillon
2014-11-05 16:01 ` Boris Brezillon
2014-11-10 9:57 ` Lee Jones
2014-11-10 9:57 ` Lee Jones
2014-11-10 9:57 ` Lee Jones
2014-12-01 9:38 ` Boris Brezillon
2014-12-01 9:38 ` Boris Brezillon
2014-12-01 9:38 ` Boris Brezillon
2014-12-01 9:43 ` Nicolas Ferre
2014-12-01 9:43 ` Nicolas Ferre
2014-12-01 9:43 ` Nicolas Ferre
2014-11-05 16:01 ` [PATCH v2 04/11] mfd: syscon: Add Atmel SMC binding doc Boris Brezillon
2014-11-05 16:01 ` Boris Brezillon
2014-11-05 16:01 ` Boris Brezillon
2014-11-10 9:55 ` Lee Jones
2014-11-10 9:55 ` Lee Jones
2014-11-05 16:01 ` [PATCH v2 05/11] memory: add Atmel EBI (External Bus Interface) driver Boris Brezillon
2014-11-05 16:01 ` Boris Brezillon
2014-11-05 16:01 ` Boris Brezillon
2014-11-05 16:53 ` Jean-Jacques Hiblot
2014-11-05 16:53 ` Jean-Jacques Hiblot
2014-11-05 16:53 ` Jean-Jacques Hiblot
2014-11-05 16:59 ` Boris Brezillon
2014-11-05 16:59 ` Boris Brezillon
2014-11-05 17:05 ` Jean-Jacques Hiblot
2014-11-05 17:05 ` Jean-Jacques Hiblot
2014-11-05 17:05 ` Jean-Jacques Hiblot
2014-11-05 16:01 ` [PATCH v2 06/11] memory: atmel-ebi: add DT bindings documentation Boris Brezillon
2014-11-05 16:01 ` Boris Brezillon
2014-11-05 16:01 ` Boris Brezillon
2014-11-05 16:22 ` Jean-Jacques Hiblot
2014-11-05 16:22 ` Jean-Jacques Hiblot
2014-11-05 16:22 ` Jean-Jacques Hiblot
2014-11-05 16:39 ` Boris Brezillon
2014-11-05 16:39 ` Boris Brezillon
2014-11-07 13:55 ` Alexandre Belloni
2014-11-07 13:55 ` Alexandre Belloni
2014-11-07 13:55 ` Alexandre Belloni
2014-11-07 15:21 ` Rob Herring
2014-11-07 15:21 ` Rob Herring
2014-11-07 15:49 ` Boris Brezillon [this message]
2014-11-07 15:49 ` Boris Brezillon
2014-11-07 16:19 ` Tomeu Vizoso
2014-11-07 16:19 ` Tomeu Vizoso
2014-11-07 19:39 ` Rob Herring
2014-11-05 16:01 ` [PATCH v2 07/11] ARM: at91: select ATMEL_EBI when compiling a kernel for at91sam9 or sama5d3 Boris Brezillon
2014-11-05 16:01 ` Boris Brezillon
2014-11-05 16:01 ` Boris Brezillon
2014-11-05 16:01 ` [PATCH v2 08/11] ARM: at91/dt: add HSMC (Static Memory Controller) node in sama5d3 dtsi Boris Brezillon
2014-11-05 16:01 ` Boris Brezillon
2014-11-05 16:01 ` Boris Brezillon
2014-11-05 16:01 ` [PATCH v2 09/11] ARM: at91/dt: add matrix " Boris Brezillon
2014-11-05 16:01 ` Boris Brezillon
2014-11-05 16:01 ` Boris Brezillon
2014-11-05 16:01 ` [PATCH v2 10/11] ARM: at91/dt: add EBI (External Bus Interface) " Boris Brezillon
2014-11-05 16:01 ` Boris Brezillon
2014-11-05 16:01 ` Boris Brezillon
2014-11-05 16:01 ` [PATCH v2 11/11] ARM: at91/dt: add NOR definition in sama5d3xcm dtsi Boris Brezillon
2014-11-05 16:01 ` Boris Brezillon
2014-11-05 16:01 ` Boris Brezillon
2014-11-07 13:41 ` [PATCH v2 00/11] memory: add Atmel EBI (External Bus Interface) driver Alexandre Belloni
2014-11-07 13:41 ` Alexandre Belloni
2014-11-07 13:41 ` Alexandre Belloni
2014-11-07 14:19 ` Boris Brezillon
2014-11-07 14:19 ` Boris Brezillon
2014-11-07 14:19 ` Boris Brezillon
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=20141107164940.663f5423@bbrezillon \
--to=boris.brezillon@free-electrons.com \
--cc=linux-arm-kernel@lists.infradead.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.