From patchwork Tue Oct 16 10:50:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baruch Siach X-Patchwork-Id: 10643427 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 A96961057 for ; Tue, 16 Oct 2018 11:04:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8CA41296F3 for ; Tue, 16 Oct 2018 11:04:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 80EE92986B; Tue, 16 Oct 2018 11:04: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=-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 5A69D296F3 for ; Tue, 16 Oct 2018 11:04:17 +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: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=IzfZ+kmnoPb0luWfqjO3/YrvynxkwzQDiiklHLlFW0o=; b=celL1mW5noBocp QVhapXzPPAmNcqtQG37PHCbn3Sbk1nsTLzAZTgMQxEnbW6sXkrbRkMDWc4ion9bF7RIlpDFY7Q+H2 Kgnljz20XNCodOSnlGOBSNgOr10qHExBqRvdX3VlSqMd81SIxj5hK66YUBWuegm8zpmSPASjlg2Uk eqvBONmCRWqwJ890ODaXZTnJ5DcJsPE7iu9EfXzk47SpSnYN73ACrVkPVLUSFrSAz43eEMlV3dPKt 6SB2CfUCb1ctSHPBg3hd6f8cXBHLcZFl0PSuguBwCzkV7D9C91dKffluM6yJ9NjSwTQ7pnT0T/Kai 5ViNwaF8IPgknjd8Q5QA==; 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 1gCN90-0000em-4L; Tue, 16 Oct 2018 11:04:10 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gCN8n-0000YE-Nw for linux-arm-kernel@bombadil.infradead.org; Tue, 16 Oct 2018 11:03:57 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: 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:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=h+e+OBT7GuJaX3+XcJZGIG3/bFt43spT6TDBBJg/Tk0=; b=mVcCDAbVGrlWIBtMltW1TG9tP6 gB4DTEgJMmBdXwQ6cJemLDOSDggOi76XXMxcMcu6AaT3Z/AwvcuY1epEaCSIb5sGnn4sncFDYVIun vwV7HDmMX0wX1NbdWrZigYiwBmp8wcQmGwSA6K4HPTEsaizRjjOclVW5xzB6wax/rFSn4+BbPdprq m337WPN5EOo8jt2gnXJs7ZJdKHjJCQKsV8aI1bjdPQG6R8Jb7l3Pf85fXVJgQ2k5M2lAeKzqevWzA +8idCwIcX6OO1HIBkOIuFbqfvkq32HXDEytGnNz2SjU3D+MZeXqFV+iv3gDNpfHZyZNUZb6+blxiM QkXGHynw==; Received: from guitar.tcltek.co.il ([192.115.133.116] helo=mx.tkos.co.il) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gCMyK-00036a-8e for linux-arm-kernel@lists.infradead.org; Tue, 16 Oct 2018 10:53:10 +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 21636440072; Tue, 16 Oct 2018 13:52:49 +0300 (IDT) From: Baruch Siach To: Jason Cooper , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth Subject: [PATCH 1/2] arm64: dts: clearfog-gt-8k: fix USB regulator gpio polarity Date: Tue, 16 Oct 2018 13:50:52 +0300 Message-Id: X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181016_115308_414751_9ED28C50 X-CRM114-Status: GOOD ( 13.00 ) 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 The fixed regulator driver ignores the gpio flags, so this change has no practical effect in the current implementation. Fix it anyway to correct the hardware description. Signed-off-by: Baruch Siach --- arch/arm64/boot/dts/marvell/armada-8040-clearfog-gt-8k.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 aea9c220ae6a..af1310c53bc8 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 @@ -42,7 +42,7 @@ v_5v0_usb3_hst_vbus: regulator-usb3-vbus0 { compatible = "regulator-fixed"; - gpio = <&cp0_gpio2 15 GPIO_ACTIVE_HIGH>; + gpio = <&cp0_gpio2 15 GPIO_ACTIVE_LOW>; pinctrl-names = "default"; pinctrl-0 = <&cp0_xhci_vbus_pins>; regulator-name = "v_5v0_usb3_hst_vbus"; 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 {