From patchwork Sun Feb 10 16:05:53 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anil Kumar X-Patchwork-Id: 2122461 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id E2A6E3FCD5 for ; Sun, 10 Feb 2013 16:06:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755870Ab3BJQGG (ORCPT ); Sun, 10 Feb 2013 11:06:06 -0500 Received: from mail-pb0-f53.google.com ([209.85.160.53]:38624 "EHLO mail-pb0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755774Ab3BJQGF (ORCPT ); Sun, 10 Feb 2013 11:06:05 -0500 Received: by mail-pb0-f53.google.com with SMTP id un1so375693pbc.40 for ; Sun, 10 Feb 2013 08:06:03 -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=W3mZSE9zprRZL3cl9mLUwLC2E7t5ZfBE3zs9yxYSEs8=; b=hIIc6p3s0Y36APccnyn8BsSHGtXoQym7zhpatUumzZw4+ncbPgAPvpkP07T12uPzrd HN088QjIHKQjpL6+bUPT6OfnVCgTC2qTpVtumx/wyYNdhyjHwyRK52rhuOqim2zo5fl0 Bp7eMfOBg1wLJyEJpP7B0mv33tsoXz9jXZkBUNolT4d882gh/wEhTSBZTyTec1Csl5xY RfqbRu1STygC/A1135V9UTCTS80H4HU3WBWpdhRZJdRFqi1V1ugjddXfevxhwwU8HQyi yDVasGH2efV9y+JfOg9J7xpXVzgcGKBkzAKERnYGhfoCjow83S7cKzKyh2N6/dnntwu7 RBzA== X-Received: by 10.68.195.41 with SMTP id ib9mr11988799pbc.151.1360512363775; Sun, 10 Feb 2013 08:06:03 -0800 (PST) Received: from localhost.localdomain ([123.237.223.59]) by mx.google.com with ESMTPS id y9sm63991512paw.1.2013.02.10.08.05.57 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 10 Feb 2013 08:06:02 -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 Cc: linux@arm.linux.org.uk, b-cousson@ti.com, tony@atomide.com, grant.likely@secretlab.ca, weber@corscience.de, anilk4.v@gmail.com Subject: [PATCH V2] ARM: dts: add minimal DT support for DevKit8000 Date: Sun, 10 Feb 2013 21:35:53 +0530 Message-Id: <1360512354-3804-1-git-send-email-anilk4.v@gmail.com> X-Mailer: git-send-email 1.7.0.4 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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. For V2: -Change model name as "TimLL OMAP3 Devkit8000" -Change compatible as "timll,omap3-devkit8000" -Doing i2c1 pinmux default with pinctrl-single driver instead of i2c1 driver probe time. :100644 100644 5ebb44f... 22ebc76... M arch/arm/boot/dts/Makefile :000000 100644 0000000... dc59272... A arch/arm/boot/dts/omap3-devkit8000.dts :100644 100644 53cb380b.. ccecb76... M arch/arm/mach-omap2/board-generic.c arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/omap3-devkit8000.dts | 126 ++++++++++++++++++++++++++++++++ arch/arm/mach-omap2/board-generic.c | 1 + 3 files changed, 128 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..dc59272 --- /dev/null +++ b/arch/arm/boot/dts/omap3-devkit8000.dts @@ -0,0 +1,126 @@ +/* + * Author: 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 = "TimLL OMAP3 Devkit8000"; + compatible = "timll,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 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c1_pins>; + + 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 { + 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..ccecb76 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", + "timll,omap3-devkit8000", NULL, };