From patchwork Fri Oct 15 12:48:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frieder Schrempf X-Patchwork-Id: 12561409 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B45BCC433F5 for ; Fri, 15 Oct 2021 12:51:48 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8539E60ED4 for ; Fri, 15 Oct 2021 12:51:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 8539E60ED4 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=fris.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=yfcBHwNGk3aAVatk6okHGDwsllSO3iFUWaMEZQ+hqvk=; b=Lvsn7g07yva78G Bz7UfBudPPVosBbcukTQPFOEONLBHwJI5DfWHj9pbjVN2ziATZvkTwboccIxulk1MqcBv9JdmVcJe 0lXcZmwU7eV37G4UhWoX/B6v9vm/XA3QwrMLz1UcVUpeYZ4HNgnom63zm6acJ16LkRlt1Xum6tUe8 kiCNUueegB9EMt+Z9Hu2cuwltVlxaJuUcR2zvhTFJC1tsbIL0KyoUBEHj7DnXUZdzuiZEki6s7EYB PlD19r9ONlw5/suGsEtMngs/b7SbVti2OAUG5iu00tA0r72XO5kLxYqbGZyj4IhMSzwqRd8H1OJSg HLGBhztiK3wJMZFIx0aA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mbMf9-0070VE-Pr; Fri, 15 Oct 2021 12:50:15 +0000 Received: from mail.fris.de ([116.203.77.234]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mbMeM-0070D8-SN for linux-arm-kernel@lists.infradead.org; Fri, 15 Oct 2021 12:49:28 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 995B1BFC0F; Fri, 15 Oct 2021 14:49:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fris.de; s=dkim; t=1634302165; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=qyKqlEMeX9Tm7dfttgspJlNv6P8/Mp4wZW/lQk9UnEM=; b=cDwO+PEgE4WH6DuMKKiQlD6ZkrIMM5pI2zXITWB8x/9PCxd/UjuzENvF4p1N0uzEPmHei9 epecBEgKcre1Q7sxXCL0QYdDq0IgZdmkI9jtX+mp3R9XR09rf+zfONXpt6qlBWHYEDhlOf dZntCBKz7bMHlXJhTJmC0n0lKeCdpmSgayA8oEfw7jK9us/hEpQE2+aCUA9wNM0Khic4Zz kWowyki8KYbu1ELa1fYdLjA3uc7cphHZaNLRBF27RyvcaqaZD1E1IZbkGLHxL+pRMJVsvW Vl+ZHw8xTkaGGWg11apwvcJ8J6iBIUuaoesuaHotUmRGbyu61uIhnOScmSWzog== From: Frieder Schrempf To: devicetree@vger.kernel.org, Frieder Schrempf , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Rob Herring , Sascha Hauer , Shawn Guo Cc: stable@vger.kernel.org, Fabio Estevam , NXP Linux Team , Pengutronix Kernel Team Subject: [PATCH v2 4/6] arm64: dts: imx8mm-kontron: Fix polarity of reg_rst_eth2 Date: Fri, 15 Oct 2021 14:48:38 +0200 Message-Id: <20211015124841.28226-5-frieder@fris.de> In-Reply-To: <20211015124841.28226-1-frieder@fris.de> References: <20211015124841.28226-1-frieder@fris.de> MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211015_054927_104140_FF3DE22F X-CRM114-Status: GOOD ( 11.86 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Frieder Schrempf The regulator reg_rst_eth2 should keep the reset signal of the USB ethernet adapter deasserted anytime. Fix the polarity and mark it as always-on. Anyway, using the regulator is only a workaround for the missing support of specifying a reset GPIO for USB devices in a generic way. As we don't have a solution for this at the moment, at least fix the current workaround. Fixes: 8668d8b2e67f ("arm64: dts: Add the Kontron i.MX8M Mini SoMs and baseboards") Cc: stable@vger.kernel.org Signed-off-by: Frieder Schrempf --- Changes in v2: * Fix the commit ref in the Fixes tag * Improve commit message * Remove useless change of uncontrolled reg_vdd_5v --- arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts b/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts index 5f6fc4c2c529..a192a047f264 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts +++ b/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts @@ -70,7 +70,9 @@ reg_rst_eth2: regulator-rst-eth2 { regulator-name = "rst-usb-eth2"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usb_eth2>; - gpio = <&gpio3 2 GPIO_ACTIVE_LOW>; + gpio = <&gpio3 2 GPIO_ACTIVE_HIGH>; + enable-active-high; + regulator-always-on; }; reg_vdd_5v: regulator-5v {