Skip to contentSkip to conversation

ARM: mx25pdk: Add device tree support

PATCH Superseded Fabio Estevam 2 participants 4 messages Dec 11, 2012 – Jan 3, 2013

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/2 ARM: mx25pdk: Add device tree support

From: Fabio Estevam <[email protected]>

Add basic device tree support for mx25pdk board.

---
 Documentation/devicetree/bindings/arm/fsl.txt |    4 +++
 arch/arm/boot/dts/Makefile                    |    3 +-
 arch/arm/boot/dts/imx25-pdk.dts               |   44 +++++++++++++++++++++++++
 3 files changed, 50 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/boot/dts/imx25-pdk.dts
Documentation/devicetree/bindings/arm/fsl.txt +4 -0
index f798187..b98530c 100644
@@ -5,6 +5,10 @@ i.MX23 Evaluation Kit
 Required root node properties:
     - compatible = "fsl,imx23-evk", "fsl,imx23";
 
+i.MX25 Product Evaluation Kit
+Required root node properties:
+    - compatible = "fsl,imx25-pdk", "fsl,imx25";
+
 i.MX28 Evaluation Kit
 Required root node properties:
     - compatible = "fsl,imx28-evk", "fsl,imx28";
arch/arm/boot/dts/Makefile +2 -1
index 2beab0c..b2df1e7 100644
@@ -79,7 +79,8 @@ dtb-$(CONFIG_ARCH_MVEBU) += armada-370-db.dtb \
 	armada-370-mirabox.dtb \
 	armada-xp-db.dtb \
 	armada-xp-openblocks-ax3-4.dtb
-dtb-$(CONFIG_ARCH_MXC) += imx51-babbage.dtb \
+dtb-$(CONFIG_ARCH_MXC) += imx25-pdk.dtb \
+	imx51-babbage.dtb \
 	imx53-ard.dtb \
 	imx53-evk.dtb \
 	imx53-qsb.dtb \
arch/arm/boot/dts/imx25-pdk.dts new file +44 -0

44 lines not on this page · raw message

Signature · 1 line
1.7.9.5
author reviewer
#2 lore raw

PATCH 2/2 ARM: imx_v4_v5_defconfig: Let MACH_IMX25_DT be built by default

From: Fabio Estevam <[email protected]>

Let MACH_IMX25_DT be built by default.

---
 arch/arm/configs/imx_v4_v5_defconfig |    1 +
 1 file changed, 1 insertion(+)
arch/arm/configs/imx_v4_v5_defconfig +1 -0
index ebbfb27..e706a76 100644
@@ -27,6 +27,7 @@ CONFIG_MACH_APF9328=y
 CONFIG_MACH_MX21ADS=y
 CONFIG_MACH_MX25_3DS=y
 CONFIG_MACH_EUKREA_CPUIMX25SD=y
+CONFIG_MACH_IMX25_DT=y
 CONFIG_MACH_MX27ADS=y
 CONFIG_MACH_PCM038=y
 CONFIG_MACH_CPUIMX27=y
Signature · 1 line
1.7.9.5
#3 lore raw

PATCH 1/2 ARM: mx25pdk: Add device tree support

In reply to Fabio Estevam
Quoted 9 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

Add basic device tree support for mx25pdk board.

---
 Documentation/devicetree/bindings/arm/fsl.txt |    4 +++
 arch/arm/boot/dts/Makefile                    |    3 +-
 arch/arm/boot/dts/imx25-pdk.dts               |   44 +++++++++++++++++++++++++

Please follow how patch "ARM: dts: imx: use nodes label in board dts" does to create board level dts. To rebase your patch on my imx/dt branch will be reasonable.

Quoted 45 lines
 3 files changed, 50 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/boot/dts/imx25-pdk.dts
Documentation/devicetree/bindings/arm/fsl.txt +4 -0
index f798187..b98530c 100644
@@ -5,6 +5,10 @@ i.MX23 Evaluation Kit
 Required root node properties:
     - compatible = "fsl,imx23-evk", "fsl,imx23";
 
+i.MX25 Product Evaluation Kit
+Required root node properties:
+    - compatible = "fsl,imx25-pdk", "fsl,imx25";
+
 i.MX28 Evaluation Kit
 Required root node properties:
     - compatible = "fsl,imx28-evk", "fsl,imx28";
arch/arm/boot/dts/Makefile +2 -1
index 2beab0c..b2df1e7 100644
@@ -79,7 +79,8 @@ dtb-$(CONFIG_ARCH_MVEBU) += armada-370-db.dtb \
 	armada-370-mirabox.dtb \
 	armada-xp-db.dtb \
 	armada-xp-openblocks-ax3-4.dtb
-dtb-$(CONFIG_ARCH_MXC) += imx51-babbage.dtb \
+dtb-$(CONFIG_ARCH_MXC) += imx25-pdk.dtb \
+	imx51-babbage.dtb \
 	imx53-ard.dtb \
 	imx53-evk.dtb \
 	imx53-qsb.dtb \
arch/arm/boot/dts/imx25-pdk.dts new file +7 -0
new file mode 100644
index 0000000..bcdd393
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2012 Freescale Semiconductor, Inc.
+ *
+ * The code contained herein is licensed under the GNU General Public
+ * License. You may obtain a copy of the GNU General Public License
+ * Version 2 or later at the following locations:
+ *

arch/arm/boot/dts/imx25-pdk.dts line 17

Quoted 10 lines
arch/arm/boot/dts/imx25-pdk.dts new file +10 -0
+ * http://www.opensource.org/licenses/gpl-license.html
+ * http://www.gnu.org/copyleft/gpl.html
+ */
+
+/dts-v1/;
+/include/ "imx25.dtsi"
+
+/ {
+	model = "Freescale i.MX25 Product Development Kit";
+	compatible = "freescale,imx25pdk", "fsl,imx25";

s/freescale,imx25pdk/fsl,imx25-pdk

Quoted 5 lines
arch/arm/boot/dts/imx25-pdk.dts new file +5 -0
+
+	memory {
+		reg = <0x80000000 0x4000000>;
+	};
+

arch/arm/boot/dts/imx25-pdk.dts line 32

Quoted 10 lines
arch/arm/boot/dts/imx25-pdk.dts new file +10 -0
+	soc {
+		aips at 43f00000 {
+			uart1: serial at 43f90000 {
+				status = "okay";
+			};
+		};
+
+		spba at 50000000 {
+			fec: ethernet at 50038000 {
+				status = "okay";

Let "status" be the last one.

Shawn

Quoted 15 lines
arch/arm/boot/dts/imx25-pdk.dts new file +12 -0
+				phy-mode = "rmii";
+			};
+		};
+
+		emi at 80000000 {
+			nand at bb000000 {
+				nand-on-flash-bbt;
+				status = "okay";
+			};
+		};
+	};
+};
Signature · 1 line
1.7.9.5