From patchwork Tue Sep 26 00:09:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 9970775 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 463096038E for ; Tue, 26 Sep 2017 00:10:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 393A028DBA for ; Tue, 26 Sep 2017 00:10:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 28AD728DB3; Tue, 26 Sep 2017 00:10:45 +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=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CCDDB28DBA for ; Tue, 26 Sep 2017 00:10:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966803AbdIZAKP (ORCPT ); Mon, 25 Sep 2017 20:10:15 -0400 Received: from mail-qk0-f194.google.com ([209.85.220.194]:38620 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965243AbdIZAKL (ORCPT ); Mon, 25 Sep 2017 20:10:11 -0400 Received: by mail-qk0-f194.google.com with SMTP id c69so5882108qke.5; Mon, 25 Sep 2017 17:10:11 -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; bh=NGpGJwZXYyyws1Vy3imBQr8fQmvmh4sJ7IioZRxID88=; b=qsxGfV0wAZiRSaU74QPtGIyoB0J9XZ3yiA6JmlzQTqSdKv+6y6P5twOvzgPIr6kBzF 8ghExZk2oJ8XKKLSeYML82W/V9AdKC5uO6ExRNaGKPQyYoH0WTRh7VAFKfu9m8dzuLW8 ODB2tAtsCep6qf30jHLfwKoCayL4v3JcRSYpqKJYhAPJVAAW62/vD3i20kfwF0Z3eOwV uxKCqbjh/cYCJjY85pP1kqBqvvlx9iH5Tk4DG8mwePWsoDK1ogGdTlfhNifxPSGhMZEP ieeI4YgHBXZ4K7js/UNe1g2cEwvlshj+Eb9rCy4E2DfrhkJpMHxIJ6ie8eGXpngGPyk2 bhEQ== 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; bh=NGpGJwZXYyyws1Vy3imBQr8fQmvmh4sJ7IioZRxID88=; b=BPIWzwl7HxLv//xsAvArzbwT5DjCMrZULT29B5Z2+x66/E1A69E9XpP+9yRMY6I4tz 9VgtEo/0gGm6zZO7Aqo5V2gEvyTDUTte5hbgfgozcsyPKqsm5lOFlb/gegqZMx28iAgD xy+4qkEoo8UlgGcIuwNvhZFLjvjjtwthN3ek0a2nhrWB66KgmwANzjxOcBxS+Jr68nHM kMe3EyyvAmQGX2lxIIE527z5NBrVoY8tqd2bJPjNX0S1zkoQoyOWuC1wxY8dJQnyzU4P xGLamPtac3pFZd7kI+IWQK6uCBZTy8UblK2ocUeBdnqCW34HQ9OC9GQ5vDhtmyh99wLT 7W7Q== X-Gm-Message-State: AHPjjUhQ8Gfu/hvJnp03EobKZekYlziufVq2NUl9LjtdP4ArB1qhpbcP /7VOpQf6WBtiwI0JlVISfbU= X-Google-Smtp-Source: AOwi7QB1xbLiFVrTXzF9/Ho3MW/cdrya+FdpZ6DRIe0XMfpJasWxbRTkxYmy8GUkbfO2LOnHVpWmIg== X-Received: by 10.55.217.75 with SMTP id u72mr12978936qki.91.1506384610584; Mon, 25 Sep 2017 17:10:10 -0700 (PDT) Received: from stb-bld-02.irv.broadcom.com ([192.19.255.250]) by smtp.gmail.com with ESMTPSA id r28sm6014256qte.81.2017.09.25.17.10.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Sep 2017 17:10:09 -0700 (PDT) From: Florian Fainelli To: linux-arm-kernel@lists.infradead.org Cc: Florian Fainelli , Rob Herring , Mark Rutland , Ray Jui , Scott Branden , Jon Mason , bcm-kernel-feedback-list@broadcom.com (maintainer:BROADCOM IPROC ARM ARCHITECTURE), Michael Turquette , Stephen Boyd , Russell King , Arnd Bergmann , Olof Johansson , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list), linux-clk@vger.kernel.org (open list:COMMON CLK FRAMEWORK) Subject: [PATCH 09/10] ARM: dts: Hurricane 2: Add basic support for Ubiquiti UniFi Switch 8 Date: Mon, 25 Sep 2017 17:09:30 -0700 Message-Id: <20170926000931.670-10-f.fainelli@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170926000931.670-1-f.fainelli@gmail.com> References: <20170926000931.670-1-f.fainelli@gmail.com> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add basic board support for the Ubiquiti UniFi Switch 8 port model. This is a small home and office use managed switch based on the BCM53342 switching control SoC. Signed-off-by: Florian Fainelli --- arch/arm/boot/dts/Makefile | 2 + arch/arm/boot/dts/bcm53340-ubnt-unifi-switch8.dts | 85 +++++++++++++++++++++++ 2 files changed, 87 insertions(+) create mode 100644 arch/arm/boot/dts/bcm53340-ubnt-unifi-switch8.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index faf46abaa4a2..6942c48d0d88 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -117,6 +117,8 @@ dtb-$(CONFIG_ARCH_BCM_CYGNUS) += \ bcm911360k.dtb \ bcm958300k.dtb \ bcm958305k.dtb +dtb-$(CONFIG_ARCH_BCM_HR2) += \ + bcm53340-ubnt-unifi-switch8.dtb dtb-$(CONFIG_ARCH_BCM_MOBILE) += \ bcm28155-ap.dtb \ bcm21664-garnet.dtb \ diff --git a/arch/arm/boot/dts/bcm53340-ubnt-unifi-switch8.dts b/arch/arm/boot/dts/bcm53340-ubnt-unifi-switch8.dts new file mode 100644 index 000000000000..f8ac37022ebf --- /dev/null +++ b/arch/arm/boot/dts/bcm53340-ubnt-unifi-switch8.dts @@ -0,0 +1,85 @@ +/* + * DTS for Unifi Switch 8 port + * + * Copyright (C) 2017 Florian Fainelli + * + * Licensed under the GNU/GPL. See COPYING for details. + */ + +/dts-v1/; + +#include "bcm-hr2.dtsi" + +/ { + compatible = "ubnt,unifi-switch8", "brcm,bcm53342", "brcm,hr2"; + model = "Ubiquiti UniFi Switch 8 (BCM53342)"; + + /* Hurricane 2 designs use the second UART */ + chosen { + bootargs = "console=ttyS1,115200 earlyprintk"; + }; + + memory { + reg = <0x00000000 0x08000000>, + <0x68000000 0x08000000>; + }; +}; + +&uart1 { + status = "okay"; +}; + +&qspi { + status = "okay"; + bspi-sel = <0>; + + flash: m25p80@0 { + compatible = "m25p80"; + reg = <0>; + #address-cells = <1>; + #size-cells = <1>; + spi-max-frequency = <12500000>; + spi-cpol; + spi-cpha; + + partition@0 { + label = "u-boot"; + reg = <0x0 0xc0000>; + }; + + partition@c0000 { + label = "u-boot-env"; + reg = <0xc0000 0x10000>; + }; + + partition@d0000 { + label = "shmoo"; + reg = <0xd0000 0x10000>; + }; + + partition@e0000 { + label = "kernel0"; + reg = <0xe0000 0xf00000>; + }; + + partition@fe0000 { + label = "kernel1"; + reg = <0xfe0000 0xf10000>; + }; + + partition@1ef0000 { + label = "cfg"; + reg = <0x1ef0000 0x100000>; + }; + + partition@1ff0000 { + label = "EEPROM"; + reg = <0x1ff0000 0x10000>; + }; + }; +}; + +&pcie0 { + /* Attaches to the internal switch */ + status = "okay"; +};