Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4615350pxb; Tue, 5 Oct 2021 06:54:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwakFXhVfoouUeCHEnOrnYKXLIR7EwFUA/qUomZl7z1ArnO3h4S46O8Lfz/MEUMxrxUq/Hc X-Received: by 2002:a17:906:498b:: with SMTP id p11mr23963330eju.295.1633442069094; Tue, 05 Oct 2021 06:54:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633442069; cv=none; d=google.com; s=arc-20160816; b=CjbjGu6R6MMLItZHvnO6fM/2JFC1LJ79gFf7ewuftL4RYrre12eD3KR1DzZuDgZ2Aj dnlpRkJYkgGccMA1imWIA8EuowK6NHulVnm3j71xyuZ5qh2sEK/qhX+7FG97qRG0o7Ho l62/2m3tc69ew5OS5yK3WfPAaCRCyEcbsaAt4xO1qxEWE63pyn3A51RGF+k05oNzph2l 4zMWDahdJ52+frcfN84iTS5rWiY9PVZmnWCz3JvxqRtIPlRACwKxThheVR4vcXN90Xqj uQyw+MKAcPCnAWuox3psNuU1Pt6G9v+TYJZmeN3aETuVf6TjvXsH1LbtwRkwfQe2+kOn ps8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=w4J8a+F2nvNGZEDnYqx9rHL2NJ4Nkhh68nM51QLShIE=; b=Hg3bnDlLsQ60JbPeR7KJhUEr4UVzhOmsdCeB2+fc52tO/XUNum9U5bhUAeI+ADjvKa MkAbZgow/sGn4mZoGtQqjb0k514nPh5RC2Sz+TCbmJhyriZR/ImhzjKMJnGkSeNjaQgW zRBM0Nf87u7ngvHIzh5C/1hv0G3G6JCE+KT6a8wnd1FppgtzWhiuqdzFBDRt5VJrqKIT zqOibeM+/kqHFqYmUH8XN4eQE/tbcqx89drgV98WV1QagrYeoWtPDDeRgionlx3f4wMs 7qgrzcsi2+NMQ988Ni5O9BRl0Wn3os6OuGmS7IvodoApT0OnbV1mfPkuRjMjhQEkxYof CUKw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=puri.sm Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dm19si2276418ejc.779.2021.10.05.06.54.03; Tue, 05 Oct 2021 06:54:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=puri.sm Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235261AbhJENwC (ORCPT + 99 others); Tue, 5 Oct 2021 09:52:02 -0400 Received: from comms.puri.sm ([159.203.221.185]:44010 "EHLO comms.puri.sm" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235171AbhJENv6 (ORCPT ); Tue, 5 Oct 2021 09:51:58 -0400 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id F1640E126E; Tue, 5 Oct 2021 06:49:37 -0700 (PDT) Received: from comms.puri.sm ([127.0.0.1]) by localhost (comms.puri.sm [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id d7L9YQfy76eH; Tue, 5 Oct 2021 06:49:37 -0700 (PDT) From: Martin Kepplinger To: martin.kepplinger@puri.sm Cc: devicetree@vger.kernel.org, festevam@gmail.com, kernel@pengutronix.de, kernel@puri.sm, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, robh@kernel.org, shawnguo@kernel.org, Angus Ainslie Subject: [PATCH v2 5/7] arm64: dts: imx8mq-librem5: add power sequencing for M.2 cards Date: Tue, 5 Oct 2021 15:49:00 +0200 Message-Id: <20211005134902.2138731-6-martin.kepplinger@puri.sm> In-Reply-To: <20211005134902.2138731-1-martin.kepplinger@puri.sm> References: <20211005134902.2138731-1-martin.kepplinger@puri.sm> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Angus Ainslie Some wifi cards need reset asserted until after the power supplies have been enabled. So wire up the W_DISABLE signal for the SDIO port (WIFI_REG_ON net) and the BT_REG_ON net to use it for power sequencing. Signed-off-by: Angus Ainslie Signed-off-by: Martin Kepplinger --- .../boot/dts/freescale/imx8mq-librem5.dtsi | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi index 7a09312f31c4..396eb4434229 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi @@ -198,6 +198,14 @@ simple-audio-card,codec { }; }; + usdhc2_pwrseq: pwrseq { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_bt>, <&pinctrl_wifi_disable>; + compatible = "mmc-pwrseq-simple"; + reset-gpios = <&gpio3 25 GPIO_ACTIVE_HIGH>, + <&gpio4 29 GPIO_ACTIVE_HIGH>; + }; + bm818_codec: sound-wwan-codec { compatible = "broadmobi,bm818", "option,gtm601"; #sound-dai-cells = <0>; @@ -312,6 +320,13 @@ MX8MQ_IOMUXC_NAND_DQS_GPIO3_IO14 0x83 >; }; + pinctrl_bt: btgrp { + fsl,pins = < + /* BT_REG_ON */ + MX8MQ_IOMUXC_SAI5_MCLK_GPIO3_IO25 0x83 + >; + }; + pinctrl_charger_in: chargeringrp { fsl,pins = < /* CHRG_INT */ @@ -643,6 +658,13 @@ MX8MQ_IOMUXC_SD2_RESET_B_USDHC2_RESET_B 0xc1 >; }; + pinctrl_wifi_disable: wifidisablegrp { + fsl,pins = < + /* WIFI_REG_ON */ + MX8MQ_IOMUXC_SAI3_RXC_GPIO4_IO29 0x83 + >; + }; + pinctrl_wifi_pwr: wifipwrgrp { fsl,pins = < /* WIFI3V3_EN */ @@ -1212,6 +1234,7 @@ &usdhc2 { pinctrl-2 = <&pinctrl_usdhc2_200mhz>; bus-width = <4>; vmmc-supply = <®_wifi_3v3>; + mmc-pwrseq = <&usdhc2_pwrseq>; post-power-on-delay-ms = <1000>; cd-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>; disable-wp; -- 2.30.2