From patchwork Fri Jan 20 13:26:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9528323 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 9863C60434 for ; Fri, 20 Jan 2017 13:29:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8113F28511 for ; Fri, 20 Jan 2017 13:29:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 75DFF285B8; Fri, 20 Jan 2017 13:29:26 +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 4585528511 for ; Fri, 20 Jan 2017 13:29:26 +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 1cUZFs-0005jV-TZ; Fri, 20 Jan 2017 13:29:24 +0000 Received: from mail-wm0-f66.google.com ([74.125.82.66]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cUZF0-0004BY-JL; Fri, 20 Jan 2017 13:28:33 +0000 Received: by mail-wm0-f66.google.com with SMTP id r126so6712524wmr.3; Fri, 20 Jan 2017 05:28:10 -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=EXGbtORxzcDN6fuWpdz3RAse7psr2fdYAC7Vc3GVRDc=; b=SLr7c3xSpLEpf9Z/P4hEKAB+eHa/2dSZSQg611vKEmyYOELHCpdC2XF8p6XtqnwRN9 IdUt5YRKayWcrukvMevHrMQcoTIGDzDkFD90cUUJoNC+pJJHh0hk0FWD9QwuTszSlXyS isqkEONx00DDjUc0yfSuADTvdMN4NQrIMpv+gdjI+foWhepNMT+Tq0PaLwNaeANbFFpW u0xhKIhDY1RNmcS+Jwt85Qiio+0NUcQQc7FsXtkEE+VSmKSrNKHCznsxoEycaZh3uhbA nBxWn2P839Ouo+H5lGfQZD6Yj7rPVUyUcsVYHMYOx6ww7KnUEIXX74kR/OaG/uxSWM0H am1Q== 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=EXGbtORxzcDN6fuWpdz3RAse7psr2fdYAC7Vc3GVRDc=; b=jBvI7Hr+w33ZyCZp8s0yJxekUHRPQtcHwHoW9YHKAfEIvVx3EnIMofHl0RjzOYEUdW 9lexG5SmVzNEfs9goE0Z/Igu8hthaNaB5mnbw2RQaEdaeaFdplWEKlelcPY1YUpTx6cm izfPYG6l6mY3EW3x5wpKUooN4lVqWKiSgzw/TuHs47+gcFx9RTdvW3l2stSa+pt5OinB y4akS9ycQDlFC5S1BIcbyMXficrIklqo77h96Qbju9pafoTYJ7rXbq2ZWiXMu5JIIMgD crFoWWcIRt3RPCVDc8QHe+SAW7rbfiWQpqw1orsdGI2IsUNW1Ju/1RElNG5BZ/CwQ/Rf G9Nw== X-Gm-Message-State: AIkVDXLXRtscvRC7xF/aAhZSoZtFwJybZdI1v7JytlffIdJ8G/tUCe6Af8px4u75rCtDcw== X-Received: by 10.223.149.39 with SMTP id 36mr4694785wrs.125.1484918828804; Fri, 20 Jan 2017 05:27:08 -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 o143sm6170302wmd.3.2017.01.20.05.27.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Jan 2017 05:27:08 -0800 (PST) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, khilman@baylibre.com, carlo@caione.org Subject: [PATCH v2 2/9] ARM64: dts: meson-gxbb-p201: add the ethernet PHY's reset GPIO Date: Fri, 20 Jan 2017 14:26:43 +0100 Message-Id: <20170120132650.9784-3-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170120132650.9784-1-martin.blumenstingl@googlemail.com> References: <20161202234739.22929-1-martin.blumenstingl@googlemail.com> <20170120132650.9784-1-martin.blumenstingl@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170120_052830_803024_9FCDB3FD X-CRM114-Status: UNSURE ( 7.92 ) 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, 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 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-p201.dts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-p201.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-p201.dts index 39bb037a3e47..5d2cd2ecfdc4 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-p201.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-p201.dts @@ -50,3 +50,27 @@ compatible = "amlogic,p201", "amlogic,meson-gxbb"; model = "Amlogic Meson GXBB P201 Development Board"; }; + +ð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@0 { + compatible = "ethernet-phy-id0022.1620", + "ethernet-phy-ieee802.3-c22"; + reg = <3>; + }; + }; +};