Skip to contentSkip to conversation

ARM: dts: Add basic support for imx6q-sabresd

PATCH New Fabio Estevam 2 participants 2 messages Apr 21, 2012 – Apr 23, 2012

Subsystems (4)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH v3 1/1 ARM: dts: Add basic support for imx6q-sabresd

Add basic support for imx6q-sabresd.

---
Changes since v2:
- Add SDHC2 and SDHC3 support

Changes since v1:

- Added entry into Documentation
- Added entry in arch/arm/mach-imx/Makefile.boot
- Fixed ethernet
- Dropped SDHC for now

 Documentation/devicetree/bindings/arm/fsl.txt |    4 ++
 arch/arm/boot/dts/imx6q-sabresd.dts           |   54 +++++++++++++++++++++++++
 arch/arm/mach-imx/Makefile.boot               |    3 +-
 arch/arm/mach-imx/mach-imx6q.c                |    1 +
 4 files changed, 61 insertions(+), 1 deletions(-)
 create mode 100644 arch/arm/boot/dts/imx6q-sabresd.dts
Documentation/devicetree/bindings/arm/fsl.txt +4 -0
index fecb580..0fc2da7 100644
@@ -33,6 +33,10 @@ i.MX6 Quad SABRE Lite Board
 Required root node properties:
     - compatible = "fsl,imx6q-sabrelite", "fsl,imx6q";
 
+i.MX6 Quad SABRE Smart Device Board
+Required root node properties:
+    - compatible = "fsl,imx6q-sabresd", "fsl,imx6q";
+
 Generic i.MX boards
 -------------------
 
arch/arm/boot/dts/imx6q-sabresd.dts new file +54 -0

54 lines not on this page · raw message

arch/arm/mach-imx/Makefile.boot +2 -1
index 3851d8a..05541cf 100644
@@ -42,4 +42,5 @@ dtb-$(CONFIG_MACH_IMX51_DT) += imx51-babbage.dtb
 dtb-$(CONFIG_MACH_IMX53_DT) += imx53-ard.dtb imx53-evk.dtb \
 			       imx53-qsb.dtb imx53-smd.dtb
 dtb-$(CONFIG_SOC_IMX6Q)	+= imx6q-arm2.dtb \
