Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4790839imm; Mon, 14 May 2018 13:09:03 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpMaYANmAObbCcS1eHMr4EtPEejSRMRS4b14oOzo1tCkt0OnI5tJWq+pfYp02uOtu5Stq3H X-Received: by 2002:a62:c413:: with SMTP id y19-v6mr11847923pff.97.1526328543648; Mon, 14 May 2018 13:09:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526328543; cv=none; d=google.com; s=arc-20160816; b=eOSkcqpysKoSnCoQSeTVuZi8Y8N45nJgsZV4OITrr1YbIMKC6hG0rETEPSQQBAaqiE H91eWflzT78xx1GQVjXaNVjpujeNH1Eg0N3DotzzdVnhlinE5ewx70qkbplrUJtAKB40 QAJJ1hzSSx7qbnwoJH9FyflYhHCTymrKbRtZd05ybrFjIq6eD8PoW/lu9GYDD2uQ4hm2 gR7OIuEpna1xDbrf9LvnjP5hUae2/gIcgoxj2Qz7mS/U5yjPdQVomGBQTvH/BXk2aKuw johis4WHTmZN49aikoRM2Fg80mkZBeauchtJrAGf7BP8HnpJ2Sqpc/xQNcfrimXDB21J dNXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=0AYQLFE7Iwn4eZk6w+AgYk3L5SCoIpMpAopPbgR/VjA=; b=G89noTHZad7moD3fxf/0U1r4LzaEEklQ+ZECSsRvY3j+kOEem6IDNOrv56xwSU+9bz y6VifywkoGS+U1GP6AEeynuMfFuOmKfzosvAxBz+nzSI7qeho60uiCrytQ1ue50nsg/W XmmZOlY7W3RNSsVnjGh+7QSndzivuvCub1APoNz2EX3M56YFbqdLWK6lVCT+v6UqdRk8 5jIVZMPq9ccKbz+6ufItWWgWtc5Fpf1xSjb44zoA73YYogi3fTiYe3zE3TkI/Wl4IZAC mY6kr9wI6ryphUJrZsliVxcBd52RCBF6WtcQDwuateLSh7jpJz3jyKyiG85ZmKQUa50K O7qg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l1-v6si5749647pgf.221.2018.05.14.13.08.49; Mon, 14 May 2018 13:09:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752246AbeENUHQ (ORCPT + 99 others); Mon, 14 May 2018 16:07:16 -0400 Received: from mail.bootlin.com ([62.4.15.54]:32947 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752039AbeENUFZ (ORCPT ); Mon, 14 May 2018 16:05:25 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 9F075208BA; Mon, 14 May 2018 22:05:22 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (unknown [88.191.26.124]) by mail.bootlin.com (Postfix) with ESMTPSA id 7B471208B2; Mon, 14 May 2018 22:05:22 +0200 (CEST) From: Alexandre Belloni To: "David S . Miller" Cc: Allan Nielsen , razvan.stefanescu@nxp.com, po.liu@nxp.com, Thomas Petazzoni , Andrew Lunn , Florian Fainelli , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@linux-mips.org, Alexandre Belloni , James Hogan Subject: [PATCH net-next v3 5/7] MIPS: mscc: Add switch to ocelot Date: Mon, 14 May 2018 22:04:58 +0200 Message-Id: <20180514200500.2953-6-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180514200500.2953-1-alexandre.belloni@bootlin.com> References: <20180514200500.2953-1-alexandre.belloni@bootlin.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ocelot has an integrated switch, add support for it. Cc: James Hogan Signed-off-by: Alexandre Belloni --- arch/mips/boot/dts/mscc/ocelot.dtsi | 88 +++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) diff --git a/arch/mips/boot/dts/mscc/ocelot.dtsi b/arch/mips/boot/dts/mscc/ocelot.dtsi index dd239cab2f9d..4f33dbc67348 100644 --- a/arch/mips/boot/dts/mscc/ocelot.dtsi +++ b/arch/mips/boot/dts/mscc/ocelot.dtsi @@ -91,6 +91,72 @@ status = "disabled"; }; + switch@1010000 { + compatible = "mscc,vsc7514-switch"; + reg = <0x1010000 0x10000>, + <0x1030000 0x10000>, + <0x1080000 0x100>, + <0x10d0000 0x10000>, + <0x11e0000 0x100>, + <0x11f0000 0x100>, + <0x1200000 0x100>, + <0x1210000 0x100>, + <0x1220000 0x100>, + <0x1230000 0x100>, + <0x1240000 0x100>, + <0x1250000 0x100>, + <0x1260000 0x100>, + <0x1270000 0x100>, + <0x1280000 0x100>, + <0x1800000 0x80000>, + <0x1880000 0x10000>; + reg-names = "sys", "rew", "qs", "hsio", "port0", + "port1", "port2", "port3", "port4", "port5", + "port6", "port7", "port8", "port9", "port10", + "qsys", "ana"; + interrupts = <21 22>; + interrupt-names = "xtr", "inj"; + + ethernet-ports { + #address-cells = <1>; + #size-cells = <0>; + + port0: port@0 { + reg = <0>; + }; + port1: port@1 { + reg = <1>; + }; + port2: port@2 { + reg = <2>; + }; + port3: port@3 { + reg = <3>; + }; + port4: port@4 { + reg = <4>; + }; + port5: port@5 { + reg = <5>; + }; + port6: port@6 { + reg = <6>; + }; + port7: port@7 { + reg = <7>; + }; + port8: port@8 { + reg = <8>; + }; + port9: port@9 { + reg = <9>; + }; + port10: port@10 { + reg = <10>; + }; + }; + }; + reset@1070008 { compatible = "mscc,ocelot-chip-reset"; reg = <0x1070008 0x4>; @@ -113,5 +179,27 @@ function = "uart2"; }; }; + + mdio0: mdio@107009c { + #address-cells = <1>; + #size-cells = <0>; + compatible = "mscc,ocelot-miim"; + reg = <0x107009c 0x36>, <0x10700f0 0x8>; + interrupts = <14>; + status = "disabled"; + + phy0: ethernet-phy@0 { + reg = <0>; + }; + phy1: ethernet-phy@1 { + reg = <1>; + }; + phy2: ethernet-phy@2 { + reg = <2>; + }; + phy3: ethernet-phy@3 { + reg = <3>; + }; + }; }; }; -- 2.17.0