From patchwork Tue Jan 17 18:22:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 9521671 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 9E9D3601C3 for ; Tue, 17 Jan 2017 18:23:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A2C7528507 for ; Tue, 17 Jan 2017 18:23:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9799D28560; Tue, 17 Jan 2017 18:23: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=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 312E028507 for ; Tue, 17 Jan 2017 18:23:48 +0000 (UTC) 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 1cTYQ4-0005Mm-O7; Tue, 17 Jan 2017 18:23:44 +0000 Received: from mail-pf0-x244.google.com ([2607:f8b0:400e:c00::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cTYPS-0004GO-3X for linux-arm-kernel@lists.infradead.org; Tue, 17 Jan 2017 18:23:09 +0000 Received: by mail-pf0-x244.google.com with SMTP id y143so16737523pfb.1 for ; Tue, 17 Jan 2017 10:22:49 -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:in-reply-to:references; bh=m3ILOcxhedSj+jjy9ipWEMRhG39yXeyv1CGFEDpNb+s=; b=iapO6JD9cSyBIg9uNv4Gk/2N1W02C1SAlHHf5y+mxZT7JKajmE6tH7EOeR2086MpUP nYYk0jdLuyW8zAaeeyx35PAD0sBTWNOHiNeHQzShC9MURbm8mzjCXtQCUAk95CdqyfeU W2G5gmdl54ZNJ9gwyk9C/YMhu+Tq3qCfN+FzKA2egpR+MlUQpMdjE8bElyjCkk7nHJLI uIkyvaeutPSlbXVF6vNK+vjXghahsnl3qrIvCKa7VyEoL6W14pGaJyTLOiUjEhqwLSPS TKhSeYntlGhMdG5dNBgXzc+Y0hgEI0/WTRcD8HbBKg7A6iG7lRjtj9DO8L4HloyxZjLQ ZjCA== 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=m3ILOcxhedSj+jjy9ipWEMRhG39yXeyv1CGFEDpNb+s=; b=eGlxUD649yw8bdMJy0JYnJPsNrdgZhbn7e/agLrkE0WOJtUsXAUbaCyH2wonHTgHlL CfWmAV7jhFF6/uBh+AunGvLfX8NrR32g93voD8ZtizkmUdCN2A/yIwMc6DmiM8mBihQr pXx3FslyoWi6zNanQv1m9kgERHFcme2gFCvGA+H/eDkBnoYkT12/o5Z6hjJhyb+UrjCK rXLushvWcfrAXRYKPGPis6ZWlaz8fEG9tUw48gS/KKNkjBW/Wha2cyQs15v04RcOw11A LWMtYKinJkroS/o6b2DNWTVguuMof8qeH7X2KIJjstNnwcJPTnnhS8xrxea7LXS9hxlX 1Gng== X-Gm-Message-State: AIkVDXK2RXwWiApXoP9/aSBrwUTeCzQOf9jXKhBgd+VwPU9rklbBYiZOWEnxIfrL0DzmYg== X-Received: by 10.99.105.70 with SMTP id e67mr46774924pgc.99.1484677368895; Tue, 17 Jan 2017 10:22:48 -0800 (PST) Received: from fainelli-desktop.broadcom.com ([192.19.255.250]) by smtp.gmail.com with ESMTPSA id w65sm57415995pfw.9.2017.01.17.10.22.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Jan 2017 10:22:47 -0800 (PST) From: Florian Fainelli To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 6/8] ARM: dts: kirkwood-linksys-viper: Utilize new DSA binding Date: Tue, 17 Jan 2017 10:22:22 -0800 Message-Id: <20170117182224.32212-7-f.fainelli@gmail.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170117182224.32212-1-f.fainelli@gmail.com> References: <20170117182224.32212-1-f.fainelli@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170117_102306_478133_728BF269 X-CRM114-Status: GOOD ( 10.32 ) 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 , Florian Fainelli , Jason Cooper , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , vivien.didelot@savoirfairelinux.com, Russell King , open list , Rob Herring , Gregory Clement , 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 Utilize the new DSA binding, introduced with commit 8c5ad1d6179d ("net: dsa: Document new binding"). The legacy binding node is kept included, but is marked disabled. Reviewed-by: Andrew Lunn Signed-off-by: Florian Fainelli --- arch/arm/boot/dts/kirkwood-linksys-viper.dts | 49 ++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/arch/arm/boot/dts/kirkwood-linksys-viper.dts b/arch/arm/boot/dts/kirkwood-linksys-viper.dts index 345fcac48dc7..df7851820507 100644 --- a/arch/arm/boot/dts/kirkwood-linksys-viper.dts +++ b/arch/arm/boot/dts/kirkwood-linksys-viper.dts @@ -70,6 +70,8 @@ }; dsa { + status = "disabled"; + compatible = "marvell,dsa"; #address-cells = <2>; #size-cells = <0>; @@ -207,6 +209,53 @@ &mdio { status = "okay"; + + switch@10 { + compatible = "marvell,mv88e6085"; + #address-cells = <1>; + #size-cells = <0>; + reg = <16>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + label = "ethernet1"; + }; + + port@1 { + reg = <1>; + label = "ethernet2"; + }; + + port@2 { + reg = <2>; + label = "ethernet3"; + }; + + port@3 { + reg = <3>; + label = "ethernet4"; + }; + + port@4 { + reg = <4>; + label = "internet"; + }; + + port@5 { + reg = <5>; + label = "cpu"; + ethernet = <ð0port>; + fixed-link { + speed = <1000>; + full-duplex; + }; + }; + }; + }; }; &uart0 {