Skip to contentSkip to conversation

ARM: dts: imx27-phytec-phycore-som: Add NFC pin group

PATCH New Alexander Shiyan 2 participants 7 messages Dec 21, 2013 – Dec 23, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/6 ARM: dts: imx27-phytec-phycore-som: Add NFC pin group

This patch adds pin group fro NAND Flash Controller.

---
 arch/arm/boot/dts/imx27-phytec-phycore-som.dtsi | 6 ++++++
 arch/arm/boot/dts/imx27-pingrp.h                | 9 +++++++++
 2 files changed, 15 insertions(+)
arch/arm/boot/dts/imx27-phytec-phycore-som.dtsi +6 -0
index 7087a4f..94ba726 100644
@@ -201,10 +201,16 @@
 		pinctrl_i2c2: i2c2grp {
 			fsl,pins = <MX27_I2C2_PINGRP1>;
 		};
+
+		pinctrl_nfc: nfcgrp {
+			fsl,pins = <MX27_NFC_PINGRP1>;
+		};
 	};
 };
 
 &nfc {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_nfc>;
 	nand-bus-width = <8>;
 	nand-ecc-mode = "hw";
 	nand-on-flash-bbt;
arch/arm/boot/dts/imx27-pingrp.h +9 -0
index edc1e90..61eb710 100644
@@ -85,6 +85,15 @@
 	MX27_PAD_I2C2_SDA__I2C2_SDA 0x0 \
 	MX27_PAD_I2C2_SCL__I2C2_SCL 0x0
 
+#define MX27_NFC_PINGRP1 \
+	MX27_PAD_NFRB__NFRB 0x0 \
+	MX27_PAD_NFCLE__NFCLE 0x0 \
+	MX27_PAD_NFWP_B__NFWP_B 0x0 \
+	MX27_PAD_NFCE_B__NFCE_B 0x0 \
+	MX27_PAD_NFALE__NFALE 0x0 \
+	MX27_PAD_NFRE_B__NFRE_B 0x0 \
+	MX27_PAD_NFWE_B__NFWE_B 0x0
+
 #define MX27_OWIRE1_PINGRP1 \
 	MX27_PAD_RTCK__OWIRE 0x0
 
Signature · 1 line
1.8.3.2
#1 lore raw

PATCH 2/6 ARM: dts: imx27-phytec-phycore-rdk: Enable 1-Wire module

This patch enables 1-Wire module for Phytec PCM-970 RDK.

---
 arch/arm/boot/dts/imx27-phytec-phycore-rdk.dts | 10 ++++++++++
 1 file changed, 10 insertions(+)
arch/arm/boot/dts/imx27-phytec-phycore-rdk.dts +10 -0
index 7ada054..eca1b6d 100644
@@ -44,6 +44,10 @@
 			>;
 		};
 
+		pinctrl_owire1: owire1grp {
+			fsl,pins = <MX27_OWIRE1_PINGRP1>;
+		};
+
 		pinctrl_uart1: uart1grp {
 			fsl,pins = <
 				MX27_UART1_PINGRP1
@@ -60,6 +64,12 @@
 	};
 };
 
