From patchwork Sun Jan 22 18:10:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9531255 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 4C46B60431 for ; Sun, 22 Jan 2017 18:12:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3E6D027FA6 for ; Sun, 22 Jan 2017 18:12:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 326B127FAC; Sun, 22 Jan 2017 18:12:43 +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=-1.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0434527FA6 for ; Sun, 22 Jan 2017 18:12:43 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cVMd5-00086x-B3; Sun, 22 Jan 2017 18:12:39 +0000 Received: from mail-wm0-f68.google.com ([74.125.82.68]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cVMcQ-0007HO-DX; Sun, 22 Jan 2017 18:12:00 +0000 Received: by mail-wm0-f68.google.com with SMTP id c85so20664728wmi.1; Sun, 22 Jan 2017 10:11:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=wmY4C6MlE7Dz/2KGnyOJnnOUaebLgP8vhZOeXV6p8Ro=; b=NFKrvzlA0ZTyiyxTXk+dHsIVW99sbLACjV/o3lrR2DitaZ0zpO9c2d9COr45hpuN1c hnD2mRBL/5DjTfTezLztqZJOzkEGux28cRdpG+C4ng/A1hlxQfEnf2El8zN6XAlUZGMX CVCWUQHkovBgUp2xs7C0ZQPyu69SKJHv7uZxzoX2vsdNoVm5Bubv7bNuTnAujb8R4pZi IeVyxY1tHFXlvGRwFiEhCbiqaMwfUuBIyb5mil1sNY9V5UstDfhuiXLUbyBbLQFYBZ1j XVXeycT8p6Is+GKi4mRnTNOVZt9RskdwSMBYHrZ6tYTequmzWraESd/vgeUCsMUe21Ud DM7w== 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; bh=wmY4C6MlE7Dz/2KGnyOJnnOUaebLgP8vhZOeXV6p8Ro=; b=L09f5ZcJU6azXcKkx3DAmsXk2cLWtTB0HqVkG5t3wHCNDrFjyCvUZSyEQ9s8mCBLN0 AKzT01rFLmDgCyGhfbRaOXGrDYuoYmn8VaygR6pb7QJSpQ3akZJkAo0DLtOmEB+rT+ER N+81Z6mQpJrDRzAb3Hbzgtwq4oQbrJySrL89ZuoDHQiMyQg4yBRO8Bdb87gWFOWSGthE 84WqDVQc0m0rLQYiYdPhdQpSyfNpHUMvo4x/PJW5c80QinhqOcKpT86v+elU5vCq9hk0 jORpvK7iBpfYKCQg3dUQYUEIqQdzOVj4buTIhPALCbUfHenLaiBcLhcLId0ocIks7fWm YwlA== X-Gm-Message-State: AIkVDXLMbSpiV+cBsgYYolgqMKrGzqEBJiDWXfDhkJGAMx24D4FFHeGJXBYkJFi1dwHWwQ== X-Received: by 10.28.62.204 with SMTP id l195mr10170029wma.88.1485108634306; Sun, 22 Jan 2017 10:10:34 -0800 (PST) Received: from blackbox.darklights.net (p200300DCD3E0200408A0F52CBA7B1138.dip0.t-ipconnect.de. [2003:dc:d3e0:2004:8a0:f52c:ba7b:1138]) by smtp.googlemail.com with ESMTPSA id r5sm16858823wme.23.2017.01.22.10.10.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Jan 2017 10:10:33 -0800 (PST) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, khilman@baylibre.com, carlo@caione.org Subject: [PATCH v4 1/9] ARM64: dts: meson-gxbb-odroidc2: add the ethernet PHY's reset GPIO Date: Sun, 22 Jan 2017 19:10:20 +0100 Message-Id: <20170122181028.5014-2-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170122181028.5014-1-martin.blumenstingl@googlemail.com> References: <20170120152232.13943-1-martin.blumenstingl@googlemail.com> <20170122181028.5014-1-martin.blumenstingl@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170122_101158_642269_8C45E6E5 X-CRM114-Status: UNSURE ( 6.81 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, narmstrong@baylibre.com, Martin Blumenstingl , catalin.marinas@arm.com, will.deacon@arm.com, robh+dt@kernel.org, andrew@lunn.ch, linux-arm-kernel@lists.infradead.org, jbrunet@baylibre.com 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 explicitly specify the phy-mode instead of relying on the default-value from meson-gx.dtsi. Signed-off-by: Martin Blumenstingl Tested-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts index 045699616b0f..dc469cd63bb7 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts @@ -142,6 +142,11 @@ pinctrl-0 = <ð_rgmii_pins>; pinctrl-names = "default"; phy-handle = <ð_phy0>; + phy-mode = "rgmii"; + + snps,reset-gpio = <&gpio GPIOZ_14 0>; + snps,reset-delays-us = <0 10000 1000000>; + snps,reset-active-low; mdio { compatible = "snps,dwmac-mdio";