Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp4209258ybf; Tue, 3 Mar 2020 22:55:12 -0800 (PST) X-Google-Smtp-Source: ADFU+vsvCoWxc2CmtZEPs+I2anHCooazrbxq5Xl/HIrz51zSEi6uBC1CE+b625e9vWHkjbvuY1BE X-Received: by 2002:aca:57d6:: with SMTP id l205mr789714oib.20.1583304912165; Tue, 03 Mar 2020 22:55:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583304912; cv=none; d=google.com; s=arc-20160816; b=UTGhPrCNS3pXlQjWUu5lYJBAaa8c27NaDlc0buztSKUFKlYhgZWWe+R4SEEVVlBoDo 3PU7hGhUJ4AEe4gicA228UR5ro9nQPWAuJAz+axvDDkGHuT8Go9HbXzTK6lU0BJApRy4 Dm7b9nrHPVg+hOX9L9mo/yRC69aieXr3Y76l9jKludJQ5prmCGIYMOwtKeGdj8BssUOo TJxrjad+lw8efLMrzO1XacProIP5NDlzuH0fEKYyPb2qLjfY4l+5w12xByxcJLAjT0aY paEI9cKdgF2aLHxNcwHvSvy8JkH7MKMVMWFkgxTayaMZ6z+94UZGxPz/LxV1uVG0OV+l UBvQ== 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=d7lF+Fte/tWzh1M+QLdGqoR/UrnOO4WZsmOHFgD1lTc=; b=qLveMdBRKEQETRRqiRoJzBcPEQ63WjfbrLjl4W4do5dlMPRJH/lyMl2mntMElKeVer V4Ocr2Ve5OxcsQKfoZ+VxScYdw3xb9gGyDe0QFTPNSaD4m2hZqIR5dzZGS2k8vaGxyfX Nk29GKQLtcTGeIX+CGi6V9rBg5oyu1WdrFmcmqJKzhdxhhzBESEo1e5Yo/IHhjt4lOdS SQtlCzQuuhBpBld8VbM469nioJE7AY9GIcHjW4207yAnyy9KzAq8VyK3lJ7HDuR4y30B lU1OAwcAtxiSIALMCK+I7zLEO9LHLyqyQ/cwiPfrBN38Mv7VsT1+Y1hjYHSN+kdq+4iQ 21AA== 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 f2si682459oib.9.2020.03.03.22.55.00; Tue, 03 Mar 2020 22:55:12 -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 S1728389AbgCDGyw (ORCPT + 99 others); Wed, 4 Mar 2020 01:54:52 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:45547 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726957AbgCDGyw (ORCPT ); Wed, 4 Mar 2020 01:54:52 -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 1j9NvW-00051C-N9; Wed, 04 Mar 2020 07:54:42 +0100 Received: from ore by dude.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1j9NvT-0006Up-0n; Wed, 04 Mar 2020 07:54:39 +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: imx6dl-riotboard: properly define rgmii PHY Date: Wed, 4 Mar 2020 07:54:36 +0100 Message-Id: <20200304065436.24917-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/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>; + + reset-gpios = <&gpio3 31 GPIO_ACTIVE_LOW>; + reset-assert-us = <10000>; + reset-deassert-us = <1000>; + }; + }; }; &gpio1 { -- 2.25.1