ARM: dts: imx27-pdk: Add NAND support
Subsystems (2)
Fabio Estevam
reviewerPATCH 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
@@ -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
Fabio Estevam
reviewerPATCH 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
@@ -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
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]>
Signed-off-by 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
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.
---
Thu, 17 Apr 2014 09:42:40 -0300 ?? Fabio Estevam <[email protected]>:
Quoted 12 lines
From: Fabio Estevam <[email protected]>
Signed-off-by 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
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.
---
Fabio Estevam
reviewerPATCH 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.
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.calso 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.
---