mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] rework dts file for edmqmx6
@ 2014-05-06  8:44 Silvio Fricke
  2014-05-06  8:44 ` [PATCH] ARM: i.MX6: dts: edmqmx6: use new dts approach Silvio Fricke
  2014-05-07  6:23 ` [PATCH] rework dts file for edmqmx6 Sascha Hauer
  0 siblings, 2 replies; 4+ messages in thread
From: Silvio Fricke @ 2014-05-06  8:44 UTC (permalink / raw)
  To: barebox; +Cc: Silvio Fricke

Hi,

here a patch for rework of the dts file for the data-modul base board edmqmx6.
The patch is based on top of the dts-branch 09015ae52c18424c (ARM: Tegra20: Use
upstream dtsi files).


Cheers,
Silvio


Silvio Fricke (1):
  ARM: i.MX6: dts: edmqmx6: use new dts approach

 arch/arm/dts/imx6q-dmo-edmqmx6.dts | 297 ++-----------------------------------
 1 file changed, 9 insertions(+), 288 deletions(-)

-- 
1.9.2


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] ARM: i.MX6: dts: edmqmx6: use new dts approach
  2014-05-06  8:44 [PATCH] rework dts file for edmqmx6 Silvio Fricke
@ 2014-05-06  8:44 ` Silvio Fricke
  2014-05-07  6:23 ` [PATCH] rework dts file for edmqmx6 Sascha Hauer
  1 sibling, 0 replies; 4+ messages in thread
From: Silvio Fricke @ 2014-05-06  8:44 UTC (permalink / raw)
  To: barebox; +Cc: Silvio Fricke

Signed-off-by: Silvio Fricke <silvio.fricke@gmail.com>
---
 arch/arm/dts/imx6q-dmo-edmqmx6.dts | 297 ++-----------------------------------
 1 file changed, 9 insertions(+), 288 deletions(-)

diff --git a/arch/arm/dts/imx6q-dmo-edmqmx6.dts b/arch/arm/dts/imx6q-dmo-edmqmx6.dts
index f4f0bd6..7d69b5f 100644
--- a/arch/arm/dts/imx6q-dmo-edmqmx6.dts
+++ b/arch/arm/dts/imx6q-dmo-edmqmx6.dts
@@ -1,6 +1,7 @@
 /*
  * Copyright 2011 Freescale Semiconductor, Inc.
  * Copyright 2011 Linaro Ltd.
+ * Copyright 2013-2014 Data-Modul AG
  *
  * The code contained herein is licensed under the GNU General Public
  * License. You may obtain a copy of the GNU General Public License
@@ -9,14 +10,10 @@
  * http://www.opensource.org/licenses/gpl-license.html
  * http://www.gnu.org/copyleft/gpl.html
  */
-/dts-v1/;
 
-#include "imx6q.dtsi"
+#include <arm/imx6q-dmo-edmqmx6.dts>
 
 / {
-	model = "Data Modul eDM-QMX6 Board";
-	compatible = "dmo,imx6q-edmqmx6", "fsl,imx6q";
-
 	chosen {
 		linux,stdout-path = "/soc/aips-bus@02100000/serial@021e8000";
 
@@ -40,58 +37,10 @@
 	};
 
 	aliases {
-		stmpe0 = &stmpe_1;
+		stmpe0 = &stmpe;
 		stmpe1 = &stmpe_2;
-		gpio7 = &stmpe_gpio_1;
 		gpio8 = &stmpe_gpio_2;
 	};
-
-	memory {
-		reg = <0x10000000 0x80000000>;
-	};
-
-	di0 {
-		compatible = "fsl,imx-parallel-display";
-		interface-pix-fmt = "rgb24";
-		crtcs = <&ipu1 0>;
-	};
-
-	regulators {
-		compatible = "simple-bus";
-
-		reg_2p5v: 2p5v {
-			compatible = "regulator-fixed";
-			regulator-name = "2P5V";
-			regulator-min-microvolt = <2500000>;
-			regulator-max-microvolt = <2500000>;
-			regulator-always-on;
-		};
-
-		reg_3p3v: 3p3v {
-			compatible = "regulator-fixed";
-			regulator-name = "3P3V";
-			regulator-min-microvolt = <3300000>;
-			regulator-max-microvolt = <3300000>;
-			regulator-always-on;
-		};
-
-		reg_usb_otg_vbus: usb_otg_vbus {
-			compatible = "regulator-fixed";
-			regulator-name = "usb_otg_vbus";
-			regulator-min-microvolt = <5000000>;
-			regulator-max-microvolt = <5000000>;
-			gpio = <&gpio7 12 0>;
-		};
-
-		reg_usb_host1: usb_host1_en {
-			compatible = "regulator-fixed";
-			regulator-name = "usb_host1_en";
-			regulator-min-microvolt = <3300000>;
-			regulator-max-microvolt = <3300000>;
-			gpio = <&gpio3 31 0>;
-			enable-active-high;
-		};
-	};
 };
 
 &ecspi5 {
@@ -120,185 +69,29 @@
 	};
 };
 
