From patchwork Mon Dec 30 12:00:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 974 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id D6CE53F076 for ; Mon, 30 Dec 2019 13:00:51 +0100 (CET) Received: by mail-pf1-f197.google.com with SMTP id p126sf18700999pfb.9 for ; Mon, 30 Dec 2019 04:00:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1577707250; cv=pass; d=google.com; s=arc-20160816; b=majLYITcNHC6eiM95JancTEW66mdXNKyPKOHmht212OjelAFnW2xgWHi8FwaNpUXSA DljGWi/7TNAWDcMz7ISadZMxS5EtRTLYZbv9qKIgFH3sRJHlfagfFA6J+WtovonYOFer 2Hck3m3/vsIRWjXPGGns6jsq/HjlGBgTIerAXUWt5YxcQiQSp1hxvhDu+LwvJGuIQENv HdDSkBpaHua81W0i0Rhjh0diOo8giPta52ESXEZv/F/yTBGo+oGyk16ZhhWTfK7WYd+o Pfgs5XmpfNark7vAJKzwugsiM0dNsnwp/KKi1md8SdiW0/kZTPPg1E7FGocza9MpJhEg f5Tg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=h4KSSK39T2YNqdY0tur6atPbDtkMUxPp+bfCKVD0dDU=; b=Y+1IyTZfZ1xh/YRfCUIpKYAyxum8BL7wq/ozCpRYALfPU4zUMOd1cyiavdOn+9sugl HPS91CGVP+t7RXQ4jkD+tLR63JvS7xwAZPM4/xUjzr9RsKlN7iVa6W2rSrfJU1SpSrI/ Oo0+hhr+6S2dNFHbw7OUiPZOmMcPgOCIg0bkh2mM4/04V8HqMxIDzHBHazV4y2oUGl9E rF74/OvYFzV/oRHFGaxTIaxN1ICZOnjOTQbEHB1riX3GcpKnVt4OuP9tiJhbZ/S8wy9S hnjF10rWX2WAwz29ebUufm1bhjDR2y4i9/BHYlWx+J7biqSxlR7P56rVjRE1GDaFhO+/ HG7g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=jnDiCxSk; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=h4KSSK39T2YNqdY0tur6atPbDtkMUxPp+bfCKVD0dDU=; b=fIV5mp4Je1IIB4mBo/onwhCNrU0bzL6lGRndi+HbcslSd34oRNmQFZh5POMwDlDnW/ w3b0qIy8glE1Xwu37vrIBcKTDK896lpFHKuSGTLPc3XJ55EyKtO/U9STwfQkE3A/vQHz jwbTq5iq59EHcxfX5d/Ne3Tev8zni9fF50hNI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=h4KSSK39T2YNqdY0tur6atPbDtkMUxPp+bfCKVD0dDU=; b=LJV96lSkeMV10GEufIaAUZ6wwftnsHl8PvpPrmDdkACwH7UqGSNYzj0sSEXPlm/R5W 1XRl54y6VTaDOEMCMvtyPmaKSAjnI+D6CGq14Nctgz2/HWnMstGnGnoZ7T5VbGmss89x dt08iemsqgs6Ey1jdT+ou0CxX4VOzL3RmJ3Uh6TJ0kvNK4CegHQ/F+M7lsQs3po7G/w/ iL0eKhusZ+7toCpgaEaZyncOxq4mZanR/G39VEO4cdAL4tfWYnurjytJ5ohRDSxfVfN1 AschZn7pdpuISToh/hVlCN4qGUhSoGBCluhtJHS4GmmIST3WBPf0tsDzvgrzK/dYvYKb dDww== X-Gm-Message-State: APjAAAV5LCvBOfkK0C6X+XVlnGPZZs4aMmtOciG3zl6QuTW2qo8bMHf8 E9YVrqTOrjsBQSls/fvItOJVe7GQ X-Google-Smtp-Source: APXvYqxm03klN4mBeVr0kjVLrLCd1QPnED7mD5oIFeAJ14AQoa9MxAnd+BAassNqNTVSPmNZsK3qBw== X-Received: by 2002:aa7:848c:: with SMTP id u12mr68449025pfn.12.1577707250695; Mon, 30 Dec 2019 04:00:50 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a65:4608:: with SMTP id v8ls9239232pgq.8.gmail; Mon, 30 Dec 2019 04:00:50 -0800 (PST) X-Received: by 2002:a63:48d:: with SMTP id 135mr70654787pge.66.1577707250152; Mon, 30 Dec 2019 04:00:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577707250; cv=none; d=google.com; s=arc-20160816; b=kxYD3K6NIrQGcNF308oUo5zoPjh+2pwQBjZbK/JfgYl6EVanEX16qsof4zZCLdMQHO d0G+LGNO0CUBJ8pWkL/sLBA9RzPT8AMj26v/VTnZ4zE6M3AknRRPuCUJ1kfoG40ettXt f6YJ2itP0gR6wmRM+tV/7TP4/PoNlZilUK0EEm5jQxoOP0mVh1Mv8VJp1yWEE9uLeY3k qDib2MrJlUOvGtLJoYylnClCgpo/cTpCU9Azo6R4xoKNuOqVohAvBsi2OrA3yTeZq+sr Eqv0f1WV99caTCiWK67EbbuYWukk9OOaqtmqyABXk/xxwj/bhieVVCZEihC2RuHveO5b /mTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=loK+/2QBNqR4qI1aKCHvxn+umU8QIBnua/KHI6KiyXg=; b=tlrtByIAgjvahuHY8zRgKP2MajqXG2a9AAuouykUqkvOm3+Xz5aehl0CJBd3uqN7Bh nqvyQqI4Zk3wAeJk80QTTNRw7o1X9epBefxkDx7SiAYso0QCIMCfjH6YJfliXItmTl+s lTnGT1gSBeoqJRKzm5SsJkODTJBVMhD6bUP+7w3nEVnHYLHWIN3caZaD+WgSWOJnTHtp ZXCATiPTEXHVWWewuUlI10JaHyF1Z8H74W9EqgN10CCCS0ulqG5Y7W5kZCJXe/mQ+JWa pts+y7REmsO/wmhbstPVT7pucRlBl6S3q0dDYCGGSok67B57bT0BX/3fL9cydUfRhhjl ooYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=jnDiCxSk; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id h22sor44904684plr.7.2019.12.30.04.00.50 for (Google Transport Security); Mon, 30 Dec 2019 04:00:50 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:902:7c0f:: with SMTP id x15mr28595069pll.267.1577707249818; Mon, 30 Dec 2019 04:00:49 -0800 (PST) Received: from localhost.localdomain ([49.206.202.131]) by smtp.gmail.com with ESMTPSA id 7sm41894122pfx.52.2019.12.30.04.00.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Dec 2019 04:00:49 -0800 (PST) From: Jagan Teki To: Shawn Guo , Sascha Hauer , Fabio Estevam Cc: Michael Trimarchi , Rob Herring , Mark Rutland , Pengutronix Kernel Team , NXP Linux Team , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v2 3/3] ARM: dts: imx6qdl-icore: Add fec phy-handle Date: Mon, 30 Dec 2019 17:30:21 +0530 Message-Id: <20191230120021.32630-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191230120021.32630-1-jagan@amarulasolutions.com> References: <20191230120021.32630-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=jnDiCxSk; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Michael Trimarchi LAN8720 needs a reset of every clock enable. The reset needs to be done at device level, due the flag PHY_RST_AFTER_CLK_EN. So, add phy-handle by creating mdio child node inside fec. This will eventually move the phy-reset-gpio which is defined in fec node. Signed-off-by: Michael Trimarchi Signed-off-by: Jagan Teki --- Changes for v2: - new patch. arch/arm/boot/dts/imx6qdl-icore.dtsi | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6qdl-icore.dtsi b/arch/arm/boot/dts/imx6qdl-icore.dtsi index 7814f1ef0804..756f3a9f1b4f 100644 --- a/arch/arm/boot/dts/imx6qdl-icore.dtsi +++ b/arch/arm/boot/dts/imx6qdl-icore.dtsi @@ -150,10 +150,23 @@ &fec { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_enet>; - phy-reset-gpios = <&gpio7 12 GPIO_ACTIVE_LOW>; clocks = <&clks IMX6QDL_CLK_ENET>, <&clks IMX6QDL_CLK_ENET>, <&rmii_clk>; phy-mode = "rmii"; + phy-handle = <ð_phy>; status = "okay"; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + eth_phy: ethernet-phy@0 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <0>; + reset-gpios = <&gpio7 12 GPIO_ACTIVE_LOW>; + reset-assert-us = <4000>; + reset-deassert-us = <4000>; + }; + }; }; &gpmi {