Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2016680rwb; Fri, 11 Nov 2022 04:01:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf4VQc1UdcoLcAJwG/GNP4sFI2NSc0JGyU7RlT1j0w3qqr3gDxtXFpX3G5MUL2PQ9DiM0m/V X-Received: by 2002:a05:6402:70e:b0:459:7673:6f33 with SMTP id w14-20020a056402070e00b0045976736f33mr1197935edx.30.1668168061343; Fri, 11 Nov 2022 04:01:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668168061; cv=none; d=google.com; s=arc-20160816; b=egYGu9oFwkvJvv4Hd+/AG6FoLrAjCFAnQRCKLDHzognkK+TWrSVuRsB+bbJo7ERLtk m+tHUI0JVUGBwMtOMCdeHK1NOiuzUU+kxl4latwXoEdNdNHfdXgRJvXTr0JLuzM+1eTl CBxZA/cskPxXK9XmyoZMcvpjeYszpjjPn80+ShxdAWKEVB76t398hjtEUxq7nvt/dX6y sMjQcN0lDZQ/+QKhCrKYNafRMpDlh+WSlLwNU2sXhYT5E8BwOfZi+NOtBAieMKXuY9IO U/lX3oq5HhQflKPrBMXs+LqsuKa1dVIBSUmh6EYzV9P20ZB1TuNtkDAJrVEAg6hKnS14 vm7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=DDjWSIQoK6xEAcBdDDmDfPkenUy4TmZCEMtRism+6Ms=; b=JrifULCvD5y+BpPnpbBTxiOipiPBGDObDiplnHuBTsFQ4Se9fViLhDFyGwRqSBMhj5 BmuUiqLoVGZJiOeDl+qEYEn5yztOsL3cLbXEjbKVpY5ismZefQ6ElO6ZQJ8J2YvZnnf6 /uOxsgpqvG1EmkBtltVbCypSE+7ezlEussADgdOmLlmXblYe0mB3huNAFTMonYKfsXpr ZyF1bb0WTzzadWilxt4z5Bq5iGeSrwk5q9wBGQnKHGeheyLb0N5h5G/CMy61EZMGNOA4 zo1ZahhG3jvDFlAWeQfcGlvsNJNWDThA5GRAvNPMAW92GnuVA5pbStE8RHTo9ZwBKZYo H01g== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e12-20020a1709062c0c00b007ae09db5f4esi1382764ejh.657.2022.11.11.04.00.35; Fri, 11 Nov 2022 04:01:01 -0800 (PST) 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 S233271AbiKKLsU (ORCPT + 93 others); Fri, 11 Nov 2022 06:48:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233015AbiKKLsQ (ORCPT ); Fri, 11 Nov 2022 06:48:16 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55B45E0BB for ; Fri, 11 Nov 2022 03:48:15 -0800 (PST) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1otSW4-0002UZ-Ln; Fri, 11 Nov 2022 12:48:12 +0100 Received: from mfe by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1otSW3-0007NZ-UL; Fri, 11 Nov 2022 12:48:11 +0100 Date: Fri, 11 Nov 2022 12:48:11 +0100 From: Marco Felsch To: Sherry Sun Cc: Peng Fan , "Peng Fan (OSS)" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "linux-kernel@vger.kernel.org" , "kernel@pengutronix.de" , "festevam@gmail.com" , "linux-arm-kernel@lists.infradead.org" , dl-linux-imx Subject: Re: [PATCH V4 12/14] arm64: dts: imx8mm-evk: Enable usdhc1 to support wifi Message-ID: <20221111114811.mvsjlfggxmdrhsep@pengutronix.de> References: <20221111032811.2456916-1-peng.fan@oss.nxp.com> <20221111032811.2456916-13-peng.fan@oss.nxp.com> <20221111090232.6ibqzoivfqsndhxg@pengutronix.de> <20221111093002.dpp73hkef6ihkduk@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20180716 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: mfe@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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: X-Mailing-List: linux-kernel@vger.kernel.org On 22-11-11, Sherry Sun wrote: > > > > -----Original Message----- > > From: Marco Felsch > > Sent: 2022年11月11日 17:30 > > To: Sherry Sun > > Cc: Peng Fan ; Peng Fan (OSS) > > ; shawnguo@kernel.org; s.hauer@pengutronix.de; > > linux-kernel@vger.kernel.org; kernel@pengutronix.de; festevam@gmail.com; > > linux-arm-kernel@lists.infradead.org; dl-linux-imx > > Subject: Re: [PATCH V4 12/14] arm64: dts: imx8mm-evk: Enable usdhc1 to > > support wifi > > > > On 22-11-11, Sherry Sun wrote: > > > > > > > > > > -----Original Message----- > > > > From: Peng Fan > > > > Sent: 2022年11月11日 17:08 > > > > To: Marco Felsch ; Peng Fan (OSS) > > > > > > > > Cc: shawnguo@kernel.org; s.hauer@pengutronix.de; linux- > > > > kernel@vger.kernel.org; Sherry Sun ; > > > > kernel@pengutronix.de; festevam@gmail.com; linux-arm- > > > > kernel@lists.infradead.org; dl-linux-imx > > > > Subject: RE: [PATCH V4 12/14] arm64: dts: imx8mm-evk: Enable usdhc1 > > > > to support wifi > > > > > > > > Sherry, > > > > > > > > > Subject: Re: [PATCH V4 12/14] arm64: dts: imx8mm-evk: Enable > > > > > usdhc1 to support wifi > > > > > > > > > > Hi Peng, > > > > > > > > > > On 22-11-11, Peng Fan (OSS) wrote: > > > > > > From: Sherry Sun > > > > > > > > > > > > Enable usdhc1 which is used for wifi. > > > > > > > > > > > > Signed-off-by: Sherry Sun > > > > > > Signed-off-by: Peng Fan > > > > > > --- > > > > > > arch/arm64/boot/dts/freescale/imx8mm-evk.dts | 27 > > > > > > +++++++++++++ arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi | > > 39 > > > > > +++++++++++++++++++ > > > > > > 2 files changed, 66 insertions(+) > > > > > > > > > > > > diff --git a/arch/arm64/boot/dts/freescale/imx8mm-evk.dts > > > > > > b/arch/arm64/boot/dts/freescale/imx8mm-evk.dts > > > > > > index a2b24d4d4e3e..7b80f144327d 100644 > > > > > > --- a/arch/arm64/boot/dts/freescale/imx8mm-evk.dts > > > > > > +++ b/arch/arm64/boot/dts/freescale/imx8mm-evk.dts > > > > > > @@ -15,6 +15,13 @@ / { > > > > > > aliases { > > > > > > spi0 = &flexspi; > > > > > > }; > > > > > > + > > > > > > + usdhc1_pwrseq: usdhc1_pwrseq { > > > > > > + compatible = "mmc-pwrseq-simple"; > > > > > > + pinctrl-names = "default"; > > > > > > + pinctrl-0 = <&pinctrl_usdhc1_gpio>; > > > > > > + reset-gpios = <&gpio2 10 GPIO_ACTIVE_LOW>; > > > > > > + }; > > > > > > }; > > > > > > > > > > > > &ddrc { > > > > > > @@ -53,6 +60,19 @@ flash@0 { > > > > > > }; > > > > > > }; > > > > > > > > > > > > +&usdhc1 { > > > > > > + pinctrl-names = "default", "state_100mhz", "state_200mhz"; > > > > > > + pinctrl-0 = <&pinctrl_usdhc1>, <&pinctrl_wlan>; > > > > > > + pinctrl-1 = <&pinctrl_usdhc1_100mhz>, <&pinctrl_wlan>; > > > > > > + pinctrl-2 = <&pinctrl_usdhc1_200mhz>, <&pinctrl_wlan>; > > > > > > + bus-width = <4>; > > > > > > + keep-power-in-suspend; > > > > > > + mmc-pwrseq = <&usdhc1_pwrseq>; > > > > > > + non-removable; > > > > > > + wakeup-source; > > > > > > + status = "okay"; > > > > > > +}; > > > > > > + > > > > > > &usdhc3 { > > > > > > assigned-clocks = <&clk IMX8MM_CLK_USDHC3_ROOT>; > > > > > > assigned-clock-rates = <400000000>; @@ -125,4 +145,11 @@ > > > > > > MX8MM_IOMUXC_NAND_CLE_USDHC3_DATA7 > > > > > 0x1d6 > > > > > > MX8MM_IOMUXC_NAND_CE1_B_USDHC3_STROBE > > > > > 0x196 > > > > > > >; > > > > > > }; > > > > > > + > > > > > > + pinctrl_wlan: wlangrp { > > > > > > + fsl,pins = < > > > > > > + > > > > > MX8MM_IOMUXC_GPIO1_IO00_ANAMIX_REF_CLK_32K > > > > > 0x141 > > > > > > + MX8MM_IOMUXC_SD1_DATA7_GPIO2_IO9 > > > > > 0x159 > > > > > > + >; > > > > > > + }; > > > > > > > > > > Out of curiousity, this is not shareable with the other ddr4 evk? > > > > [Peng Fan] > > > > > > > > Could you please help answer? > > > > > > > > > > Hi Peng, I suggest to remove the pinctrl_wlan configure here, it should be > > added along with the wifi wowlan subnode later. > > > > Does this apply to the imx8mn-evk patch as well? > > > > Also if the usdhc1 is used only for WLAN and this patch series don't add the > > WLAN subnode, we could remove this patch and the imx8mn-evk usdhc1 > > patch completely till you have a complete patchset adding the full WLAN > > support. > > > > Hi Marco, actually here enable usdhc1 can support the wifi basic > function, so this patch is ok to enable wifi on 8mm, same for 8mn. Okay, thanks for the clarification. > But pinctrl_wlan is used to support the out-of-band WoWLAN feature, > needs to be used with wifi child dts node, which looks like the > following code. > > So I suggest to add the pinctrl_wlan along with the wifi_wake_host > child node later to support the wifi WoWLAN function. Here only need > to enable the usdhc1 to support wifi basic function, no need to add > pinctrl_wlan. +1 from my side. @Peng can you drop the pinctrl_wlan from this patch and from the mx8mn patch as well? Regards, Marco > &usdhc1 { > pinctrl-names = "default", "state_100mhz", "state_200mhz"; > pinctrl-0 = <&pinctrl_usdhc1>, <&pinctrl_wlan>; > pinctrl-1 = <&pinctrl_usdhc1_100mhz>, <&pinctrl_wlan>; > pinctrl-2 = <&pinctrl_usdhc1_200mhz>, <&pinctrl_wlan>; > bus-width = <4>; > keep-power-in-suspend; > non-removable; > wakeup-source; > mmc-pwrseq = <&usdhc1_pwrseq>; > status = "okay"; > > wifi_wake_host { > compatible = "nxp,wifi-wake-host"; > interrupt-parent = <&gpio2>; > interrupts = <9 IRQ_TYPE_LEVEL_LOW>; > interrupt-names = "host-wake"; > }; > }; > > Best Regards > Sherry