+&owire {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_owire1>;
+	status = "okay";
+};
+
 &sdhci2 {
 	bus-width = <4>;
 	cd-gpios = <&gpio3 29 GPIO_ACTIVE_HIGH>;
Signature · 1 line
1.8.3.2
#2 lore raw

PATCH 3/6 ARM: dts: imx27-phytec-phycore-som: Add spi-cs-high property to PMIC

In reply to Alexander Shiyan

Since SPI core does not use GPIO bindings for CS GPIOs, we should add an active high level declaration.

---
 arch/arm/boot/dts/imx27-phytec-phycore-som.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm/boot/dts/imx27-phytec-phycore-som.dtsi +2 -1
index 94ba726..c934999 100644
@@ -61,8 +61,9 @@
 		#address-cells = <1>;
 		#size-cells = <0>;
 		compatible = "fsl,mc13783";
-		spi-max-frequency = <20000000>;
 		reg = <0>;
+		spi-cs-high;
+		spi-max-frequency = <20000000>;
 		interrupt-parent = <&gpio2>;
 		interrupts = <23 IRQ_TYPE_LEVEL_HIGH>;
 		fsl,mc13xxx-uses-adc;
Signature · 1 line
1.8.3.2
#3 lore raw

PATCH 4/6 ARM: dts: i.MX27: Add missing pullup settings for SDHC pin groups

In reply to Alexander Shiyan
---
 arch/arm/boot/dts/imx27-pingrp.h | 36 ++++++++++++++++++------------------
 1 file changed, 18 insertions(+), 18 deletions(-)
arch/arm/boot/dts/imx27-pingrp.h +18 -18
index 61eb710..57ca02f 100644
@@ -101,28 +101,28 @@
 	MX27_PAD_PWMO__PWMO 0x0
 
 #define MX27_SDHC1_PINGRP1 \
-	MX27_PAD_SD1_CLK__SD1_CLK \
-	MX27_PAD_SD1_CMD__SD1_CMD \
-	MX27_PAD_SD1_D0__SD1_D0 \
-	MX27_PAD_SD1_D1__SD1_D1 \
-	MX27_PAD_SD1_D2__SD1_D2 \
-	MX27_PAD_SD1_D3__SD1_D3
+	MX27_PAD_SD1_CLK__SD1_CLK 0x0 \
+	MX27_PAD_SD1_CMD__SD1_CMD 0x0 \
+	MX27_PAD_SD1_D0__SD1_D0 0x0 \
+	MX27_PAD_SD1_D1__SD1_D1 0x0 \
+	MX27_PAD_SD1_D2__SD1_D2 0x0 \
+	MX27_PAD_SD1_D3__SD1_D3 0x0
 
 #define MX27_SDHC2_PINGRP1 \
-	MX27_PAD_SD2_CLK__SD2_CLK \
-	MX27_PAD_SD2_CMD__SD2_CMD \
-	MX27_PAD_SD2_D0__SD2_D0 \
-	MX27_PAD_SD2_D1__SD2_D1 \
-	MX27_PAD_SD2_D2__SD2_D2 \
-	MX27_PAD_SD2_D3__SD2_D3
+	MX27_PAD_SD2_CLK__SD2_CLK 0x0 \
+	MX27_PAD_SD2_CMD__SD2_CMD 0x0 \
+	MX27_PAD_SD2_D0__SD2_D0 0x0 \
+	MX27_PAD_SD2_D1__SD2_D1 0x0 \
+	MX27_PAD_SD2_D2__SD2_D2 0x0 \
+	MX27_PAD_SD2_D3__SD2_D3 0x0
 
 #define MX27_SDHC3_PINGRP1 \
-	MX27_PAD_SD3_CLK__SD3_CLK \
-	MX27_PAD_SD3_CMD__SD3_CMD \
-	MX27_PAD_SD3_D0__SD3_D0 \
-	MX27_PAD_SD3_D1__SD3_D1 \
-	MX27_PAD_SD3_D2__SD3_D2 \
-	MX27_PAD_SD3_D3__SD3_D3
+	MX27_PAD_SD3_CLK__SD3_CLK 0x0 \
+	MX27_PAD_SD3_CMD__SD3_CMD 0x0 \
+	MX27_PAD_SD3_D0__SD3_D0 0x0 \
+	MX27_PAD_SD3_D1__SD3_D1 0x0 \
+	MX27_PAD_SD3_D2__SD3_D2 0x0 \
+	MX27_PAD_SD3_D3__SD3_D3 0x0
 
 #define MX27_UART1_PINGRP1 \
 	MX27_PAD_UART1_TXD__UART1_TXD 0x0 \
Signature · 1 line
1.8.3.2
#4 lore raw

PATCH 5/6 ARM: dts: imx27-phytec-phycore-rdk: Add pingrp for SDHC

In reply to Alexander Shiyan
---
 arch/arm/boot/dts/imx27-phytec-phycore-rdk.dts | 10 ++++++++++
 1 file changed, 10 insertions(+)
arch/arm/boot/dts/imx27-phytec-phycore-rdk.dts +10 -0
index eca1b6d..1967dad 100644
@@ -48,6 +48,14 @@
 			fsl,pins = <MX27_OWIRE1_PINGRP1>;
 		};
 
