Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6571971ybf; Fri, 6 Mar 2020 00:04:45 -0800 (PST) X-Google-Smtp-Source: ADFU+vunxWhV4+2Bz2gpIdsbFv8PpRSaCC9BrjEyFYWeU3acvK7SqdQbtihXurXOuCWMbu05/agB X-Received: by 2002:aca:318b:: with SMTP id x133mr1769307oix.107.1583481885805; Fri, 06 Mar 2020 00:04:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583481885; cv=none; d=google.com; s=arc-20160816; b=z7rnh4rpcBSrhUVlii8FVUVTeaPTUi0cWdIZxUFkdN9+CdvKGHFM2jspRej576Txxf ljn8KsD/ZJYj+bl8GuQu+fL3NxrQjVFUlFDSplWBbdm8SYoPRJGqzv+ZK3heFjEheIaw 917KAie/WEzN4n2lvVJZJlPx7e3KdtD5lfKf/oXZa8vomq3JFgSIF7EV3avhH+Np+OOs u5sG58YxRxEFpOExI/nQJ7H4DdHJBMvOBDGQEq6FCpVEBGTUum2WepLpEUXZyS/ybsN6 U9tVstFfOltcxFerhfoGVn3/Z582FBiQTXcbS2KEEBCePDEEFq6BRQpKuMu9vPIv7clm fcVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=cDyiEu9INhIVv5gI0vAAnTwzZtrWNGCBzfWECRfOoyE=; b=PzRaFDd5Iiu4TVyAx3PGE2KlhusELpU45s1mZ210/ifnYLgji2jkodGF69r4AkWe/e q9ZJFyAJpQ0CiNiuLZd/Z1W51vLBhpDCyqTmdTXeJu6Wy3YTFpR/w+u0ohnHs8Sm+pcR b/17aRWiRwvaL1oVXBR/iIJNKOWmxiguXyIINMit4HctMRUK+Ji+Pba+3HxO4/GvPBia xFPWTZQLWrrwZBGcP5GVF9q9Nvg+aRSLG22cG/CSarjbObmFeB3fkQx49ybTwBPCZmmO QQYeIRNmZkYN0zdr5IuZV66DSr4R2GrL6+/dM+IrHLuH0BHzOC+sD087K7A8/UpqYoU0 /1QQ== 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 a1si925597oto.87.2020.03.06.00.04.33; Fri, 06 Mar 2020 00:04:45 -0800 (PST) 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 S1726010AbgCFIEI (ORCPT + 99 others); Fri, 6 Mar 2020 03:04:08 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:59457 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725905AbgCFIEI (ORCPT ); Fri, 6 Mar 2020 03:04:08 -0500 Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jA7xe-0002l8-Hd; Fri, 06 Mar 2020 09:03:58 +0100 Received: from ore by dude.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1jA7xb-0002Qd-0b; Fri, 06 Mar 2020 09:03:55 +0100 From: Oleksij Rempel To: Andrew Lunn , Florian Fainelli , Heiner Kallweit , Mark Rutland , Rob Herring , Sascha Hauer , Shawn Guo Cc: Oleksij Rempel , "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: [PATCH v1] ARM: dts: imx6q-marsboard: properly define rgmii PHY Date: Fri, 6 Mar 2020 09:03:53 +0100 Message-Id: <20200306080353.9284-1-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::7 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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>; + + reset-gpios = <&gpio3 31 GPIO_ACTIVE_LOW>; + reset-assert-us = <10000>; + reset-deassert-us = <1000>; + }; + }; }; &hdmi { -- 2.25.1