Skip to contentSkip to conversation

ARM: dts: mx6: Add support for mx6q nitrogen board

PATCH Superseded Fabio Estevam 3 participants 7 messages Jul 18, 2013 – Jul 23, 2013

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/2 ARM: dts: mx6: Add support for mx6q nitrogen board

From: Fabio Estevam <[email protected]>

mx6q sabrelite and nitrogen boards are hardware compatible.

Boundary Devices have a line of nitrogen boards based on quad/dual-lite and solo variants.

Let's consolidate the common peripheral nodes into imx6qdl-nitrogen.dtsi and add support for the mx6 quad nitrogen board.

---
 arch/arm/boot/dts/Makefile              |   1 +
 arch/arm/boot/dts/imx6q-nitrogen.dts    |  27 ++++++
 arch/arm/boot/dts/imx6q-sabrelite.dts   | 152 +-----------------------------
 arch/arm/boot/dts/imx6qdl-nitrogen.dtsi | 160 ++++++++++++++++++++++++++++++++
 4 files changed, 189 insertions(+), 151 deletions(-)
 create mode 100644 arch/arm/boot/dts/imx6q-nitrogen.dts
 create mode 100644 arch/arm/boot/dts/imx6qdl-nitrogen.dtsi
arch/arm/boot/dts/Makefile +1 -0
index ce1b3a3..eeb2275 100644
@@ -128,6 +128,7 @@ dtb-$(CONFIG_ARCH_MXC) += \
 	imx6dl-sabresd.dtb \
 	imx6dl-wandboard.dtb \
 	imx6q-arm2.dtb \
+	imx6q-nitrogen.dtb \
 	imx6q-phytec-pbab01.dtb \
 	imx6q-sabreauto.dtb \
 	imx6q-sabrelite.dtb \
arch/arm/boot/dts/imx6q-nitrogen.dts new file +27 -0
new file mode 100644
index 0000000..0ac5c59
@@ -0,0 +1,27 @@
+/*
+ * Copyright 2013 Freescale Semiconductor, Inc.
+ *
+ * Author: Fabio Estevam <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ */
+
+/dts-v1/;
+#include "imx6q.dtsi"
+#include "imx6qdl-nitrogen.dtsi"
+
+/ {
+	model = "Boundary Devices i.MX6 Quad Nitrogen Board";
+	compatible = "boundary,imx6q-nitrogen", "fsl,imx6q";
+
+	memory {
+		reg = <0x10000000 0x40000000>;
+	};
+};
+
+&sata {
+	status = "okay";
+};
arch/arm/boot/dts/imx6q-sabrelite.dts +1 -151

162 lines not on this page · raw message

arch/arm/boot/dts/imx6qdl-nitrogen.dtsi new file +160 -0

160 lines not on this page · raw message

Signature · 1 line
1.8.1.2
author reviewer
#1 lore raw

PATCH 2/2 ARM: dts: mx6: Add support for imx6dl nitrogen board

From: Fabio Estevam <[email protected]>

---
 arch/arm/boot/dts/Makefile            |  1 +
 arch/arm/boot/dts/imx6dl-nitrogen.dts | 23 +++++++++++++++++++++++
 2 files changed, 24 insertions(+)
 create mode 100644 arch/arm/boot/dts/imx6dl-nitrogen.dts
arch/arm/boot/dts/Makefile +1 -0
index eeb2275..3f1a75d 100644
@@ -124,6 +124,7 @@ dtb-$(CONFIG_ARCH_MXC) += \
 	imx53-mba53.dtb \
 	imx53-qsb.dtb \
 	imx53-smd.dtb \
+	imx6dl-nitrogen.dtb \
 	imx6dl-sabreauto.dtb \
 	imx6dl-sabresd.dtb \
 	imx6dl-wandboard.dtb \
arch/arm/boot/dts/imx6dl-nitrogen.dts new file +23 -0
new file mode 100644
index 0000000..4f29207
@@ -0,0 +1,23 @@
+/*
+ * Copyright 2013 Freescale Semiconductor, Inc.
+ *
+ * Author: Fabio Estevam <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ */
+
+/dts-v1/;
+#include "imx6q.dtsi"
+#include "imx6qdl-nitrogen.dtsi"
+
+/ {
+	model = "Boundary Devices i.MX6 Dual Lite Nitrogen Board";
+	compatible = "boundary,imx6dl-nitrogen", "fsl,imx6dl";
+
+	memory {
+		reg = <0x10000000 0x40000000>;
+	};
+};
Signature · 1 line
1.8.1.2
#6 lore raw

