Thread (1 message) 1 message, 1 author, 2014-03-12

[PATCH 4/6] ARM: mvebu: Add support for NAND controller in Armada 38x SoC

From: Ezequiel Garcia <hidden>
Date: 2014-03-12 21:29:36
Also in: linux-devicetree

On Mar 13, Sergei Shtylyov wrote:
On 03/12/2014 11:30 PM, Ezequiel Garcia wrote:
quoted
quoted
quoted
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.
quoted
quoted
quoted
Signed-off-by: Ezequiel Garcia <redacted>
---
 arch/arm/boot/dts/armada-38x.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)
quoted
quoted
quoted
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 at d0000 {
quoted
quoted
   ePAPR standard [1] tells us:
quoted
quoted
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:
quoted
quoted
[...]
? flash
quoted
I think 'nand' is generic enough, isn't it?
   It is but not more generic than "flash". :-)
Right.
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help