Skip to contentSkip to conversation

ARM: dts: imx27-pdk: Add NAND support

PATCH Superseded Fabio Estevam 2 participants 6 messages Apr 17, 2014

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/2 ARM: dts: imx27-pdk: Add NAND support

From: Fabio Estevam <[email protected]>

---
 arch/arm/boot/dts/imx27-pdk.dts | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm/boot/dts/imx27-pdk.dts +6 -0
index 971961f..c629a8c 100644
@@ -84,6 +84,12 @@
 	status = "okay";
 };
 
+&nfc {
+	status = "okay";
+	nand-ecc-mode = "hw";
+	nand-on-flash-bbt;
+};
+
 &uart1 {
 	fsl,uart-has-rtscts;
 	pinctrl-names = "default";
Signature · 1 line
1.8.3.2
author reviewer
#1 lore raw

PATCH 2/2 ARM: dts: imx27-pdk: Add keypad support

From: Fabio Estevam <[email protected]>

---
 arch/arm/boot/dts/imx27-pdk.dts | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
arch/arm/boot/dts/imx27-pdk.dts +16 -0
index c629a8c..2b7b24f 100644
@@ -10,6 +10,7 @@
  */
 
 /dts-v1/;
+#include <dt-bindings/input/input.h>
 #include "imx27.dtsi"
 
 / {
@@ -84,6 +85,21 @@
 	status = "okay";
 };
 
+&kpp {
+	linux,keymap = <
+		MATRIX_KEY(0, 0, KEY_UP)
+		MATRIX_KEY(0, 1, KEY_DOWN)
+		MATRIX_KEY(1, 0, KEY_RIGHT)
+		MATRIX_KEY(1, 1, KEY_LEFT)
+		MATRIX_KEY(1, 2, KEY_ENTER)
+		MATRIX_KEY(2, 0, KEY_F6)
+		MATRIX_KEY(2, 1, KEY_F8)
+		MATRIX_KEY(2, 2, KEY_F9)
+		MATRIX_KEY(2, 3, KEY_F10)
+	>;
+	status = "okay";
+};
+
 &nfc {
 	status = "okay";
 	nand-ecc-mode = "hw";
Signature · 1 line
1.8.3.2
#2 lore raw

Re: [PATCH 2/2] ARM: dts: imx27-pdk: Add keypad support

Thu, 17 Apr 2014 09:42:41 -0300 ?? Fabio Estevam <[email protected]>:

Quoted 12 lines

From: Fabio Estevam <[email protected]>

---
 arch/arm/boot/dts/imx27-pdk.dts | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
arch/arm/boot/dts/imx27-pdk.dts +0 -0
index c629a8c..2b7b24f 100644

arch/arm/boot/dts/imx27-pdk.dts line 13

Quoted 4 lines
arch/arm/boot/dts/imx27-pdk.dts +1 -0
@@ -10,6 +10,7 @@
  */
 
 /dts-v1/;
+#include <dt-bindings/input/input.h>

I think we can include this into imx27.dtsi, same as other files.

---

#3 lore raw
In reply to Fabio Estevam

Thu, 17 Apr 2014 09:42:40 -0300 ?? Fabio Estevam <[email protected]>:

Quoted 12 lines

From: Fabio Estevam <[email protected]>

---
 arch/arm/boot/dts/imx27-pdk.dts | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm/boot/dts/imx27-pdk.dts +0 -0
index 971961f..c629a8c 100644

arch/arm/boot/dts/imx27-pdk.dts line 91

Quoted 8 lines
arch/arm/boot/dts/imx27-pdk.dts +5 -0
@@ -84,6 +84,12 @@
 	status = "okay";
 };
 
+&nfc {
+	status = "okay";
+	nand-ecc-mode = "hw";
+	nand-on-flash-bbt;
+};

You also should add pin definitions.

---

author reviewer
#4 lore raw

PATCH 1/2 ARM: dts: imx27-pdk: Add NAND support

Quoted 7 lines · Alexander Shiyan

arch/arm/boot/dts/imx27-pdk.dts line 91

Quoted 5 lines

+&nfc {

arch/arm/boot/dts/imx27-pdk.dts +4 -0
+     status = "okay";
+     nand-ecc-mode = "hw";
+     nand-on-flash-bbt;
+};

You also should add pin definitions.

NAND is detected even without the pin definitions. arch/arm/mach-imx/mach-mx27_3ds.c also does not define the NAND pins.

#5 lore raw

Thu, 17 Apr 2014 10:12:34 -0300 ?? Fabio Estevam <[email protected]>:

Quoted 8 lines · Alexander Shiyan
Quoted 7 lines
Quoted 6 lines

+&nfc {

arch/arm/boot/dts/imx27-pdk.dts +4 -0
+     status = "okay";
+     nand-ecc-mode = "hw";
+     nand-on-flash-bbt;
+};
Quoted 4 lines
Quoted 1 line

You also should add pin definitions.

NAND is detected even without the pin definitions. arch/arm/mach-imx/mach-mx27_3ds.c also does not define the NAND pins.

What if NFC pins are defined as GPIOs in the bootloader? The definition of pins is a good idea, because we get a runtime warning in case a possible conflict.

---