From patchwork Mon Dec 18 12:54:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13496883 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 862C7C46CD3 for ; Mon, 18 Dec 2023 12:55:39 +0000 (UTC) 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=mgiiYczMasUG4JvJp5hTbKO01cHSc5YkIoYIIA0Nf0A=; b=LTM4rCYLInbgxw aIpUrxCYmcMsHFcVkwFj6DWhGCo/Y0WeUAvE+t5DMsRZG1x12J1PddV4OdHPN1xV5rKUiv781KhqH v8SFKlKc+ySZ+/lgQpzQgRuS5cRVQHoVb13QZxVdaJ1Bc2i7nGNtlqGoOrmssPt3gpKeCW42LND/s MgurgfbSj+9QofUcbNcjOtFLVVBrVnJvNNsmkblVKYUKROx69pcPfEPLmMC7P6rK+QCwHuytEegew rRbpTwYDDIQXvfG2p/I9RQWhHak468nXRIaSmeHhGY28VuxNU3ceEZ0pikmsQ+mxI9S2i2iZ+a/0C Y4wNfyZjzCsk1xEV80gg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rFD9O-00AihO-03; Mon, 18 Dec 2023 12:55:14 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rFD9F-00AiXB-0G for linux-arm-kernel@lists.infradead.org; Mon, 18 Dec 2023 12:55:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1702904105; x=1734440105; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=w4vffnCBrf/RiXQUyuxsVyjURmX/KikU3tXyDH4w3Ec=; b=pC8HqUckBUS+ZXqR3yWNgsnY/wMuC+gR0x6WkY+g67RJBsxdTP5PGtr8 8RsDmUebS21tq8/Myb+qJi8wVrYyTutOYwswtJxIzFriyAaO8PRLoB/gF ce5fIB4sHJ2AtloHGFEDe67ulrJO77HhCqOk/Kp3uajQhxAfyTkp6Dpfi gonUzOyE4nXPec27PwWUg52hUB7wi89SzG+Sn8u8RVxMALg/B5mPSWOVh KaXTBAVo2X+Or1QkLkIuRaf+OXKMeP3xqxsk0zfcIifg24ZrLeM9oaIAo jg93SzVq0H6CtcjF0I6sLr/LEp1db5GYRyGehN2C8KzygzgCEFp2qVc0l g==; X-IronPort-AV: E=Sophos;i="6.04,285,1695679200"; d="scan'208";a="34562695" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 18 Dec 2023 13:55:00 +0100 Received: from steina-w.tq-net.de (steina-w.tq-net.de [10.123.53.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id 0721928008D; Mon, 18 Dec 2023 13:55:00 +0100 (CET) From: Alexander Stein To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Fabio Estevam Cc: Alexander Stein , Pengutronix Kernel Team , NXP Linux Team , linux@ew.tq-group.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 05/23] ARM: dts: imx7[d]-mba7: hog Mini PCIe signals Date: Mon, 18 Dec 2023 13:54:41 +0100 Message-Id: <20231218125459.2769733-6-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231218125459.2769733-1-alexander.stein@ew.tq-group.com> References: <20231218125459.2769733-1-alexander.stein@ew.tq-group.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231218_045505_424990_97D255D8 X-CRM114-Status: GOOD ( 10.97 ) 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 PCIE_DIS & PCIE_RST (correctly named W_DISABLE# & PERST#) affect USB devices as well. So hog them to make USB devices attached to Mini PCIe connector available, despite PCIe being disabled. Supply voltages are enabled unconditionally. Signed-off-by: Alexander Stein --- arch/arm/boot/dts/nxp/imx/imx7d-mba7.dts | 28 ++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/nxp/imx/imx7d-mba7.dts b/arch/arm/boot/dts/nxp/imx/imx7d-mba7.dts index 34adf76b713e..8f2f3898d9d1 100644 --- a/arch/arm/boot/dts/nxp/imx/imx7d-mba7.dts +++ b/arch/arm/boot/dts/nxp/imx/imx7d-mba7.dts @@ -46,9 +46,25 @@ ethphy2_0: ethernet-phy@0 { }; }; +&gpio2 { + pcie-dis-hog { + gpio-hog; + gpios = <29 GPIO_ACTIVE_HIGH>; + output-high; + line-name = "pcie-dis"; + }; + + pcie-rst-hog { + gpio-hog; + gpios = <12 GPIO_ACTIVE_HIGH>; + output-high; + line-name = "pcie-rst"; + }; +}; + &iomuxc { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_hog_mba7_1>; + pinctrl-0 = <&pinctrl_hog_mba7_1>, <&pinctrl_hog_pcie>; pinctrl_enet2: enet2grp { fsl,pins = @@ -76,15 +92,19 @@ pinctrl_enet2_phy: enet2phygrp { ; }; - pinctrl_pcie: pciegrp { + pinctrl_hog_pcie: hogpciegrp { fsl,pins = - /* #pcie_wake */ - , /* #pcie_rst */ , /* #pcie_dis */ ; }; + + pinctrl_pcie: pciegrp { + fsl,pins = + /* #pcie_wake */ + ; + }; }; &iomuxc_lpsr {