From patchwork Wed Nov 8 09:50:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Zhong X-Patchwork-Id: 10048151 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 14A9C60247 for ; Wed, 8 Nov 2017 09:51:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EFCF9291F3 for ; Wed, 8 Nov 2017 09:51:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E17422A50B; Wed, 8 Nov 2017 09:51:18 +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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED 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 74E14291F3 for ; Wed, 8 Nov 2017 09:51:18 +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=0xOgedm5TxUN4Il1slHR8obdjPqVNTTx9DEe1uHd8MM=; b=DrG Ex8iOXHNtwPsSnEgDUUemGJP1HL6uwO44AGs7ekM6TzR1H50JUAseWueR6iGSCQtIa8As7JkR9if3 D2JIQ2dlrK/1hPa3Dns/AEyEtBrw96OpJf+rJ6StLF+tr/RoPJRHndWt+Kip3XP5vhZheqcIFo7PU TSe2DSd1qHrp+LkeE/LCrWgV/80Big76wQPurfTM/WPe11DkTbCR1LgTmerDR2voBG0wV30H2GF+S 5GLbPUqZiMwAWKXX+c5vfuETbF/mVZu+1XRZdHo5Sk6cn275xfh71mLBhqona42uzTdRLgJvKIebb ot+ECifqf3oQri6IoYAlqWzckViHxVQ==; 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 1eCN0v-0007Oj-Rr; Wed, 08 Nov 2017 09:51:17 +0000 Received: from mail-pg0-f67.google.com ([74.125.83.67]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eCN0o-00072n-M4; Wed, 08 Nov 2017 09:51:13 +0000 Received: by mail-pg0-f67.google.com with SMTP id y5so1396192pgq.7; Wed, 08 Nov 2017 01:50:49 -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=2NG+8dqlb1L3d6dOGD2zs66q5XWGi8nPpCsLxs6vHFM=; b=At2MvknAEF6sWjtmCADJ+XdgtMmQMj0Y3p0MgNSMkVSw1FCNoIviaKQwCPhNB6cMEM 0QxbmzXC4Jhp/GUhM226oTKSwRTnRmDjUXXm6SOiwbOZYp1w9e+l5egz5La/1XxDlC/9 yyym/7kJpBuA1XQI+HGKfCzPPDgP+WfEG50XPHqiO0QUBzo2BTC1FJsbr+33luX2lmcl 4d52WERpWFMv3taH9D6lHX6C5HSX08g28qEgRr0/4jucV+djAayu0PLuxg2UlAGy/KMy Tkee8c9+WMDjhyaRbNjHzyyJGCMcwjsQziYpK8R9u23XLEGASlj4MScFEf7Rn/zoILoc /WKg== X-Gm-Message-State: AJaThX7zFbfx3B4NHHbq1R3iTre0OC6GG1XmTuMCuCpYAkRKpKeTx+9v 0JvHeoqLbECVO9MifLyZAB0= X-Google-Smtp-Source: ABhQp+SfJVrRX+MX1zXgsRu1/6bfkLk05V7kkvOz8sefi71BFr1rrBISn+XsHzArTayQ58BGozKOJw== X-Received: by 10.101.81.67 with SMTP id g3mr1788522pgq.262.1510134649459; Wed, 08 Nov 2017 01:50:49 -0800 (PST) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id t202sm251952pgb.75.2017.11.08.01.50.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 08 Nov 2017 01:50:48 -0800 (PST) From: Chris Zhong To: heiko@sntech.de 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171108_015110_861208_CAD182ED X-CRM114-Status: UNSURE ( 9.38 ) 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 , 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-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=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 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>; }; };