* [PATCH 0/6] Armada 380 NAND support
@ 2014-03-12 15:16 Ezequiel Garcia
[not found] ` <1394637404-7651-1-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
0 siblings, 1 reply; 13+ messages in thread
From: Ezequiel Garcia @ 2014-03-12 15:16 UTC (permalink / raw)
To: Mike Turquette, devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Jason Cooper
Cc: Thomas Petazzoni, Gregory Clement, Tawfik Bayouk, Lior Amsalem,
Sebastian Hesselbarth, Andrew Lunn, Seif Mazareeb,
Ezequiel Garcia
This patchset adds support for the NAND on Armada 380/385 SoCs.
The first patch adds a new "armada-380-corediv-clock" compatible
string, with its proper SoC-specific structure, adding the register
layout for this SoC family.
The second and third patches add the devicetree changes to support
the Core Divider clock.
After adding its clock source, the fourth and fifth patches add
the NAND devicetree changes. The NAND controller is compatible with
the Armada 370 controller, so we are currently support it using the
same compatible string.
The last patch updates the binding documentation for the Core Divider
clock, which is missing the information about the already supported
Armada 375 compatible string.
This series is based on linux-next 20140307. I expect it will apply
cleanly on v3.15-rc1; if that's not the case, I'll send a rebased patchset.
The clock and devicetree changes are mostly independent so they
can be merged through the clock and mvebu tree respectively.
Ezequiel Garcia (6):
clk: mvebu: Support Armada 380 SoC on the core divider clock
ARM: mvebu: Add a 2 GHz fixed-clock on Armada 38x SoCs
ARM: mvebu: Add the Core Divider clock to Armada 38x SoCs
ARM: mvebu: Add support for NAND controller in Armada 38x SoC
ARM: mvebu: Enable NAND controller in Armada 385-DB
clk: mvebu: Update binding documentation for the core divider clock
.../bindings/clock/mvebu-corediv-clock.txt | 5 ++++-
arch/arm/boot/dts/armada-385-db.dts | 21 ++++++++++++++++++
arch/arm/boot/dts/armada-38x.dtsi | 25 ++++++++++++++++++++++
drivers/clk/mvebu/clk-corediv.c | 23 ++++++++++++++++++++
4 files changed, 73 insertions(+), 1 deletion(-)
--
1.9.0
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 13+ messages in thread[parent not found: <1394637404-7651-1-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>]
* [PATCH 1/6] clk: mvebu: Support Armada 380 SoC on the core divider clock [not found] ` <1394637404-7651-1-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> @ 2014-03-12 15:16 ` Ezequiel Garcia 2014-03-12 15:16 ` [PATCH 2/6] ARM: mvebu: Add a 2 GHz fixed-clock on Armada 38x SoCs Ezequiel Garcia ` (5 subsequent siblings) 6 siblings, 0 replies; 13+ messages in thread From: Ezequiel Garcia @ 2014-03-12 15:16 UTC (permalink / raw) To: Mike Turquette, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Jason Cooper Cc: Thomas Petazzoni, Gregory Clement, Tawfik Bayouk, Lior Amsalem, Sebastian Hesselbarth, Andrew Lunn, Seif Mazareeb, Ezequiel Garcia This commit adds support for the Core Divider clocks of the Armada 380 SoCs. Similarly to Armada 370 and XP, the Core Divider clocks of the 380 have gate capabilities. The only difference is the register layout. Signed-off-by: Ezequiel Garcia <ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> --- drivers/clk/mvebu/clk-corediv.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/drivers/clk/mvebu/clk-corediv.c b/drivers/clk/mvebu/clk-corediv.c index 4da6076..911dbb6 100644 --- a/drivers/clk/mvebu/clk-corediv.c +++ b/drivers/clk/mvebu/clk-corediv.c @@ -204,6 +204,22 @@ static const struct clk_corediv_soc_desc armada370_corediv_soc = { .ratio_offset = 0x8, }; +static const struct clk_corediv_soc_desc armada380_corediv_soc = { + .descs = mvebu_corediv_desc, + .ndescs = ARRAY_SIZE(mvebu_corediv_desc), + .ops = { + .enable = clk_corediv_enable, + .disable = clk_corediv_disable, + .is_enabled = clk_corediv_is_enabled, + .recalc_rate = clk_corediv_recalc_rate, + .round_rate = clk_corediv_round_rate, + .set_rate = clk_corediv_set_rate, + }, + .ratio_reload = BIT(8), + .enable_bit_offset = 16, + .ratio_offset = 0x4, +}; + static const struct clk_corediv_soc_desc armada375_corediv_soc = { .descs = mvebu_corediv_desc, .ndescs = ARRAY_SIZE(mvebu_corediv_desc), @@ -290,3 +306,10 @@ static void __init armada375_corediv_clk_init(struct device_node *node) } CLK_OF_DECLARE(armada375_corediv_clk, "marvell,armada-375-corediv-clock", armada375_corediv_clk_init); + +static void __init armada380_corediv_clk_init(struct device_node *node) +{ + return mvebu_corediv_clk_init(node, &armada380_corediv_soc); +} +CLK_OF_DECLARE(armada380_corediv_clk, "marvell,armada-380-corediv-clock", + armada380_corediv_clk_init); -- 1.9.0 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 2/6] ARM: mvebu: Add a 2 GHz fixed-clock on Armada 38x SoCs [not found] ` <1394637404-7651-1-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> 2014-03-12 15:16 ` [PATCH 1/6] clk: mvebu: Support Armada 380 SoC on the core divider clock Ezequiel Garcia @ 2014-03-12 15:16 ` Ezequiel Garcia 2014-03-12 15:16 ` [PATCH 3/6] ARM: mvebu: Add the Core Divider clock to " Ezequiel Garcia ` (4 subsequent siblings) 6 siblings, 0 replies; 13+ messages in thread From: Ezequiel Garcia @ 2014-03-12 15:16 UTC (permalink / raw) To: Mike Turquette, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Jason Cooper Cc: Thomas Petazzoni, Gregory Clement, Tawfik Bayouk, Lior Amsalem, Sebastian Hesselbarth, Andrew Lunn, Seif Mazareeb, Ezequiel Garcia Armada 38x SoCs have a 2 GHz fixed main PLL that is used to feed other clocks. This commit adds a DT representation of this clock through a fixed-clock compatible node. Signed-off-by: Ezequiel Garcia <ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> --- arch/arm/boot/dts/armada-38x.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/armada-38x.dtsi b/arch/arm/boot/dts/armada-38x.dtsi index 812ce28..38fc3a0 100644 --- a/arch/arm/boot/dts/armada-38x.dtsi +++ b/arch/arm/boot/dts/armada-38x.dtsi @@ -341,6 +341,13 @@ }; clocks { + /* 2 GHz fixed main PLL */ + mainpll: mainpll { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <2000000000>; + }; + /* 25 MHz reference crystal */ refclk: oscillator { compatible = "fixed-clock"; -- 1.9.0 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 3/6] ARM: mvebu: Add the Core Divider clock to Armada 38x SoCs [not found] ` <1394637404-7651-1-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> 2014-03-12 15:16 ` [PATCH 1/6] clk: mvebu: Support Armada 380 SoC on the core divider clock Ezequiel Garcia 2014-03-12 15:16 ` [PATCH 2/6] ARM: mvebu: Add a 2 GHz fixed-clock on Armada 38x SoCs Ezequiel Garcia @ 2014-03-12 15:16 ` Ezequiel Garcia 2014-03-12 15:16 ` [PATCH 4/6] ARM: mvebu: Add support for NAND controller in Armada 38x SoC Ezequiel Garcia ` (3 subsequent siblings) 6 siblings, 0 replies; 13+ messages in thread From: Ezequiel Garcia @ 2014-03-12 15:16 UTC (permalink / raw) To: Mike Turquette, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Jason Cooper Cc: Thomas Petazzoni, Gregory Clement, Tawfik Bayouk, Lior Amsalem, Sebastian Hesselbarth, Andrew Lunn, Seif Mazareeb, Ezequiel Garcia The Armada 38x SoC family has a clock provider called "Core Divider", derived from the fixed 2 GHz main PLL clock. This is similar to the one on A370, A375 and AXP. Signed-off-by: Ezequiel Garcia <ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> --- arch/arm/boot/dts/armada-38x.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/armada-38x.dtsi b/arch/arm/boot/dts/armada-38x.dtsi index 38fc3a0..76cc27e 100644 --- a/arch/arm/boot/dts/armada-38x.dtsi +++ b/arch/arm/boot/dts/armada-38x.dtsi @@ -337,6 +337,14 @@ compatible = "marvell,orion-mdio"; reg = <0x72004 0x4>; }; + + coredivclk: corediv-clock@e4250 { + compatible = "marvell,armada-380-corediv-clock"; + reg = <0xe4250 0xc>; + #clock-cells = <1>; + clocks = <&mainpll>; + clock-output-names = "nand"; + }; }; }; -- 1.9.0 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 4/6] ARM: mvebu: Add support for NAND controller in Armada 38x SoC [not found] ` <1394637404-7651-1-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> ` (2 preceding siblings ...) 2014-03-12 15:16 ` [PATCH 3/6] ARM: mvebu: Add the Core Divider clock to " Ezequiel Garcia @ 2014-03-12 15:16 ` Ezequiel Garcia [not found] ` <1394637404-7651-5-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> 2014-03-12 15:16 ` [PATCH 5/6] ARM: mvebu: Enable NAND controller in Armada 385-DB Ezequiel Garcia ` (2 subsequent siblings) 6 siblings, 1 reply; 13+ messages in thread From: Ezequiel Garcia @ 2014-03-12 15:16 UTC (permalink / raw) To: Mike Turquette, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Jason Cooper Cc: Thomas Petazzoni, Gregory Clement, Tawfik Bayouk, Lior Amsalem, Sebastian Hesselbarth, Andrew Lunn, Seif Mazareeb, Ezequiel Garcia The Armada 38x SoC family has a NAND controller, compatible with the controller in Armada 370/375/XP SoCs. Add support for it in the devicetree file. Signed-off-by: Ezequiel Garcia <ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> --- arch/arm/boot/dts/armada-38x.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/armada-38x.dtsi b/arch/arm/boot/dts/armada-38x.dtsi index 76cc27e..18d8f80 100644 --- a/arch/arm/boot/dts/armada-38x.dtsi +++ b/arch/arm/boot/dts/armada-38x.dtsi @@ -345,6 +345,16 @@ clocks = <&mainpll>; clock-output-names = "nand"; }; + + nand@d0000 { + compatible = "marvell,armada370-nand"; + reg = <0xd0000 0x54>; + #address-cells = <1>; + #size-cells = <1>; + interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&coredivclk 0>; + status = "disabled"; + }; }; }; -- 1.9.0 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 13+ messages in thread
[parent not found: <1394637404-7651-5-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>]
* Re: [PATCH 4/6] ARM: mvebu: Add support for NAND controller in Armada 38x SoC [not found] ` <1394637404-7651-5-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> @ 2014-03-12 21:17 ` Sergei Shtylyov [not found] ` <5320CEE7.6020506-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org> 0 siblings, 1 reply; 13+ messages in thread From: Sergei Shtylyov @ 2014-03-12 21:17 UTC (permalink / raw) To: Ezequiel Garcia, Mike Turquette, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Jason Cooper Cc: Thomas Petazzoni, Lior Amsalem, Tawfik Bayouk, Andrew Lunn, Seif Mazareeb, Gregory Clement, Sebastian Hesselbarth Hello. On 03/12/2014 06:16 PM, Ezequiel Garcia wrote: > The Armada 38x SoC family has a NAND controller, compatible > with the controller in Armada 370/375/XP SoCs. Add support for > it in the devicetree file. > Signed-off-by: Ezequiel Garcia <ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> > --- > arch/arm/boot/dts/armada-38x.dtsi | 10 ++++++++++ > 1 file changed, 10 insertions(+) > diff --git a/arch/arm/boot/dts/armada-38x.dtsi b/arch/arm/boot/dts/armada-38x.dtsi > index 76cc27e..18d8f80 100644 > --- a/arch/arm/boot/dts/armada-38x.dtsi > +++ b/arch/arm/boot/dts/armada-38x.dtsi > @@ -345,6 +345,16 @@ > clocks = <&mainpll>; > clock-output-names = "nand"; > }; > + > + nand@d0000 { ePAPR standard [1] tells us: The name of a node should be somewhat generic, reflecting the function of the device and not its precise programming model. If appropriate, the name should be one of the following choices: [...] • flash [1] http://www.power.org/resources/downloads/Power_ePAPR_APPROVED_v1.0.pdf WBR, Sergei -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 13+ messages in thread
[parent not found: <5320CEE7.6020506-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>]
* Re: [PATCH 4/6] ARM: mvebu: Add support for NAND controller in Armada 38x SoC [not found] ` <5320CEE7.6020506-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org> @ 2014-03-12 20:30 ` Ezequiel Garcia [not found] ` <20140312203007.GA7396-nAQHv47ARr+vIlHkl8J1cg@public.gmane.org> 0 siblings, 1 reply; 13+ messages in thread From: Ezequiel Garcia @ 2014-03-12 20:30 UTC (permalink / raw) To: Sergei Shtylyov Cc: Mike Turquette, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Jason Cooper, Thomas Petazzoni, Lior Amsalem, Tawfik Bayouk, Andrew Lunn, Seif Mazareeb, Gregory Clement, Sebastian Hesselbarth On Mar 13, Sergei Shtylyov wrote: > On 03/12/2014 06:16 PM, Ezequiel Garcia wrote: > > >The Armada 38x SoC family has a NAND controller, compatible > >with the controller in Armada 370/375/XP SoCs. Add support for > >it in the devicetree file. > > >Signed-off-by: Ezequiel Garcia <ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> > >--- > > arch/arm/boot/dts/armada-38x.dtsi | 10 ++++++++++ > > 1 file changed, 10 insertions(+) > > >diff --git a/arch/arm/boot/dts/armada-38x.dtsi b/arch/arm/boot/dts/armada-38x.dtsi > >index 76cc27e..18d8f80 100644 > >--- a/arch/arm/boot/dts/armada-38x.dtsi > >+++ b/arch/arm/boot/dts/armada-38x.dtsi > >@@ -345,6 +345,16 @@ > > clocks = <&mainpll>; > > clock-output-names = "nand"; > > }; > >+ > >+ nand@d0000 { > > ePAPR standard [1] tells us: > > The name of a node should be somewhat generic, reflecting the function of > the device and not its precise programming model. If appropriate, the name > should be one of the following choices: > > [...] > • flash > I think 'nand' is generic enough, isn't it? In any case, it seems sane to distinguish a NAND flash from a NOR flash, from a SPI flash. FWIW, quite a few other SoCs have chosen 'nand' for the node name, including the other Armada variants. Was this a wrong choice? -- Ezequiel García, Free Electrons Embedded Linux, Kernel and Android Engineering http://free-electrons.com -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 13+ messages in thread
[parent not found: <20140312203007.GA7396-nAQHv47ARr+vIlHkl8J1cg@public.gmane.org>]
* Re: [PATCH 4/6] ARM: mvebu: Add support for NAND controller in Armada 38x SoC [not found] ` <20140312203007.GA7396-nAQHv47ARr+vIlHkl8J1cg@public.gmane.org> @ 2014-03-12 21:39 ` Sergei Shtylyov [not found] ` <5320D3FD.8010704-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org> 0 siblings, 1 reply; 13+ messages in thread From: Sergei Shtylyov @ 2014-03-12 21:39 UTC (permalink / raw) To: Ezequiel Garcia Cc: Mike Turquette, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Jason Cooper, Thomas Petazzoni, Lior Amsalem, Tawfik Bayouk, Andrew Lunn, Seif Mazareeb, Gregory Clement, Sebastian Hesselbarth On 03/12/2014 11:30 PM, Ezequiel Garcia wrote: >>> The Armada 38x SoC family has a NAND controller, compatible >>> with the controller in Armada 370/375/XP SoCs. Add support for >>> it in the devicetree file. >>> Signed-off-by: Ezequiel Garcia <ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> >>> --- >>> arch/arm/boot/dts/armada-38x.dtsi | 10 ++++++++++ >>> 1 file changed, 10 insertions(+) >>> diff --git a/arch/arm/boot/dts/armada-38x.dtsi b/arch/arm/boot/dts/armada-38x.dtsi >>> index 76cc27e..18d8f80 100644 >>> --- a/arch/arm/boot/dts/armada-38x.dtsi >>> +++ b/arch/arm/boot/dts/armada-38x.dtsi >>> @@ -345,6 +345,16 @@ >>> clocks = <&mainpll>; >>> clock-output-names = "nand"; >>> }; >>> + >>> + nand@d0000 { >> ePAPR standard [1] tells us: >> The name of a node should be somewhat generic, reflecting the function of >> the device and not its precise programming model. If appropriate, the name >> should be one of the following choices: >> [...] >> • flash > I think 'nand' is generic enough, isn't it? It is but not more generic than "flash". :-) > In any case, it seems sane to distinguish a NAND flash from a NOR flash, > from a SPI flash. I don't know enough about the SPI flashes but this is only a node name, no more, so I think we can afford to be really generic... > FWIW, quite a few other SoCs have chosen 'nand' for the node name, including > the other Armada variants. Was this a wrong choice? I guess. There's a lot of wrong choices now all over the arch/arm/boot/dts/ because people are probably not aware of the necessary documentation such as http://devicetree.org/Device_Tree_Usage (pointing to ePAPR and having a passage on the generic device names too). WBR, Sergei -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 13+ messages in thread
[parent not found: <5320D3FD.8010704-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>]
* Re: [PATCH 4/6] ARM: mvebu: Add support for NAND controller in Armada 38x SoC [not found] ` <5320D3FD.8010704-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org> @ 2014-03-12 21:29 ` Ezequiel Garcia 0 siblings, 0 replies; 13+ messages in thread From: Ezequiel Garcia @ 2014-03-12 21:29 UTC (permalink / raw) To: Sergei Shtylyov Cc: Mike Turquette, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Jason Cooper, Thomas Petazzoni, Lior Amsalem, Tawfik Bayouk, Andrew Lunn, Seif Mazareeb, Gregory Clement, Sebastian Hesselbarth On Mar 13, Sergei Shtylyov wrote: > On 03/12/2014 11:30 PM, Ezequiel Garcia wrote: > > >>>The Armada 38x SoC family has a NAND controller, compatible > >>>with the controller in Armada 370/375/XP SoCs. Add support for > >>>it in the devicetree file. > > >>>Signed-off-by: Ezequiel Garcia <ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> > >>>--- > >>> arch/arm/boot/dts/armada-38x.dtsi | 10 ++++++++++ > >>> 1 file changed, 10 insertions(+) > > >>>diff --git a/arch/arm/boot/dts/armada-38x.dtsi b/arch/arm/boot/dts/armada-38x.dtsi > >>>index 76cc27e..18d8f80 100644 > >>>--- a/arch/arm/boot/dts/armada-38x.dtsi > >>>+++ b/arch/arm/boot/dts/armada-38x.dtsi > >>>@@ -345,6 +345,16 @@ > >>> clocks = <&mainpll>; > >>> clock-output-names = "nand"; > >>> }; > >>>+ > >>>+ nand@d0000 { > > >> ePAPR standard [1] tells us: > > >>The name of a node should be somewhat generic, reflecting the function of > >>the device and not its precise programming model. If appropriate, the name > >>should be one of the following choices: > > >>[...] > >>• flash > > >I think 'nand' is generic enough, isn't it? > > It is but not more generic than "flash". :-) > Right. > >FWIW, quite a few other SoCs have chosen 'nand' for the node name, including > >the other Armada variants. Was this a wrong choice? > > I guess. There's a lot of wrong choices now all over the > arch/arm/boot/dts/ because people are probably not aware of the necessary > documentation such as http://devicetree.org/Device_Tree_Usage (pointing to > ePAPR and having a passage on the generic device names too). > OK, I guess it's fine. Let's try to do things from now on, at least. I'll fix this and send a new series. -- Ezequiel García, Free Electrons Embedded Linux, Kernel and Android Engineering http://free-electrons.com -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH 5/6] ARM: mvebu: Enable NAND controller in Armada 385-DB [not found] ` <1394637404-7651-1-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> ` (3 preceding siblings ...) 2014-03-12 15:16 ` [PATCH 4/6] ARM: mvebu: Add support for NAND controller in Armada 38x SoC Ezequiel Garcia @ 2014-03-12 15:16 ` Ezequiel Garcia 2014-03-12 15:16 ` [PATCH 6/6] clk: mvebu: Update binding documentation for the core divider clock Ezequiel Garcia 2014-03-13 19:19 ` [PATCH 0/6] Armada 380 NAND support Jason Cooper 6 siblings, 0 replies; 13+ messages in thread From: Ezequiel Garcia @ 2014-03-12 15:16 UTC (permalink / raw) To: Mike Turquette, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Jason Cooper Cc: Thomas Petazzoni, Gregory Clement, Tawfik Bayouk, Lior Amsalem, Sebastian Hesselbarth, Andrew Lunn, Seif Mazareeb, Ezequiel Garcia The Armada 385-DB board has a NAND flash, so enable it in the devicetree and add the partitions as prepared in the factory images. Signed-off-by: Ezequiel Garcia <ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> --- arch/arm/boot/dts/armada-385-db.dts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm/boot/dts/armada-385-db.dts b/arch/arm/boot/dts/armada-385-db.dts index 9a13642..b21e9b2 100644 --- a/arch/arm/boot/dts/armada-385-db.dts +++ b/arch/arm/boot/dts/armada-385-db.dts @@ -80,6 +80,27 @@ reg = <1>; }; }; + + nand: nand@d0000 { + status = "okay"; + num-cs = <1>; + marvell,nand-keep-config; + marvell,nand-enable-arbiter; + nand-on-flash-bbt; + + partition@0 { + label = "U-Boot"; + reg = <0 0x800000>; + }; + partition@800000 { + label = "Linux"; + reg = <0x800000 0x800000>; + }; + partition@1000000 { + label = "Filesystem"; + reg = <0x1000000 0x3f000000>; + }; + }; }; pcie-controller { -- 1.9.0 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 6/6] clk: mvebu: Update binding documentation for the core divider clock [not found] ` <1394637404-7651-1-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> ` (4 preceding siblings ...) 2014-03-12 15:16 ` [PATCH 5/6] ARM: mvebu: Enable NAND controller in Armada 385-DB Ezequiel Garcia @ 2014-03-12 15:16 ` Ezequiel Garcia 2014-03-13 19:19 ` [PATCH 0/6] Armada 380 NAND support Jason Cooper 6 siblings, 0 replies; 13+ messages in thread From: Ezequiel Garcia @ 2014-03-12 15:16 UTC (permalink / raw) To: Mike Turquette, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Jason Cooper Cc: Thomas Petazzoni, Gregory Clement, Tawfik Bayouk, Lior Amsalem, Sebastian Hesselbarth, Andrew Lunn, Seif Mazareeb, Ezequiel Garcia The Core Divider clock support two new compatible strings for Armada 375 and Armada 380 SoCs. Add the compatible strings to the documentation. Signed-off-by: Ezequiel Garcia <ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> --- Documentation/devicetree/bindings/clock/mvebu-corediv-clock.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/clock/mvebu-corediv-clock.txt b/Documentation/devicetree/bindings/clock/mvebu-corediv-clock.txt index c62391f..520562a 100644 --- a/Documentation/devicetree/bindings/clock/mvebu-corediv-clock.txt +++ b/Documentation/devicetree/bindings/clock/mvebu-corediv-clock.txt @@ -4,7 +4,10 @@ The following is a list of provided IDs and clock names on Armada 370/XP: 0 = nand (NAND clock) Required properties: -- compatible : must be "marvell,armada-370-corediv-clock" +- compatible : must be "marvell,armada-370-corediv-clock", + "marvell,armada-375-corediv-clock", + "marvell,armada-380-corediv-clock", + - reg : must be the register address of Core Divider control register - #clock-cells : from common clock binding; shall be set to 1 - clocks : must be set to the parent's phandle -- 1.9.0 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 13+ messages in thread
* Re: [PATCH 0/6] Armada 380 NAND support [not found] ` <1394637404-7651-1-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> ` (5 preceding siblings ...) 2014-03-12 15:16 ` [PATCH 6/6] clk: mvebu: Update binding documentation for the core divider clock Ezequiel Garcia @ 2014-03-13 19:19 ` Jason Cooper [not found] ` <20140313191925.GE7811-u4khhh1J0LxI1Ri9qeTfzeTW4wlIGRCZ@public.gmane.org> 6 siblings, 1 reply; 13+ messages in thread From: Jason Cooper @ 2014-03-13 19:19 UTC (permalink / raw) To: Ezequiel Garcia Cc: Mike Turquette, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Thomas Petazzoni, Gregory Clement, Tawfik Bayouk, Lior Amsalem, Sebastian Hesselbarth, Andrew Lunn, Seif Mazareeb Ezequiel, On Wed, Mar 12, 2014 at 12:16:38PM -0300, Ezequiel Garcia wrote: > This patchset adds support for the NAND on Armada 380/385 SoCs. > > The first patch adds a new "armada-380-corediv-clock" compatible > string, with its proper SoC-specific structure, adding the register > layout for this SoC family. > > The second and third patches add the devicetree changes to support > the Core Divider clock. > > After adding its clock source, the fourth and fifth patches add > the NAND devicetree changes. The NAND controller is compatible with > the Armada 370 controller, so we are currently support it using the > same compatible string. > > The last patch updates the binding documentation for the Core Divider > clock, which is missing the information about the already supported > Armada 375 compatible string. > > This series is based on linux-next 20140307. I expect it will apply > cleanly on v3.15-rc1; if that's not the case, I'll send a rebased patchset. > > The clock and devicetree changes are mostly independent so they > can be merged through the clock and mvebu tree respectively. > > Ezequiel Garcia (6): > clk: mvebu: Support Armada 380 SoC on the core divider clock > ARM: mvebu: Add a 2 GHz fixed-clock on Armada 38x SoCs > ARM: mvebu: Add the Core Divider clock to Armada 38x SoCs > ARM: mvebu: Add support for NAND controller in Armada 38x SoC > ARM: mvebu: Enable NAND controller in Armada 385-DB > clk: mvebu: Update binding documentation for the core divider clock > > .../bindings/clock/mvebu-corediv-clock.txt | 5 ++++- > arch/arm/boot/dts/armada-385-db.dts | 21 ++++++++++++++++++ > arch/arm/boot/dts/armada-38x.dtsi | 25 ++++++++++++++++++++++ > drivers/clk/mvebu/clk-corediv.c | 23 ++++++++++++++++++++ > 4 files changed, 73 insertions(+), 1 deletion(-) This clock changes looks really clean and simple. Mike says he has time for one more pull. Can you fixup the s/nand/flash/ and resend? I'd like to pull this and your fix in and possibly send a pull request for v3.15 tomorrow. thx, Jason. -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 13+ messages in thread
[parent not found: <20140313191925.GE7811-u4khhh1J0LxI1Ri9qeTfzeTW4wlIGRCZ@public.gmane.org>]
* Re: [PATCH 0/6] Armada 380 NAND support [not found] ` <20140313191925.GE7811-u4khhh1J0LxI1Ri9qeTfzeTW4wlIGRCZ@public.gmane.org> @ 2014-03-13 19:25 ` Ezequiel Garcia 0 siblings, 0 replies; 13+ messages in thread From: Ezequiel Garcia @ 2014-03-13 19:25 UTC (permalink / raw) To: Jason Cooper Cc: Mike Turquette, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Thomas Petazzoni, Gregory Clement, Tawfik Bayouk, Lior Amsalem, Sebastian Hesselbarth, Andrew Lunn, Seif Mazareeb On Mar 13, Jason Cooper wrote: > Ezequiel, > > On Wed, Mar 12, 2014 at 12:16:38PM -0300, Ezequiel Garcia wrote: > > This patchset adds support for the NAND on Armada 380/385 SoCs. > > > > The first patch adds a new "armada-380-corediv-clock" compatible > > string, with its proper SoC-specific structure, adding the register > > layout for this SoC family. > > > > The second and third patches add the devicetree changes to support > > the Core Divider clock. > > > > After adding its clock source, the fourth and fifth patches add > > the NAND devicetree changes. The NAND controller is compatible with > > the Armada 370 controller, so we are currently support it using the > > same compatible string. > > > > The last patch updates the binding documentation for the Core Divider > > clock, which is missing the information about the already supported > > Armada 375 compatible string. > > > > This series is based on linux-next 20140307. I expect it will apply > > cleanly on v3.15-rc1; if that's not the case, I'll send a rebased patchset. > > > > The clock and devicetree changes are mostly independent so they > > can be merged through the clock and mvebu tree respectively. > > > > Ezequiel Garcia (6): > > clk: mvebu: Support Armada 380 SoC on the core divider clock > > ARM: mvebu: Add a 2 GHz fixed-clock on Armada 38x SoCs > > ARM: mvebu: Add the Core Divider clock to Armada 38x SoCs > > ARM: mvebu: Add support for NAND controller in Armada 38x SoC > > ARM: mvebu: Enable NAND controller in Armada 385-DB > > clk: mvebu: Update binding documentation for the core divider clock > > > > .../bindings/clock/mvebu-corediv-clock.txt | 5 ++++- > > arch/arm/boot/dts/armada-385-db.dts | 21 ++++++++++++++++++ > > arch/arm/boot/dts/armada-38x.dtsi | 25 ++++++++++++++++++++++ > > drivers/clk/mvebu/clk-corediv.c | 23 ++++++++++++++++++++ > > 4 files changed, 73 insertions(+), 1 deletion(-) > > This clock changes looks really clean and simple. Mike says he has time > for one more pull. Can you fixup the s/nand/flash/ and resend? I'd > like to pull this and your fix in and possibly send a pull request for > v3.15 tomorrow. > Right away. -- Ezequiel García, Free Electrons Embedded Linux, Kernel and Android Engineering http://free-electrons.com -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2014-03-13 19:25 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-12 15:16 [PATCH 0/6] Armada 380 NAND support Ezequiel Garcia
[not found] ` <1394637404-7651-1-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2014-03-12 15:16 ` [PATCH 1/6] clk: mvebu: Support Armada 380 SoC on the core divider clock Ezequiel Garcia
2014-03-12 15:16 ` [PATCH 2/6] ARM: mvebu: Add a 2 GHz fixed-clock on Armada 38x SoCs Ezequiel Garcia
2014-03-12 15:16 ` [PATCH 3/6] ARM: mvebu: Add the Core Divider clock to " Ezequiel Garcia
2014-03-12 15:16 ` [PATCH 4/6] ARM: mvebu: Add support for NAND controller in Armada 38x SoC Ezequiel Garcia
[not found] ` <1394637404-7651-5-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2014-03-12 21:17 ` Sergei Shtylyov
[not found] ` <5320CEE7.6020506-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>
2014-03-12 20:30 ` Ezequiel Garcia
[not found] ` <20140312203007.GA7396-nAQHv47ARr+vIlHkl8J1cg@public.gmane.org>
2014-03-12 21:39 ` Sergei Shtylyov
[not found] ` <5320D3FD.8010704-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>
2014-03-12 21:29 ` Ezequiel Garcia
2014-03-12 15:16 ` [PATCH 5/6] ARM: mvebu: Enable NAND controller in Armada 385-DB Ezequiel Garcia
2014-03-12 15:16 ` [PATCH 6/6] clk: mvebu: Update binding documentation for the core divider clock Ezequiel Garcia
2014-03-13 19:19 ` [PATCH 0/6] Armada 380 NAND support Jason Cooper
[not found] ` <20140313191925.GE7811-u4khhh1J0LxI1Ri9qeTfzeTW4wlIGRCZ@public.gmane.org>
2014-03-13 19:25 ` Ezequiel Garcia
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).