From patchwork Wed Nov 4 22:25:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luka Perkov X-Patchwork-Id: 7555461 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 115D2BEEA4 for ; Wed, 4 Nov 2015 22:27:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0D37C206D5 for ; Wed, 4 Nov 2015 22:27:48 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C425220691 for ; Wed, 4 Nov 2015 22:27:46 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zu6Uw-0003xC-0u; Wed, 04 Nov 2015 22:25:42 +0000 Received: from a9-128.smtp-out.amazonses.com ([54.240.9.128]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zu6Uk-0003tf-IS for linux-arm-kernel@lists.infradead.org; Wed, 04 Nov 2015 22:25:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug; d=amazonses.com; t=1446675907; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:Feedback-ID; bh=4P7ZoGAketPVi75KKuZLm9nPqsvXrXPXUlPpqIh1dG4=; b=rWuovJfNI9dFtFCkFTc3rH6YQrj1nZp2ekrY1bxitIIbBDSlhA8obUOtkZQsuNpp o7nLd9MMM2qO6lxcD4Kfx/HXaCB0jVQV7ObkA7wESeNKaQ/TybxVU0P6hGPtgXLRJq0 RYfz2QIwRk6rTvefCkyvFrMJj/xIToAo+FFGsGOg= From: Luka Perkov To: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH 2/4] ARM: dts: kirkwood: add Linksys EA3500 Date: Wed, 4 Nov 2015 22:25:07 +0000 Message-ID: <00000150d49a832c-f77d66d7-8f66-4b36-ac2c-df85deee46b6-000000@email.amazonses.com> X-Mailer: git-send-email 2.6.2 In-Reply-To: <1446675888-24495-1-git-send-email-luka.perkov@sartura.hr> References: <1446675888-24495-1-git-send-email-luka.perkov@sartura.hr> X-SES-Outgoing: 2015.11.04-54.240.9.128 Feedback-ID: 1.us-east-1.LFTh9l1AeB8dLHpJScYuoOtH5la+pCpNwQRcSZa6G+s=:AmazonSES X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151104_142530_744152_B3C43B93 X-CRM114-Status: GOOD ( 14.79 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: gregory.clement@free-electrons.com, andrew@lunn.ch, Luka Perkov , jason@lakedaemon.net MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_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 dts files from OpenWrt. Signed-off-by: Luka Perkov --- .../devicetree/bindings/arm/marvell,kirkwood.txt | 1 + arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/kirkwood-ea3500.dts | 149 +++++++++++++++++++++ 3 files changed, 151 insertions(+) create mode 100644 arch/arm/boot/dts/kirkwood-ea3500.dts diff --git a/Documentation/devicetree/bindings/arm/marvell,kirkwood.txt b/Documentation/devicetree/bindings/arm/marvell,kirkwood.txt index 7a99d4a..ed381a3 100644 --- a/Documentation/devicetree/bindings/arm/marvell,kirkwood.txt +++ b/Documentation/devicetree/bindings/arm/marvell,kirkwood.txt @@ -50,6 +50,7 @@ board. Currently known boards are: "lacie,netspace_mini_v2" "lacie,netspace_v2" "linksys,ea4500" +"linksys,ea3500" "marvell,db-88f6281-bp" "marvell,db-88f6282-bp" "marvell,mv88f6281gtw-ge" diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index a16c04b..ebe5b73 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -168,6 +168,7 @@ dtb-$(CONFIG_MACH_KIRKWOOD) += \ kirkwood-ds411.dtb \ kirkwood-ds411j.dtb \ kirkwood-ds411slim.dtb \ + kirkwood-ea3500.dtb \ kirkwood-ea4500.dtb \ kirkwood-goflexnet.dtb \ kirkwood-guruplug-server-plus.dtb \ diff --git a/arch/arm/boot/dts/kirkwood-ea3500.dts b/arch/arm/boot/dts/kirkwood-ea3500.dts new file mode 100644 index 0000000..3a064f6 --- /dev/null +++ b/arch/arm/boot/dts/kirkwood-ea3500.dts @@ -0,0 +1,149 @@ +/* + * kirkwood-ea3500.dts - Device Tree file for Linksys EA3500 + * + * (c) 2013 Jonas Gorski + * (c) 2013 Deutsche Telekom Innovation Laboratories + * (c) 2014 Luka Perkov + * (c) 2014 Dan Walters + * + * This file is licensed under the terms of the GNU General Public + * License version 2. This program is licensed "as is" without any + * warranty of any kind, whether express or implied. + */ + +/dts-v1/; + +#include "kirkwood.dtsi" +#include "kirkwood-6282.dtsi" + +/ { + model = "Linksys EA3500"; + compatible = "linksys,ea3500", "marvell,kirkwood-88f6282", "marvell,kirkwood"; + + memory { + device_type = "memory"; + reg = <0x00000000 0x4000000>; + }; + + chosen { + bootargs = "console=ttyS0,115200n8 earlyprintk"; + }; + + mbus { + pcie-controller { + status = "okay"; + + pcie@1,0 { + status = "okay"; + }; + + pcie@2,0 { + status = "okay"; + }; + }; + }; + + ocp@f1000000 { + pinctrl: pin-controller@10000 { + pmx_led_green_power: pmx-led-green-power { + marvell,pins = "mpp7"; + marvell,function = "gpo"; + }; + pmx_btn_wps: pmx-btn-wps { + marvell,pins = "mpp47"; + marvell,function = "gpio"; + }; + pmx_btn_reset: pmx-btn-reset { + marvell,pins = "mpp48"; + marvell,function = "gpio"; + }; + }; + + rtc@10300 { + status = "disabled"; + }; + + serial@12000 { + status = "okay"; + }; + + }; + + gpio_keys { + compatible = "gpio-keys"; + #address-cells = <1>; + #size-cells = <0>; + pinctrl-0 = < &pmx_btn_wps &pmx_btn_reset >; + pinctrl-names = "default"; + + button@15 { + label = "WPS Button"; + linux,code = ; + gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; + }; + + button@16 { + label = "Reset Button"; + linux,code = ; + gpios = <&gpio1 16 GPIO_ACTIVE_LOW>; + }; + }; + + gpio-leds { + compatible = "gpio-leds"; + pinctrl-0 = < &pmx_led_green_power >; + pinctrl-names = "default"; + + green-power { + label = "ea3500:green:power"; + gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; + }; + }; +}; + +&nand { + status = "okay"; + pinctrl-0 = <&pmx_nand>; + pinctrl-names = "default"; + + partition@0 { + label = "u-boot"; + reg = <0x0000000 0x80000>; + read-only; + }; + + partition@80000 { + label = "u-boot environment"; + reg = <0x80000 0x20000>; + }; + + partition@200000 { + label = "kernel"; + reg = <0x200000 0x200000>; + }; + + partition@400000 { + label = "root"; + reg = <0x400000 0x1200000>; + }; +}; + +&mdio { + status = "okay"; +}; + +ð0 { + status = "okay"; + ethernet0-port@0 { + speed = <1000>; + duplex = <1>; + }; +}; + +ð1 { + status = "okay"; + ethernet1-port@0 { + speed = <1000>; + duplex = <1>; + }; +};