From patchwork Tue Oct 16 10:50:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baruch Siach X-Patchwork-Id: 10643469 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6EAA914E2 for ; Tue, 16 Oct 2018 11:47:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 54B5529820 for ; Tue, 16 Oct 2018 11:47:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 484EF29A46; Tue, 16 Oct 2018 11:47:06 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 F346B29820 for ; Tue, 16 Oct 2018 11:47:05 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=9gFRbbx56z9tOtoCJX3VGkzzLl103Qzh7E/hJ8MrqPo=; b=RX4t1moSUfD3qX hZeZy8iRZPA4YVWZomJCBJeGTpBKwjfteE6slDVjztt+XEhhpiSrETvTYjaHc3YSvHd4Q6GxQj70f SkrzeaW8MZWpFp1r0cie2kUOm/gTNSKIcpjlDGnQE6RX+pAEyhPfqpYipZZjzCHsahFVB7nrzMoaj GTNDCaS3eYc37/2kG5QINpidOfqM9kV29FU7rHXl0qz24LoGSd7qMuV0gJJA93hyN2dtOGQOHK3mH W+zpCQ/5tdU+9IjXK8GiQ5kTpi7JEjqMaXvKqvH7t3FLJZJn48nSsvj8weZiWeRaCL3slv+piYrpm kr4IqszKAkG2MVtQM2+Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gCNoP-0008Vo-KY; Tue, 16 Oct 2018 11:46:57 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gCNoN-0008VQ-Hu for linux-arm-kernel@bombadil.infradead.org; Tue, 16 Oct 2018 11:46:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Y3EjHXmATiEwbd3VDI2Nc1UhAeY94DDOPozCjcFSQTM=; b=GAA9atDv2Di8ulnZIPRCDH64JX P4pfP2tsxtM8k6VYkTJbLncNjdr8fEiKKygSlzXMCV9EVUOadOVXG3VwqE/monHFrBu6AEzP7xP5m nIVfooJ25vGetR76ofu1BB/yVyNT8UsgyLBLAi8KWvpAzTNtOkv8/7/t5to8bAmRjhg2O86BgCSDK GGELTmQDAyBOJI/gseZWlBz9CRq5+VRTiw5N56BM6JfnO8YP67JXzBSV95rBR5OO+Mf/KT52sc77v AduQJGGX1ltuzh/daBE4hQuzCvkdkUQ0PyMyB1LD8vjRaM7amxnuDA0wUo2udjFcqhobUoCOFQbOL jt+CDg9Q==; Received: from guitar.tcltek.co.il ([192.115.133.116] helo=mx.tkos.co.il) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gCMyP-0001Hm-31 for linux-arm-kernel@lists.infradead.org; Tue, 16 Oct 2018 10:53:14 +0000 Received: from tarshish.tkos.co.il (unknown [10.0.8.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx.tkos.co.il (Postfix) with ESMTPS id CE7A1440522; Tue, 16 Oct 2018 13:52:50 +0300 (IDT) From: Baruch Siach To: Jason Cooper , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth Subject: [PATCH 2/2] arm64: dts: clearfog-gt-8k: 1G eth PHY reset signal Date: Tue, 16 Oct 2018 13:50:53 +0300 Message-Id: X-Mailer: git-send-email 2.19.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181016_065313_326087_9CB00859 X-CRM114-Status: GOOD ( 15.37 ) 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: Baruch Siach , Florian Fainelli , netdev@vger.kernel.org, Linus Walleij , Russell King , Ori Shemtov , linux-arm-kernel@lists.infradead.org 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 reset signal controls the Marvell 1512 1G PHY. Note that current implementation queries the PHY over the MDIO bus (get_phy_device() call from of_mdiobus_register_phy()) before reset signal deassert. If the PHY reset signal is asserted at boot time, PHY registration fails. So current code relies on the bootloader to deassert the reset signal. Signed-off-by: Baruch Siach --- arch/arm64/boot/dts/marvell/armada-8040-clearfog-gt-8k.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/marvell/armada-8040-clearfog-gt-8k.dts b/arch/arm64/boot/dts/marvell/armada-8040-clearfog-gt-8k.dts index af1310c53bc8..73df0ef5e0c4 100644 --- a/arch/arm64/boot/dts/marvell/armada-8040-clearfog-gt-8k.dts +++ b/arch/arm64/boot/dts/marvell/armada-8040-clearfog-gt-8k.dts @@ -337,6 +337,10 @@ */ marvell,reg-init = <3 16 0 0x1017>; reg = <0>; + pinctrl-names = "default"; + pinctrl-0 = <&cp0_copper_eth_phy_reset>; + reset-gpios = <&cp1_gpio1 11 GPIO_ACTIVE_LOW>; + reset-assert-us = <10000>; }; switch0: switch0@4 {