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: 9581863 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 358D06045A for ; Sun, 19 Feb 2017 21:47:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 260CB204C1 for ; Sun, 19 Feb 2017 21:47:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1AC14205D6; Sun, 19 Feb 2017 21:47: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 95E9F204C1 for ; Sun, 19 Feb 2017 21:47: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=j0tdWqlrr1o2xf8WDzZNtv7sjT+VzcXylWV8mfCtu8U=; b=dgbJOqupzPmPNIGiCiPvgFQrcb Zyab4jdeay5PDPxBlbtJ7IxXeI+2XdZyIXgpM7yddABSDydjpiNon7xW9vlUsfyPBTmVZFz0pHvaI PGMaGy1VTfkG0S1hJ+tnPsRZb93CJQiDHNpHATI5u/KJKQyKCVInpseJad+iGeX+fJVzEcQt1iN3V PH1vp1r5bwESgmygNiRyvaWDslHMxz7planQEfOI1i9ruA0xoRwTAcQsxcQiBmhV6EqMMstuHoMof LYbcoxrhxelD1n7wBTl3Mjf3sWHs8HWhCl0CVlRU7QeS2AV04VNCSCLvzC49XU4HNeEQ0/aZwo/tU 3oAXQFxw==; 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 1cfZK5-0008Vw-Ng; Sun, 19 Feb 2017 21:47:13 +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-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 --- 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>;