lkml.org 
[lkml]   [2015]   [Jul]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v2 7/7] ARM: berlin: enable flash on the BG2Q DMP
Date
The BG2Q DMP has a nand controller. Add the corresponding node, but do
not enable it by default because the nand is only available on some BG2Q
DMP.

Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
---
arch/arm/boot/dts/berlin2q-marvell-dmp.dts | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)

diff --git a/arch/arm/boot/dts/berlin2q-marvell-dmp.dts b/arch/arm/boot/dts/berlin2q-marvell-dmp.dts
index 4a749e5b3b44..0d0146a773c0 100644
--- a/arch/arm/boot/dts/berlin2q-marvell-dmp.dts
+++ b/arch/arm/boot/dts/berlin2q-marvell-dmp.dts
@@ -140,3 +140,28 @@
&sata_phy {
status = "okay";
};
+
+&soc_pinctrl {
+ nand_pmux: nand-pmux {
+ groups = "G0", "G1";
+ function = "nand";
+ };
+};
+
+&nand0 {
+ pinctrl-0 = <&nand_pmux>;
+ pinctrl-names = "default";
+
+ marvell,nand-enable-arbiter;
+ nand-ecc-strength = <48>;
+ nand-ecc-step-size = <1024>;
+
+ num-cs = <1>;
+
+ /*
+ * Two kinds of BG2Q DMP are available: one with emmc and
+ * one with a nand. The latter is not widespread. Because
+ * of this, disable the nand by default.
+ */
+ status = "disabled";
+};
--
2.4.5


\
 
 \ /
  Last update: 2015-07-07 17:41    [W:0.067 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site