From patchwork Sun Jan 24 21:29:24 2016 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: 572369 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id CDCCF140774 for ; Mon, 25 Jan 2016 08:31:33 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=awL5H+ou; dkim-atps=neutral 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 1aNSEW-0006HH-VO; Sun, 24 Jan 2016 21:30:04 +0000 Received: from mail-lf0-x22a.google.com ([2a00:1450:4010:c07::22a]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aNSEU-0005vn-CU for linux-arm-kernel@lists.infradead.org; Sun, 24 Jan 2016 21:30:03 +0000 Received: by mail-lf0-x22a.google.com with SMTP id c192so73934260lfe.2 for ; Sun, 24 Jan 2016 13:29:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=xsQP7xY/lorWgtqbE1c9elAlfHOa0Lya45kiwZ4vrT4=; b=awL5H+ouUj39QP+FaEeid7eP5R66WF4TRvm1CP7sHxGSoLtUhnmqakgltNOkg2HtY6 IDZzVEE5eVBKSX2RcZdvV7+r9mID1nUL/FnbUAfeA/OuyVnLVCs/v94nF/MUZ6wTY3Yz 45vjfL4Iq9qy3xpUIrAHvIffEqXtlF/gW2yDR1YJUzoxMm12FiadMWML/agsRqegDeTd drzX80XYvcANhAzZYvt/MnQEJ+X4q3Pz2g8+TxoQVG49YP3D007YGftuvpVqVLs+egfB 9IF+bCvTxN+i7twykGkAoZy6CAozYtjARSLSAV3XRccJfagv9/P2t1LTFrw/z9uW2wyJ jvhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-type:content-transfer-encoding; bh=xsQP7xY/lorWgtqbE1c9elAlfHOa0Lya45kiwZ4vrT4=; b=OxY3GO6KFox8BMh/XA1ggwOqd9H9Q/NohSOxSWP0haI4qMt9JuC6BHKIXIDf1u8z4c 0q38M2rohtUE55nBcap0LRwh0t9k/RL1mtSPQRI9Xg83nwQuNX5MvAD12Ci3rcGpEEkp rR1pK3E9rymEd2zN7arbBa3J5zKlQz53k+QPb9O7FoGq6+Lh1fA48xzOJeCrqVCYnY0g jJM9EuaWGa3IaCtpoSueg80L4nZEsu2bROGRgVJ2zU61Hg6juyzE5xmkzxfhK/3773QZ w92q+D/nVy2UrmIZaofPyQYX8uDmKTZgdTaVwEHJznH6/fajuPBFdBq2kVX3S1WTEPrp Molw== X-Gm-Message-State: AG10YOQLzrTZta0YgG8KFEr+4yK7pI98eJCiMowj8wVLiE3d3eRQKug1uQz+MecDmHMWSQ== X-Received: by 10.25.18.162 with SMTP id 34mr4386669lfs.52.1453670979863; Sun, 24 Jan 2016 13:29:39 -0800 (PST) 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 xe8sm2248105lbb.41.2016.01.24.13.29.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Jan 2016 13:29:38 -0800 (PST) From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= To: Florian Fainelli Subject: [PATCH] ARM: BCM5301X: Add DT for D-Link DIR-885L Date: Sun, 24 Jan 2016 22:29:24 +0100 Message-Id: <1453670964-23572-1-git-send-email-zajec5@gmail.com> X-Mailer: git-send-email 1.8.4.5 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160124_133002_671925_AC6CA008 X-CRM114-Status: GOOD ( 16.54 ) X-Spam-Score: -2.5 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a00:1450:4010:c07:0:0:0:22a listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (zajec5[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (zajec5[at]gmail.com) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 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 X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Hauke Mehrtens , =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , Russell King , linux-arm-kernel@lists.infradead.org, Arnd Bergmann Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org Signed-off-by: Rafał Miłecki --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/bcm47094-dlink-885l.dts | 112 ++++++++++++++++++++++++++++++ 2 files changed, 113 insertions(+) create mode 100644 arch/arm/boot/dts/bcm47094-dlink-885l.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index eab8a7f..bf9c185 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -76,6 +76,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \ bcm4709-buffalo-wxr-1900dhp.dtb \ bcm4709-netgear-r7000.dtb \ bcm4709-netgear-r8000.dtb \ + bcm47094-dlink-885l.dtb \ bcm94708.dtb \ bcm94709.dtb \ bcm953012k.dtb diff --git a/arch/arm/boot/dts/bcm47094-dlink-885l.dts b/arch/arm/boot/dts/bcm47094-dlink-885l.dts new file mode 100644 index 0000000..bc622d9 --- /dev/null +++ b/arch/arm/boot/dts/bcm47094-dlink-885l.dts @@ -0,0 +1,112 @@ +/* + * Broadcom BCM470X / BCM5301X ARM platform code. + * DTS for D-Link DIR-885L + * + * Copyright (C) 2016 Rafał Miłecki + * + * Licensed under the GNU/GPL. See COPYING for details. + */ + +/dts-v1/; + +#include "bcm4708.dtsi" +#include "bcm5301x-nand-cs0-bch8.dtsi" + +/ { + compatible = "dlink,dir-885l", "brcm,bcm47094", "brcm,bcm4708"; + model = "D-Link DIR-885L"; + + chosen { + bootargs = "console=ttyS0,115200 earlyprintk"; + }; + + memory { + reg = <0x00000000 0x08000000 + 0x88000000 0x08000000>; + }; + + nand: nand@18028000 { + nandcs@0 { + partition@0 { + label = "firmware"; + reg = <0x00000000 0x08000000>; + }; + }; + }; + + leds { + compatible = "gpio-leds"; + + power-white { + label = "bcm53xx:white:power"; + gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>; + linux,default-trigger = "default-on"; + }; + + wan-white { + label = "bcm53xx:white:wan"; + gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>; + linux,default-trigger = "default-off"; + }; + + power-amber { + label = "bcm53xx:amber:power"; + gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>; + linux,default-trigger = "default-off"; + }; + + wan-amber { + label = "bcm53xx:amber:wan"; + gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>; + linux,default-trigger = "default-off"; + }; + + usb3-white { + label = "bcm53xx:white:usb3"; + gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>; + linux,default-trigger = "default-off"; + }; + + 2ghz { + label = "bcm53xx:white:2ghz"; + gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>; + linux,default-trigger = "default-off"; + }; + + 5ghz { + label = "bcm53xx:white:5ghz"; + gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>; + linux,default-trigger = "default-off"; + }; + }; + + gpio-keys { + compatible = "gpio-keys"; + #address-cells = <1>; + #size-cells = <0>; + + wps { + label = "WPS"; + linux,code = ; + gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>; + }; + + /* Switch: router / extender */ + extender { + label = "Extender"; + linux,code = ; + gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>; + }; + + restart { + label = "Reset"; + linux,code = ; + gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&uart0 { + status = "okay"; + clock-frequency = <125000000>; +};