From patchwork Tue Mar 14 10:39:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 9622993 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 22537604A9 for ; Tue, 14 Mar 2017 10:40:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0BEE4280DE for ; Tue, 14 Mar 2017 10:40:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0088A28541; Tue, 14 Mar 2017 10:40:48 +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=ham 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 70EF1280DE for ; Tue, 14 Mar 2017 10:40:48 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: 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: List-Owner; bh=bRhQfwEX7wV8Hv9z4m4+Rq+5oi/ZihTxU72X+Bui+do=; b=MlBIiXlWMNwavD lLIVRwbd/QTTlrWA6Bmgh6wKfqU1uRhn9dXhCKSaSbm8QVB1/E802Un4yM973ywDrCKXWr1eToO+O 9KZBEQu2y4ZG132EXcZUhr3olb/boKIbKmPIVGEEXswltyMfeT+Zfrmy+zCmze+jDmnACZ/a7oYXT A1V+fZN9/I5btYLPw1C+IQN7/vBLmjkERBTYx4lyPAO7UdhtU9qMg00IomKa9X8O3Kde1Sx5S8Kuh 734IplFnhziswv6WUlLeEI3HrHYGUXnDcNkZkcrjccHI+i8NFdGRwO+kd4AnYpTY96yGHSH5f0fVk KxtPuaLerwAP+3VkZxeQ==; 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 1cnjsg-0004nm-0q; Tue, 14 Mar 2017 10:40:42 +0000 Received: from mail-lf0-x244.google.com ([2a00:1450:4010:c07::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cnjsG-0003bW-7g for linux-arm-kernel@lists.infradead.org; Tue, 14 Mar 2017 10:40:18 +0000 Received: by mail-lf0-x244.google.com with SMTP id y193so13770511lfd.1 for ; Tue, 14 Mar 2017 03:39:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=H7OFVY09nqNCWqeyVXtgH8wgV249kf+HGnlNEShyfNc=; b=uodFRWvxznX9/Xr2nFTOrtm9ic1tq47DsMIg4thijiN/4XulR7ng93JsO2B3iOLZmx +jC1JtSCZDbyZeUu7SKQ67qMcWeiiw/2NvA+ETLD41k6XN/oSlEyTUh0a1Fn+p5tEOB2 Sj8lM7UNzmKhYGw8hpGKe0KvLRkgP+4eFmoHBHa935aewFw3sNBXu6JNYMLtEGFIeRWs ngaog6no6x8cZKOxzGm3WUb3BZ+TG+KHrM48Dt8nhsicIJfYzUkkanKPoai1EpbhyaaJ U/wnP1QnAev2225+E+TptPpUgE+57saS9I1SLPfRhnjm+UT9wGbM2R3zHm65/QYflJ3B NhKA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=H7OFVY09nqNCWqeyVXtgH8wgV249kf+HGnlNEShyfNc=; b=NCVpPa4koTUaApLZzLY0EVailXsvhnRzra4Rsu0LFgFXnoqyN24pz5TyfhpvyxAf9l cOnN1/xKhZiQe3QlfNRUBhJHQ2DJ7zSYRKRlGa5kuMmd/3mYyWIJMxTVBGcfwLgYKToJ Ouuob2rMR2DlzFeHePA7OCZwlr/J9xDQgbjRR9RSRgTu2WC9SagOPY+pqlQR1l0oT6Mv 2hWWqA204jlC7fl0RZGX5oYiVC7oTZXf44N4fj0tX34hC6p/AO2Th0i5U0k9VwzyiN34 ACKCFeJkjv9NwEvyFiGVzP4Z7huMO86TuVCTT/ZTMuQ7bHyBCV+68ga0VX50j94smRqB pQSw== X-Gm-Message-State: AMke39mJAYzkAunrAWXArIyWXfkQJoUFtyCUs1Xa+g5AZ48tn8AxgTzFpEXU33HRdqtR4Q== X-Received: by 10.25.32.9 with SMTP id g9mr9605101lfg.7.1489487991224; Tue, 14 Mar 2017 03:39:51 -0700 (PDT) Received: from linux-samsung.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id h41sm4215895lji.59.2017.03.14.03.39.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Mar 2017 03:39:50 -0700 (PDT) From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= To: Florian Fainelli Subject: [PATCH V2] ARM: dts: BCM5301X: Add support for TP-LINK Archer C5 V2 Date: Tue, 14 Mar 2017 11:39:41 +0100 Message-Id: <20170314103941.1478-1-zajec5@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170311121453.18534-1-zajec5@gmail.com> References: <20170311121453.18534-1-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170314_034016_497356_8BBE5620 X-CRM114-Status: GOOD ( 16.33 ) 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 , devicetree@vger.kernel.org, Hauke Mehrtens , Russell King , Rob Herring , bcm-kernel-feedback-list@broadcom.com, =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , linux-arm-kernel@lists.infradead.org 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 From: Rafał Miłecki This is BCM47081A0 based home router with BCM43217 and BCM4352 wireless chipsets. Signed-off-by: Rafał Miłecki --- V2: Don't specify console parameters in bootargs. A separated patch has been sent to handle this properly: [PATCH 1/2] ARM: dts: BCM5301X: Specify serial console parameters --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/bcm47081-tplink-archer-c5-v2.dts | 98 ++++++++++++++++++++++ 2 files changed, 99 insertions(+) create mode 100644 arch/arm/boot/dts/bcm47081-tplink-archer-c5-v2.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 595c74a35a7b..1e24f5db4835 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -88,6 +88,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \ bcm47081-buffalo-wzr-900dhp.dtb \ bcm47081-luxul-xap-1410.dtb \ bcm47081-luxul-xwr-1200.dtb \ + bcm47081-tplink-archer-c5-v2.dtb \ bcm4709-asus-rt-ac87u.dtb \ bcm4709-buffalo-wxr-1900dhp.dtb \ bcm4709-linksys-ea9200.dtb \ diff --git a/arch/arm/boot/dts/bcm47081-tplink-archer-c5-v2.dts b/arch/arm/boot/dts/bcm47081-tplink-archer-c5-v2.dts new file mode 100644 index 000000000000..a854a5174b7f --- /dev/null +++ b/arch/arm/boot/dts/bcm47081-tplink-archer-c5-v2.dts @@ -0,0 +1,98 @@ +/* + * Copyright (C) 2017 Rafał Miłecki + * + * Licensed under the ISC license. + */ + +/dts-v1/; + +#include "bcm47081.dtsi" + +/ { + compatible = "tplink,archer-c5-v2", "brcm,bcm47081", "brcm,bcm4708"; + model = "TP-LINK Archer C5 V2"; + + chosen { + bootargs = "earlycon"; + }; + + memory { + reg = <0x00000000 0x08000000>; + }; + + leds { + compatible = "gpio-leds"; + + 2ghz { + label = "bcm53xx:green:2ghz"; + gpios = <&chipcommon 0 GPIO_ACTIVE_HIGH>; + }; + + lan { + label = "bcm53xx:green:lan"; + gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>; + }; + + usb2-port1 { + label = "bcm53xx:green:usb2-port1"; + gpios = <&chipcommon 2 GPIO_ACTIVE_HIGH>; + }; + + power { + label = "bcm53xx:green:power"; + gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "default-on"; + }; + + wan-green { + label = "bcm53xx:green:wan"; + gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>; + }; + + wps { + label = "bcm53xx:green:wps"; + gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>; + }; + + wan-amber { + label = "bcm53xx:amber:wan"; + gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>; + }; + + 5ghz { + label = "bcm53xx:green:5ghz"; + gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>; + }; + + usb2-port2 { + label = "bcm53xx:green:usb2-port2"; + gpios = <&chipcommon 13 GPIO_ACTIVE_HIGH>; + }; + }; + + gpio-keys { + compatible = "gpio-keys"; + #address-cells = <1>; + #size-cells = <0>; + + rfkill { + label = "WiFi"; + linux,code = ; + gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>; + }; + + restart { + label = "Reset"; + linux,code = ; + gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&spi_nor { + status = "okay"; +}; + +&usb2 { + vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>; +};