From patchwork Sun Feb 19 21:41:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9581881 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 A7A33604A0 for ; Sun, 19 Feb 2017 22:03:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8FF6D27CEA for ; Sun, 19 Feb 2017 22:03:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8492F287C9; Sun, 19 Feb 2017 22:03:11 +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 EB65427CEA for ; Sun, 19 Feb 2017 22:03:10 +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=OIW7XnlzZPVJX5mVKjU7WxBdNcMhJ4DGQhPpjWhoruM=; b=pO+yBUcrbXcWiC6qSIhSQ7w6Ig 8r/wvXlPlTTXQKtnvalUuInKrvLpriRLfJlI9EHERQL5qzi12n5QmClcP9UATGWcBz1DsQbq1QrXZ SMlqlAt+0W7GMi3n5V+Lbt3tlRmi8ZKbMmKusvEwQgu6ixbZ6pzcYoL1Wdka8A+YABJhpO1FcSXMZ I3zXKmapGFfY3NjcYD7fYyzZ+lX/VSEbDNDXTHVRiHO3KJ4WNmtIUmnGfegiNiFntjSuP+t58fwdY 0thpGilCymqcbOxGhsYSmq8siXkMiV/AZGtdTiKeQ3he2VzI7/4YkQ6aoLkoLCfkEUpKSK7g1UP84 W1S2ftag==; 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 1cfZZW-00064g-3W; Sun, 19 Feb 2017 22:03:10 +0000 Received: from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cfZFl-0004vz-Ii; Sun, 19 Feb 2017 21:42:50 +0000 Received: by mail-wr0-x241.google.com with SMTP id z61so9442694wrc.3; Sun, 19 Feb 2017 13:42:25 -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=zERQZOPYaMBqM5c1T+dhT3xmIvDCKOGiogurAbRypdY=; b=BG/1bFVbQqYXKyMiDln7tFjXNqjSfQsE5+rLW6zA4NZtpd2kds62keayJ61umdapuS CzsCZ+3b0odO3S2RlCzzvulVTQXLpovlLIYVaFQD55cW3L4/eP9eBfsRl9PffaFOI7LO +o595RiA+1R2ChX5s5gThTplJ3YAZ5aQpWc/Q5zuqYhqHFIeTCC4RcjdYVLkF3uTuWI/ cKXAe/+u/iVpdx+O+TrKVqVqZfutfg/GTzcG/929jmNuMWxVPdlonjDsj7okQd8MkER4 89Wkw6N9SUzSCKAcr4sbiA98HHTMx5f8jeGRTOFOKWS5i68wCT0aTwmiZPa5XNSE9BTD n04g== 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=zERQZOPYaMBqM5c1T+dhT3xmIvDCKOGiogurAbRypdY=; b=ofouMy+2Tf4wu2diNosinmjKCvfpja0ASFzHPuTWEy0AkOPbTkpoL03LgUF5UQuhNb jqJ5HyEWgKE/2UCYBd1RHflZHKtzgNudgcYGnLGZoI0RvYv6qTGFZHiMTbBYPdnindFF her8vT4Fx2Vtp7QJpribyLhbIVJGoSBx6aF5W+QF+Xw4r8jv3+C5bd8DFcRR8s0uJxeJ Pai7hockkLmnNKSiXJPU+Pf9P027IT/gykUuWa9q8a7HKyT3Yyz4blqdRy//WgVL/VFt 6bUGKDo7OW+jpeU9AlPS+gf3Suv0H5CZwcKChxPYNdSkAwAlGe311tSH1vEaihtK1Ubx icNw== X-Gm-Message-State: AMke39lJIXc+iiNLzDuPTOeLOsjlWupMsLPmLxI2Jblr9MKeFaandJOpq1C6HTYkQTdM8Q== X-Received: by 10.223.160.180 with SMTP id m49mr3378443wrm.167.1487540543879; Sun, 19 Feb 2017 13:42:23 -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.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Feb 2017 13:42:22 -0800 (PST) From: Martin Blumenstingl To: khilman@baylibre.com, linux-amlogic@lists.infradead.org, carlo@caione.org Subject: [PATCH v5 4/9] ARM64: dts: meson-gxbb-nexbox-a95x: add the ethernet PHY's reset GPIO Date: Sun, 19 Feb 2017 22:41:44 +0100 Message-Id: <20170219214149.30418-5-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_134245_956886_E967C13B X-CRM114-Status: UNSURE ( 7.97 ) 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-nexbox-a95x.dts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-nexbox-a95x.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-nexbox-a95x.dts index 4cbd626a9e88..dbfa441f479e 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-nexbox-a95x.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-nexbox-a95x.dts @@ -164,7 +164,24 @@ status = "okay"; pinctrl-0 = <ð_rmii_pins>; pinctrl-names = "default"; + + phy-handle = <ð_phy0>; phy-mode = "rmii"; + + 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 { + /* IC Plus IP101GR (0x02430c54) */ + reg = <0>; + }; + }; }; &ir {