From patchwork Fri Dec 2 23:47:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9459419 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 6FB2660515 for ; Fri, 2 Dec 2016 23:56:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 564BB28576 for ; Fri, 2 Dec 2016 23:56:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4A02C28586; Fri, 2 Dec 2016 23:56:41 +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 A9CBC28576 for ; Fri, 2 Dec 2016 23:56:40 +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 1cCxeN-0006hx-Vo; Fri, 02 Dec 2016 23:53:56 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cCxcB-0004qs-1S; Fri, 02 Dec 2016 23:51:41 +0000 Received: by mail-wm0-x242.google.com with SMTP id u144so4893195wmu.0; Fri, 02 Dec 2016 15:51:18 -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=xh8k1plKzbCaxoqEs4cqbNcOnAJvbyDVcKzavx+Pg1M=; b=vGO1GgSF6KbIrkFtip78NX0s1kuT5ckYVp5/vcxCY2wsLeKLc+mCf/ugradgUkZir2 WTiC4f2/8JMBXCAMKKu2BY6UduQri78iPkmGtBN5+9A9q8jcM0V4lYEDxtPbW/w6d1t3 hexQXwaaRKt4E16MtTfY0EKp7lCPVdinW5xrCMmEcByfRq3UtE20zJ+IaT2YdGgk8e/R 8eyJBYLLBZGq3vhRhRYhHNf66RhgEIMRxQE21AroPe6ZJ8BUxa55ws6Z7TL0tvNy61Uh bEVTa3+UqXDmLRR0KCN3lnaBLm7ehxQQvhLJAkscjljQqLo0bcmpUcV5836qXKaHfUXM 2sOg== 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=xh8k1plKzbCaxoqEs4cqbNcOnAJvbyDVcKzavx+Pg1M=; b=j6YhM9Qtqpn/P+TYEIpxQo3FLNHFQOKMX+XojM/9+tQMREg3Nq7BjaO9/XjXRgvfzQ c8bVgtUhSo4nt/B1qNSiE8x9m/LUF89fNpc3QPKS65VtGQIVMMMydA8XIWYrnhD06dp/ pZDvj9YQHdCzJw+8dzJvisdHzrMMjUVLkPhfhGnBJMu0iscvQMLzL5PMRsxGWiiyPyCo ta2lLajJfC3K2hIngrlPzQ0pyw+CyTVc9yiKtpVF2Ivaev7l4+4WnNQ9IyPOY/JAR4ox lcuzvsRCh/BvDRlN7bvHbHfO589+zrQslEWLDxva2z48aFRDnCwMn7qyWocScIUj7SOg cXrA== X-Gm-Message-State: AKaTC03dcCCWYZ0iC769JCcBrNbrFnz3yKskC8yqtdvan9wmekfAHkeHNKxUIDncTmzRcA== X-Received: by 10.28.165.2 with SMTP id o2mr5492474wme.38.1480722677094; Fri, 02 Dec 2016 15:51:17 -0800 (PST) Received: from blackbox.darklights.net (p200300DCD3F345041935DCECF29CCAC0.dip0.t-ipconnect.de. [2003:dc:d3f3:4504:1935:dcec:f29c:cac0]) by smtp.googlemail.com with ESMTPSA id n17sm7926945wjq.6.2016.12.02.15.51.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Dec 2016 15:51:16 -0800 (PST) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, khilman@baylibre.com, carlo@caione.org Subject: [PATCH 4/5] ARM64: dts: meson-gxbb-vega-s95: add reset for the ethernet PHY Date: Sat, 3 Dec 2016 00:47:38 +0100 Message-Id: <20161202234739.22929-5-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161202234739.22929-1-martin.blumenstingl@googlemail.com> References: <20161202234739.22929-1-martin.blumenstingl@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161202_155139_480037_1EB63265 X-CRM114-Status: UNSURE ( 8.88 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, Martin Blumenstingl , catalin.marinas@arm.com, will.deacon@arm.com, robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=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 Tested-by: Neil Armstrong --- 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 {