Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp733793imm; Wed, 25 Jul 2018 05:24:27 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfS8b3j+sjqojGHdJ/foDvxN8sWPnu0vkNTG48OA249vOwrt08u1SWwEGvgGpuGneyYPncJ X-Received: by 2002:a62:4704:: with SMTP id u4-v6mr21886144pfa.76.1532521467387; Wed, 25 Jul 2018 05:24:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532521467; cv=none; d=google.com; s=arc-20160816; b=z3kNWW9AuUQ8js10r2tzdyiaUOphoyk8jlXd1oMd7leYtDvMX1w5eM5d6CpsM1NP4u ivDGtVusR+kjya4PGQoAuhWlGrz7+nlkIPRzUwOomvrmgcdC5iAe7dlclo6pZjEqOp/6 lwjPt8EEGbBiEJWkhkmJym0cEnPikPzbj/4ZAviLzRW842+KBE5kYVUXebLEUFLbYHP1 AIY0MTM6V7Gpb2VIXreLRMGqDmWPU53abomck1hAIKz9Cq2avsOXUGZ1+oNif9HEuR3R 9GnVFsGEZ/F21yFh8SBXl4g6voO/alydiQ2gnfXRS7S7LOaRPb+zTmxDAd1YF/yzU3Ts p+Mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=CUYif7DcfmkVvQJ7PpV0k6qCu8MIW0Hzj7EgB9tl6ao=; b=eXe0UlYsv1CKicOZu0L5KaI6BuR7hMGmbjRbUztwJiugx5JVAjS+dS6QlLrj3/tNcU OuzndTORSEHw0RxJ61IobMv7oa2RnKkJeso+Knd02RBM8W1ZZWRckpJDMjNhHgPwewZW 0GkKMqGlW6+cfjGu+r2v9QGOwtZWZ11uhAWHVOdhRDV0zcz7l6JS0/7mZ2NdUrCct360 Of76VxcrdNLzRFkOse8BLxSVu49hEjN6EwSC6R2p2EtpGLUlJZ1YH17ocRuLHAsYf1pl UzlHgWy+5rIf/8NyiQF/PGHFw+/kgx98Ir/MLVyHzqy1cQ5+n6amll9gEF3JjjY3sk2b lr/A== 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 w25-v6si14312288pga.58.2018.07.25.05.24.12; Wed, 25 Jul 2018 05:24:27 -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 S1729015AbeGYNeo (ORCPT + 99 others); Wed, 25 Jul 2018 09:34:44 -0400 Received: from mail.bootlin.com ([62.4.15.54]:33523 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728757AbeGYNeo (ORCPT ); Wed, 25 Jul 2018 09:34:44 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 84858207A8; Wed, 25 Jul 2018 14:23:15 +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.localdomain (unknown [80.255.6.130]) by mail.bootlin.com (Postfix) with ESMTPSA id 1BB93206A6; Wed, 25 Jul 2018 14:23:05 +0200 (CEST) From: Quentin Schulz To: alexandre.belloni@bootlin.com, robh+dt@kernel.org, mark.rutland@arm.com Cc: ralf@linux-mips.org, paul.burton@mips.com, jhogan@kernel.org, linux-mips@linux-mips.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, Quentin Schulz Subject: [PATCH] MIPS: mscc: ocelot: add MIIM1 bus Date: Wed, 25 Jul 2018 14:22:41 +0200 Message-Id: <20180725122241.31370-1-quentin.schulz@bootlin.com> X-Mailer: git-send-email 2.14.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is an additional MIIM (MDIO) bus in this SoC so let's declare it in the dtsi. This bus requires GPIO 14 and 15 pins that need to be muxed. There is no support for internal PHY reset on this bus on the contrary of MIIM0 so there is only one register address space and not two. Signed-off-by: Quentin Schulz --- arch/mips/boot/dts/mscc/ocelot.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/mips/boot/dts/mscc/ocelot.dtsi b/arch/mips/boot/dts/mscc/ocelot.dtsi index 7096915f26e0..d7f0e3551500 100644 --- a/arch/mips/boot/dts/mscc/ocelot.dtsi +++ b/arch/mips/boot/dts/mscc/ocelot.dtsi @@ -178,6 +178,11 @@ pins = "GPIO_12", "GPIO_13"; function = "uart2"; }; + + miim1: miim1 { + pins = "GPIO_14", "GPIO_15"; + function = "miim1"; + }; }; mdio0: mdio@107009c { @@ -201,5 +206,16 @@ reg = <3>; }; }; + + mdio1: mdio@10700c0 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "mscc,ocelot-miim"; + reg = <0x10700c0 0x24>; + interrupts = <15>; + pinctrl-names = "default"; + pinctrl-0 = <&miim1>; + status = "disabled"; + }; }; }; -- 2.14.1