Message ID | be0267a53cdf31c7a32f9ab43813dccf08b32477.1691606520.git.agx@sigxcpu.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp3008644vqr; Wed, 9 Aug 2023 11:59:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHkIXZKb9Af/YhPNZSDxKuJVroa/hpJuXFXxoFVTHP25I+8we41Mpwn8Y1rSInSnvuHW/Rx X-Received: by 2002:a05:6402:6c9:b0:51e:3558:5eb6 with SMTP id n9-20020a05640206c900b0051e35585eb6mr89540edy.3.1691607547855; Wed, 09 Aug 2023 11:59:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691607547; cv=none; d=google.com; s=arc-20160816; b=YXb8Nis99mO348cPWs9rlkDwy+lw2fanT3qaG/wa4akamwhHlANNIUhJpFDqSokAs/ uj5WXmvEsrl06+w5/KLQK89dFB+QuMWOIRL8LL9J83xvgIxP2I4OwEfopPdmpYK7lyTI CSTId7cZOfJZ5s3cntSkMKkBJSPGZnpFFoyRA9tw2v1sTfm2s6+k89wPvnbxg7/N5yaX bdJSaG6c8pxwBMUafMxRwS5b0ZfzE8i3+384SbgNi8Nd5SNbGxGBslkC6etXazQ8Guqy c3ul+w355zw5+ZJQJuuGRa2z/8IFPcLoRuNFiuRrD9MOVBUg2rwQUm+7kvBfS0lKOupK wOEg== 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:to:from; bh=BgArkQrKANLlS/h8kX+Toy18Ny+mh0iC9ZvAy6Tk3g8=; fh=sFkLsZwiJArbsi7lfxoI53QPAhiVI+Eaigw/hREkdno=; b=gv7n8vZASjjwesGPWYZ0Zbvdhden5wQjjAMm6Ds5Qkf2kyfQOi2dbRTrnEPx7Dz0QW 9ERHyEWoc+GIyXbNMm0tcHfMcLKqWx2UsGNQk1wI9E84Jx/uSUuAt2UQVM6ISr4hdHlI e3q0Okw8YdnLlUtEsg+mSGxeMvWNkhwtmKYen8bfUGq82wZBS1VwqUVvgvC+DstIcOcH D/zdawyn64aNQCFWx9adn3xtSHLnMqJrPL9nZ0iDJHIC68+uVsOuCJE0MWL9abgBgcEu syKluTUhvMZJkJVtJZS56uSXgkFgIGcm5tHljg+qqOl2sSSoBOzOpr50cKK7WWUChYLx hvMQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a4-20020aa7cf04000000b0052185566aa9si8384225edy.565.2023.08.09.11.58.44; Wed, 09 Aug 2023 11:59:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233113AbjHISur (ORCPT <rfc822;craechal@gmail.com> + 99 others); Wed, 9 Aug 2023 14:50:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233074AbjHISuo (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 9 Aug 2023 14:50:44 -0400 Received: from honk.sigxcpu.org (honk.sigxcpu.org [24.134.29.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFCB910C3 for <linux-kernel@vger.kernel.org>; Wed, 9 Aug 2023 11:50:43 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id C151FFB05; Wed, 9 Aug 2023 20:50:41 +0200 (CEST) Received: from honk.sigxcpu.org ([127.0.0.1]) by localhost (honk.sigxcpu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mAFFqLzQD3xy; Wed, 9 Aug 2023 20:50:35 +0200 (CEST) From: =?utf-8?q?Guido_G=C3=BCnther?= <agx@sigxcpu.org> To: Ulf Hansson <ulf.hansson@linaro.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, Shawn Guo <shawnguo@kernel.org>, Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix Kernel Team <kernel@pengutronix.de>, Fabio Estevam <festevam@gmail.com>, NXP Linux Team <linux-imx@nxp.com>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org>, =?utf-8?q?Guido_G=C3=BCnther?= <agx@sigxcpu.org>, Peng Fan <peng.fan@nxp.com>, Bjorn Andersson <quic_bjorande@quicinc.com>, Arnd Bergmann <arnd@arndb.de>, Geert Uytterhoeven <geert+renesas@glider.be>, Konrad Dybcio <konrad.dybcio@linaro.org>, =?utf-8?b?TsOtY29sYXMgRi4gUi4g?= =?utf-8?b?QS4gUHJhZG8=?= <nfraprado@collabora.com>, =?utf-8?b?UmFmYcWCIE1p?= =?utf-8?b?xYJlY2tp?= <rafal@milecki.pl>, kernel@puri.sm, linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org, David Heidelberg <david@ixit.cz> Subject: [PATCH v1 4/5] arm64: dts: imx8mq-librem5-devkit: Drop power-supply Date: Wed, 9 Aug 2023 20:50:13 +0200 Message-Id: <be0267a53cdf31c7a32f9ab43813dccf08b32477.1691606520.git.agx@sigxcpu.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <cover.1691606520.git.agx@sigxcpu.org> References: <cover.1691606520.git.agx@sigxcpu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773779075966049104 X-GMAIL-MSGID: 1773779075966049104 |
Series |
Device tree and config updates for the Librem 5 devkit
|
|
Commit Message
Guido Günther
Aug. 9, 2023, 6:50 p.m. UTC
Use a power sequence instead. As this handles the wifi disable line
rename the pincontrol accordingly. This also makes it similar to the
Librem 5.
Resolves following warning:
arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dtb: mmc@30b50000: Unevaluated properties are not allowed ('power-supply' was unexpected)
from schema $id: http://devicetree.org/schemas/mmc/fsl-imx-esdhc.yaml#
Reported-by: David Heidelberg <david@ixit.cz>
Signed-off-by: Guido Günther <agx@sigxcpu.org>
---
.../boot/dts/freescale/imx8mq-librem5-devkit.dts | 13 ++++---------
1 file changed, 4 insertions(+), 9 deletions(-)
Comments
> -----Original Message----- > From: Guido Günther <agx@sigxcpu.org> > Sent: 2023年8月10日 2:50 > To: Ulf Hansson <ulf.hansson@linaro.org>; Rob Herring > <robh+dt@kernel.org>; Krzysztof Kozlowski > <krzysztof.kozlowski+dt@linaro.org>; Conor Dooley <conor+dt@kernel.org>; > Liam Girdwood <lgirdwood@gmail.com>; Mark Brown > <broonie@kernel.org>; Shawn Guo <shawnguo@kernel.org>; Sascha Hauer > <s.hauer@pengutronix.de>; Pengutronix Kernel Team > <kernel@pengutronix.de>; Fabio Estevam <festevam@gmail.com>; dl-linux- > imx <linux-imx@nxp.com>; Catalin Marinas <catalin.marinas@arm.com>; > Will Deacon <will@kernel.org>; Guido Günther <agx@sigxcpu.org>; Peng Fan > <peng.fan@nxp.com>; Bjorn Andersson <quic_bjorande@quicinc.com>; > Arnd Bergmann <arnd@arndb.de>; Geert Uytterhoeven > <geert+renesas@glider.be>; Konrad Dybcio <konrad.dybcio@linaro.org>; > Nícolas F. R. A. Prado <nfraprado@collabora.com>; Rafał Miłecki > <rafal@milecki.pl>; kernel@puri.sm; linux-mmc@vger.kernel.org; > devicetree@vger.kernel.org; linux-kernel@vger.kernel.org; alsa-devel@alsa- > project.org; linux-arm-kernel@lists.infradead.org; David Heidelberg > <david@ixit.cz> > Subject: [PATCH v1 4/5] arm64: dts: imx8mq-librem5-devkit: Drop power- > supply > > Use a power sequence instead. As this handles the wifi disable line rename > the pincontrol accordingly. This also makes it similar to the Librem 5. > > Resolves following warning: > > arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dtb: > mmc@30b50000: Unevaluated properties are not allowed ('power-supply' > was unexpected) > from schema $id: > https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdevicet > ree.org%2Fschemas%2Fmmc%2Ffsl-imx- > esdhc.yaml%23&data=05%7C01%7Csherry.sun%40nxp.com%7Cfefefef5326f > 4205167c08db990988d7%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0 > %7C638272038447289369%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLj > AwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C% > 7C%7C&sdata=EpcdsbWNkU0%2FuYBx9tHlw9qoSo87XneMNxOHw5Z4%2FFA > %3D&reserved=0 > > Reported-by: David Heidelberg <david@ixit.cz> > Signed-off-by: Guido Günther <agx@sigxcpu.org> > --- > .../boot/dts/freescale/imx8mq-librem5-devkit.dts | 13 ++++--------- > 1 file changed, 4 insertions(+), 9 deletions(-) > > diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts > b/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts > index be9ef5c271df..244075e2a599 100644 > --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts > +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts > @@ -231,16 +231,11 @@ vibrator { > vcc-supply = <®_3v3_p>; > }; > > - wifi_pwr_en: regulator-wifi-en { > - compatible = "regulator-fixed"; > + wifi_pwrseq: pwrseq { > pinctrl-names = "default"; > pinctrl-0 = <&pinctrl_wifi_pwr_en>; > - regulator-name = "WIFI_EN"; > - regulator-min-microvolt = <3300000>; > - regulator-max-microvolt = <3300000>; > - gpio = <&gpio3 5 GPIO_ACTIVE_HIGH>; > - enable-active-high; > - regulator-always-on; > + compatible = "mmc-pwrseq-simple"; > + reset-gpios = <&gpio3 5 GPIO_ACTIVE_LOW>; > }; > }; > > @@ -1032,7 +1027,7 @@ &usdhc2 { > pinctrl-2 = <&pinctrl_usdhc2_200mhz>; > bus-width = <4>; > vmmc-supply = <®_usdhc2_vmmc>; > - power-supply = <&wifi_pwr_en>; > + mmc-pwrseq = <&wifi_pwrseq>; Hi Guido, Normally we should use vmmc-supply to control the M.2 pin56(W_DISABLE1#), which controls the WLAN radio power. And use the reset-gpios of mmc-pwrseq to control the M.2 pin23(SDIO_RESET#), it can independently reset the Wi-Fi radio. Best Regards Sherry
diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts b/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts index be9ef5c271df..244075e2a599 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts @@ -231,16 +231,11 @@ vibrator { vcc-supply = <®_3v3_p>; }; - wifi_pwr_en: regulator-wifi-en { - compatible = "regulator-fixed"; + wifi_pwrseq: pwrseq { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_wifi_pwr_en>; - regulator-name = "WIFI_EN"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - gpio = <&gpio3 5 GPIO_ACTIVE_HIGH>; - enable-active-high; - regulator-always-on; + compatible = "mmc-pwrseq-simple"; + reset-gpios = <&gpio3 5 GPIO_ACTIVE_LOW>; }; }; @@ -1032,7 +1027,7 @@ &usdhc2 { pinctrl-2 = <&pinctrl_usdhc2_200mhz>; bus-width = <4>; vmmc-supply = <®_usdhc2_vmmc>; - power-supply = <&wifi_pwr_en>; + mmc-pwrseq = <&wifi_pwrseq>; broken-cd; disable-wp; cap-sdio-irq;