From patchwork Fri Jan 20 15:22:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9528767 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 999BE601AE for ; Fri, 20 Jan 2017 15:24:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8A57B286AB for ; Fri, 20 Jan 2017 15:24:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7DE45286AE; Fri, 20 Jan 2017 15:24:46 +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 22774286AB for ; Fri, 20 Jan 2017 15:24:46 +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 1cUb3R-0004oY-Dq; Fri, 20 Jan 2017 15:24:41 +0000 Received: from mail-wm0-f65.google.com ([74.125.82.65]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cUb2t-0003tq-Lf; Fri, 20 Jan 2017 15:24:09 +0000 Received: by mail-wm0-f65.google.com with SMTP id r144so7477061wme.0; Fri, 20 Jan 2017 07:23:47 -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=sw1anmyG7vJ5v/bhwTllPNY2PzcamWybUaaXZ3RkL20=; b=U47SJcyNETKB3yBKcmzdHI0iWSX63UIRy9sy0XNz+e51MMt76hsFIFMZykHw0KUKcK 9PTuPVuagHV5NyuZ1iRX+ytmgHhlQrYJeTySaKImxdTdXm9HMK8GfNriGXn4UTd/sZ+G i81T6NQOS7pPaTwS8x8uj/RhVDs7Oa2vbu8wM+IkKf0OiLeHpkI8GP1N7TJ2wqJpQWSC QbCJoMWkEmrA9X2tdtt7GflqOm174VQGaxPbeM7P/oLeED+bYwtvhDA9y40OQMFTYUL9 eiOv3MQoK4LL3ptK0GdGHFlz+RGPL7LTQb8tSq45Mn1yvIJiEjRgoFykdNt6sUTqgjRy z5Vg== 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=sw1anmyG7vJ5v/bhwTllPNY2PzcamWybUaaXZ3RkL20=; b=JDadS2Ay+DNkNmCpKARvDN0XR0TuOR/VNWMTQtMqLk8yVJz7XY9jTGephDsUdPzVez pFpv6wH1G0qRckhlvYaDgnNr8rXYg5ezVRsm320RwcMEv4L3IeirlUlqo/Cc0Q7aibbM w0ay9zyR8y8xFULOezqVn/W+IErtscXg35ai4xL3neawvfr3F78vWv8D9+o7PlPZ1SMg bJMyqjtSoD+JeCE8PusHNnWjxPXSQK6t0gQyePnO2j2BJvZE0660Ei/hSInlKRCk5JRo BL6xzYJEiKlLl3ciWPVjy3tNlPABhxYht3IZweeIgwX6ZOL8/CaUTSki7xHe0Y9lwfyR NBaQ== X-Gm-Message-State: AIkVDXITl+rgWoSfRdtI1ltxcTbMRQYk/8Q9w6DAVi6C/DD64H6jNn68IpUwUVvYU1Fz5Q== X-Received: by 10.28.236.93 with SMTP id k90mr3607095wmh.40.1484925765891; Fri, 20 Jan 2017 07:22:45 -0800 (PST) Received: from blackbox.darklights.net (p200300DCD3D0840481308367D0B20714.dip0.t-ipconnect.de. [2003:dc:d3d0:8404:8130:8367:d0b2:714]) by smtp.googlemail.com with ESMTPSA id c81sm6587528wmf.22.2017.01.20.07.22.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Jan 2017 07:22:45 -0800 (PST) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, khilman@baylibre.com, carlo@caione.org Subject: [PATCH v3 3/9] ARM64: dts: meson-gxbb-vega-s95: add the ethernet PHY's reset GPIO Date: Fri, 20 Jan 2017 16:22:26 +0100 Message-Id: <20170120152232.13943-4-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170120152232.13943-1-martin.blumenstingl@googlemail.com> References: <20170120132650.9784-1-martin.blumenstingl@googlemail.com> <20170120152232.13943-1-martin.blumenstingl@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170120_072407_879877_836C938B X-CRM114-Status: UNSURE ( 7.61 ) 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, 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 --- arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 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 86709929fd20..358ab5159bd5 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi @@ -128,6 +128,24 @@ 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@0 { + compatible = "ethernet-phy-id001c.c916", + "ethernet-phy-ieee802.3-c22"; + reg = <0>; + }; + }; }; &usb0_phy {