Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp593314ybh; Thu, 12 Mar 2020 07:37:10 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvGbLJwRYl4a33Vfb63BTZfV+TFDmX8m3BWJsiAufuVuDgRSts0maimzxui3aLWNQAq4NJB X-Received: by 2002:a4a:d515:: with SMTP id m21mr4257355oos.37.1584023830546; Thu, 12 Mar 2020 07:37:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584023830; cv=none; d=google.com; s=arc-20160816; b=E+1M0am+vxg6YbSW+Kv4t0J4KX9jW7TdQqRvocBaiQIFvSdNI6dfKfP46h+7QnuM9w ikXwjjZn/1R3Ye6cbv/lQ/Kurf/nLqpS1BJ1ED8GtUaPj/5cWLSMOvmFXHY6CMCoMD1s JBP8k+/rhjHLonOyakTNw9H2MmbAesbeHmqED5BglGOOMUfpObfR2RXpEehmOrM10FVQ 7yF6LjG2sEmoSAmsNp1vxPJlK9i3aKGuIZaL865imd5osAm28SNQAU1VJLi3tV2UPpI0 0PnawW+pX7Qb06gEcZluMz9NqAkCl9Kh3duhov+Lk0weLNDU3YbIfQKM0svB28Vvrioe Zb1Q== 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=ODa1vr8Wj8tlLwYPNW+OkmP7HYauWE1QPHlY4au/yWE=; b=jPhUu9fPOF8iN8pGstFCFyzwMkSXiOZdRji/Xm5K+o7ye70SA7c/sCsdgs4LCMoJd5 2JZ6X9NO/W05fNaAktZzIbM5JSliYM7nXglSECLirwa7QUFoOHj/G45Y3mgUZo2f4axf HpFg+S1nw5DeoX6OYXjJy08FHd5m99u8L/meYT05ukWGnsBZSXOO/ga4VG41o5l80wv4 Uiu5LXNybXWn10nWLFWw4aBgaEkm0vThHuutxtLelvifqGZVdifO39JuQtmq2hELf/TC fEQ4cFJ5waTvbiVBFgLr6R8aVjE1Ky62LaGesUc+k+smyurl+ogSJtlUmTHwA5u/p1to 0wQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lUGEe582; 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 g8si1385637otk.163.2020.03.12.07.36.56; Thu, 12 Mar 2020 07:37:10 -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=lUGEe582; 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 S1727569AbgCLOge (ORCPT + 99 others); Thu, 12 Mar 2020 10:36:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:60096 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727450AbgCLOge (ORCPT ); Thu, 12 Mar 2020 10:36:34 -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 4CBBD20663; Thu, 12 Mar 2020 14:36:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584023793; bh=tA9u82x+mBuMvX0imflvPkNR7cfJJBjdnn1jG5Npcug=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lUGEe582YRpKTnG8i9OWpZeKCS0w2sKbrZrH+wNKDMwTbcv40YsTGVN7EDD9WAB+c WcnXpZKVBz1VdLv8TKiuRGPLpXFSTRSI8dDGMW/rOgcvdbghZ9dS1s5snK+RHSSuGV KW1ASOZmiwp/vVcu4bnb5sE34/Uflsq6JaJ9APSQ= Date: Thu, 12 Mar 2020 22:36:22 +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: imx6q-marsboard: properly define rgmii PHY Message-ID: <20200312143621.GD1249@dragon> References: <20200306080353.9284-1-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200306080353.9284-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 Fri, Mar 06, 2020 at 09:03:53AM +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/imx6q-marsboard.dts | 17 ++++++++++++++++- > 1 file changed, 16 insertions(+), 1 deletion(-) > > diff --git a/arch/arm/boot/dts/imx6q-marsboard.dts b/arch/arm/boot/dts/imx6q-marsboard.dts > index 84b30bd6908f..019488aaa30b 100644 > --- a/arch/arm/boot/dts/imx6q-marsboard.dts > +++ b/arch/arm/boot/dts/imx6q-marsboard.dts > @@ -111,8 +111,23 @@ &fec { > pinctrl-names = "default"; > pinctrl-0 = <&pinctrl_enet>; > phy-mode = "rgmii-id"; > - phy-reset-gpios = <&gpio3 31 GPIO_ACTIVE_LOW>; > 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 newlines. Shawn > + reset-gpios = <&gpio3 31 GPIO_ACTIVE_LOW>; > + reset-assert-us = <10000>; > + reset-deassert-us = <1000>; > + }; > + }; > }; > > &hdmi { > -- > 2.25.1 >