PATCH 1/2 ARM: dts: mx6: Add support for mx6q nitrogen board

In reply to Fabio Estevam
Quoted 9 lines · Fabio Estevam

+&ecspi1 {

arch/arm/boot/dts/imx6qdl-nitrogen.dtsi new file +8 -0
+	fsl,spi-num-chipselects = <1>;
+	cs-gpios = <&gpio3 19 0>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_ecspi1_1>;
+	status = "okay";
+
+	flash: m25p80 at 0 {
+		compatible = "sst,sst25vf016b";

arch/arm/boot/dts/imx6qdl-nitrogen.dtsi line 76

Quoted 10 lines
arch/arm/boot/dts/imx6qdl-nitrogen.dtsi new file +10 -0
+		spi-max-frequency = <20000000>;
+		reg = <0>;
+	};
+};
+
+&ssi1 {
+	fsl,mode = "i2s-slave";
+	status = "okay";
+};
+

Please take the chance to sort these node alphabetically.

Shawn

Quoted 87 lines

+&iomuxc {

arch/arm/boot/dts/imx6qdl-nitrogen.dtsi new file +83 -0
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_hog>;
+
+	hog {
+		pinctrl_hog: hoggrp {
+			fsl,pins = <
+				MX6QDL_PAD_NANDF_D6__GPIO2_IO06 0x80000000
+				MX6QDL_PAD_NANDF_D7__GPIO2_IO07 0x80000000
+				MX6QDL_PAD_EIM_D19__GPIO3_IO19  0x80000000
+				MX6QDL_PAD_EIM_D22__GPIO3_IO22  0x80000000
+				MX6QDL_PAD_EIM_D23__GPIO3_IO23  0x80000000
+				MX6QDL_PAD_SD3_DAT5__GPIO7_IO00 0x80000000
+				MX6QDL_PAD_SD3_DAT4__GPIO7_IO01 0x1f0b0
+				MX6QDL_PAD_GPIO_0__CCM_CLKO1    0x80000000
+			>;
+		};
+	};
+};
+
+&usbotg {
+	vbus-supply = <&reg_usb_otg_vbus>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_usbotg_1>;
+	disable-over-current;
+	status = "okay";
+};
+
+&usbh1 {
+	status = "okay";
+};
+
+&fec {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_enet_1>;
+	phy-mode = "rgmii";
+	phy-reset-gpios = <&gpio3 23 0>;
+	status = "okay";
+};
+
+&usdhc3 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_usdhc3_2>;
+	cd-gpios = <&gpio7 0 0>;
+	wp-gpios = <&gpio7 1 0>;
+	vmmc-supply = <&reg_3p3v>;
+	status = "okay";
+};
+
+&usdhc4 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_usdhc4_2>;
+	cd-gpios = <&gpio2 6 0>;
+	wp-gpios = <&gpio2 7 0>;
+	vmmc-supply = <&reg_3p3v>;
+	status = "okay";
+};
+
+&audmux {
+	status = "okay";
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_audmux_1>;
+};
+
+&uart2 {
+	status = "okay";
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_uart2_1>;
+};
+
+&i2c1 {
+	status = "okay";
+	clock-frequency = <100000>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_i2c1_1>;
+
+	codec: sgtl5000 at 0a {
+		compatible = "fsl,sgtl5000";
+		reg = <0x0a>;
+		clocks = <&clks 169>;
+		VDDA-supply = <&reg_2p5v>;
+		VDDIO-supply = <&reg_3p3v>;
+	};
+};
Signature · 1 line
1.8.1.2
#2 lore raw

PATCH 2/2 ARM: dts: mx6: Add support for imx6dl nitrogen board

In reply to Fabio Estevam
Quoted 39 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

---
 arch/arm/boot/dts/Makefile            |  1 +
 arch/arm/boot/dts/imx6dl-nitrogen.dts | 23 +++++++++++++++++++++++
 2 files changed, 24 insertions(+)
 create mode 100644 arch/arm/boot/dts/imx6dl-nitrogen.dts
arch/arm/boot/dts/Makefile +1 -0
index eeb2275..3f1a75d 100644
@@ -124,6 +124,7 @@ dtb-$(CONFIG_ARCH_MXC) += \
 	imx53-mba53.dtb \
 	imx53-qsb.dtb \
 	imx53-smd.dtb \
