Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp742382imm; Wed, 25 Jul 2018 05:33:39 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeClkSseBQH2177np20D1sUXihjPSsD1Covllt+lbKsmQrgAxuTvhlRRS6gjt8+FthL0W5v X-Received: by 2002:a63:5b51:: with SMTP id l17-v6mr19917066pgm.165.1532522019271; Wed, 25 Jul 2018 05:33:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532522019; cv=none; d=google.com; s=arc-20160816; b=ziuJG2wt8wpTPc/SnI9TCDiglCe4XJWJySHh2H4i2NT60N4nUBQSc9BQr+tgESTeUM ze3ZD9ZuuSKi4mYgt71Jrn4l27EYCKJcsAxJ1wvacTjj+NvRTiJAQGBReT8JywBV39bT bVJ5TAGHGQB40wIL6voCUFANYcsPowZ0QQ5WIhQEPoJGB9AR338SvLf5T2cgAPRPfXRY lrVQwK68GLSU8I2EkE6q9Hva4DPLCbNnirII8U5E4/AWdqAFsLvAEGxiU6VyvbHtVtyN hmUaOur9FV3pT+77jwwKTcOgqusPmqMzsRy7spJIqMgOWl+yrqSbmiI+t0eWJxOi3kxw YehA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=bNBK2v2dt1Fu96Bd6iNtlNVk+drMEh+S3XBF/rw1hUM=; b=tCX51W7dLmhRhm5CX2UyLBC0+1TfzX6PUbe0IlZpB80vqSfpOZzhwUqQTj5yOIkL5a Yb+eBjIepe5rpeWAbnai1qK9uXj/fS7EzGwRkzk/0hK8SwP6DIM9MTGHLKb+PF9lVT3X CjiVDO/Pgkxgr9+vSw6q36cUVV+tarzEJ0Y6ET4cCaMX5ZJAbV72IGtd4VgHnJnRAsp0 FCWuj8ug/jaamwGnoyfS5n+Ov3R1ELFipuVr5zxYM4vW/bnjKU2F0cuVfDsfepcf9vcR M3T1shGjVD7v53ihGJLSs6C0G5jnf0c4euZnhwYWLBtqgN++/Y5i//FS06s7aDA1otPT kc3A== 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 g11-v6si13909419pgf.386.2018.07.25.05.33.24; Wed, 25 Jul 2018 05:33:39 -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 S1729088AbeGYNnc (ORCPT + 99 others); Wed, 25 Jul 2018 09:43:32 -0400 Received: from mail.bootlin.com ([62.4.15.54]:33755 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728492AbeGYNnc (ORCPT ); Wed, 25 Jul 2018 09:43:32 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 94CDF207AD; Wed, 25 Jul 2018 14:32:00 +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 [80.255.6.130]) by mail.bootlin.com (Postfix) with ESMTPSA id 5D3672072F; Wed, 25 Jul 2018 14:31:50 +0200 (CEST) Date: Wed, 25 Jul 2018 14:31:50 +0200 From: Alexandre Belloni To: Quentin Schulz Cc: robh+dt@kernel.org, mark.rutland@arm.com, 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 Subject: Re: [PATCH] MIPS: mscc: ocelot: add MIIM1 bus Message-ID: <20180725123150.GC3539@piout.net> References: <20180725122241.31370-1-quentin.schulz@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180725122241.31370-1-quentin.schulz@bootlin.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25/07/2018 14:22:41+0200, Quentin Schulz wrote: > 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 Acked-by: Alexandre Belloni > --- > 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 > -- Alexandre Belloni, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com