From patchwork Tue Nov 7 02:49:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Zhong X-Patchwork-Id: 10045655 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 C82CE6031B for ; Tue, 7 Nov 2017 02:50:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B722C29D23 for ; Tue, 7 Nov 2017 02:50:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A896C29D8E; Tue, 7 Nov 2017 02:50: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=-3.7 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM 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 6D73529D23 for ; Tue, 7 Nov 2017 02:50: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: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:In-Reply-To: References:List-Owner; bh=iyhKEs37CfbxCyXIWvJwOeT4+KOsPBMQDRj3hJJyGL8=; b=Kpz FcBUbeWmzRLwAlwkEU/uaVCOUhEhThy0Xc8mtLifztjMtzDr9J99yQ8w9HmpAslWzYuCW+X3wEx30 8Ub96K7gk79FIRUiBxYuaM+Bxu+Lpk5rhRV23lIMk9J9P0iLgBl4mkSFjrkgiE1iuO9bPRaHyCKJE oBOJHIu+0rWSnkHm8L5GwvsJ3nKH7Fej7Mvoz571cghttI/Pl30NEHwIEH4OMp4y4K/30gu0xU+uF 8YgriNy7sfjIXelf1+vM+MebAdp5Dh/k7Ui341z0+H74MNfUrdZseO1IZEE10TbjPp84+Fi8uSH/A gra5Iqxv/eshRuu3IGrTPr2tkHT1o0w==; 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 1eBtxu-0006RV-59; Tue, 07 Nov 2017 02:50:14 +0000 Received: from mail-pf0-f196.google.com ([209.85.192.196]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eBtxZ-0005XD-Hd; Tue, 07 Nov 2017 02:49:55 +0000 Received: by mail-pf0-f196.google.com with SMTP id n14so9231779pfh.8; Mon, 06 Nov 2017 18:49:31 -0800 (PST) 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; bh=TXTbw/WZosVeX04/R/SVVSTaMO8jfVIPTpvxsjMaijA=; b=G/2A3dCSaDgHAgCXJtfXBtlwT/RmMQjfRm8KP33rKAoDkOliBH1MNekIItgDxI/2nj rhyFKDpNN/2DNvpyVFOQf/+lpmQp6cQJwqHKh1D3ueVTYiBXt3U02HfooYYKTrXPr09H jIylxxv0PruVvgOhx6vNYe/5GakDZUYYHQJ6r4pYuyhnpTNjjv5tBl/KKDeuhBhpZfHn kVbg+9ek90IgROKe/zrmy/IxjUsw8QWV/WSOtlDUcmc8KOnOyIsvKWR8TaQOFwuNhYix Kz30o3b/VAYB+LwsTUfsSwliAJ7INzpCXlXTgZb+d+ThG0t/tz03Mk305GsFVVfjxsl3 QwFg== X-Gm-Message-State: AMCzsaW1wh8ZiFXmZ1AoyV6wFAndYeXepnRIFEm9pw1oDYJh+LJCN6NP CJTm0P9Hi8l3pIvJV9mZ8iM= X-Google-Smtp-Source: ABhQp+ScWa76DfNVGTe4nfvLf+mfUlURhgdUwUn7TUye0MQCT/cbPGk8RtcRrvVlhq7GmaCoZjmQ1w== X-Received: by 10.99.55.82 with SMTP id g18mr16883619pgn.31.1510022971466; Mon, 06 Nov 2017 18:49:31 -0800 (PST) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id u77sm224047pfd.168.2017.11.06.18.49.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 06 Nov 2017 18:49:30 -0800 (PST) From: Chris Zhong To: heiko@sntech.de Subject: [PATCH] ARM: dts: add phy-reset property for rk3066a-rayeager emac Date: Tue, 7 Nov 2017 10:49:19 +0800 Message-Id: <1510022959-19440-1-git-send-email-zyw@rock-chips.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171106_184953_613422_DEB5F45D X-CRM114-Status: UNSURE ( 8.35 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Russell King , linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Rob Herring , Chris Zhong , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The ethernet phy of rk3066a-rayeager has a reset pin, it controlled by GPIO1_D6, this pin should be pull down then pull up to reset the phy. Add a phy-reset property in emac, make the phy can be reset when emac power on. Signed-off-by: Chris Zhong --- arch/arm/boot/dts/rk3066a-rayeager.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/rk3066a-rayeager.dts b/arch/arm/boot/dts/rk3066a-rayeager.dts index 570157f..6064a0a 100644 --- a/arch/arm/boot/dts/rk3066a-rayeager.dts +++ b/arch/arm/boot/dts/rk3066a-rayeager.dts @@ -173,6 +173,8 @@ pinctrl-0 = <&emac_xfer>, <&emac_mdio>, <&rmii_rst>; phy = <&phy0>; phy-supply = <&vcc_rmii>; + phy-reset-gpios = <&gpio1 RK_PD6 GPIO_ACTIVE_LOW>; /* PHY_RST */ + phy-reset-duration = <10>; /* millisecond */ status = "okay"; phy0: ethernet-phy@0 {