From patchwork Sun Jan 22 18:10:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9531313 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 D63E2604A0 for ; Sun, 22 Jan 2017 18:16:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C7C9027FA6 for ; Sun, 22 Jan 2017 18:16:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BCB8F27FBE; Sun, 22 Jan 2017 18:16: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 4EF9327FA6 for ; Sun, 22 Jan 2017 18:16: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 1cVMgz-0004of-4a; Sun, 22 Jan 2017 18:16:41 +0000 Received: from mail-wm0-f67.google.com ([74.125.82.67]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cVMcW-0007Mm-Q6; Sun, 22 Jan 2017 18:12:07 +0000 Received: by mail-wm0-f67.google.com with SMTP id d140so20756161wmd.2; Sun, 22 Jan 2017 10:11:42 -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=JuebEjSobCCmqqdfSpwJ6ekzHOFnifpHpK/oSwsSQAU=; b=AZx4ipbp3L0jPxxQXY+hBDIgFVPjwgLvx3PNlv9qxJ5LpcHaheyj8c8Om0cgEVWt75 6ufngBeJAbVP+ERayK7Wfu2Vom7L8D71pUYkxT7atMMl0xQF39xX2GNJUJU3nP8SnenP 9JvqwA7jnJLMuJoqleEa9oNgT8LZW3wAnLvLY7sSZZEh/J8M0Snr7imJBjPMlxM2gNLO OtJNJXdI1mYHEvg3/XoKXMfuXTMyFzLZe0tf4UQb98l/4KMMKARudhAdEx4dC2VpgbpA +wAUclG303K4IpBHX0RLFtXh0VPSCTh11wE8Jst4gQenALDc4zT3lzjKNf3AZFaE2pS6 aHbg== 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=JuebEjSobCCmqqdfSpwJ6ekzHOFnifpHpK/oSwsSQAU=; b=MAe1Wh61LQNLHUrBdA4725acMvaLz14nMrp+yFjcmmv41Wg7GcAbegdR+MFRqOXSb/ MxLEKQZsLLNGnZTSB2aGYPOuPGAYirUp8prq43UMe6NQYiqtHmcmmj0l6W95oH2GFWV8 xpzX8LqkCA+f1nQ0ycesftW4oR90stYE0TDEcwMw0D5vg6T78C8em8SxLlqZv1NBeyi/ QyaR1FtM2RGgN7tBLvY+7K4dbByrVxcADNH4dRrcD87KKAEr7pHiFNUOlFyz5O6kRjiT yvcuZW4SA7PmQBpwjOaJn2s9QLTCY8qMwxucOqHzck7QBvWsl5KOw3pj5Vq9tuLRbIL/ wMZw== X-Gm-Message-State: AIkVDXKbESdazzL6z4sQ/Y2gwwONqgJGRZdIiE3SUGMcKPOels7I5xDASgxYNcnvA2Xh9Q== X-Received: by 10.28.37.7 with SMTP id l7mr11799381wml.140.1485108640908; Sun, 22 Jan 2017 10:10:40 -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.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Jan 2017 10:10:40 -0800 (PST) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, khilman@baylibre.com, carlo@caione.org Subject: [PATCH v4 6/9] ARM64: dts: meson-gxbb-wetek-play2: add the ethernet PHY's reset GPIO Date: Sun, 22 Jan 2017 19:10:25 +0100 Message-Id: <20170122181028.5014-7-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_101205_033926_CAEE1492 X-CRM114-Status: UNSURE ( 7.39 ) 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 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 --- .../boot/dts/amlogic/meson-gxbb-wetek-play2.dts | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-wetek-play2.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-wetek-play2.dts index ea79fdd2c248..c1392ed8dd4c 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-wetek-play2.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-wetek-play2.dts @@ -87,6 +87,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@0 { + /* Realtek RTL8211F (0x001cc916) */ + reg = <0>; + }; + }; +}; + &i2c_A { status = "okay"; pinctrl-0 = <&i2c_a_pins>;