From patchwork Sun Jul 15 14:49:10 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 1199031 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 656E13FC8F for ; Sun, 15 Jul 2012 14:59:26 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1SqQFd-0003rq-IF; Sun, 15 Jul 2012 14:56:49 +0000 Received: from mail-we0-f177.google.com ([74.125.82.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1SqQ9j-0003E4-IF for linux-arm-kernel@lists.infradead.org; Sun, 15 Jul 2012 14:50:58 +0000 Received: by weyr3 with SMTP id r3so3657485wey.36 for ; Sun, 15 Jul 2012 07:49:35 -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:in-reply-to :references; bh=LQa7eA0kCnfrtpivgHamcoFmQiBAHQ+w1DtC2ufeqT4=; b=eK0bCxKBMSqxjAabJ40zkoFzQZVrnhDsuwSJwqOYMsx+htl2pIE7Xq6KUZEI/w/Qy/ G/M2aQ4riTiUvIFBul2i3PJLu9uPGt2ZXS2E6yd9Vbo1rP7eisujt0rNcu8hE0sdjI5G a8N50zS2r2p0um2MQK90fmG2edctXrpzEWUaMesKezC9xyzOcNuLduZOsRTrkLNF1STd 8dJ7RvdLXRJBTqhDfuHJ/cQTK+7EBBWXgQoS/xIjPNqOtq5HMgEGoITpBSr9Cgq+hwzF C/1b0NrmMyj5cIyYph/g+kSe3ZJdaHTol4J0f9hub2v1uKCB/FzIxuLN2ONh5GTxF7g7 6Z5g== Received: by 10.180.20.239 with SMTP id q15mr11464355wie.13.1342363774977; Sun, 15 Jul 2012 07:49:34 -0700 (PDT) Received: from localhost.localdomain ([78.251.81.37]) by mx.google.com with ESMTPS id t7sm23788594wix.6.2012.07.15.07.49.33 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 15 Jul 2012 07:49:34 -0700 (PDT) From: Florian Fainelli To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 4/8] ARM: MCS814X: add DTS file for Tigal/Robotech RBT-832 Date: Sun, 15 Jul 2012 16:49:10 +0200 Message-Id: <1342363754-30808-5-git-send-email-florian@openwrt.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1342363754-30808-1-git-send-email-florian@openwrt.org> References: <1342363754-30808-1-git-send-email-florian@openwrt.org> X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [74.125.82.177 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (f.fainelli[at]gmail.com) -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_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: olof@lixom.net, devicetree-discuss@lists.ozlabs.org, Florian Fainelli , arnd@arndb.de 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 This DTS files defines the following specifities: - 32MB of RAM - 5 GPIO controlled LEDs - LED activity for the Ethernet port - MTD partitions Signed-off-by: Florian Fainelli --- arch/arm/boot/dts/rbt-832.dts | 83 ++++++++++++++++++++++++++++++ arch/arm/mach-mcs814x/Kconfig | 9 ++++ arch/arm/mach-mcs814x/Makefile.boot | 2 + arch/arm/mach-mcs814x/board-mcs8140-dt.c | 1 + 4 files changed, 95 insertions(+) create mode 100644 arch/arm/boot/dts/rbt-832.dts diff --git a/arch/arm/boot/dts/rbt-832.dts b/arch/arm/boot/dts/rbt-832.dts new file mode 100644 index 0000000..cc7fab8 --- /dev/null +++ b/arch/arm/boot/dts/rbt-832.dts @@ -0,0 +1,83 @@ +/* + * rbt-832.dts - Device Tree file for Tigal RBT-832 + * + * Copyright (C) 2012, Florian Fainelli + * + * Licensed under GPLv2 + */ + +/dts-v1/; +/include/ "mcs8140.dtsi" + +/ { + model = "Tigal RBT-832"; + compatible = "tigal,rbt-832", "moschip,mcs8140", "moschip,mcs814x"; + + chosen { + bootargs = "mem=32M console=ttyS0,115200 earlyprintk"; + }; + + ahb { + vci { + eth0: ethernet@40084000 { + nuport-mac,link-activity = <0x01>; + }; + + adc { + sdram: memory@0,0 { + reg = <0 0 0x2000000>; + }; + + nor: flash@7,0 { + + partition@0 { + label = "ArmBoot"; + reg = <0 0x40000>; + }; + partition@30000 { + label = "Enviroment"; + reg = <0x40000 0x20000>; + }; + partition@50000 { + label = "bZimage"; + reg = <0x60000 0x1a0000>; + }; + partition@150000 { + label = "UserFS"; + reg = <0x200000 0x600000>; + }; + }; + }; + + leds { + compatible = "gpio-leds"; + + ethernet { + label = "rbt-832:red:ethernet"; + gpios = <&gpio 0 0>; // gpio 0 active high + }; + + usb0 { + label = "rbt-832:red:usb0"; + gpios = <&gpio 4 0>; // gpio 4 active high + }; + + usb1 { + label = "rbt-832:red:usb1"; + gpios = <&gpio 3 0>; // gpio 3 active high + }; + + usb2 { + label = "rbt-832:red:usb2"; + gpios = <&gpio 2 0>; // gpio 2 active high + }; + + usb3 { + label = "rbt-832:red:usb3"; + gpios = <&gpio 1 0>; // gpio 1 active high + }; + }; + }; + }; +}; + diff --git a/arch/arm/mach-mcs814x/Kconfig b/arch/arm/mach-mcs814x/Kconfig index c89422f..604537b 100644 --- a/arch/arm/mach-mcs814x/Kconfig +++ b/arch/arm/mach-mcs814x/Kconfig @@ -6,6 +6,15 @@ config MCS8140 menu "Moschip MCS8140 boards" +config MACH_RBT_832 + bool "Tigal RBT-832" + select MCS8140 + select NEW_LEDS + select LEDS_CLASS + select LEDS_GPIO + help + Machine support for the Tigal RBT-832 board + endmenu endif diff --git a/arch/arm/mach-mcs814x/Makefile.boot b/arch/arm/mach-mcs814x/Makefile.boot index 414db8b..3153a7c 100644 --- a/arch/arm/mach-mcs814x/Makefile.boot +++ b/arch/arm/mach-mcs814x/Makefile.boot @@ -1,3 +1,5 @@ zreladdr-y := 0x00008000 params_phys-y := 0x00000008 initrd_phys-y := 0x00400000 + +dtb-$(CONFIG_MACH_RBT_832) += rbt-832.dtb diff --git a/arch/arm/mach-mcs814x/board-mcs8140-dt.c b/arch/arm/mach-mcs814x/board-mcs8140-dt.c index 5d13283..6f0804d 100644 --- a/arch/arm/mach-mcs814x/board-mcs8140-dt.c +++ b/arch/arm/mach-mcs814x/board-mcs8140-dt.c @@ -27,6 +27,7 @@ static void __init mcs814x_dt_device_init(void) } static const char *mcs8140_dt_board_compat[] __initdata = { + "tigal,rbt-832", "moschip,mcs8140", NULL, /* sentinel */ };