From patchwork Fri Nov 25 13:01:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9447521 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DA71060779 for ; Fri, 25 Nov 2016 13:04:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C8F9C27FAD for ; Fri, 25 Nov 2016 13:04:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BE1C1280DE; Fri, 25 Nov 2016 13:04:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7356B28068 for ; Fri, 25 Nov 2016 13:04:49 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cAGBH-0006Vm-GY; Fri, 25 Nov 2016 13:04:43 +0000 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cAG9X-0004Vw-EO; Fri, 25 Nov 2016 13:03:07 +0000 Received: by mail-wm0-x244.google.com with SMTP id m203so7712631wma.3; Fri, 25 Nov 2016 05:02:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=cRDeOqfd7wXkS2OjZuJhiaVQMQw3jQJ90J4Tb3zD/yY=; b=Dfa6/I1u05PSNj5AVUC3GMlaY95JsxWyF6fJrChEdzXC40usAyW7VS6D/GsjWJDo5+ Enr6zvi2nDQbyyvaQxu0XTppAXwKtJuFyoGIsuJrpMLZsnQHNcFzQ42mBmSFmftk/f+n t9+3294OPStMtBama5CehorEHHqeCGMWg3mT47jqDO+8rH4+GGSifdo0tAS7keLjvNek pwZGSWoWYmEj0ihc0OOfhYShjG5uemOOdsRd71SbvnFPGLBFeJ2DbMViJvpO0uQFWDP5 Ce+vUllHZvuewCZ+hHJItMIV6B8m2i2fUKqChN3tRogvDasaoLCml0ndufebDq3sXVPb i9Bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=cRDeOqfd7wXkS2OjZuJhiaVQMQw3jQJ90J4Tb3zD/yY=; b=e6AJNKwpdvpEeN5IwnOvCP81dP8Jtn1xKB9EFjbqbaXZkcgk1h5Ls5oLajGYrL9gsx CtSrtXHpSNi+7HItfUwXawt7Lc6MOh8SnOkexl/JKHjwuJGcsfmVfCW6740jKF/HFMju lKlV6JxB7QHwDhMxK1fVgkVarL9dFUfKiSXJ32UdbOz81xqndlvsESln0Hh8W5e7M5zp +r8WKSH3yEGfNlB7khqoViAkKghiCdc2I4NHkN8QI/r1U28yHJyanZhBpvG1zraiNezU K2zeF5YK9gpYxZ4id+cdNJLtpe47QXGDrRtiRWSVi79tLoR5rkcK3ewwpAj88XvXOiom KT+Q== X-Gm-Message-State: AKaTC00FjlkwvGArXIiYaGon7Gj557bf0NBKCvFvzWPwZj/n2WPDZCN2vFs0JFDhGi3m7w== X-Received: by 10.28.175.195 with SMTP id y186mr7865419wme.68.1480078953544; Fri, 25 Nov 2016 05:02:33 -0800 (PST) Received: from blackbox.darklights.net ([2003:dc:d3d3:9204:9426:48db:352f:a6de]) by smtp.googlemail.com with ESMTPSA id ua15sm46937433wjb.1.2016.11.25.05.02.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Nov 2016 05:02:32 -0800 (PST) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, netdev@vger.kernel.org, davem@davemloft.net, khilman@baylibre.com, mark.rutland@arm.com, robh+dt@kernel.org Subject: [PATCH v2 6/7] ARM64: dts: meson-gxbb-vega-s95: add reset for the ethernet PHY Date: Fri, 25 Nov 2016 14:01:55 +0100 Message-Id: <20161125130156.17879-7-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161125130156.17879-1-martin.blumenstingl@googlemail.com> References: <20161124143417.10178-1-martin.blumenstingl@googlemail.com> <20161125130156.17879-1-martin.blumenstingl@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161125_050255_950321_533B02E2 X-CRM114-Status: UNSURE ( 8.93 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: f.fainelli@gmail.com, alexandre.torgue@st.com, Martin Blumenstingl , catalin.marinas@arm.com, will.deacon@arm.com, carlo@caione.org, peppe.cavallaro@st.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This resets the ethernet PHY during boot to get the PHY into a "clean" state. While here also specify the phy-handle of the ethmac node to make the PHY configuration similar to the one we have on GXL devices. Signed-off-by: Martin Blumenstingl --- arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi index e59ad30..a0e92e3 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi @@ -113,10 +113,25 @@ pinctrl-names = "default"; }; +&mdio0 { + ethernet_phy0: ethernet-phy@0 { + compatible = "ethernet-phy-id001c.c916", "ethernet-phy-ieee802.3-c22"; + reg = <0>; + }; +}; + ðmac { status = "okay"; pinctrl-0 = <ð_rgmii_pins>; pinctrl-names = "default"; + + phy-handle = <ðernet_phy0>; + + snps,reset-gpio = <&gpio GPIOZ_14 0>; + snps,reset-delays-us = <0 10000 1000000>; + snps,reset-active-low; + + phy-mode = "rgmii"; }; &usb0_phy {