Skip to contentSkip to conversation

ARM: dts: imx27-pdk: Pass the memory range

PATCH New Fabio Estevam 2 participants 7 messages Apr 2, 2014 – Apr 9, 2014

Subsystems (2)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/3 ARM: dts: imx27-pdk: Pass the memory range

From: Fabio Estevam <[email protected]>

imx27-pdk has 128 MB of DRAM. Pass the memory range in dt.

---
 arch/arm/boot/dts/imx27-pdk.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/imx27-pdk.dts +1 -1
index 5ce89aa..28c83bc 100644
@@ -17,7 +17,7 @@
 	compatible = "fsl,imx27-pdk", "fsl,imx27";
 
 	memory {
-		reg = <0x0 0x0>;
+		reg = <0xa0000000 0x08000000>;
 	};
 };
 
Signature · 1 line
1.8.3.2
author reviewer
#1 lore raw

PATCH 2/3 ARM: dts: imx27-pdk: Pass the UART1 pin configuration

From: Fabio Estevam <[email protected]>

Provide an entry for the UART1 pin muxing.

While at it, sort the dt entries.

---
 arch/arm/boot/dts/imx27-pdk.dts | 22 +++++++++++++++++++---
 1 file changed, 19 insertions(+), 3 deletions(-)
arch/arm/boot/dts/imx27-pdk.dts +19 -3
index 28c83bc..5e9a4bb 100644
@@ -21,11 +21,27 @@
 	};
 };
 
-&uart1 {
-	fsl,uart-has-rtscts;
+&fec {
 	status = "okay";
 };
 
-&fec {
+
+&iomuxc {
+	imx27-pdk {
+		pinctrl_uart1: uart1grp {
+			fsl,pins = <
+				MX27_PAD_UART1_TXD__UART1_TXD 0x0
+				MX27_PAD_UART1_RXD__UART1_RXD 0x0
+				MX27_PAD_UART1_CTS__UART1_CTS 0x0
+				MX27_PAD_UART1_RTS__UART1_RTS 0x0
+			>;
+		};
+	};
+};
+
+&uart1 {
+	fsl,uart-has-rtscts;
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_uart1>;
 	status = "okay";
 };
Signature · 1 line
1.8.3.2
#2 lore raw

PATCH 2/3 ARM: dts: imx27-pdk: Pass the UART1 pin configuration

Quoted 18 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

Provide an entry for the UART1 pin muxing.

While at it, sort the dt entries.

---
 arch/arm/boot/dts/imx27-pdk.dts | 22 +++++++++++++++++++---
 1 file changed, 19 insertions(+), 3 deletions(-)
arch/arm/boot/dts/imx27-pdk.dts +0 -0
index 28c83bc..5e9a4bb 100644
@@ -21,11 +21,27 @@
 	};
 };

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

Quoted 10 lines
arch/arm/boot/dts/imx27-pdk.dts +3 -3
 
-&uart1 {
-	fsl,uart-has-rtscts;
+&fec {
 	status = "okay";
 };
 
-&fec {
+
+&iomuxc {

The iomuxc node in board dts is a little special now, and it will have a lot more data than others. I like Alexander's idea to put it at the bottom of the file to make it easier for users to check board level settings of other device nodes. So I would suggest that way for the new added iomuxc node in board dts.

Shawn

Quoted 28 lines
arch/arm/boot/dts/imx27-pdk.dts +16 -0
+	imx27-pdk {
+		pinctrl_uart1: uart1grp {
+			fsl,pins = <
+				MX27_PAD_UART1_TXD__UART1_TXD 0x0
+				MX27_PAD_UART1_RXD__UART1_RXD 0x0
+				MX27_PAD_UART1_CTS__UART1_CTS 0x0
+				MX27_PAD_UART1_RTS__UART1_RTS 0x0
+			>;
+		};
+	};
+};
+
+&uart1 {
+	fsl,uart-has-rtscts;
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_uart1>;
 	status = "okay";
 };
Signature · 7 lines
1.8.3.2


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
author reviewer
#3 lore raw

PATCH 2/3 ARM: dts: imx27-pdk: Pass the UART1 pin configuration

Quoted 5 lines · Shawn Guo

The iomuxc node in board dts is a little special now, and it will have a lot more data than others. I like Alexander's idea to put it at the bottom of the file to make it easier for users to check board level settings of other device nodes. So I would suggest that way for the new added iomuxc node in board dts.

Could you please point me Alexander's patch for reference? I was not able to locate it.

#4 lore raw

PATCH 2/3 ARM: dts: imx27-pdk: Pass the UART1 pin configuration

Quoted 10 lines · Fabio Estevam
Quoted 5 lines · Shawn Guo

The iomuxc node in board dts is a little special now, and it will have a lot more data than others. I like Alexander's idea to put it at the bottom of the file to make it easier for users to check board level settings of other device nodes. So I would suggest that way for the new added iomuxc node in board dts.

Could you please point me Alexander's patch for reference? I was not able to locate it.

http://www.spinics.net/lists/arm-kernel/msg318968.html

Shawn

author reviewer
#5 lore raw

PATCH 3/3 ARM: dts: imx27-pdk: Pass the FEC pin configuration

In reply to Fabio Estevam

From: Fabio Estevam <[email protected]>

Provide an entry for the FEC pin muxing.

---
 arch/arm/boot/dts/imx27-pdk.dts | 27 ++++++++++++++++++++++++++-
 1 file changed, 26 insertions(+), 1 deletion(-)
arch/arm/boot/dts/imx27-pdk.dts +26 -1
index 5e9a4bb..f10d4ea 100644
@@ -22,12 +22,37 @@
 };
 
 &fec {
+	phy-mode = "mii";
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_fec>;
 	status = "okay";
 };
 
-
 &iomuxc {
 	imx27-pdk {
+		pinctrl_fec: fecgrp {
+			fsl,pins = <
+				MX27_PAD_SD3_CMD__FEC_TXD0 0x0
+				MX27_PAD_SD3_CLK__FEC_TXD1 0x0
+				MX27_PAD_ATA_DATA0__FEC_TXD2 0x0
+				MX27_PAD_ATA_DATA1__FEC_TXD3 0x0
+				MX27_PAD_ATA_DATA2__FEC_RX_ER 0x0
+				MX27_PAD_ATA_DATA3__FEC_RXD1 0x0
+				MX27_PAD_ATA_DATA4__FEC_RXD2 0x0
+				MX27_PAD_ATA_DATA5__FEC_RXD3 0x0
+				MX27_PAD_ATA_DATA6__FEC_MDIO 0x0
+				MX27_PAD_ATA_DATA7__FEC_MDC 0x0
+				MX27_PAD_ATA_DATA8__FEC_CRS 0x0
+				MX27_PAD_ATA_DATA9__FEC_TX_CLK 0x0
+				MX27_PAD_ATA_DATA10__FEC_RXD0 0x0
+				MX27_PAD_ATA_DATA11__FEC_RX_DV 0x0
+				MX27_PAD_ATA_DATA12__FEC_RX_CLK 0x0
+				MX27_PAD_ATA_DATA13__FEC_COL 0x0
+				MX27_PAD_ATA_DATA14__FEC_TX_ER 0x0
+				MX27_PAD_ATA_DATA15__FEC_TX_EN 0x0
+			>;
+		};
+
 		pinctrl_uart1: uart1grp {
 			fsl,pins = <
 				MX27_PAD_UART1_TXD__UART1_TXD 0x0
Signature · 1 line
1.8.3.2