Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp324953ybh; Wed, 11 Mar 2020 01:46:22 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsACjXVAUIu4BVEu/vU3hG0I9RG0pPG0ZsePvGse+HVQcV/LlYV12FZZ2/0biiEA9tdLKsp X-Received: by 2002:a4a:3150:: with SMTP id v16mr65794oog.71.1583916382876; Wed, 11 Mar 2020 01:46:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583916382; cv=none; d=google.com; s=arc-20160816; b=Bcib2jwy9PhRMhV5x8qyn6yLGga2dW9af4uqf1bT/3qLQ/vM2eZxZxK0R17QvRnyAa 08hd2wnqKgGOfBGK2YSf25uCcaW/UNja9xwuCRmxVsMBYAGAC6/rGfDTA+Ocu8s0Ujny bPSY+4wcBZi4bfSJGF/IIJKSiAgklWHxT0zIrU3wtmKRmvcjlRXIDbH4mRfRcmoEZ1RF E6AR36ERycmQ2co0Fuik105km9vgBj8j5669Dy394mjAMjw8kLPkSHcdHEe8HwFInIi/ sMPo3KZE/QQN8GLbM0ZKV87B9ad47OBvsdd1lficked0QNJYBtJudgaBEscXezDbxyu4 20uA== 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:dkim-signature; bh=UNyKX2+h/sDKV7NlkEEIT/Ri5IhOKOBdAPFnhdn93wc=; b=00siD8tv//AnH16SS0oEUAvGM6BCF03H6WLp2vS3rMVVjuuJ9loeKuzF5bGG/M48aA 2ehtef09k62Ro9XlhnfFyK4gNTMJoFt0kzrJugSYZj/UzOCU6zjLn8l5I/zTWHLefKbv Oi4HeUMl6B9T+wnEMhibtNF1dR1uCsLAAPaQS1RnhLeiy/oDgxhJhz7Ai5W7/r7GW4F/ CzNs1DiqQDjwVsnKB68hijcDMYZKCS5xRHOHjgj9D/l4LcsIvIQPTTOfG2lobf6KnCiK bvvu0Ck3S+EcOIPfyeJX2zYJyGfrrt6UlSH3gVL7yVqeCgZTRRuJ22ZO+NIjftXQ9MU4 +y7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Ob1Ww4y2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c12si780141otr.67.2020.03.11.01.46.11; Wed, 11 Mar 2020 01:46:22 -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; dkim=pass header.i=@kernel.org header.s=default header.b=Ob1Ww4y2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728668AbgCKIpz (ORCPT + 99 others); Wed, 11 Mar 2020 04:45:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:34326 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728146AbgCKIpy (ORCPT ); Wed, 11 Mar 2020 04:45:54 -0400 Received: from dragon (80.251.214.228.16clouds.com [80.251.214.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 98BB820637; Wed, 11 Mar 2020 08:45:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583916354; bh=Tx86wnCMyMjttXqHLNFN2Ue65Q0KtIi7r5++8isH6Jk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ob1Ww4y2ywlV+9yX+rvEdfOXe53hUhRBtuHwXZ0b9xBD7ff3XrmsqP7SWdLXusxAX quiXCdwZgcVMcOhHjOqgPu//MHoD9/5MokBLirBrZGKkdtieo0NHCkZuoEcNB9YdU9 2XtOny+8/I2kkg1EyaXIFL8qskh0gT3uWnZ6j4EA= Date: Wed, 11 Mar 2020 16:45:45 +0800 From: Shawn Guo To: Oleksij Rempel Cc: Andrew Lunn , Florian Fainelli , Heiner Kallweit , Mark Rutland , Rob Herring , Sascha Hauer , "David S. Miller" , devicetree@vger.kernel.org, Fabio Estevam , Liam Girdwood , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Mark Brown , netdev@vger.kernel.org, NXP Linux Team , Pengutronix Kernel Team , Russell King Subject: Re: [PATCH v1] ARM: dts: imx6dl-riotboard: properly define rgmii PHY Message-ID: <20200311084543.GF29269@dragon> References: <20200304065436.24917-1-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200304065436.24917-1-o.rempel@pengutronix.de> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 04, 2020 at 07:54:36AM +0100, Oleksij Rempel wrote: > The Atheros AR8035 PHY can be autodetected but can't use interrupt > support provided on this board. Define MDIO bus and the PHY node to make > it work properly. > > Signed-off-by: Oleksij Rempel > --- > arch/arm/boot/dts/imx6dl-riotboard.dts | 18 +++++++++++++++++- > 1 file changed, 17 insertions(+), 1 deletion(-) > > diff --git a/arch/arm/boot/dts/imx6dl-riotboard.dts b/arch/arm/boot/dts/imx6dl-riotboard.dts > index 829654e1835a..17c637b66387 100644 > --- a/arch/arm/boot/dts/imx6dl-riotboard.dts > +++ b/arch/arm/boot/dts/imx6dl-riotboard.dts > @@ -89,11 +89,27 @@ &fec { > pinctrl-names = "default"; > pinctrl-0 = <&pinctrl_enet>; > phy-mode = "rgmii-id"; > - phy-reset-gpios = <&gpio3 31 GPIO_ACTIVE_LOW>; > + phy-handle = <&rgmii_phy>; > interrupts-extended = <&gpio1 6 IRQ_TYPE_LEVEL_HIGH>, > <&intc 0 119 IRQ_TYPE_LEVEL_HIGH>; > fsl,err006687-workaround-present; > status = "okay"; > + > + mdio { > + #address-cells = <1>; > + #size-cells = <0>; > + > + /* Atheros AR8035 PHY */ > + rgmii_phy: ethernet-phy@4 { > + reg = <4>; > + > + interrupts-extended = <&gpio1 28 IRQ_TYPE_LEVEL_LOW>; > + Drop these unnecessary newlines. Shawn > + reset-gpios = <&gpio3 31 GPIO_ACTIVE_LOW>; > + reset-assert-us = <10000>; > + reset-deassert-us = <1000>; > + }; > + }; > }; > > &gpio1 { > -- > 2.25.1 >