From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752085AbdKHJuv (ORCPT ); Wed, 8 Nov 2017 04:50:51 -0500 Received: from mail-pg0-f68.google.com ([74.125.83.68]:55718 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751081AbdKHJut (ORCPT ); Wed, 8 Nov 2017 04:50:49 -0500 X-Google-Smtp-Source: ABhQp+SfJVrRX+MX1zXgsRu1/6bfkLk05V7kkvOz8sefi71BFr1rrBISn+XsHzArTayQ58BGozKOJw== From: Chris Zhong To: heiko@sntech.de Cc: Chris Zhong , Rob Herring , Mark Rutland , Russell King , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] ARM: dts: add reset property for rk3066a-rayeager emac phy Date: Wed, 8 Nov 2017 17:50:41 +0800 Message-Id: <1510134642-18797-1-git-send-email-zyw@rock-chips.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 reset-gpios property in phy0, make the phy can be reset when emac power on. Signed-off-by: Chris Zhong --- Changes in v2: use a generic property for reset, and this patch follow these 2 pathes from Geert Uytterhoeven http://patchwork.ozlabs.org/patch/828499/ http://patchwork.ozlabs.org/patch/828505/ arch/arm/boot/dts/rk3066a-rayeager.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/rk3066a-rayeager.dts b/arch/arm/boot/dts/rk3066a-rayeager.dts index 570157f..04c1f97 100644 --- a/arch/arm/boot/dts/rk3066a-rayeager.dts +++ b/arch/arm/boot/dts/rk3066a-rayeager.dts @@ -177,6 +177,7 @@ phy0: ethernet-phy@0 { reg = <0>; + reset-gpios = <&gpio1 RK_PD6 GPIO_ACTIVE_LOW>; }; }; -- 2.7.4