* [PATCH 1/2] ARM: mvebu: Fix ranges entry on XP GP board
@ 2013-05-17 11:09 Ezequiel Garcia
2013-05-17 11:09 ` [PATCH 2/2] ARM: mvebu: Add support for NOR flash device on Armada XP-DB board Ezequiel Garcia
2013-05-17 16:55 ` [PATCH 1/2] ARM: mvebu: Fix ranges entry on XP GP board Jason Cooper
0 siblings, 2 replies; 8+ messages in thread
From: Ezequiel Garcia @ 2013-05-17 11:09 UTC (permalink / raw)
To: linux-arm-kernel
With the latest device tree reorganization which introduced the
'internal-reg' node, now the only region translated is the internal register's.
This makes the description of the hardware incomplete, for it lacks the
Device Bus childs address space.
In order to fix this, it's required to add a 'ranges' entry with a suitable
address space to map Device Bus childs, on a per-board basis.
This patch fixes the ranges property on the Armada XP GP board.
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
---
This should be included in v3.10.
arch/arm/boot/dts/armada-xp-gp.dts | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/boot/dts/armada-xp-gp.dts b/arch/arm/boot/dts/armada-xp-gp.dts
index 26ad06f..3ee63d1 100644
--- a/arch/arm/boot/dts/armada-xp-gp.dts
+++ b/arch/arm/boot/dts/armada-xp-gp.dts
@@ -39,6 +39,9 @@
};
soc {
+ ranges = <0 0 0xd0000000 0x100000
+ 0xf0000000 0 0xf0000000 0x1000000>;
+
internal-regs {
serial at 12000 {
clock-frequency = <250000000>;
--
1.8.1.5
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 2/2] ARM: mvebu: Add support for NOR flash device on Armada XP-DB board
2013-05-17 11:09 [PATCH 1/2] ARM: mvebu: Fix ranges entry on XP GP board Ezequiel Garcia
@ 2013-05-17 11:09 ` Ezequiel Garcia
2013-05-17 16:56 ` Jason Cooper
2013-05-17 16:55 ` [PATCH 1/2] ARM: mvebu: Fix ranges entry on XP GP board Jason Cooper
1 sibling, 1 reply; 8+ messages in thread
From: Ezequiel Garcia @ 2013-05-17 11:09 UTC (permalink / raw)
To: linux-arm-kernel
The Armada XP Development Board (DB-78460-BP) has a NOR flash device
connected to the Device Bus. This commit adds the device tree node
to support this device.
This SoC supports a flexible and dynamic decoding window allocation
scheme; but since this feature is still not implemented we need
to specify the window base address in the device tree node itself.
This base address has been selected in a completely arbitrary fashion.
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
arch/arm/boot/dts/armada-xp-db.dts | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/arch/arm/boot/dts/armada-xp-db.dts b/arch/arm/boot/dts/armada-xp-db.dts
index d6cc8bf..864831a 100644
--- a/arch/arm/boot/dts/armada-xp-db.dts
+++ b/arch/arm/boot/dts/armada-xp-db.dts
@@ -30,6 +30,9 @@
};
soc {
+ ranges = <0 0 0xd0000000 0x100000 /* Internal registers 1MiB */
+ 0xf0000000 0 0xf0000000 0x1000000>; /* Device Bus, NOR 16MiB */
+
internal-regs {
serial at 12000 {
clock-frequency = <250000000>;
@@ -155,6 +158,35 @@
status = "okay";
};
};
+
+ devbus-bootcs at 10400 {
+ status = "okay";
+ ranges = <0 0xf0000000 0x1000000>;
+
+ /* Device Bus parameters are required */
+
+ /* Read parameters */
+ devbus,bus-width = <8>;
+ devbus,turn-off-ps = <60000>;
+ devbus,badr-skew-ps = <0>;
+ devbus,acc-first-ps = <124000>;
+ devbus,acc-next-ps = <248000>;
+ devbus,rd-setup-ps = <0>;
+ devbus,rd-hold-ps = <0>;
+
+ /* Write parameters */
+ devbus,sync-enable = <0>;
+ devbus,wr-high-ps = <60000>;
+ devbus,wr-low-ps = <60000>;
+ devbus,ale-wr-ps = <60000>;
+
+ /* NOR 16 MiB */
+ nor at 0 {
+ compatible = "cfi-flash";
+ reg = <0 0x1000000>;
+ bank-width = <2>;
+ };
+ };
};
};
};
--
1.8.1.5
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 1/2] ARM: mvebu: Fix ranges entry on XP GP board
2013-05-17 11:09 [PATCH 1/2] ARM: mvebu: Fix ranges entry on XP GP board Ezequiel Garcia
2013-05-17 11:09 ` [PATCH 2/2] ARM: mvebu: Add support for NOR flash device on Armada XP-DB board Ezequiel Garcia
@ 2013-05-17 16:55 ` Jason Cooper
1 sibling, 0 replies; 8+ messages in thread
From: Jason Cooper @ 2013-05-17 16:55 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, May 17, 2013 at 08:09:57AM -0300, Ezequiel Garcia wrote:
> With the latest device tree reorganization which introduced the
> 'internal-reg' node, now the only region translated is the internal register's.
> This makes the description of the hardware incomplete, for it lacks the
> Device Bus childs address space.
>
> In order to fix this, it's required to add a 'ranges' entry with a suitable
> address space to map Device Bus childs, on a per-board basis.
> This patch fixes the ranges property on the Armada XP GP board.
>
> Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
> ---
> This should be included in v3.10.
>
> arch/arm/boot/dts/armada-xp-gp.dts | 3 +++
> 1 file changed, 3 insertions(+)
Applied to mvebu/fixes
thx,
Jason.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 2/2] ARM: mvebu: Add support for NOR flash device on Armada XP-DB board
2013-05-17 11:09 ` [PATCH 2/2] ARM: mvebu: Add support for NOR flash device on Armada XP-DB board Ezequiel Garcia
@ 2013-05-17 16:56 ` Jason Cooper
2013-05-19 7:13 ` Thomas Petazzoni
0 siblings, 1 reply; 8+ messages in thread
From: Jason Cooper @ 2013-05-17 16:56 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, May 17, 2013 at 08:09:58AM -0300, Ezequiel Garcia wrote:
> The Armada XP Development Board (DB-78460-BP) has a NOR flash device
> connected to the Device Bus. This commit adds the device tree node
> to support this device.
>
> This SoC supports a flexible and dynamic decoding window allocation
> scheme; but since this feature is still not implemented we need
> to specify the window base address in the device tree node itself.
>
> This base address has been selected in a completely arbitrary fashion.
>
> Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ---
> arch/arm/boot/dts/armada-xp-db.dts | 32 ++++++++++++++++++++++++++++++++
> 1 file changed, 32 insertions(+)
Applied to mvebu/fixes
thx,
Jason.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 2/2] ARM: mvebu: Add support for NOR flash device on Armada XP-DB board
2013-05-17 16:56 ` Jason Cooper
@ 2013-05-19 7:13 ` Thomas Petazzoni
2013-05-19 18:16 ` Jason Cooper
0 siblings, 1 reply; 8+ messages in thread
From: Thomas Petazzoni @ 2013-05-19 7:13 UTC (permalink / raw)
To: linux-arm-kernel
Dear Jason Cooper,
On Fri, 17 May 2013 12:56:56 -0400, Jason Cooper wrote:
> On Fri, May 17, 2013 at 08:09:58AM -0300, Ezequiel Garcia wrote:
> > The Armada XP Development Board (DB-78460-BP) has a NOR flash device
> > connected to the Device Bus. This commit adds the device tree node
> > to support this device.
> >
> > This SoC supports a flexible and dynamic decoding window allocation
> > scheme; but since this feature is still not implemented we need
> > to specify the window base address in the device tree node itself.
> >
> > This base address has been selected in a completely arbitrary fashion.
> >
> > Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
> > Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> > ---
> > arch/arm/boot/dts/armada-xp-db.dts | 32 ++++++++++++++++++++++++++++++++
> > 1 file changed, 32 insertions(+)
>
> Applied to mvebu/fixes
Is mvebu/fixes the branch intended to be pushed to 3.10-rcX, or to
3.11 ?
I'm asking because you've applied both 1/2 and 2/2 on the same
mvebu/fixes branch, while 1/2 is intended for 3.10-rcX (fixing
existing DT data), and 2/2 is intended for 3.11 (adding support for a
new device in the DT).
Thanks,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 2/2] ARM: mvebu: Add support for NOR flash device on Armada XP-DB board
2013-05-19 7:13 ` Thomas Petazzoni
@ 2013-05-19 18:16 ` Jason Cooper
2013-05-19 18:45 ` Thomas Petazzoni
0 siblings, 1 reply; 8+ messages in thread
From: Jason Cooper @ 2013-05-19 18:16 UTC (permalink / raw)
To: linux-arm-kernel
On Sun, May 19, 2013 at 09:13:26AM +0200, Thomas Petazzoni wrote:
> Dear Jason Cooper,
>
> On Fri, 17 May 2013 12:56:56 -0400, Jason Cooper wrote:
> > On Fri, May 17, 2013 at 08:09:58AM -0300, Ezequiel Garcia wrote:
> > > The Armada XP Development Board (DB-78460-BP) has a NOR flash device
> > > connected to the Device Bus. This commit adds the device tree node
> > > to support this device.
> > >
> > > This SoC supports a flexible and dynamic decoding window allocation
> > > scheme; but since this feature is still not implemented we need
> > > to specify the window base address in the device tree node itself.
> > >
> > > This base address has been selected in a completely arbitrary fashion.
> > >
> > > Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
> > > Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> > > ---
> > > arch/arm/boot/dts/armada-xp-db.dts | 32 ++++++++++++++++++++++++++++++++
> > > 1 file changed, 32 insertions(+)
> >
> > Applied to mvebu/fixes
>
> Is mvebu/fixes the branch intended to be pushed to 3.10-rcX, or to
> 3.11 ?
>
> I'm asking because you've applied both 1/2 and 2/2 on the same
> mvebu/fixes branch, while 1/2 is intended for 3.10-rcX (fixing
> existing DT data), and 2/2 is intended for 3.11 (adding support for a
> new device in the DT).
I've added it to /fixes because it implements the same fix the other
patch did for the change in DT parsing. I debated asking Ezequiel to
split it into two patches, one for the ranges fix, the other for the new
nodes. In the end, since it isn't C code, I elected for simplicity.
thx,
Jason.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 2/2] ARM: mvebu: Add support for NOR flash device on Armada XP-DB board
2013-05-19 18:16 ` Jason Cooper
@ 2013-05-19 18:45 ` Thomas Petazzoni
2013-05-19 19:36 ` Jason Cooper
0 siblings, 1 reply; 8+ messages in thread
From: Thomas Petazzoni @ 2013-05-19 18:45 UTC (permalink / raw)
To: linux-arm-kernel
Dear Jason Cooper,
On Sun, 19 May 2013 14:16:32 -0400, Jason Cooper wrote:
> > Is mvebu/fixes the branch intended to be pushed to 3.10-rcX, or to
> > 3.11 ?
> >
> > I'm asking because you've applied both 1/2 and 2/2 on the same
> > mvebu/fixes branch, while 1/2 is intended for 3.10-rcX (fixing
> > existing DT data), and 2/2 is intended for 3.11 (adding support for a
> > new device in the DT).
>
> I've added it to /fixes because it implements the same fix the other
> patch did for the change in DT parsing. I debated asking Ezequiel to
> split it into two patches, one for the ranges fix, the other for the new
> nodes. In the end, since it isn't C code, I elected for simplicity.
The addition to the range property is *only* needed because the NOR DT
node is added. The two are needed together, so splitting them would
make absolutely no sense.
The reason why for the other board is was done in two patches is
because at the time Ezequiel sent the patch for the NOR, we were not
using this common ranges = <...> property in the DT. The additional
entry in the ranges = <...> property should have been added when the DT
reorganization was merged with the NOR patch from Ezequiel, but it
was not done. So Ezequiel sent a fixup patch to fix this.
There's no need to repeat the same story for the NOR flash of the
Armada XP DB.
Again, PATCH 1/2 is a fix for something that exists in 3.10-rc, while
PATCH 2/2 is enabling a new device, so presumably, it should go in 3.11.
Best regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 2/2] ARM: mvebu: Add support for NOR flash device on Armada XP-DB board
2013-05-19 18:45 ` Thomas Petazzoni
@ 2013-05-19 19:36 ` Jason Cooper
0 siblings, 0 replies; 8+ messages in thread
From: Jason Cooper @ 2013-05-19 19:36 UTC (permalink / raw)
To: linux-arm-kernel
On Sun, May 19, 2013 at 08:45:15PM +0200, Thomas Petazzoni wrote:
> Again, PATCH 1/2 is a fix for something that exists in 3.10-rc, while
> PATCH 2/2 is enabling a new device, so presumably, it should go in 3.11.
Thanks, I'll moving it over to mvebu/dt.
thx,
Jason.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2013-05-19 19:36 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-17 11:09 [PATCH 1/2] ARM: mvebu: Fix ranges entry on XP GP board Ezequiel Garcia
2013-05-17 11:09 ` [PATCH 2/2] ARM: mvebu: Add support for NOR flash device on Armada XP-DB board Ezequiel Garcia
2013-05-17 16:56 ` Jason Cooper
2013-05-19 7:13 ` Thomas Petazzoni
2013-05-19 18:16 ` Jason Cooper
2013-05-19 18:45 ` Thomas Petazzoni
2013-05-19 19:36 ` Jason Cooper
2013-05-17 16:55 ` [PATCH 1/2] ARM: mvebu: Fix ranges entry on XP GP board Jason Cooper
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).