From patchwork Tue Feb 14 19:17:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ralph Sennhauser X-Patchwork-Id: 9572569 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 452F760578 for ; Tue, 14 Feb 2017 19:18:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 28E062793B for ; Tue, 14 Feb 2017 19:18:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1BFB027D5E; Tue, 14 Feb 2017 19:18:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A6AED2793B for ; Tue, 14 Feb 2017 19:18:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=Oe0DUIzP4bHkJUx2rwpdd4ZWRnWMVNfNqaWQxGu6Re4=; b=NIs vGiF/8/gZ4E9dPZeX9r1z5UOjzGgaJrVnS0ZbW0puoJiGurJbjJQfdSc221lXtY0hWyalo492tUhq UNbk6m3XekYvDYdixVwbFMDV0QeMrMLt6CjeakJtw6ABrJlYJx6RxoZ3oQhJMtXw5bn4IxO9Zbtdn mwuGBOAK+V9XcUETsN8UDjoUPlco548ciFfvBfiRxvfMu68zZmXd/Z/11or8sCwH8A8RyWSqsx5J2 d2CdPRY4JvI50C9fWcvMuUjwJXf/Npsy3VjYWKPpflVr0G/VloLJAkbyfvz74qqGsc78raROav2kE lYYZsSctXm9/vaPsec9RCGsmsrGicyA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cdicT-0006Ha-QO; Tue, 14 Feb 2017 19:18:33 +0000 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cdicO-0006F2-Os for linux-arm-kernel@lists.infradead.org; Tue, 14 Feb 2017 19:18:31 +0000 Received: by mail-wm0-x244.google.com with SMTP id u63so5039937wmu.2 for ; Tue, 14 Feb 2017 11:18:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=CnFMNIMCvAClHNqfe3IXJj82yrJZtd71HuAIS9slB5Q=; b=UEWRN+99tPbjCvUaQluBs90oRJNjO8fbbqTPYIp022JVvNTIkNtqvTT/DnuCAO1qEk BK1GF5PkO1ogQv1ittkrTJqMxRenem/ypK1K4Ny5vqkk9aRQRWLnw8NixtMRNJIjwzel rsfivE+DlunrArR65TMKPqkqrYgw/i5Tb81dTxkAERkXiNx6dHCelfmdZ5A8CyJIv07L L1a+DJew0k/Ro5BgmPwN4ahTa604+R9kp1EG8YNn+2CfTy3EMeY/x9es2xh+MZybqtNb M00OgKctAa2SGQJ0fxIwsB3k9rNIwwXCpBhQyvNv/OKKudchk+oFTE9epSpOiF1vWZP8 v8qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=CnFMNIMCvAClHNqfe3IXJj82yrJZtd71HuAIS9slB5Q=; b=suRrDRnRrG/Q2D2ej/ZhuqofVyR4GFFxvEAFDylgXw2vqBMF0TLCjkJ8N7XtQmuSTO uTXZLjZTEXm3USkCRXfG3zbhZTDDrbphruVFbdt+VMQghPoQwGlP1U75Ca74kpAfi8to CbWLjfh5Hqo/7hpmKPqPTn47GzoBUQ6yuDwKCSXlEbzOlKu5VJ42GVcg5usXR7zFuDug EQFA7XzXaO0mJ/r119YTjBl+Pe+4at1NUDRKw/W9x0cpbM9OU/pry5Y0rs/r3DdhY8SE cWhjBECqZwbzK/Rv8GBj27+r1ZYwPw31Q3nWQg8hz1wRD+MRaD42f4bAFWI446WDdyP5 xZzw== X-Gm-Message-State: AMke39lI/frOViYjLDrTdKL9pa+6v8PIRs8UYpjQeyOM2/8Rox7NVlmhV56a44G+0riyvA== X-Received: by 10.28.109.200 with SMTP id b69mr4812945wmi.94.1487099886112; Tue, 14 Feb 2017 11:18:06 -0800 (PST) Received: from localhost.lan ([2001:470:b664:10::11f]) by smtp.googlemail.com with ESMTPSA id w30sm1948810wrb.5.2017.02.14.11.18.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Feb 2017 11:18:05 -0800 (PST) From: Ralph Sennhauser To: Gregory Clement Subject: [PATCH v2] ARM: mvebu: add support for the Linksys WRT1900ACS (Shelby) Date: Tue, 14 Feb 2017 20:17:42 +0100 Message-Id: <20170214191744.9419-1-ralph.sennhauser@gmail.com> X-Mailer: git-send-email 2.10.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170214_111828_970975_24B681BC X-CRM114-Status: GOOD ( 18.09 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Andrew Lunn , Jason Cooper , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Russell King , open list , Rob Herring , Ralph Sennhauser , Imre Kaloz , "moderated list:ARM PORT" , Sebastian Hesselbarth MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The Linksys WRT1900ACS (Shelby) is another Armada 385 based router in the Linksys WRT AC Series which got released in October 2015. The file armada-385-linksys-shelby.dts is taken from OpenWrt as-is and originally authored by Imre Kaloz. URL: https://github.com/openwrt/openwrt/blob/8466384db1154a107b86bf3ca10b166a21bd81d0/target/linux/mvebu/files/arch/arm/boot/dts/armada-385-linksys-shelby.dts CC: Imre Kaloz Signed-off-by: Ralph Sennhauser Signed-off-by: Imre Kaloz Reviewed-by: Andrew Lunn Acked-by: Jason Cooper --- Notes: V1 -> V2: - Use full instead of shortened URL in commit message (suggested by Jason Cooper) - add collected tags, thanks to donors ;) arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/armada-385-linksys-shelby.dts | 114 ++++++++++++++++++++++++ 2 files changed, 115 insertions(+) create mode 100644 arch/arm/boot/dts/armada-385-linksys-shelby.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 0118084..16f1748 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -970,6 +970,7 @@ dtb-$(CONFIG_MACH_ARMADA_38X) += \ armada-385-db-ap.dtb \ armada-385-linksys-caiman.dtb \ armada-385-linksys-cobra.dtb \ + armada-385-linksys-shelby.dtb \ armada-385-turris-omnia.dtb \ armada-388-clearfog.dtb \ armada-388-clearfog-base.dtb \ diff --git a/arch/arm/boot/dts/armada-385-linksys-shelby.dts b/arch/arm/boot/dts/armada-385-linksys-shelby.dts new file mode 100644 index 0000000..c7a8ddd --- /dev/null +++ b/arch/arm/boot/dts/armada-385-linksys-shelby.dts @@ -0,0 +1,114 @@ +/* + * Device Tree file for the Linksys WRT1900ACS (Shelby) + * + * Copyright (C) 2015 Imre Kaloz + * + * + * This file is dual-licensed: you can use it either under the terms + * of the GPL or the X11 license, at your option. Note that this dual + * licensing only applies to this file, and not this project as a + * whole. + * + * a) 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. + * + * Or, alternatively, + * + * b) Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + +/dts-v1/; +#include "armada-385-linksys.dtsi" + +/ { + model = "Linksys WRT1900ACS"; + compatible = "linksys,shelby", "linksys,armada385", "marvell,armada385", + "marvell,armada380"; + + soc { + internal-regs{ + i2c@11000 { + + pca9635@68 { + #address-cells = <1>; + #size-cells = <0>; + + wan_amber@0 { + label = "shelby:amber:wan"; + reg = <0x0>; + }; + + wan_white@1 { + label = "shelby:white:wan"; + reg = <0x1>; + }; + + wlan_2g@2 { + label = "shelby:white:wlan_2g"; + reg = <0x2>; + }; + + wlan_5g@3 { + label = "shelby:white:wlan_5g"; + reg = <0x3>; + }; + + usb2@5 { + label = "shelby:white:usb2"; + reg = <0x5>; + }; + + usb3_1@6 { + label = "shelby:white:usb3_1"; + reg = <0x6>; + }; + + usb3_2@7 { + label = "shelby:white:usb3_2"; + reg = <0x7>; + }; + + wps_white@8 { + label = "shelby:white:wps"; + reg = <0x8>; + }; + + wps_amber@9 { + label = "shelby:amber:wps"; + reg = <0x9>; + }; + }; + }; + }; + }; + + gpio-leds { + power { + label = "shelby:white:power"; + }; + + sata { + label = "shelby:white:sata"; + }; + }; +};