-			   imx6q-sabrelite.dtb
+			   imx6q-sabrelite.dtb \
+			   imx6q-sabresd.dtb \
arch/arm/mach-imx/mach-imx6q.c +1 -0
index da6c1d9..512c18d 100644
@@ -132,6 +132,7 @@ static struct sys_timer imx6q_timer = {
 static const char *imx6q_dt_compat[] __initdata = {
 	"fsl,imx6q-arm2",
 	"fsl,imx6q-sabrelite",
+	"fsl,imx6q-sabresd",
 	"fsl,imx6q",
 	NULL,
 };
Signature · 1 line
1.7.1
#1 lore raw

PATCH v3 1/1 ARM: dts: Add basic support for imx6q-sabresd

Quoted 59 lines · Fabio Estevam

Add basic support for imx6q-sabresd.

---
Changes since v2:
- Add SDHC2 and SDHC3 support

Changes since v1:

- Added entry into Documentation
- Added entry in arch/arm/mach-imx/Makefile.boot
- Fixed ethernet
- Dropped SDHC for now

 Documentation/devicetree/bindings/arm/fsl.txt |    4 ++
 arch/arm/boot/dts/imx6q-sabresd.dts           |   54 +++++++++++++++++++++++++
 arch/arm/mach-imx/Makefile.boot               |    3 +-
 arch/arm/mach-imx/mach-imx6q.c                |    1 +
 4 files changed, 61 insertions(+), 1 deletions(-)
 create mode 100644 arch/arm/boot/dts/imx6q-sabresd.dts
Documentation/devicetree/bindings/arm/fsl.txt +4 -0
index fecb580..0fc2da7 100644
@@ -33,6 +33,10 @@ i.MX6 Quad SABRE Lite Board
 Required root node properties:
     - compatible = "fsl,imx6q-sabrelite", "fsl,imx6q";
 
+i.MX6 Quad SABRE Smart Device Board
+Required root node properties:
+    - compatible = "fsl,imx6q-sabresd", "fsl,imx6q";
+
 Generic i.MX boards
 -------------------
 
arch/arm/boot/dts/imx6q-sabresd.dts new file +18 -0
new file mode 100644
index 0000000..93d1e17
@@ -0,0 +1,54 @@
+/*
+ * Copyright 2012 Freescale Semiconductor, Inc.
+ * Copyright 2011 Linaro Ltd.
+ *
+ * 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:
+ *
+ * http://www.opensource.org/licenses/gpl-license.html
+ * http://www.gnu.org/copyleft/gpl.html
+ */
+
+/dts-v1/;
+/include/ "imx6q.dtsi"
+
+/ {
+	model = "Freescale i.MX6Q SABRE Smart Device Board";
+	compatible = "fsl,imx6q-sabresd", "fsl,imx6q";

arch/arm/boot/dts/imx6q-sabresd.dts line 28

Quoted 10 lines
arch/arm/boot/dts/imx6q-sabresd.dts new file +10 -0
+
+	memory {
+		reg = <0x10000000 0x40000000>;
+	};
+
+	soc {
+
+		aips-bus at 02000000 { /* AIPS1 */
+			spba-bus at 02000000 {
+				uart1: uart at 02020000 {

I have it rebased on imx/dt branch, where node name has been renamed to serial.

arch/arm/boot/dts/imx6q-sabresd.dts line 29

Quoted 1 line
arch/arm/boot/dts/imx6q-sabresd.dts new file +1 -0
+				status = "okay";

It misses one tab indent.

Quoted 12 lines
arch/arm/boot/dts/imx6q-sabresd.dts new file +12 -0
+				};
+			};
+		};
+
+		aips-bus at 02100000 { /* AIPS2 */
+			enet at 02188000 {
+				phy-mode = "rgmii";
+				status = "okay";
+			};
+
+			usdhc at 02194000 { /* uSDHC2 */
+				cd-gpios = <&gpio2 2 0>;

arch/arm/boot/dts/imx6q-sabresd.dts line 51

Quoted 10 lines
arch/arm/boot/dts/imx6q-sabresd.dts new file +10 -0
+				wp-gpios = <&gpio2 3 0>;
+				status = "okay";
+			};
+
+			usdhc at 02198000 { /* uSDHC3 */
+				cd-gpios = <&gpio2 0 0>;
+				wp-gpios = <&gpio2 1 0>;
+				status = "okay";
+			};
+

Unnecessary new line.

I fixed all above and applied the patch, thanks.

Regards,
Shawn

Quoted 29 lines
arch/arm/boot/dts/imx6q-sabresd.dts new file +3 -0
+		};
+	};
+};
arch/arm/mach-imx/Makefile.boot +2 -1
index 3851d8a..05541cf 100644
@@ -42,4 +42,5 @@ dtb-$(CONFIG_MACH_IMX51_DT) += imx51-babbage.dtb
 dtb-$(CONFIG_MACH_IMX53_DT) += imx53-ard.dtb imx53-evk.dtb \
 			       imx53-qsb.dtb imx53-smd.dtb
 dtb-$(CONFIG_SOC_IMX6Q)	+= imx6q-arm2.dtb \
-			   imx6q-sabrelite.dtb
+			   imx6q-sabrelite.dtb \
+			   imx6q-sabresd.dtb \
arch/arm/mach-imx/mach-imx6q.c +1 -0
index da6c1d9..512c18d 100644
@@ -132,6 +132,7 @@ static struct sys_timer imx6q_timer = {
 static const char *imx6q_dt_compat[] __initdata = {
 	"fsl,imx6q-arm2",
 	"fsl,imx6q-sabrelite",
+	"fsl,imx6q-sabresd",
 	"fsl,imx6q",
 	NULL,
 };
Signature · 1 line
1.7.1