devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Markus Pargmann <mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
To: Shawn Guo <shawn.guo-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
	Sascha Hauer <kernel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
Cc: Fabio Estevam
	<fabio.estevam-KZfg59tc24xl57MIdRCFDg@public.gmane.org>,
	Alexander Shiyan <shc_work-JGs/UdohzUI@public.gmane.org>,
	devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
	Steffen Trumtrar
	<s.trumtrar-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Subject: [PATCH 6/6] ARM: dts: Add device tree support for phycard pca100
Date: Thu, 20 Jun 2013 16:50:15 +0200	[thread overview]
Message-ID: <1371739815-6666-7-git-send-email-mpa@pengutronix.de> (raw)
In-Reply-To: <1371739815-6666-1-git-send-email-mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>

Based on patches from:

Steffen Trumtrar <s.trumtrar@pengutronix.de>:
 - Original patch
 - ARM: dts: Set partition offsets for phycard
 - ARM: dts: Use CSPI1 instead of CSPI2 on phycard pca100
 - ARM: imx27-phytec-phycard-S.dts: resize nand partitions

Jan Luebbe <jlu@pengutronix.de>:
 - ARM: dts: Enable bad block table in NAND

Cc: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Cc: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
---
 arch/arm/boot/dts/Makefile                   |   1 +
 arch/arm/boot/dts/imx27-phytec-phycard-S.dts | 195 +++++++++++++++++++++++++++
 arch/arm/mach-imx/Kconfig                    |   1 +
 3 files changed, 197 insertions(+)
 create mode 100644 arch/arm/boot/dts/imx27-phytec-phycard-S.dts

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index b3a8661..e8fb0bc 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -105,6 +105,7 @@ dtb-$(CONFIG_ARCH_MXC) += \
 	imx27-pdk.dtb \
 	imx27-phytec-phycore-som.dtb \
 	imx27-phytec-phycore-rdk.dtb \
+	imx27-phytec-phycard-S.dtb \
 	imx31-bug.dtb \
 	imx51-apf51.dtb \
 	imx51-apf51dev.dtb \
diff --git a/arch/arm/boot/dts/imx27-phytec-phycard-S.dts b/arch/arm/boot/dts/imx27-phytec-phycard-S.dts
new file mode 100644
index 0000000..dc3a93b
--- /dev/null
+++ b/arch/arm/boot/dts/imx27-phytec-phycard-S.dts
@@ -0,0 +1,195 @@
+/*
+ * Copyright 2012 Sascha Hauer, Uwe Kleine-König and Steffen Trumtrar, Pengutronix
+ *
+ * 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 "imx27.dtsi"
+
+/ {
+	model = "Phytec pca100";
+	compatible = "phytec,imx27-pca100", "fsl,imx27";
+
+	memory {
+		device_type = "memory";
+		#address-cells = <1>;
+		#size-cells = <1>;
+		reg = <0x0 0x08000000>;   // 128MB
+	};
+
+	soc {
+		aipi@10000000 { /* aipi */
+			wdog@10002000 {
+				status = "okay";
+			};
+
+			owire@10009000 {
+				status = "okay";
+			};
+
+			serial@1000a000 {
+				fsl,uart-has-rtscts;
+				status = "okay";
+			};
+
+			serial@1000b000 {
+				fsl,uart-has-rtscts;
+				status = "okay";
+			};
+
+			serial@1000c000 {
+				fsl,uart-has-rtscts;
+				status = "okay";
+			};
+
+			cspi@1000e000 {
+				fsl,spi-num-chipselects = <2>;
+				cs-gpios = <&gpio4 28 0>,
+					<&gpio4 27 0>;
+				status = "okay";
+			};
+
+			i2c@10012000 {
+				status = "okay";
+				ioexpander@41 {
+					compatible = "nxp,pca9536";
+					reg = <0x41>;
+				};
+				rtc@51 {
+					compatible = "nxp,pcf8563";
+					reg = <0x51>;
+				};
+				dimmer@60 {
+					compatible = "nxp,pca9530";
+					reg = <0x60>;
+					pwm = <1 1>;
+					psc = <1 1>;
+					leds = <&led0 &led1>;
+					led0: led0 {
+						label = "pba-lcd_brightness";
+						default-state = "off";
+						type = "led";
+					};
+					led1: led1 {
+						label = "pba-free_use";
+						default-state = "off";
+						type = "led";
+					};
+				};
+			};
+
+			sdhci@10014000 {
+				cd-gpios = <&gpio3 29 0>;
+				status = "okay";
+			};
+
+			gpio@10015000 {
+				status = "okay";
+			};
+
+			gpio@10015100 {
+				status = "okay";
+			};
+
+			gpio@10015200 {
+				status = "okay";
+			};
+
+			gpio@10015300 {
+				status = "okay";
+			};
+
+			gpio@10015400 {
+				status = "okay";
+			};
+
+			gpio@10015500 {
+				status = "okay";
+			};
+
+			i2c@1001d000 {
+				status = "okay";
+
+				lm75@4a {
+					compatible = "national,lm75";
+					reg = <0x4a>;
+				};
+
+				rtc@51 {
+					compatible = "nxp,pcf8563";
+					reg = <0x51>;
+				};
+
+				at24@52 {
+					compatible = "at,24c32";
+					pagesize = <32>;
+					reg = <0x52>;
+				};
+			};
+		};
+
+		aipi@10020000 { /* AIPI2 */
+			fb@10021000 {
+				status = "okay";
+				display = <&display0>;
+			};
+
+			ethernet@1002b000 {
+				status = "okay";
+			};
+		}; /* AIPI */
+
+		nand@d8000000 {
+			status = "okay";
+			nand-bus-width = <8>;
+			nand-ecc-mode = "hw";
+			nand-on-flash-bbt;
+
+			barebox@0 {
+				label = "barebox";
+				reg = <0x0 0x80000>;
+			};
+
+			bareboxenv@80000 {
+				label = "bareboxenv";
+				reg = <0x80000 0x80000>;
+			};
+
+			kernel@100000 {
+				label = "kernel";
+				reg = <0x100000 0x500000>;
+			};
+
+			rootfs@500000 {
+				label = "rootfs";
+				reg = <0x500000 0x7b00000>;
+			};
+		};
+	};
+
+	display0: display0 {
+		model = "Primeview-PD050VL1";
+		native-mode = <&timing_disp0>;
+		bits-per-pixel = <16>;		/* non-standard but required */
+		fsl,pcr = <0xf0c88080>;	/* non-standard but required */
+		display-timings {
+			timing_disp0: 640x480 {
+				hactive = <640>;
+				vactive = <480>;
+				hback-porch = <112>;
+				hfront-porch = <36>;
+				hsync-len = <32>;
+				vback-porch = <33>;
+				vfront-porch = <33>;
+				vsync-len = <2>;
+				clock-frequency = <25000000>;
+			};
+		};
+	};
+};
diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
index f25cf88..5372337 100644
--- a/arch/arm/mach-imx/Kconfig
+++ b/arch/arm/mach-imx/Kconfig
@@ -441,6 +441,7 @@ config MACH_IMX27IPCAM
 config MACH_IMX27_DT
 	bool "Support i.MX27 platforms from device tree"
 	select SOC_IMX27
