From patchwork Sun Feb 19 21:41:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9581879 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 E85AA604A0 for ; Sun, 19 Feb 2017 22:02:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C413F28705 for ; Sun, 19 Feb 2017 22:02:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A7FCF287CE; Sun, 19 Feb 2017 22:02:16 +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 3426128705 for ; Sun, 19 Feb 2017 22:02:15 +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=QHhNechVxQuDYZc2T/aIBYhVFYZziKan6j/gu0dkk3A=; b=HEqL1C41Hxxb/ubceC5VI7CLYL DE3434MnnI0djnUeHYV5G5AvkPLmrtj5hDpJtuh4mnhSuHjFHNl0eBc6qeVFLToSqOrKYjAc9+6xp 4EdJWmNLFXrxGQFWDyVnvhdnf1apEj64n/+DlcGaHHyrjl6GK+EFLjZ+H5XsDUG+8LMfO2lkRSCY3 1zb94tCMFGq3NgC9575B5abPtC0tqRtMX88JWWodeDpUn88duTS/AL4bECtv1bSKd5t3J6uaDsMLd vbgE8QEOtX5fMEYBFEC3RUnnYxnhCxCIvGLrWos2nqSmxAQkDfl/ltnS4WxzcXBYE+Y5ikxwtHmEe 2tJEL31Q==; 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 1cfZYc-0005su-DD; Sun, 19 Feb 2017 22:02:14 +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-0004wE-Ih; Sun, 19 Feb 2017 21:42:49 +0000 Received: by mail-wr0-x241.google.com with SMTP id 89so3552572wrr.1; Sun, 19 Feb 2017 13:42:26 -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=dOwDjVwfb5OO9AUVDah6Sg0n12FBussyEIalO4+lptA=; b=Vl1KOdf2OpTL2L9AVVgpZJDYNjWe/iy6HuB8PnpoawfU6Wptg57KDwzxB9zhoX7qAj OdkI2j6FAGbqHbF8xbF4FFzZlqMfzdLH10dCMczDPIAQgfM6CQ1rgxveVLQW6V+r15gl LLfl/EO2aAbyH9dqlnellk8OgmrIsmDIgbjTW43lVTDRnfSmuuw74jUsw9FvyIRV+4DP PJ7UFSfzEwAp6JVOb9Z1G9N8F1qEqDPvCWTckH2DUsEyC/+3GsQTc5ublRF+oyHSBkMp n3eRW9ikzdJEjFx0um82GVHqleMOOyItsDjYDKpmnzTCBUjikInrGgHC0dMQJYBsQcz0 LlCg== 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=dOwDjVwfb5OO9AUVDah6Sg0n12FBussyEIalO4+lptA=; b=KJ4t81SY4Y/nui5Pd3U5EoXQI7QoI9sY/i83TSJAKFNl9v3L/PKS/Y0Q3DSubAaddw Mb1Ig336+1k0ugP+kdwNdFWf/D3AYbEppFodlwKZ5SVwDGf6zjEP6gJEX185RV3NYiKl EWeQ52OvZzlbGbgxvYmNlmfkhUxCwrRvQxuD5OqsNsTu0lf+AIaWv/OpFQaOwBjlWbPe vUZWiOlIj4HdIu4pZHojBI36sdSohPzXW1PAKDD+2CLrMfutGRkccdjtFDJqsAoSK16k SEjETZREDJ+oINs92I+gl0yNC7pLo4ugweaU+dSQ4VcIWcIYSCXkNuKE5z3/f2/MBBee WsoA== X-Gm-Message-State: AMke39mgztOEgibIHy8NxOLhu+mTZcO760m0vx5oHxGLULq86QypWXev1xFPqBEPOcCqRw== X-Received: by 10.223.163.201 with SMTP id m9mr14650061wrb.66.1487540545630; Sun, 19 Feb 2017 13:42:25 -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.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Feb 2017 13:42:24 -0800 (PST) From: Martin Blumenstingl To: khilman@baylibre.com, linux-amlogic@lists.infradead.org, carlo@caione.org Subject: [PATCH v5 5/9] ARM64: dts: meson-gxbb-wetek-hub: add the ethernet PHY's reset GPIO Date: Sun, 19 Feb 2017 22:41:45 +0100 Message-Id: <20170219214149.30418-6-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_956423_E6D99A58 X-CRM114-Status: UNSURE ( 8.35 ) 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 --- .../boot/dts/amlogic/meson-gxbb-wetek-hub.dts | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-wetek-hub.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-wetek-hub.dts index 56f855901262..50eb8f06d35b 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-wetek-hub.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-wetek-hub.dts @@ -64,3 +64,27 @@ status = "disabled"; }; }; + +ð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>; + }; + }; +};