From patchwork Mon Jun 17 21:06:11 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Belisko X-Patchwork-Id: 2737621 Return-Path: X-Original-To: patchwork-linux-omap@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 246A7C0AB1 for ; Mon, 17 Jun 2013 21:06:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2567320235 for ; Mon, 17 Jun 2013 21:06:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 07A1E20201 for ; Mon, 17 Jun 2013 21:06:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753922Ab3FQVGY (ORCPT ); Mon, 17 Jun 2013 17:06:24 -0400 Received: from mail-ea0-f182.google.com ([209.85.215.182]:64707 "EHLO mail-ea0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753767Ab3FQVGX (ORCPT ); Mon, 17 Jun 2013 17:06:23 -0400 Received: by mail-ea0-f182.google.com with SMTP id d10so2137403eaj.13 for ; Mon, 17 Jun 2013 14:06:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer; bh=YNXii684j2fFUG0WGhe59m2Qf56YRIx2oHDB/Z3SInM=; b=jFSJii20ReQ/E8KiGyXW/nXVpbg7awm75ydmCzS8mdBqLehT5390rr9Chwki2iZPX+ K2+dckqc3TudJF/xv9A5qJH5hv8pCA3EXWcSmjAZgf3odFzdHYwvh4H8xIRuKLMaYDWo txmOPmSIy6Ri/mXxnmY4timPb/GRzSIxxpYDYp8RQMUFGPJUL8+KE0ahJy3pKbenx7XO Erh2pk+CVJEd0L8/hfvQkFe3V5VvGkGLWxjylhx27eG4RER6MVAbmtJVM4Pf0bg84ZF6 KRcCxOhjFYusLQySd6u6tybM37D/B0GSAhBBJ/3I7uFzVeo8bRaV0jTe2tzqtLkyeYlJ 295Q== X-Received: by 10.15.82.73 with SMTP id z49mr18276923eey.43.1371503182303; Mon, 17 Jun 2013 14:06:22 -0700 (PDT) Received: from localhost.localdomain (ip-85.162.192.3.o2inet.sk. [85.162.192.3]) by mx.google.com with ESMTPSA id z52sm26016614eea.1.2013.06.17.14.06.20 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Jun 2013 14:06:21 -0700 (PDT) From: Marek Belisko To: b-cousson@ti.com, tony@atomide.com Cc: linux-omap@vger.kernel.org, devicetree-discuss@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, Marek Belisko Subject: [PATCH] arm/dts: Add basic support for gta04 (Openmoko next generation) board. Date: Mon, 17 Jun 2013 23:06:11 +0200 Message-Id: <1371503171-21416-1-git-send-email-marek.belisko@open-nandra.com> X-Mailer: git-send-email 1.8.1.2 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-7.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham 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 Signed-off-by: Marek Belisko --- Resending because patch wasn't applied yet and was first time sent in January. arch/arm/boot/dts/omap3-gta04.dts | 94 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 arch/arm/boot/dts/omap3-gta04.dts diff --git a/arch/arm/boot/dts/omap3-gta04.dts b/arch/arm/boot/dts/omap3-gta04.dts new file mode 100644 index 0000000..9e7e3ec --- /dev/null +++ b/arch/arm/boot/dts/omap3-gta04.dts @@ -0,0 +1,94 @@ +/* + * Copyright (C) 2013 Marek Belisko + * + * Based on omap3-beagle-xm.dts + * + * 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 = "OMAP3 GTA04"; + compatible = "ti,omap3-gta04", "ti,omap3"; + + memory { + device_type = "memory"; + reg = <0x80000000 0x20000000>; /* 512 MB */ + }; + + gpio-keys { + compatible = "gpio-keys"; + #address-cells = <1>; + #size-cells = <0>; + aux-button { + label = "AUX"; + linux,code = <169>; + gpios = <&gpio1 7 1>; + gpio-key,wakeup; + }; + }; +}; + +&i2c1 { + clock-frequency = <2600000>; + + twl: twl@48 { + reg = <0x48>; + interrupts = <7>; /* SYS_NIRQ cascaded to intc */ + interrupt-parent = <&intc>; + }; +}; + +/include/ "twl4030.dtsi" + +&i2c2 { + clock-frequency = <400000>; + /* Pressure Sensor */ + bmp085@77 { + compatible = "bosch,bmp085"; + reg = <0x77>; + }; + + /* leds */ + tca6507@45 { + compatible = "ti,tca6507"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x45>; + + gta04_led0: red_aux@0 { + label = "gta04:red:aux"; + reg = <0x0>; + }; + + gta04_led1: green_aux@1 { + label = "gta04:green:aux"; + reg = <0x1>; + }; + + gta04_led3: red_power@3 { + label = "gta04:red:power"; + reg = <0x3>; + linux,default-trigger = "default-on"; + }; + + gta04_led4: green_power@4 { + label = "gta04:green:power"; + reg = <0x4>; + }; + }; +}; + +&i2c3 { + clock-frequency = <100000>; +}; + +&mmc1 { + vmmc-supply = <&vmmc1>; + bus-width = <4>; +}; +