+	imx6dl-nitrogen.dtb \
 	imx6dl-sabreauto.dtb \
 	imx6dl-sabresd.dtb \
 	imx6dl-wandboard.dtb \
arch/arm/boot/dts/imx6dl-nitrogen.dts new file +12 -0
new file mode 100644
index 0000000..4f29207
@@ -0,0 +1,23 @@
+/*
+ * Copyright 2013 Freescale Semiconductor, Inc.
+ *
+ * Author: Fabio Estevam <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ */
+
+/dts-v1/;

arch/arm/boot/dts/imx6dl-nitrogen.dts line 22

Quoted 10 lines
arch/arm/boot/dts/imx6dl-nitrogen.dts new file +10 -0
+#include "imx6q.dtsi"
+#include "imx6qdl-nitrogen.dtsi"
+
+/ {
+	model = "Boundary Devices i.MX6 Dual Lite Nitrogen Board";
+	compatible = "boundary,imx6dl-nitrogen", "fsl,imx6dl";
+
+	memory {
+		reg = <0x10000000 0x40000000>;
+	};

This memory configuration is also common, right?

Shawn

Quoted 4 lines
arch/arm/boot/dts/imx6dl-nitrogen.dts new file +1 -0
+};
Signature · 1 line
1.8.1.2
author reviewer
#3 lore raw

PATCH 2/2 ARM: dts: mx6: Add support for imx6dl nitrogen board

Hi Shawn,

Quoted 9 lines · Shawn Guo

arch/arm/boot/dts/imx6dl-nitrogen.dts line 22

Quoted 7 lines
arch/arm/boot/dts/imx6dl-nitrogen.dts new file +7 -0
+/ {
+     model = "Boundary Devices i.MX6 Dual Lite Nitrogen Board";
+     compatible = "boundary,imx6dl-nitrogen", "fsl,imx6dl";
+
+     memory {
+             reg = <0x10000000 0x40000000>;
+     };

This memory configuration is also common, right?

The reason I put the memory configuration in this file is because we also have nitrogen quad and dual-lite versions with 2GB.

Regards,

Fabio Estevam

#4 lore raw

PATCH 2/2 ARM: dts: mx6: Add support for imx6dl nitrogen board

Quoted 14 lines · Fabio Estevam

Hi Shawn,

Quoted 9 lines · Shawn Guo

arch/arm/boot/dts/imx6dl-nitrogen.dts line 22

Quoted 7 lines
arch/arm/boot/dts/imx6dl-nitrogen.dts new file +7 -0
+/ {
+     model = "Boundary Devices i.MX6 Dual Lite Nitrogen Board";
+     compatible = "boundary,imx6dl-nitrogen", "fsl,imx6dl";
+
+     memory {
+             reg = <0x10000000 0x40000000>;
+     };

This memory configuration is also common, right?

Quoted 2 lines

The reason I put the memory configuration in this file is because we also have nitrogen quad and dual-lite versions with 2GB.

Fine, then.

Shawn

#5 lore raw

PATCH 2/2 ARM: dts: mx6: Add support for imx6dl nitrogen board

In reply to Fabio Estevam

Hi,

Quoted 14 lines · Fabio Estevam

Hi Shawn,

Quoted 9 lines · Shawn Guo

arch/arm/boot/dts/imx6dl-nitrogen.dts line 22

Quoted 7 lines
arch/arm/boot/dts/imx6dl-nitrogen.dts new file +7 -0
+/ {
+     model = "Boundary Devices i.MX6 Dual Lite Nitrogen Board";
+     compatible = "boundary,imx6dl-nitrogen", "fsl,imx6dl";
+
+     memory {
+             reg = <0x10000000 0x40000000>;
+     };

This memory configuration is also common, right?

Quoted 3 lines

The reason I put the memory configuration in this file is because we also have nitrogen quad and dual-lite versions with 2GB.

U-Boot is able to fill in these according to the actual amount of memory detected.

Lothar Wa?mann

Signature · 9 lines
___________________________________________________________

Ka-Ro electronics GmbH | Pascalstra?e 22 | D - 52076 Aachen
Phone: +49 2408 1402-0 | Fax: +49 2408 1402-10
Gesch?ftsf?hrer: Matthias Kaussen
Handelsregistereintrag: Amtsgericht Aachen, HRB 4996

www.karo-electronics.de | info at karo-electronics.de
___________________________________________________________