From patchwork Sun Feb 19 21:41:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9581841 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 46DB36045A for ; Sun, 19 Feb 2017 21:43:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 35799287BB for ; Sun, 19 Feb 2017 21:43:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 28814287C8; Sun, 19 Feb 2017 21:43:34 +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 9F776287BB for ; Sun, 19 Feb 2017 21:43:33 +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=qnAFIK7SHLwL68NKDErhyli0nXhdmnt9e2kqO6z82Z8=; b=qos5GxHv3DHmajaNtYyqRKkwhC Xizudu6+UhcFfxtmbiN1m9I9uocrNt+PXB2tcBSbNuyuYtALpU9CVDhTXTcixbQH1qE9xb37YTglR BPfuYGUKi6ZU3Y5pjz+1/aSq29aOKhoC0g1rq9KZfEu+g9U/GHE6CLPx4o/z0+x8oEEHkfOLiVc9Q iDyEh0jvwo8tPAdwKNsIrUHKGf18WOIjaRYGdGdn+DwnK9ix87K5x4+gVhKoYhzsBHiGZ3AKUEgvE CnGxfmOeqInpIOLU333WB272nss11GHjr3DIAC7zmX1KMeJj+IlZ/U4G16bdvSKr1wiQcaVhRijjZ 5soJz8WQ==; 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 1cfZGR-0005Kb-9G; Sun, 19 Feb 2017 21:43:27 +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-0004vf-Bq; Sun, 19 Feb 2017 21:42:44 +0000 Received: by mail-wm0-x241.google.com with SMTP id r18so11355060wmd.3; Sun, 19 Feb 2017 13:42:22 -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=WSCGFeokNqzrk/BF0ZbCHtb82m5thcZQClTi3ZDMzLU=; b=R8z+ZgTq19G6I/EnSWoltInxHCad6RW57XxMt1zNcVAKiBTruHmUfV0eOfrUV4FnNb Wvd2fNk9gK6XA3IQpNQ7qnLYD6n0uNKYL9pJ5CaDKWAW7Y4+XuGNYeG4uDRNA0P5BSyg OtMsjoAkxEl8dBVnywryk4J+ml8K5Yqxi42Roi/RAnerVjJwYz3mcjJ/agJWR+mVRMwF AZnSTPBR9crcZb+0WYWWlQoqwMU7rixh35AqDkQa26Cy4F88byvYWUDO7RZ4MsU0Umpo 3tsiYh2I7upCgmOZJye7Ysk0EY0WHqwL4CSRKDVPrzEVPnMqzseDDHo9r/tCBWbFCEui CYhQ== 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=WSCGFeokNqzrk/BF0ZbCHtb82m5thcZQClTi3ZDMzLU=; b=d/AoEVx+fUjzfqdEkLfNP9sRjjXGJ4ZZX6sOYujpMpIuQ6VsLy4W4FMliTlzC3RS1L L+QoFCQSPiHb1RinYGbYLEV4W9K+OekMInzOtjYIXaU0uccAGBo0YKF2hSIFklZQV5Wm acRK8hTNh/TDMtPofb6HehHUxtwSAw5hzq+NZLEfK40WKpPTqc09oZ1+IP884/IPzTVQ axLdQKnpDWwuKuJZbEO8ogw6evQ6LMoXjPLkKzpZlgblO1SaGQXOG6m81jBRcJ1XpBLv mL5Zfo7WKBsm4LD6Qw0pdwvqtmifXLKLZUJmxFVAdwos/puMIlMyDYG4lY/muIR90QEs TkBA== X-Gm-Message-State: AMke39kNHvC/ucVzM3t5hGteDMsyOoV0NJE2sbm3RA7vnQvLzkchW/ON20xmP4eaBUFDug== X-Received: by 10.28.194.198 with SMTP id s189mr14677859wmf.114.1487540540838; Sun, 19 Feb 2017 13:42:20 -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.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Feb 2017 13:42:20 -0800 (PST) From: Martin Blumenstingl To: khilman@baylibre.com, linux-amlogic@lists.infradead.org, carlo@caione.org Subject: [PATCH v5 2/9] ARM64: dts: meson-gxbb-p200: add the ethernet PHY's reset GPIO Date: Sun, 19 Feb 2017 22:41:42 +0100 Message-Id: <20170219214149.30418-3-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_568627_E067889A X-CRM114-Status: UNSURE ( 8.31 ) 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 specify the phy-handle of the ethmac node to make the PHY configuration similar to the one we have on GXL devices. This will allow us to specify OF-properties for the PHY itself. Signed-off-by: Martin Blumenstingl Tested-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-gxbb-p200.dts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-p200.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-p200.dts index fc0e86cb4cde..acb035d119d7 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-p200.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-p200.dts @@ -96,6 +96,29 @@ }; }; +ðmac { + status = "okay"; + 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"; + #address-cells = <1>; + #size-cells = <0>; + + eth_phy0: ethernet-phy@3 { + /* Micrel KSZ9031 (0x00221620) */ + reg = <3>; + }; + }; +}; + &i2c_B { status = "okay"; pinctrl-0 = <&i2c_b_pins>;