From patchwork Fri May 4 16:08:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Dan Haab X-Patchwork-Id: 10381037 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 57C1F603B4 for ; Fri, 4 May 2018 16:19:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3F1C929455 for ; Fri, 4 May 2018 16:19:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 33AC3294EC; Fri, 4 May 2018 16:19:02 +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=-2.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 9BC1E29455 for ; Fri, 4 May 2018 16:19:01 +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=eeaouuDGs29cHZQODOUE8r7/c/4RIwGFTtufr4ieQJw=; b=H4R F12Pi6f3dTFFLew1moZIfqv0t4JLoOxWQ/qcVzns5mimdk32j3xbNYMClKaJtwm7sVas2zadbGzWf YWYYuG2t6smks/N7/R7dFY7l9VIoMKMY2msGE/WaH5+axlURnJFK43wbpAWGdbLocumMcQp7btk5f EKDhlZOBWxEqTGtu3TyR6OSjJdQoQLnpOuIdcXxv36TW2GE1rR218EoVn6m4O+b813FEyw3gcJMmW OdpQ3DnViO1aUeNDfgLAiWu6ui8oi5HWODTk0rto2QqqkhzDV88E1WiidU94y3aNixk3627bpGB6N CrWR7mp6tqOeWEcO2MEE8g/2dDvnGVQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fEdQ8-0000Sc-2x; Fri, 04 May 2018 16:18:56 +0000 Received: from mail-pg0-x244.google.com ([2607:f8b0:400e:c05::244]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fEdGX-0002Af-7T for linux-arm-kernel@lists.infradead.org; Fri, 04 May 2018 16:09:22 +0000 Received: by mail-pg0-x244.google.com with SMTP id n9-v6so15752537pgq.5 for ; Fri, 04 May 2018 09:08:58 -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; bh=QDZa18VsJqcFkbUDAU0f6LYISZccJr/l3trjg9pMFHs=; b=n30tReBBlMAHBf1PW+ezmpW0QCLF2ypqI2EF5N6Rfx8asK0PGSvzbmJS3kLOND5gJQ 0Gw6Ok6KtDhW8qQcW2VvmvqgOOB+b2yFcxIfByipazjRiWfLFly2j91cOkhZIWPR8Eb1 rjre0BGHjIXsxCe0Dnp9JhflHDNCIfHL9VHgwE99XiIc8XAr6s3c/viGjsiROXM2TwP1 AHK5lb6cPrQuS4ViPeBwK9wqchYv/ebcBZeEC0orgJJcFUaZtw0rNdOz3kJgGijGlBEg wYHDUv/KkLuW3bjL9PgFdAdCXNwNVcewN+IemRW00GGiv4ceIvx9Pz1rNP0VPWRC6ujI THyA== 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=QDZa18VsJqcFkbUDAU0f6LYISZccJr/l3trjg9pMFHs=; b=XPODd8LTEzuZ/MX/w5Je2aNLk4YY14UzaHDzkKPrTKjRX9JkH5QG6YiY8vDjtQ0D05 2i1qPUvUV/etXQaw40v59x4DbqMzlDnPhy3jwxtUBkxaNkxlLdPcSClI3JdmIrxWYmxb zulXP2dtupVeOP7JmHucjeIPR+nbtVGMqw7VjEazvp1+3S4l5D3M3hBJPQPpCqM+F+ds /Th+SGe2sAQYHyHyuXetD34XPaRchR6YecMgRNxsb5+b4/NA7msptcSu4+w27Befk3y/ AwcW7uSJOM8Ody1tInz4xiLp6MMyuhaPk2cPi6Q4rZoe067OJoZvJbY8IQ66byEn8hz3 fDWw== X-Gm-Message-State: ALQs6tDRARxhbhG41+8uhXD9a4QgzghJbe1NqVCcJCe5fC76EGyKmyDG 2AOSeRLRSARGQiajA/BgMqdLBPn5 X-Google-Smtp-Source: AB8JxZpITLIwhX/7v15XtGkcVV5wZXmBzQsfZTme6NdFcYHfdGiskP1MCFcdao/COzwPYLse3faFWQ== X-Received: by 2002:a17:902:6549:: with SMTP id d9-v6mr28618045pln.196.1525450137964; Fri, 04 May 2018 09:08:57 -0700 (PDT) Received: from localhost.localdomain ([67.139.187.132]) by smtp.gmail.com with ESMTPSA id t80-v6sm25511046pgb.36.2018.05.04.09.08.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 04 May 2018 09:08:57 -0700 (PDT) From: Dan Haab X-Google-Original-From: Dan Haab To: Florian Fainelli Subject: [PATCH 1/2] ARM: dts: BCM5301X: Add DT for Luxul XWR-3150 V1 Date: Fri, 4 May 2018 10:08:43 -0600 Message-Id: <1525450124-21665-1-git-send-email-dan.haab@luxul.com> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180504_090901_493975_8BB9A8A6 X-CRM114-Status: GOOD ( 16.08 ) 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, Jon Mason , Hauke Mehrtens , Rob Herring , bcm-kernel-feedback-list@broadcom.com, =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , Dan Haab , linux-arm-kernel@lists.infradead.org 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 Luxul XWR-3150 is a wireless router similar to the XWR-3100 except: 1) It has more RAM 2) Its NAND controller in running in BCH8 mode 3) LAN ports LEDs are hardware controlled Signed-off-by: Dan Haab Acked-by: Rafał Miłecki --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts | 77 ++++++++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 7e24249..a00b279 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -104,6 +104,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \ bcm47094-luxul-abr-4500.dtb \ bcm47094-luxul-xbr-4500.dtb \ bcm47094-luxul-xwr-3100.dtb \ + bcm47094-luxul-xwr-3150-v1.dtb \ bcm47094-netgear-r8500.dtb \ bcm94708.dtb \ bcm94709.dtb \ diff --git a/arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts b/arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts new file mode 100644 index 0000000..bdad726 --- /dev/null +++ b/arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts @@ -0,0 +1,77 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2018 Luxul Inc. + */ + +/dts-v1/; + +#include "bcm47094.dtsi" +#include "bcm5301x-nand-cs0-bch8.dtsi" + +/ { + compatible = "luxul,xwr-3150-v1", "brcm,bcm47094", "brcm,bcm4708"; + model = "Luxul XWR-3150 V1"; + + chosen { + bootargs = "earlycon"; + }; + + memory { + reg = <0x00000000 0x08000000 + 0x88000000 0x18000000>; + }; + + leds { + compatible = "gpio-leds"; + + power { + label = "bcm53xx:green:power"; + gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>; + linux,default-trigger = "default-on"; + }; + + usb3 { + label = "bcm53xx:green:usb3"; + gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>; + trigger-sources = <&ohci_port1>, <&ehci_port1>, + <&xhci_port1>; + linux,default-trigger = "usbport"; + }; + + status { + label = "bcm53xx:green:status"; + gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>; + linux,default-trigger = "timer"; + }; + + 2ghz { + label = "bcm53xx:green:2ghz"; + gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>; + }; + + 5ghz { + label = "bcm53xx:green:5ghz"; + gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>; + }; + }; + + gpio-keys { + compatible = "gpio-keys"; + #address-cells = <1>; + #size-cells = <0>; + + restart { + label = "Reset"; + linux,code = ; + gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&usb3 { + vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>; +}; + +&spi_nor { + status = "okay"; +};