Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1559393ybh; Fri, 13 Mar 2020 03:28:05 -0700 (PDT) X-Google-Smtp-Source: ADFU+vv3grHoLLYauipOw3vbeFUm1F+gbF24W3sp7NC272Knss21V0a4JqfYYeGyGAzJ+3i4tMWM X-Received: by 2002:a9d:1d43:: with SMTP id m61mr1343345otm.91.1584095284883; Fri, 13 Mar 2020 03:28:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584095284; cv=none; d=google.com; s=arc-20160816; b=oNkSz+GejqFkU5fo/APhX+BWkq5f5YakPAjh18UMpKBMw5U+uhHyZt6orT00+2/j8o YBHMNzDKr/QHpkzcZPq/J08Mri/ZUstRRe7PSf+Ogq7G4NgnpLgz/O2n8tCjVUwaGyn2 OSLpX6qOfvBPOlByNR+YVy0V26qkF0DBIst6HvHaN97a7VohmUfeqPQroVIkA8Ld1S0Y s8tpxipmG1MOcppc7NNdmaFc08Bk20unb4Es3Fe8K5dYKoBxJA0y/iy8vLC7rLjUh6hQ +iBeOvcUKHE47i0KxsiWAKy9XtkgNUzn68w0UPucxUC1dAZIr81W+Jr3qSjdEwN8E52D TVSw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=T4cbZrJGYOnkAlW66ZnBqdiK5M8j9IufzVMTHXv+OmM=; b=MtAk/GyVF1U11phzZxSNeV7t5Cu1L/CjL/ZNCSb+MqOYaxR7eovLtZMe3xek5o1zTK jOgR607iBWttDSJJ9n2TpIW4KTv22++FDr0aXbHua/kvX1xhG0B8px6DTIHL3pelDv8H oINsizqHwuWYrgSLNocAkXuavgDYC2N8ur+gAiU7wt2l4Ica7ScYFygi8tnYFPDG4O+c 2xbfbkKDM0ukSEYXcFj1UqXvlwa5Jcsl1//rg4XteQn29mqWDde5C7kV3ZGBquW1a3yT yaev8jlzwLJdS09moVbOqYkRFCvKEQqwwYQCe8AuOWVHXitzny6Qp5ZRlMZVlfS2E1q5 uZtg== 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 e7si4365730otp.110.2020.03.13.03.27.52; Fri, 13 Mar 2020 03:28:04 -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 S1726594AbgCMK0D (ORCPT + 99 others); Fri, 13 Mar 2020 06:26:03 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:35827 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726520AbgCMKZx (ORCPT ); Fri, 13 Mar 2020 06:25:53 -0400 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 1jChVg-0006o9-Mf; Fri, 13 Mar 2020 11:25:44 +0100 Received: from ore by dude.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1jChVg-0001R9-BL; Fri, 13 Mar 2020 11:25:44 +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 v3 2/2] ARM: dts: imx6q-marsboard: properly define rgmii PHY Date: Fri, 13 Mar 2020 11:25:34 +0100 Message-Id: <20200313102534.5438-3-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200313102534.5438-1-o.rempel@pengutronix.de> References: <20200313102534.5438-1-o.rempel@pengutronix.de> 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 | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6q-marsboard.dts b/arch/arm/boot/dts/imx6q-marsboard.dts index 84b30bd6908f..05ee28388229 100644 --- a/arch/arm/boot/dts/imx6q-marsboard.dts +++ b/arch/arm/boot/dts/imx6q-marsboard.dts @@ -111,8 +111,22 @@ &fec { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_enet>; phy-mode = "rgmii-id"; - phy-reset-gpios = <&gpio3 31 GPIO_ACTIVE_LOW>; + phy-handle = <&rgmii_phy>; 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