From patchwork Thu Feb 7 14:11:37 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anil Kumar X-Patchwork-Id: 2111111 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id EEB763FDF1 for ; Thu, 7 Feb 2013 14:14:47 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1U3SCc-0001Fk-Np; Thu, 07 Feb 2013 14:11:50 +0000 Received: from mail-da0-f44.google.com ([209.85.210.44]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1U3SCa-0001FP-Bk for linux-arm-kernel@lists.infradead.org; Thu, 07 Feb 2013 14:11:49 +0000 Received: by mail-da0-f44.google.com with SMTP id z20so1224975dae.31 for ; Thu, 07 Feb 2013 06:11:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=JzVOJRcugyj4tVtV60FPlU7r9YhGgZgkhYwZvxIbRxs=; b=YrRIdtCqZph4Q69h89hsK6WMMwvUE1Yb+QIv0kjFxBKOUKAcPTjvQyOlILD95ICwBg lR5kizCx369IolaIzICLDlTOueW9mMGqmpgykgXcC2noM8rJIdExzuoI7yTZn7aY1Hky VLAwID9HIdJvoZC7VMCL7PXSEObxX1wZyycsTOz2rl7Z7NEiFPjuwIywr+E0jkmRmA43 QFGUoUHzc3ZmFYhpMJWoVlhLTJWrnDWmehyuXtAWpuvSKO+jbXddhfSPPPm7ytPtNfgT cx0LgoDUsq5u0TJ2HbwVb+HrOsG9KMmhcDEDIcSDwNip/l2i55MvDiYUu/UzUc7XcHiP /bDA== X-Received: by 10.66.52.79 with SMTP id r15mr6243384pao.46.1360246306754; Thu, 07 Feb 2013 06:11:46 -0800 (PST) Received: from localhost.localdomain ([124.125.222.7]) by mx.google.com with ESMTPS id b3sm43650826pax.14.2013.02.07.06.11.39 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 07 Feb 2013 06:11:45 -0800 (PST) From: Anil Kumar To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, devicetree-discuss@lists.ozlabs.org Subject: [PATCH] ARM: dts: add minimal DT support for DevKit8000 Date: Thu, 7 Feb 2013 19:41:37 +0530 Message-Id: <1360246297-5500-1-git-send-email-anilk4.v@gmail.com> X-Mailer: git-send-email 1.7.0.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130207_091148_502233_3A994CA3 X-CRM114-Status: GOOD ( 16.45 ) X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (anilk4.v[at]gmail.com) 0.8 RCVD_IN_SORBS_WEB RBL: SORBS: sender is an abusable web server [124.125.222.7 listed in dnsbl.sorbs.net] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.210.44 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: linux@arm.linux.org.uk, b-cousson@ti.com, tony@atomide.com, grant.likely@secretlab.ca, anilk4.v@gmail.com, thomas@tomweber.eu X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DevKit8000 is a beagle board clone from Timll, sold by armkits.com. The DevKit8000 has RS232 serial port, LCD, DVI-D, S-Video, Ethernet, SD/MMC, keyboard, camera, SPI, I2C, USB and JTAG interface. This patch adds the basic DT support for devkit8000. At this time, Information of twl4030, MMC1, I2C1, leds and there pim mux information are added. Signed-off-by: Anil Kumar Tested-by: Thomas Weber --- -This patch is based on top of kernel 3.8-rc5. -Tested on Devkit8000. :100644 100644 5ebb44f... 22ebc76... M arch/arm/boot/dts/Makefile :000000 100644 0000000... 9864fd7... A arch/arm/boot/dts/omap3-devkit8000.dts :100644 100644 53cb380b.. 6e2cef6... M arch/arm/mach-omap2/board-generic.c arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/omap3-devkit8000.dts | 125 ++++++++++++++++++++++++++++++++ arch/arm/mach-omap2/board-generic.c | 1 + 3 files changed, 127 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 5ebb44f..22ebc76 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -102,6 +102,7 @@ dtb-$(CONFIG_ARCH_MXS) += imx23-evk.dtb \ imx28-tx28.dtb dtb-$(CONFIG_ARCH_OMAP2PLUS) += omap2420-h4.dtb \ omap3-beagle.dtb \ + omap3-devkit8000.dtb \ omap3-beagle-xm.dtb \ omap3-evm.dtb \ omap3-tobi.dtb \ diff --git a/arch/arm/boot/dts/omap3-devkit8000.dts b/arch/arm/boot/dts/omap3-devkit8000.dts new file mode 100644 index 0000000..9864fd7 --- /dev/null +++ b/arch/arm/boot/dts/omap3-devkit8000.dts @@ -0,0 +1,125 @@ +/* + * Anil Kumar + * + * 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/ "omap3.dtsi" +/ { + model = "TI OMAP3 Devkit8000"; + compatible = "ti,omap3-devkit8000", "ti,omap3"; + + memory { + device_type = "memory"; + reg = <0x80000000 0x10000000>; /* 256 MB */ + }; + + leds { + compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <&leds_pins>; + + heartbeat { + label = "devkit8000::led1"; + gpios = <&gpio6 26 0>; /* 186 -> LED1 */ + default-state = "on"; + linux,default-trigger = "heartbeat"; + }; + + mmc { + label = "devkit8000::led2"; + gpios = <&gpio6 3 0>; /* 163 -> LED2 */ + default-state = "on"; + linux,default-trigger = "none"; + }; + + usr { + label = "devkit8000::led3"; + gpios = <&gpio6 4 0>; /* 164 -> LED3 */ + default-state = "on"; + linux,default-trigger = "usr"; + }; + + }; +}; + +&omap3_pmx_core { + leds_pins: pinmux_led_pins { + pinctrl-single,pins = < + 0x168 0x4 /* GPIO_163 */ + 0x16c 0x4 /* GPIO_164 */ + 0x1b0 0x4 /* GPIO_186 */ + + >; + }; + + i2c1_pins: pinmux_i2c1_pins { + pinctrl-single,pins = < + 0x188 0x118 /* I2C1_SCL */ + 0x18c 0x118 /* I2C1_SDA */ + >; + }; +}; + +&i2c1 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c1_pins>; + clock-frequency = <2600000>; + + twl: twl@48 { + reg = <0x48>; + interrupts = <7>; /* SYS_NIRQ cascaded to intc */ + interrupt-parent = <&intc>; + }; +}; + +&i2c2 { + status = "disabled"; +}; + +&i2c3 { + status = "disabled"; +}; + +/include/ "twl4030.dtsi" + +&mmc1 { + vmmc-supply = <&vmmc1>; + vmmc_aux-supply = <&vsim>; + bus-width = <8>; +}; + +&mmc2 { + status = "disabled"; +}; + +&mmc3 { + status = "disabled"; +}; + +&wdt2 { + status = "disabled"; +}; + +&mcbsp1 { + status = "disabled"; +}; + +&mcbsp2 { + status = "disabled"; +}; + +&mcbsp3 { + status = "disabled"; +}; + +&mcbsp4 { + status = "disabled"; +}; + +&mcbsp5 { + status = "disabled"; +}; diff --git a/arch/arm/mach-omap2/board-generic.c b/arch/arm/mach-omap2/board-generic.c index 53cb380..6e2cef6 100644 --- a/arch/arm/mach-omap2/board-generic.c +++ b/arch/arm/mach-omap2/board-generic.c @@ -110,6 +110,7 @@ MACHINE_END static const char *omap3_gp_boards_compat[] __initdata = { "ti,omap3-beagle", + "ti,omap3-devkit8000", NULL, };