+	select IMX_HAVE_PLATFORM_MXC_NAND
 	help
 	  Include support for Freescale i.MX27 based platforms
 	  using the device tree for discovery
-- 
1.8.2.1

_______________________________________________
devicetree-discuss mailing list
devicetree-discuss@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/devicetree-discuss

  parent reply	other threads:[~2013-06-20 14:50 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-20 14:50 [PATCH 0/6] ARM: dts: imx27 Phytec PhyCARD-S Markus Pargmann
     [not found] ` <1371739815-6666-1-git-send-email-mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2013-06-20 14:50   ` [PATCH 1/6] ARM: mx27: Replace clk_register_clkdev with clock DT lookup Markus Pargmann
     [not found]     ` <1371739815-6666-2-git-send-email-mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2013-06-20 15:28       ` Alexander Shiyan
     [not found]         ` <1371742088.528552668-ZzAHCfOzKYkox3rIn2DAYQ@public.gmane.org>
2013-06-20 15:35           ` Fabio Estevam
     [not found]             ` <CAOMZO5AaZSAsvNUCOqTuqx7UGCrGH6Cm-Uz9wN3nO1e1XU_usw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-06-20 15:41               ` Fabio Estevam
2013-06-20 15:42               ` Markus Pargmann
2013-06-20 14:50   ` [PATCH 2/6] ARM: imx27: Use 'AITC' for the interrupt controller name Markus Pargmann
2013-06-20 14:50   ` [PATCH 3/6] ARM: dts: imx27: Add imx framebuffer device Markus Pargmann
2013-06-20 14:50   ` [PATCH 4/6] ARM: dts: imx27: Add 1-wire Markus Pargmann
2013-06-20 15:17     ` Alexander Shiyan
     [not found]       ` <1371741454.488712140-ZzAHCfOzKYkox3rIn2DAYQ@public.gmane.org>
2013-06-20 15:44         ` Markus Pargmann
2013-06-20 14:50   ` [PATCH 5/6] ARM: dts: imx27 cpufreq-cpu0 frequencies Markus Pargmann
     [not found]     ` <1371739815-6666-6-git-send-email-mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2013-06-21  2:44       ` Shawn Guo
2013-06-21  4:54         ` Re[2]: " Alexander Shiyan
     [not found]           ` <1371790493.32418815-PR9Oqn8FVc1sdVUOrk1QfQ@public.gmane.org>
2013-06-21  5:23             ` Shawn Guo
     [not found]               ` <20130621052344.GA25633-rvtDTF3kK1ictlrPMvKcciBecyulp+rMXqFh9Ls21Oc@public.gmane.org>
2013-06-21  8:47                 ` Lorenzo Pieralisi
     [not found]                   ` <20130621084740.GA14268-7AyDDHkRsp3ZROr8t4l/smS4ubULX0JqMm0uRHvK7Nw@public.gmane.org>
2013-06-23  8:22                     ` Markus Pargmann
2013-06-20 14:50   ` Markus Pargmann [this message]
2013-06-20 15:15     ` [PATCH 6/6] ARM: dts: Add device tree support for phycard pca100 Markus Pargmann
2013-06-20 15:21     ` Alexander Shiyan
     [not found]       ` <1371741670.186508416-ZzAHCfOzKYkox3rIn2DAYQ@public.gmane.org>
2013-06-20 15:45         ` Markus Pargmann
     [not found]     ` <1371739815-6666-7-git-send-email-mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2013-06-21  3:46       ` Shawn Guo
2013-06-23  8:17         ` Markus Pargmann

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=1371739815-6666-7-git-send-email-mpa@pengutronix.de \
    --to=mpa-bicnvbalz9megne8c9+irq@public.gmane.org \
    --cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
    --cc=fabio.estevam-KZfg59tc24xl57MIdRCFDg@public.gmane.org \
    --cc=kernel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org \
    --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=s.trumtrar-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org \
    --cc=shawn.guo-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
    --cc=shc_work-JGs/UdohzUI@public.gmane.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).