From patchwork Thu Jun 20 14:50:15 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Markus Pargmann X-Patchwork-Id: 2756701 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 0F24BC0AB1 for ; Thu, 20 Jun 2013 14:59:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3058520397 for ; Thu, 20 Jun 2013 14:59:19 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C837A2039E for ; Thu, 20 Jun 2013 14:59:11 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UpgHR-0005nV-JD; Thu, 20 Jun 2013 14:56:11 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UpgGW-0001R1-UB; Thu, 20 Jun 2013 14:55:12 +0000 Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UpgFg-0001Lu-AW for linux-arm-kernel@lists.infradead.org; Thu, 20 Jun 2013 14:54:22 +0000 Received: from dude.hi.pengutronix.de ([2001:6f8:1178:2:21e:67ff:fe11:9c5c]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1UpgEm-0007iI-Ae; Thu, 20 Jun 2013 16:53:24 +0200 Received: from mpa by dude.hi.pengutronix.de with local (Exim 4.80) (envelope-from ) id 1UpgEk-00007F-KL; Thu, 20 Jun 2013 16:53:22 +0200 From: Markus Pargmann To: Shawn Guo , Sascha Hauer Subject: [PATCH 6/6] ARM: dts: Add device tree support for phycard pca100 Date: Thu, 20 Jun 2013 16:50:15 +0200 Message-Id: <1371739815-6666-7-git-send-email-mpa@pengutronix.de> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1371739815-6666-1-git-send-email-mpa@pengutronix.de> References: <1371739815-6666-1-git-send-email-mpa@pengutronix.de> MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2001:6f8:1178:2:21e:67ff:fe11:9c5c X-SA-Exim-Mail-From: mpa@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-arm-kernel@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130620_105420_784400_0E734810 X-CRM114-Status: GOOD ( 16.86 ) X-Spam-Score: -3.2 (---) Cc: Fabio Estevam , Jan Luebbe , Alexander Shiyan , devicetree-discuss@lists.ozlabs.org, Markus Pargmann , Steffen Trumtrar , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Based on patches from: Steffen Trumtrar : - 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 : - ARM: dts: Enable bad block table in NAND Cc: Steffen Trumtrar Cc: Jan Luebbe Signed-off-by: Markus Pargmann --- 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