Received: by 10.213.65.68 with SMTP id h4csp677954imn; Fri, 23 Mar 2018 13:15:18 -0700 (PDT) X-Google-Smtp-Source: AG47ELtLtoLSVALCgl/AWARijfm5ijgXhqj0LvLNC4eNZcCh8XVzFhklCTsl10g7zuIY9XNGx+Ri X-Received: by 10.101.64.139 with SMTP id t11mr10224954pgp.119.1521836118593; Fri, 23 Mar 2018 13:15:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521836118; cv=none; d=google.com; s=arc-20160816; b=VhGjuFDqsSmXzjr+U0LkIyjOx4TMxgT3TEv0id7L3+HBK4JrePoiLYeevN2HMD9yTx h+c87c3dH+DcxPhGOqj4uCD7voDm0ILLx+aDdSYpnpLIuzs8E4PfONp2CCzVbYbmtiUz YL66GN5eREfsUKDIKrsYJ5Vp95CcXbk5MImbP8lodr1lSSHjOx18T0tkv4FtIIJPY1pP AFjn7s/XM3hXCVZ0oUnMT2dHX42KhoDds5b5/d5P5Y3vAAZHnLNkD3s5o6wriNh0cYNX 765fqf9ca8jAeH8evwDDKYzJODd9ZyChxq5AASrr8ntf95ZJlmd78jaCDrEQ6k99jA0y 5e3w== 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=vFryT/8R9nMuHMoYccY8mX0buzxqTjlgQki63uRwgiU=; b=VIlRx8A0Sr1/KhEYxdeURpVQ8HxH1XlZW4S5czJNsQt0Hfgkmb+jRM5EL6jtQTOkfi wyZGniOH/dhBr6tI0pV9j/ZxwW2tCReoogO6j50FP8ZlDAw/ygGtzy+TTPRHdKMtvjuc noXyOrtzhxXm+CTSt/uNpT/jrwtuILYq0X6x8WdEcP5KxPQoaKmkHbyzNe/NivkwdF8S TVc52e5JEJSX4xgiGqQmBJtGJPOK8lfRn0Ovcw8ql3GaK29wzRSBZhVrX37twH/OVtuZ N+pWfMaTAkNQpWoynhPH+lspCyVQPXoiiZcTf5M0A1CBDC/naCIeWZtZF4QqWvO58BbF qzIg== 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 e39-v6si8989371plg.364.2018.03.23.13.15.03; Fri, 23 Mar 2018 13:15:18 -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 S1752563AbeCWUNh (ORCPT + 99 others); Fri, 23 Mar 2018 16:13:37 -0400 Received: from mail.bootlin.com ([62.4.15.54]:34930 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751907AbeCWULi (ORCPT ); Fri, 23 Mar 2018 16:11:38 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 1BBBF2087E; Fri, 23 Mar 2018 21:11:36 +0100 (CET) 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 D13B92072D; Fri, 23 Mar 2018 21:11:35 +0100 (CET) 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, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@linux-mips.org, Alexandre Belloni , James Hogan Subject: [PATCH net-next 6/8] MIPS: mscc: Add switch to ocelot Date: Fri, 23 Mar 2018 21:11:15 +0100 Message-Id: <20180323201117.8416-7-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180323201117.8416-1-alexandre.belloni@bootlin.com> References: <20180323201117.8416-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 | 84 +++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) diff --git a/arch/mips/boot/dts/mscc/ocelot.dtsi b/arch/mips/boot/dts/mscc/ocelot.dtsi index dd239cab2f9d..22a86373b1c9 100644 --- a/arch/mips/boot/dts/mscc/ocelot.dtsi +++ b/arch/mips/boot/dts/mscc/ocelot.dtsi @@ -91,6 +91,69 @@ status = "disabled"; }; + switch@1010000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "mscc,ocelot-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"; + + 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 +176,26 @@ function = "uart2"; }; }; + + mdio0: mdio@107009c { + #address-cells = <1>; + #size-cells = <0>; + compatible = "mscc,ocelot-miim"; + reg = <0x107009c 0x36>, <0x10700f0 0x8>; + interrupts = <14>; + + 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.16.2