From patchwork Tue Feb 14 08:59:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ralph Sennhauser X-Patchwork-Id: 9571475 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 4C6FE601E7 for ; Tue, 14 Feb 2017 09:00:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3CF28271BC for ; Tue, 14 Feb 2017 09:00:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 318FA27813; Tue, 14 Feb 2017 09:00:24 +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 7EB882766D for ; Tue, 14 Feb 2017 09:00:23 +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=MWDl/GxjZItDwvMbn7Ef+udy9v3Qud0uzY4JJFSuFY8=; b=Gch szF9PhTk6hVHSwmDJ7lmqqUHDojrZkpvIkn3Mnv6WJXHElr0CujAvOFPuR/Tda2R4x/3JhE7LWKOC BRZv0NlnHPdgIpJWMb/wm053vJH17IVP+2BqWwMHzMblJDFPqN+8Nja/rtjSmqqa1mrdsovmpo5Xm yKtaRziS3b+Wcb12b8rqyesNbtBdU4rdB3wJoi1GP15hxGHRwupzIsEbFVGSVhRxQy9xx2v5MQQw1 sJACNF9guLnSFZYYilNPE8Qtvguu0VWQoCwYQkLoOo+P9crDfkUpp9wDa/p28TMyf0sjq2bEE9Jff 2B+wGqthUamVqujLqi7GU+k4V8BRr+w==; 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 1cdYy9-0001ED-4a; Tue, 14 Feb 2017 09:00:17 +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 1cdYy0-0008Q6-0J for linux-arm-kernel@lists.infradead.org; Tue, 14 Feb 2017 09:00:14 +0000 Received: by mail-wm0-x244.google.com with SMTP id r18so2423264wmd.3 for ; Tue, 14 Feb 2017 00:59:46 -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=6OGXFCNjncfMkh7AQxnk1+U/zpfXobHPQc0ZdyFtgpY=; b=ERYruF9DJvjmHWzVqFZSSkHS4/uhSwv8bUQzhaZAz5ACuaZMDRe8BaOEx2Z15UqlGr LYI7M0c2bD3aMWxhrUU/gO/hWzj454wzx/lsDqtleMcczlaOAL4cmamFfLj2LNz6gF3d bsl9Uaei2xRH2uL1Sy7wfQFy23JpK/AYYDqlsZuQsQEK3O5qjCxi7OjyFLgLlZmWlsUq teC8WrLe89tZ1aELnFsJ2NA71dFkrG25Nu6WP0ML/iFnianwszwuhfP+gaIaSnEOZUiq DyeyaZ2qfqM06o7x2gERsjuN56+jnw8+F6KioAlkjtjPS4HG1FQ5K/6Wp8+qOJgIF+aE XIZA== 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=6OGXFCNjncfMkh7AQxnk1+U/zpfXobHPQc0ZdyFtgpY=; b=Th++KiVKSRvt5lXWSkDb/4bpYhN4clkyOrMe02o4unxovDA0ht0D0K5tDZhwrpsNRx jlfytaj2l/7vZ+DRPrs/S2TNZn6avuWcmed6XquTPk1zdCg81qg1a45GKFVspvG9mwaq UMtYs+yhjtUTiSNfp+JpBSGSb7yWSUNm0UxjfmS3K+14meNtlMc2TTTK52CSulzkpP9L x5lF1UCW+1Bk2LSu83kwPDIiv3/WhmgmuG9LCJL7IZfP/1WJU8HW2sz1XQMvHqE7fcSA MjUkmRWuA0K91ff9OBLZmw5FYf04cFGOAokZ3VwHQi9YDLQZZTa6lz6H7q4g5J2F6WJY /0kg== X-Gm-Message-State: AMke39kB6960vz8dUaXLLPOHJwFZu0/FS8yCYnjmzjWs8IGZEgLx4ysLvalb8oKUJY//Ig== X-Received: by 10.28.137.211 with SMTP id l202mr2025921wmd.88.1487062785114; Tue, 14 Feb 2017 00:59:45 -0800 (PST) Received: from localhost.lan ([2001:470:b664:10::11f]) by smtp.googlemail.com with ESMTPSA id n13sm17073712wrn.40.2017.02.14.00.59.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Feb 2017 00:59:44 -0800 (PST) From: Ralph Sennhauser To: Gregory Clement Subject: [PATCH] ARM: mvebu: add support for the Linksys WRT1900ACS (Shelby) Date: Tue, 14 Feb 2017 09:59:17 +0100 Message-Id: <20170214085919.3997-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_010008_237914_4CE524FA X-CRM114-Status: GOOD ( 17.77 ) 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: http://tinyurl.com/j8lz83a CC: Imre Kaloz Signed-off-by: Ralph Sennhauser Signed-off-by: Imre Kaloz Reviewed-by: Andrew Lunn Acked-by: Jason Cooper --- 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"; + }; + }; +};