All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bhuvanchandra DV <bhuvanchandra.dv@toradex.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 07/11] vf610: dts: Add device tree support
Date: Mon, 18 May 2015 18:36:25 +0530	[thread overview]
Message-ID: <1431954389-6433-8-git-send-email-bhuvanchandra.dv@toradex.com> (raw)
In-Reply-To: <1431954389-6433-1-git-send-email-bhuvanchandra.dv@toradex.com>

Add device tree files for Freescale Vybrid platform and
Toradex Colibri VF50, VF61 modules.
Device tree files are taken from upstream Kernel.
Removed the stuff which are not used/supported yet in U-Boot.

Signed-off-by: Bhuvanchandra DV <bhuvanchandra.dv@toradex.com>
---
 arch/arm/dts/Makefile          |   3 ++
 arch/arm/dts/vf-colibri.dtsi   |  21 +++++++++
 arch/arm/dts/vf.dtsi           | 100 +++++++++++++++++++++++++++++++++++++++++
 arch/arm/dts/vf500-colibri.dts |  18 ++++++++
 arch/arm/dts/vf610-colibri.dts |  18 ++++++++
 5 files changed, 160 insertions(+)
 create mode 100644 arch/arm/dts/vf-colibri.dtsi
 create mode 100644 arch/arm/dts/vf.dtsi
 create mode 100644 arch/arm/dts/vf500-colibri.dts
 create mode 100644 arch/arm/dts/vf610-colibri.dts

diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
index 267fd17..55039df 100644
--- a/arch/arm/dts/Makefile
+++ b/arch/arm/dts/Makefile
@@ -130,6 +130,9 @@ dtb-$(CONFIG_MACH_SUN9I) += \
 	sun9i-a80-optimus.dtb \
 	sun9i-a80-cubieboard4.dtb
 
+dtb-$(CONFIG_VF610) += vf500-colibri.dtb \
+	vf610-colibri.dtb
+
 targets += $(dtb-y)
 
 DTC_FLAGS += -R 4 -p 0x1000