+		pinctrl_sdhc2: sdhc2grp {
+			fsl,pins = <
+				MX27_SDHC2_PINGRP1
+				MX27_PAD_SSI3_FS__GPIO3_28	0x0 /* WP */
+				MX27_PAD_SSI3_RXDAT__GPIO3_29	0x0 /* CD */
+			>;
+		};
+
 		pinctrl_uart1: uart1grp {
 			fsl,pins = <
 				MX27_UART1_PINGRP1
@@ -71,6 +79,8 @@
 };
 
 &sdhci2 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_sdhc2>;
 	bus-width = <4>;
 	cd-gpios = <&gpio3 29 GPIO_ACTIVE_HIGH>;
 	wp-gpios = <&gpio3 28 GPIO_ACTIVE_HIGH>;
Signature · 1 line
1.8.3.2
#5 lore raw

PATCH 6/6 ARM: dts: imx27-phytec-phycore-rdk: Add pinctrl definitions for WEIM

In reply to Alexander Shiyan

This patch adds pinctrl definitions for WEIM CS4 and GPIO used as CAN IRQ line.

---
 arch/arm/boot/dts/imx27-phytec-phycore-rdk.dts | 10 ++++++++++
 1 file changed, 10 insertions(+)
arch/arm/boot/dts/imx27-phytec-phycore-rdk.dts +10 -0
index 1967dad..eaaff00 100644
@@ -69,6 +69,13 @@
 				MX27_UART2_RTSCTS_PINGRP1
 			>;
 		};
+
+		pinctrl_weim: weimgrp {
+			fsl,pins = <
+				MX27_PAD_CS4_B__CS4_B		0x0 /* CS4 */
+				MX27_PAD_SD1_D1__GPIO5_19	0x0 /* CAN IRQ */
+			>;
+		};
 	};
 };
 
@@ -103,6 +110,9 @@
 };
 
 &weim {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_weim>;
+
 	can at d4000000 {
 		compatible = "nxp,sja1000";
 		reg = <4 0x00000000 0x00000100>;
Signature · 1 line
1.8.3.2
#6 lore raw

PATCH 1/6 ARM: dts: imx27-phytec-phycore-som: Add NFC pin group

In reply to Alexander Shiyan
Quoted 1 line · Alexander Shiyan

This patch adds pin group fro NAND Flash Controller.

s/fro/for

I fixed it up and applied the series.

Shawn

Quoted 51 lines
---
 arch/arm/boot/dts/imx27-phytec-phycore-som.dtsi | 6 ++++++
 arch/arm/boot/dts/imx27-pingrp.h                | 9 +++++++++
 2 files changed, 15 insertions(+)
arch/arm/boot/dts/imx27-phytec-phycore-som.dtsi +6 -0
index 7087a4f..94ba726 100644
@@ -201,10 +201,16 @@
 		pinctrl_i2c2: i2c2grp {
 			fsl,pins = <MX27_I2C2_PINGRP1>;
 		};
+
+		pinctrl_nfc: nfcgrp {
+			fsl,pins = <MX27_NFC_PINGRP1>;
+		};
 	};
 };
 
 &nfc {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_nfc>;
 	nand-bus-width = <8>;
 	nand-ecc-mode = "hw";
 	nand-on-flash-bbt;
arch/arm/boot/dts/imx27-pingrp.h +9 -0
index edc1e90..61eb710 100644
@@ -85,6 +85,15 @@
 	MX27_PAD_I2C2_SDA__I2C2_SDA 0x0 \
 	MX27_PAD_I2C2_SCL__I2C2_SCL 0x0
 
+#define MX27_NFC_PINGRP1 \
+	MX27_PAD_NFRB__NFRB 0x0 \
+	MX27_PAD_NFCLE__NFCLE 0x0 \
+	MX27_PAD_NFWP_B__NFWP_B 0x0 \
+	MX27_PAD_NFCE_B__NFCE_B 0x0 \
+	MX27_PAD_NFALE__NFALE 0x0 \
+	MX27_PAD_NFRE_B__NFRE_B 0x0 \
+	MX27_PAD_NFWE_B__NFWE_B 0x0
+
 #define MX27_OWIRE1_PINGRP1 \
 	MX27_PAD_RTCK__OWIRE 0x0
 
Signature · 1 line
1.8.3.2