From patchwork Tue Jan 17 18:22:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 9521667 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 81B6F601C3 for ; Tue, 17 Jan 2017 18:23:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 84C9E28507 for ; Tue, 17 Jan 2017 18:23:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 795A328560; Tue, 17 Jan 2017 18:23:14 +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 E16D028507 for ; Tue, 17 Jan 2017 18:23:13 +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 1cTYPW-0004X0-Tn; Tue, 17 Jan 2017 18:23:10 +0000 Received: from mail-pg0-x244.google.com ([2607:f8b0:400e:c05::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cTYPJ-0004GA-BI for linux-arm-kernel@lists.infradead.org; Tue, 17 Jan 2017 18:22:59 +0000 Received: by mail-pg0-x244.google.com with SMTP id 194so8597990pgd.0 for ; Tue, 17 Jan 2017 10:22:38 -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=oEz5Nctc2GQXEY5x1iKzPHQOU1I8r1AgJooLqcQKvYE=; b=ZZKBq9azKlWuAM4qj4O29ECdTSyHKxh8GZe8RmVdXgwQVs0NLTTx5yNSsPZbTNxwTi hVMyg8AwDfAn1Y0aWBAfuuNWRqre8Rw6c/wW8qYiZvxjycYlHqSQuZl0t5O8onWiVwtR 50VtrEgjg8vf0UF3v7OHRgntNTMrS23RP4mkrmwDJbZD+MsVIT1WCh2ad6DzWnx1gZKn pkqqbYJN3ix1sWqerWRc0MS0uUgHGRTrRv4cS4WPlMk7jkwE4uTv52dYmEmmE+/vsiI2 65keeUOSkmBaNRRY+9tmLDZEJ1NjXWj3Ffzc/BZ0iNuI4yWHpjK59Hh6wnY1UD2ubaoy bThg== 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=oEz5Nctc2GQXEY5x1iKzPHQOU1I8r1AgJooLqcQKvYE=; b=kEYoc0F00L1PRCldMkkIZ7Jz6g4R7jGCiL/R7UAQ70WrOmtH0qeAsyPesy/3JEBqyP VNjfdC31w6gFrtfljcA/dyZdXmcCshzfiOk83CsDEKy70GSKIS8abnMZg7k2H32CSJ8Y RejZArD+dpYC5ATvuSUoSbPXlyViPfw57aBIJv8GbqClwokAq8niw0bL1G74IG8FoXmM P0fNj11Xsp22R/nXjgMicMDFDP3WR0W3JSw8/SAE82rvjmyxCte0uNQDgHK6VvlTBksd p9ygHm65O2AT2DnSheRul6kbtCgNpxZ4rfc8r130HlqPs+QQ0S8nz0l4q8Lq1ECej0+p sBtg== X-Gm-Message-State: AIkVDXJsaPu/S+hQX8AnFknXRSZ3RTp8ahrU2CR9TMwdBn3nKYNPiH9NraNaqZCgK0XX2w== X-Received: by 10.98.31.136 with SMTP id l8mr45458926pfj.184.1484677358244; Tue, 17 Jan 2017 10:22:38 -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.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Jan 2017 10:22:37 -0800 (PST) From: Florian Fainelli To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 1/8] ARM: dts: armada-370-rd: Utilize new DSA binding Date: Tue, 17 Jan 2017 10:22:17 -0800 Message-Id: <20170117182224.32212-2-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_102257_440978_E40D6280 X-CRM114-Status: GOOD ( 10.97 ) 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. Tested-by: Andrew Lunn Signed-off-by: Florian Fainelli --- arch/arm/boot/dts/armada-370-rd.dts | 44 +++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/arch/arm/boot/dts/armada-370-rd.dts b/arch/arm/boot/dts/armada-370-rd.dts index c3fd6e49212f..ade956cbd41a 100644 --- a/arch/arm/boot/dts/armada-370-rd.dts +++ b/arch/arm/boot/dts/armada-370-rd.dts @@ -173,6 +173,8 @@ }; dsa { + status = "disabled"; + compatible = "marvell,dsa"; #address-cells = <2>; #size-cells = <0>; @@ -235,6 +237,48 @@ phy0: ethernet-phy@0 { reg = <0>; }; + + switch: switch@10 { + compatible = "marvell,mv88e6085"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x10>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + label = "lan0"; + }; + + port@1 { + reg = <1>; + label = "lan1"; + }; + + port@2 { + reg = <2>; + label = "lan2"; + }; + + port@3 { + reg = <3>; + label = "lan3"; + }; + + port@5 { + reg = <5>; + label = "cpu"; + ethernet = <ð1>; + fixed-link { + speed = <1000>; + full-duplex; + }; + }; + }; + }; };