From patchwork Sun Feb 19 21:41:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9581865 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 356056045A for ; Sun, 19 Feb 2017 21:48:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 267D2287CA for ; Sun, 19 Feb 2017 21:48:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1B280287CC; Sun, 19 Feb 2017 21:48:15 +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.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham 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 AF969287CA for ; Sun, 19 Feb 2017 21:48:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=J8O5Bx+FQ8wFbzT+4/Xz2G70agRTr2j+tG7GLceot1k=; b=OGnRW9ALC4Uswt2T2edOpAgHwm FFi1dyuDIquwe7yddaolCIp79D7s9i9JUZBI9uideuZhwDHqoOzLpFTNHjPRSPLgqPZh0Hqq9KXl/ yJ+U3lR2geCfrA6if8jw/FneZqMj9FT2dtX42Ufz6QzqVmD5TAw/LCqV0Ta2a3xaCiGmSniRbEBNi P8Zl/og57VDSQxAMj9VC43Bj3d2dgOd4y2pGRa16SA2rLLI25IAOFKZFAATEuNLck1ez1NTR/s3bN IypPXvWGIY3X1qWgCgZme67Kb4X8kLTKhIsujvvBNoCcXr+hWqg+QRtOISYANIEunjzyJdQkNM13C 0LEhqIWQ==; 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 1cfZKy-0000LY-Ce; Sun, 19 Feb 2017 21:48:08 +0000 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cfZFg-0004vE-Cf; Sun, 19 Feb 2017 21:42:46 +0000 Received: by mail-wm0-x241.google.com with SMTP id u63so11314336wmu.2; Sun, 19 Feb 2017 13:42:20 -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=sJl1GVt4k8HdOYrUoSiaJ78ebt//EPyNch6PkX7slfo=; b=l4fAoJ23/APhmuqNI07vBthYGNIf/VWfoJ+DHUeh607nPn66xWIpDhxWwTfwrbs/sN tn6wsLfntI8ZXhHWSmgj7nvG/X10vX8x5piijfVnV6Tbm+/hfmxnjqhRcfTzjzpZE2E9 bJCJzYJnyn8qa879zW9Kbxg2fdWpBr7OoHa5sKrgaLUlKfJujDhfuHsCITe4ZhZA1BTn LrRBHyyKX4tuOoEjcYRELsXa10gfdVLNDtNXAiU4Y+yzElcFwtpSMR4Ju5zciTrWaBwE 9DFUSDcR3tEle17Pw2EglKnnlSyfRULqxPJE2f9c6RGAyeevDpVRoj95UEjCwc4ArdhE AuAA== 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=sJl1GVt4k8HdOYrUoSiaJ78ebt//EPyNch6PkX7slfo=; b=CfKNa77DuoVzNz6NuTtT1PPsTaV/xpJyqWjWx1GfLCbst0UWKqK/4+3QQypH7Aw2Jp 4OB/e9T9nbdI/ZyHQeZE7ZAElJmEFEWLTl13iOSmIqH6jDPma86zH0EpfNT0mVpNDxD9 ghwPj+mV7OkIXG3ASiOh+vw3A/bHeyRj/uxzBU7j6uvzOy0U4j2RD9mWCo9ZpnEfTqWQ 00rUcX9IiJsNXxDnnnuVuectD0vRypTPHcEVCLTqizfsMYTN1JfcRI+9zwqBeorWhXQK 5pfUeWC3B3WIBHuszaQeUPJDJ/kjPH8VedY792EC+B5rFX5YcKPYdRCPlwDvxBx0sIZn 4d+w== X-Gm-Message-State: AMke39na3+8knwYIcCYEn3u/N1AAoigK8cos+OYi4ZklbTFJSl/Z9d7zWLj8GfGBRqq7Eg== X-Received: by 10.28.191.139 with SMTP id o11mr15928405wmi.97.1487540539455; Sun, 19 Feb 2017 13:42:19 -0800 (PST) Received: from blackbox.darklights.net (p200300DCD3D1DA04B05FF2CCBB42C4A7.dip0.t-ipconnect.de. [2003:dc:d3d1:da04:b05f:f2cc:bb42:c4a7]) by smtp.googlemail.com with ESMTPSA id c9sm10879700wmf.18.2017.02.19.13.42.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Feb 2017 13:42:18 -0800 (PST) From: Martin Blumenstingl To: khilman@baylibre.com, linux-amlogic@lists.infradead.org, carlo@caione.org Subject: [PATCH v5 1/9] ARM64: dts: meson-gxbb-odroidc2: add the ethernet PHY's reset GPIO Date: Sun, 19 Feb 2017 22:41:41 +0100 Message-Id: <20170219214149.30418-2-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.11.1 In-Reply-To: <20170219214149.30418-1-martin.blumenstingl@googlemail.com> References: <20170122181028.5014-1-martin.blumenstingl@googlemail.com> <20170219214149.30418-1-martin.blumenstingl@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170219_134240_649418_18557954 X-CRM114-Status: UNSURE ( 7.63 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@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-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 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 c59403adb387..6b5579522587 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts @@ -152,6 +152,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";