diff --git a/arch/arm/dts/vf-colibri.dtsi b/arch/arm/dts/vf-colibri.dtsi
new file mode 100644
index 0000000..7a8e9bee
--- /dev/null
+++ b/arch/arm/dts/vf-colibri.dtsi
@@ -0,0 +1,21 @@
+/*
+ * Copyright 2014 Toradex AG
+ *
+ * SPDX-License-Identifier:     GPL-2.0+ or X11
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ */
+#include "vf.dtsi"
+
+&dspi1 {
+	status = "okay";
+	bus-num = <1>;
+
+	spi_cmd: sspi at 0 {
+		reg = <0>;
+		spi-max-frequency = <50000000>;
+	};
+};
diff --git a/arch/arm/dts/vf.dtsi b/arch/arm/dts/vf.dtsi
new file mode 100644
index 0000000..78706e1
--- /dev/null
+++ b/arch/arm/dts/vf.dtsi
@@ -0,0 +1,100 @@
+/*
+ * Copyright 2013 Freescale Semiconductor, Inc.
+ *
+ * SPDX-License-Identifier:     GPL-2.0+ or X11
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ */
+/include/ "skeleton.dtsi"
+
+/ {
+	aliases {
+		gpio0 = &gpio0;
+		gpio1 = &gpio1;
+		gpio2 = &gpio2;
+		gpio3 = &gpio3;
+		gpio4 = &gpio4;
+		spi0 = &dspi0;
+		spi1 = &dspi1;
+	};
+
+	soc {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		compatible = "simple-bus";
+		ranges;
+
+		aips0: aips-bus at 40000000 {
+			compatible = "fsl,aips-bus", "simple-bus";
+			#address-cells = <1>;
+			#size-cells = <1>;
+			ranges;
+
+			dspi0: dspi0 at 4002c000 {
+				#address-cells = <1>;
+				#size-cells = <0>;
+				compatible = "fsl,vf610-dspi";
+				reg = <0x4002c000 0x1000>;
+				num-cs = <5>;
+				status = "disabled";
+			};
+
+			dspi1: dspi1 at 4002d000 {
+				#address-cells = <1>;
+				#size-cells = <0>;
+				compatible = "fsl,vf610-dspi";
+				reg = <0x4002d000 0x1000>;
+				num-cs = <5>;
+				status = "disabled";
+			};
+
+			qspi0: quadspi at 40044000 {
+				#address-cells = <1>;
+				#size-cells = <0>;
+				compatible = "fsl,vf610-qspi";
+				reg = <0x40044000 0x1000>;
+				status = "disabled";
+			};
+
+			gpio0: gpio at 40049000 {
+				compatible = "fsl,vf610-gpio";
+				reg = <0x400ff000 0x40>;
+				#gpio-cells = <2>;
+			};
+
+			gpio1: gpio at 4004a000 {
+				compatible = "fsl,vf610-gpio";
+				reg = <0x400ff040 0x40>;
+				#gpio-cells = <2>;
+			};
+
+			gpio2: gpio at 4004b000 {
+				compatible = "fsl,vf610-gpio";
+				reg = <0x400ff080 0x40>;
+				#gpio-cells = <2>;
+			};
+
+			gpio3: gpio at 4004c000 {
+				compatible = "fsl,vf610-gpio";
+				reg = <0x400ff0c0 0x40>;
+				#gpio-cells = <2>;
+			};
+
+			gpio4: gpio at 4004d000 {
+				compatible = "fsl,vf610-gpio";
+				reg = <0x400ff100 0x40>;
+				#gpio-cells = <2>;
+			};
+		};
+
+		aips1: aips-bus at 40080000 {
+			compatible = "fsl,aips-bus", "simple-bus";
+			#address-cells = <1>;
+			#size-cells = <1>;
+			ranges;
+		};
+	};
+};
diff --git a/arch/arm/dts/vf500-colibri.dts b/arch/arm/dts/vf500-colibri.dts
new file mode 100644
index 0000000..e383306
--- /dev/null
+++ b/arch/arm/dts/vf500-colibri.dts
@@ -0,0 +1,18 @@
+/*
+ * Copyright 2014 Toradex AG
+ *
+ * SPDX-License-Identifier:     GPL-2.0+ or X11
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ */
+
+/dts-v1/;
+#include "vf-colibri.dtsi"
+
+/ {
+	model = "Toradex Colibri VF50";
+	compatible = "toradex,vf500-colibri_vf50", "toradex,vf500-colibri_vf50", "fsl,vf500";
+};
diff --git a/arch/arm/dts/vf610-colibri.dts b/arch/arm/dts/vf610-colibri.dts
new file mode 100644
index 0000000..63bb3f4
--- /dev/null
+++ b/arch/arm/dts/vf610-colibri.dts
@@ -0,0 +1,18 @@
+/*
+ * Copyright 2014 Toradex AG
+ *
+ * SPDX-License-Identifier:     GPL-2.0+ or X11
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ */
+
+/dts-v1/;
+#include "vf-colibri.dtsi"
+
+/ {
+	model = "Toradex Colibri VF61";
+	compatible = "toradex,vf610-colibri_vf61", "toradex,vf610-colibri_vf61", "fsl,vf610";
+};
-- 
2.1.0

  parent reply	other threads:[~2015-05-18 13:06 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-18 13:06 [U-Boot] [PATCH 00/11] Add GPIO driver for Freescale Vybrid platform Bhuvanchandra DV
2015-05-18 13:06 ` [U-Boot] [PATCH 01/11] dm: gpio: uclass: Add flag to control sequence numbering Bhuvanchandra DV
2015-05-18 13:06 ` [U-Boot] [PATCH 02/11] dm: gpio: vf610: Add GPIO driver support Bhuvanchandra DV
2015-05-18 13:06 ` [U-Boot] [PATCH 03/11] colibri_vf: Add pinmux entries for GPIOs Bhuvanchandra DV
2015-05-18 13:06 ` [U-Boot] [PATCH 04/11] colibri_vf: Enable GPIO support Bhuvanchandra DV
2015-05-18 13:06 ` [U-Boot] [PATCH 05/11] arm: vf610: Add clock support for DSPI Bhuvanchandra DV
2015-05-18 13:06 ` [U-Boot] [PATCH 06/11] arm: vf610: Add iomux " Bhuvanchandra DV
2015-05-18 13:06 ` Bhuvanchandra DV [this message]
2015-05-18 13:06 ` [U-Boot] [PATCH 08/11] colibri-vf: Enable SPI support Bhuvanchandra DV
2015-05-18 13:06 ` [U-Boot] [PATCH 09/11] colibri_vf: Add separate defconfig for device tree support Bhuvanchandra DV
2015-06-01  7:45   ` Stefano Babic
2015-06-01  8:07     ` Bhuvanchandra DV
2015-05-18 13:06 ` [U-Boot] [PATCH 10/11] usb: ehci-vf: Add weak function for board specific initialisation Bhuvanchandra DV
2015-05-18 17:09   ` Marek Vasut
2015-05-18 18:52     ` maitysanchayan at gmail.com
2015-05-18 19:04       ` Marek Vasut
2015-05-18 13:06 ` [U-Boot] [PATCH 11/11] colibri_vf: Enable board specific USB initialisation for USB pen gpio Bhuvanchandra DV
2015-05-24 19:34 ` [U-Boot] [PATCH 00/11] Add GPIO driver for Freescale Vybrid platform Bhuvanchandra DV
2015-05-26 11:27   ` Stefano Babic
2015-06-01  5:34     ` Bhuvanchandra DV
2015-06-01  7:17       ` Stefano Babic
2015-06-01  8:51 ` [U-Boot] [PATCH V2 " Bhuvanchandra DV
2015-06-01  8:51   ` [U-Boot] [PATCH V2 01/11] dm: gpio: uclass: Add flag to control sequence numbering Bhuvanchandra DV
2015-06-01  8:51   ` [U-Boot] [PATCH V2 02/11] dm: gpio: vf610: Add GPIO driver support Bhuvanchandra DV
2015-06-01  8:51   ` [U-Boot] [PATCH V2 03/11] colibri_vf: Add pinmux entries for GPIOs Bhuvanchandra DV
2015-06-01 10:26     ` Stefan Agner
2015-06-01  8:51   ` [U-Boot] [PATCH V2 04/11] colibri_vf: Enable GPIO support Bhuvanchandra DV
2015-06-01  8:51   ` [U-Boot] [PATCH V2 05/11] arm: vf610: Add clock support for DSPI Bhuvanchandra DV
2015-06-01  8:51   ` [U-Boot] [PATCH V2 06/11] arm: vf610: Add iomux " Bhuvanchandra DV
2015-06-01  8:51   ` [U-Boot] [PATCH V2 07/11] vf610: dts: Add device tree support Bhuvanchandra DV
2015-06-01  8:51   ` [U-Boot] [PATCH V2 08/11] colibri-vf: Enable SPI support Bhuvanchandra DV
2015-06-01 10:32     ` Stefan Agner
2015-06-01 12:27       ` Bhuvanchandra DV
2015-06-01  8:51   ` [U-Boot] [PATCH V2 09/11] colibri_vf: Add separate defconfig for device tree support Bhuvanchandra DV
2015-06-01 10:35     ` Stefan Agner
2015-06-01 12:28       ` Bhuvanchandra DV
2015-06-01  8:51   ` [U-Boot] [PATCH V2 10/11] usb: ehci-vf: Add weak function for board specific initialisation Bhuvanchandra DV
2015-06-01  8:51   ` [U-Boot] [PATCH V2 11/11] colibri_vf: Enable board specific USB initialisation for USB pen gpio Bhuvanchandra DV
2015-06-01 10:25     ` Stefan Agner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1431954389-6433-8-git-send-email-bhuvanchandra.dv@toradex.com \
    --to=bhuvanchandra.dv@toradex.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.