-&fec {
-	pinctrl-names = "default";
-	pinctrl-0 = <&pinctrl_enet>;
-	phy-mode = "rgmii";
-	phy-reset-gpios = <&gpio3 23 0>;
-	status = "okay";
-};
-
 &i2c2 {
 	status = "okay";
 	clock-frequency = <100000>;
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_i2c2
-		     &pinctrl_stmpe_1_1
 		     &pinctrl_stmpe_2_1>;
 
-	stmpe_1: stmpe1601@40 {
-		compatible = "stmpe1601";
-		reg = <0x40>;
-		interrupts = <30 0>;
-		interrupt-parent = <&gpio3>;
-		stmpe_gpio_1: stmpe_gpio {
-			compatible = "st,stmpe-gpio";
-		};
-	};
-
 	stmpe_2: stmpe1601@44 {
 		compatible = "stmpe1601";
 		reg = <0x44>;
 		interrupts = <2 0>;
 		interrupt-parent = <&gpio5>;
+
 		stmpe_gpio_2: stmpe_gpio {
+			#gpio-cells = <2>;
 			compatible = "st,stmpe-gpio";
 		};
 	};
-
-	temp1: ad7414@4c {
-		compatible = "ad7414";
-		reg = <0x4c>;
-	};
-
-	temp2: ad7414@4d {
-		compatible = "ad7414";
-		reg = <0x4d>;
-	};
-
-	rtc: m41t62@68 {
-		compatible = "m41t62";
-		reg = <0x68>;
-	};
-
-	pmic: pf0100@08 {
-		compatible = "pf0100-regulator";
-		reg = <0x08>;
-		interrupt-parent = <&gpio3>;
-		interrupts = <20 8>;
-
-		regulators {
-			reg_vddcore: sw1ab {
-				regulator-min-microvolt = <300000>;
-				regulator-max-microvolt = <1875000>;
-				regulator-always-on;
-			};
-
-			reg_vddsoc: sw1c {
-				regulator-min-microvolt = <300000>;
-				regulator-max-microvolt = <1875000>;
-				regulator-always-on;
-			};
-
-			reg_gen_3v3: sw2 {
-				regulator-min-microvolt = <800000>;
-				regulator-max-microvolt = <3300000>;
-				regulator-always-on;
-			};
-
-			reg_ddr_1v5a: sw3a {
-				regulator-min-microvolt = <400000>;
-				regulator-max-microvolt = <1975000>;
-				regulator-always-on;
-			};
-
-			reg_ddr_1v5b: sw3b {
-				regulator-min-microvolt = <400000>;
-				regulator-max-microvolt = <1975000>;
-				regulator-always-on;
-			};
-
-			reg_ddr_vtt: sw4 {
-				regulator-min-microvolt = <400000>;
-				regulator-max-microvolt = <1975000>;
-				regulator-always-on;
-			};
-
-			reg_5v_600mA: swbst {
-				regulator-min-microvolt = <5000000>;
-				regulator-max-microvolt = <5150000>;
-				regulator-always-on;
-			};
-
-			reg_snvs_3v: vsnvs {
-				regulator-min-microvolt = <1500000>;
-				regulator-max-microvolt = <3000000>;
-				regulator-always-on;
-			};
-
-			reg_vrefddr: vrefddr {
-				regulator-min-microvolt = <750000>;
-				regulator-max-microvolt = <750000>;
-				regulator-always-on;
-			};
-
-			reg_vgen1_1v5: vgen1 {
-				regulator-min-microvolt = <800000>;
-				regulator-max-microvolt = <1550000>;
-				/* not used */
-			};
-
-			reg_vgen2_1v2_eth: vgen2 {
-				regulator-min-microvolt = <800000>;
-				regulator-max-microvolt = <1550000>;
-				regulator-always-on;
-			};
-
-			reg_vgen3_2v8: vgen3 {
-				regulator-min-microvolt = <1800000>;
-				regulator-max-microvolt = <3300000>;
-				regulator-always-on;
-			};
-
-			reg_vgen4_1v8: vgen4 {
-				regulator-min-microvolt = <1800000>;
-				regulator-max-microvolt = <3300000>;
-				regulator-always-on;
-			};
-
-			reg_vgen5_1v8_eth: vgen5 {
-				regulator-min-microvolt = <1800000>;
-				regulator-max-microvolt = <3300000>;
-				regulator-always-on;
-			};
-
-			reg_vgen6_3v3: vgen6 {
-				regulator-min-microvolt = <1800000>;
-				regulator-max-microvolt = <3300000>;
-				regulator-always-on;
-			};
-		};
-	};
 };
 
 &iomuxc {
 	pinctrl-names = "default";
-	pinctrl-0 = <&pinctrl_hog>, <&pinctrl_pfuze_1>;
-
-	hog {
-		pinctrl_hog: hoggrp-1 {
-			fsl,pins = <
-				MX6QDL_PAD_EIM_A16__GPIO2_IO22 0x80000000
-				MX6QDL_PAD_EIM_A17__GPIO2_IO21 0x80000000
-			>;
-		};
-	};
-
-	i2c2 {
-		pinctrl_i2c2: i2c2grp {
-			fsl,pins = <MX6QDL_I2C2_PINGRP3>;
-		};
-	};
-
-	uart {
-		pinctrl_uart1: uart1grp {
-			fsl,pins = <MX6QDL_UART1_PINGRP2>;
-		};
-
-                pinctrl_uart2: uart2grp {
-			fsl,pins = <MX6QDL_UART2_PINGRP1>;
-		};
-	};
+	pinctrl-0 = <&pinctrl_pfuze_1>;
 
 	pfuze {
 		pinctrl_pfuze_1: pfuze100grp1 {
@@ -308,14 +101,6 @@
 		};
 	};
 
-	stmpe_1 {
-		pinctrl_stmpe_1_1: stmpe1grp-1 {
-			fsl,pins = <
-				MX6QDL_PAD_EIM_D30__GPIO3_IO30 0x80000000
-			>;
-		};
-	};
-
 	stmpe_2 {
 		pinctrl_stmpe_2_1: stmpe2grp-1 {
 			fsl,pins = <
@@ -328,72 +113,15 @@
 		pinctrl_ecspi_5_1: ecspi5rp-1 {
 			fsl,pins = <
 				MX6QDL_PAD_SD1_DAT0__ECSPI5_MISO 0x80000000
-				MX6QDL_PAD_SD1_CMD__ECSPI5_MOSI 0x80000000
-				MX6QDL_PAD_SD1_CLK__ECSPI5_SCLK 0x80000000
-				MX6QDL_PAD_SD2_DAT3__GPIO1_IO12 0x80000000 /* cs0: m25p80 */
+				MX6QDL_PAD_SD1_CMD__ECSPI5_MOSI  0x80000000
+				MX6QDL_PAD_SD1_CLK__ECSPI5_SCLK  0x80000000
+				MX6QDL_PAD_SD2_DAT3__GPIO1_IO12  0x80000000
 			>;
 		};
 	};
-
-	enet {
-		pinctrl_enet: enetgrp {
-			fsl,pins = <MX6QDL_ENET_PINGRP1>;
-		};
-	};
-
-	usb {
-		pinctrl_usbotg: usbotggrp {
-			fsl,pins = <MX6QDL_USBOTG_PINGRP1>;
-		};
-	};
-
-	usdhc {
-		pinctrl_usdhc3: usdhc3grp {
-			fsl,pins = <MX6QDL_USDHC3_PINGRP_D4>;
-		};
-
-		pinctrl_usdhc4: usdhc4grp {
-			fsl,pins = <MX6QDL_USDHC4_PINGRP_D8>;
-		};
-	};
-};
-
-&sata {
-	status = "okay";
-};
-
-&uart1 {
-	pinctrl-names = "default";
-	pinctrl-0 = <&pinctrl_uart1>;
-	status = "okay";
-};
-
-&uart2 {
-	status = "okay";
-	pinctrl-names = "default";
-	pinctrl-0 = <&pinctrl_uart2>;
-};
-
-&usbh1 {
-	vbus-supply = <&reg_usb_host1>;
-	status = "okay";
-	disable-over-current;
-};
-
-&usbotg {
-	vbus-supply = <&reg_usb_otg_vbus>;
-	pinctrl-names = "default";
-	pinctrl-0 = <&pinctrl_usbotg>;
-	disable-over-current;
-	status = "okay";
 };
 
 &usdhc3 {
-	pinctrl-names = "default";
-	pinctrl-0 = <&pinctrl_usdhc3>;
-	vmmc-supply = <&reg_3p3v>;
-	status = "okay";
-
 	#address-cells = <1>;
 	#size-cells = <1>;
 
@@ -408,13 +136,6 @@
 };
 
 &usdhc4 {
-	pinctrl-names = "default";
-	pinctrl-0 = <&pinctrl_usdhc4>;
-	vmmc-supply = <&reg_3p3v>;
-	non-removable;
-	bus-width = <8>;
-	status = "okay";
-
 	#address-cells = <1>;
 	#size-cells = <1>;
 
-- 
1.9.2


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] rework dts file for edmqmx6
  2014-05-06  8:44 [PATCH] rework dts file for edmqmx6 Silvio Fricke
  2014-05-06  8:44 ` [PATCH] ARM: i.MX6: dts: edmqmx6: use new dts approach Silvio Fricke
@ 2014-05-07  6:23 ` Sascha Hauer
  2014-05-07  9:46   ` Sascha Hauer
  1 sibling, 1 reply; 4+ messages in thread
From: Sascha Hauer @ 2014-05-07  6:23 UTC (permalink / raw)
  To: Silvio Fricke; +Cc: barebox

On Tue, May 06, 2014 at 10:44:20AM +0200, Silvio Fricke wrote:
> Hi,
> 
> here a patch for rework of the dts file for the data-modul base board edmqmx6.
> The patch is based on top of the dts-branch 09015ae52c18424c (ARM: Tegra20: Use
> upstream dtsi files).

Applied, thanks

Sascha

> 
> 
> Cheers,
> Silvio
> 
> 
> Silvio Fricke (1):
>   ARM: i.MX6: dts: edmqmx6: use new dts approach
> 
>  arch/arm/dts/imx6q-dmo-edmqmx6.dts | 297 ++-----------------------------------
>  1 file changed, 9 insertions(+), 288 deletions(-)
> 
> -- 
> 1.9.2
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] rework dts file for edmqmx6
  2014-05-07  6:23 ` [PATCH] rework dts file for edmqmx6 Sascha Hauer
@ 2014-05-07  9:46   ` Sascha Hauer
  0 siblings, 0 replies; 4+ messages in thread
From: Sascha Hauer @ 2014-05-07  9:46 UTC (permalink / raw)
  To: Silvio Fricke; +Cc: barebox

On Wed, May 07, 2014 at 08:23:52AM +0200, Sascha Hauer wrote:
> On Tue, May 06, 2014 at 10:44:20AM +0200, Silvio Fricke wrote:
> > Hi,
> > 
> > here a patch for rework of the dts file for the data-modul base board edmqmx6.
> > The patch is based on top of the dts-branch 09015ae52c18424c (ARM: Tegra20: Use
> > upstream dtsi files).
> 
> Applied, thanks

And reverted it. It doesn't build:

ERROR (path_references): Reference to non-existent node or label "stmpe"

Silvio, Could you update this patch on current master?

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-05-07  9:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-06  8:44 [PATCH] rework dts file for edmqmx6 Silvio Fricke
2014-05-06  8:44 ` [PATCH] ARM: i.MX6: dts: edmqmx6: use new dts approach Silvio Fricke
2014-05-07  6:23 ` [PATCH] rework dts file for edmqmx6 Sascha Hauer
2014-05-07  9:46   ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox