Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3612973iob; Mon, 2 May 2022 00:36:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAAatljZU9lSjsejO7ShynPtIrDmfAUZ4yzC1ZKqhwPGZ2wDH3PTP3ey9L6fKpe3RmiU9Y X-Received: by 2002:a17:902:8c82:b0:158:b701:c2a4 with SMTP id t2-20020a1709028c8200b00158b701c2a4mr10728589plo.66.1651476998263; Mon, 02 May 2022 00:36:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651476998; cv=none; d=google.com; s=arc-20160816; b=sej0mvwY+vicvs8gNKltfwAtiAe7uOARDYLmxL9i/v7HqFldXTo3amQQIW9GSopYg2 Nyewxtd+I2clqavwWmfeR823dZfNrtQK//KrwemXS2UP6+Hmqq/KsqE8n2gArH87dSXL 3walxXk8egXeFyxCvExt0iKwC2wNjNnllV4m4Etl1MU/P8asS6ZK99w6DHAq5sfsnyAp Bx8V0/BufIIqhycShOyeJ+v7gc6U8KnCOmokbaSFfCD7svb4xysJrmgfP++9yIErwIGT V0RNFqhA50AWVSodqkb/etSCrZ+gaCcKGFd9Fn0LxUUBS4cz31Mv696p0g5WSilaqmNi gyxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=SdGBrCh40gSHcFSouD8MdmXwgrI8So6iMxE64Wbkmjo=; b=x3bwX2bztjOBUMp1Q8RBnG2PnF6DMWw6GozhOBhlfVIg0t8ynBycX8DlNlxaAlLtPL vk42/gx+8Vy4L3M0vGSvVTiwwuWU+SOZNASOD0akee0PSWFNrUyPH790ObLp3YkquzMP appf7o3dfAISZG9nubDQOqwhsMcVBOZGSENrM2fWLis7EyeZxOT6MqnKobCpQGHXwQ7e 4tgw0h3Kq4uO4mcdytGYSQC9TID9Hk6+Y0K31ib5v7KhSnB+cA2cpDx+NWA0VOCGYmK1 Bl7FIJwLc7sjdJ8Eui0T53U0hzgDalCE6UBHrSc/LmIESibRAVyvkzjHMBDdjL3uW8nk OB6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=jYhmyaZB; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n8-20020a170902e54800b00158eb7e5fcasi14060071plf.313.2022.05.02.00.36.23; Mon, 02 May 2022 00:36:38 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=jYhmyaZB; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236257AbiD1JaO (ORCPT + 99 others); Thu, 28 Apr 2022 05:30:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346648AbiD1J0T (ORCPT ); Thu, 28 Apr 2022 05:26:19 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E9487B553; Thu, 28 Apr 2022 02:23:05 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 23S9MnPD114566; Thu, 28 Apr 2022 04:22:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1651137769; bh=SdGBrCh40gSHcFSouD8MdmXwgrI8So6iMxE64Wbkmjo=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=jYhmyaZBksW8oYkDtNQYH7YjcC86TF2PZhmwwRmh/ergbHHKxI4ogKvXU6RV9POa4 x2J59slDd+rF+JIpZp32Qs5XV1+DCXiLOpJlQhemu8ozq+eeuLqNz+BkgqOWw5SPCl 0BkgpJ7E1Mvqw3uishVNWGLj08onV0xeryRaYZlA= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 23S9MnpO126190 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 28 Apr 2022 04:22:49 -0500 Received: from DLEE107.ent.ti.com (157.170.170.37) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Thu, 28 Apr 2022 04:22:49 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Thu, 28 Apr 2022 04:22:49 -0500 Received: from [10.0.2.15] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 23S9Mjmb078389; Thu, 28 Apr 2022 04:22:46 -0500 Message-ID: <4d9da502-52b5-e5c1-7675-93c4341fb446@ti.com> Date: Thu, 28 Apr 2022 14:52:43 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [RESEND PATCH v3] arm64: dts: ti: k3-am642-sk: Enable WLAN connected to SDHCI0 Content-Language: en-US To: Aparna M , , , , , , , , CC: , References: <20220414133612.13365-1-a-m1@ti.com> From: Devarsh Thakkar In-Reply-To: <20220414133612.13365-1-a-m1@ti.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, 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 14/04/22 19:06, Aparna M wrote: > From: Kishon Vijay Abraham I > > WL1837 module is connected to SDHCI0 in AM642 SK. Enable it here. > This will enable the WiFi functionaliy on the board. > > Signed-off-by: Kishon Vijay Abraham I > Signed-off-by: Vignesh Raghavendra > Signed-off-by: Nikhil Devshatwar > Signed-off-by: Aparna M Tested-by: Devarsh Thakkar > --- > > v3 RESEND: rebased on top of v5.18-rc2 > v2 -> v3: Use generic node names for the regulators as per DT Specs > v1 -> v2: Add "From" tag in commit message > > arch/arm64/boot/dts/ti/k3-am642-sk.dts | 62 ++++++++++++++++++++++++++ > 1 file changed, 62 insertions(+) > > diff --git a/arch/arm64/boot/dts/ti/k3-am642-sk.dts b/arch/arm64/boot/dts/ti/k3-am642-sk.dts > index 1d7db8bf3a5c..59f506cbd275 100644 > --- a/arch/arm64/boot/dts/ti/k3-am642-sk.dts > +++ b/arch/arm64/boot/dts/ti/k3-am642-sk.dts > @@ -125,6 +125,31 @@ > vin-supply = <&vcc_3v3_sys>; > gpio = <&exp1 3 GPIO_ACTIVE_HIGH>; > }; > + > + com8_ls_en: regulator-1 { > + compatible = "regulator-fixed"; > + regulator-name = "com8_ls_en"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + regulator-always-on; > + regulator-boot-on; > + pinctrl-0 = <&main_com8_ls_en_pins_default>; > + pinctrl-names = "default"; > + gpio = <&main_gpio0 62 GPIO_ACTIVE_LOW>; > + }; > + > + wlan_en: regulator-2 { > + /* output of SN74AVC4T245RSVR */ > + compatible = "regulator-fixed"; > + regulator-name = "wlan_en"; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + enable-active-high; > + pinctrl-0 = <&main_wlan_en_pins_default>; > + pinctrl-names = "default"; > + vin-supply = <&com8_ls_en>; > + gpio = <&main_gpio0 48 GPIO_ACTIVE_HIGH>; > + }; > }; > > &main_pmx0 { > @@ -216,6 +241,23 @@ > AM64X_IOPAD(0x0270, PIN_INPUT, 0) /* (D18) ECAP0_IN_APWM_OUT */ > >; > }; > + main_wlan_en_pins_default: main-wlan-en-pins-default { > + pinctrl-single,pins = < > + AM64X_IOPAD(0x00c4, PIN_OUTPUT_PULLUP, 7) /* (V8) GPIO0_48 */ > + >; > + }; > + > + main_com8_ls_en_pins_default: main-com8-ls-en-pins-default { > + pinctrl-single,pins = < > + AM64X_IOPAD(0x00fc, PIN_OUTPUT, 7) /* (U7) PRG1_PRU0_GPO17.GPIO0_62 */ > + >; > + }; > + > + main_wlan_pins_default: main-wlan-pins-default { > + pinctrl-single,pins = < > + AM64X_IOPAD(0x00bc, PIN_INPUT, 7) /* (U8) GPIO0_46 */ > + >; > + }; > }; > > &mcu_uart0 { > @@ -293,6 +335,26 @@ > status = "reserved"; > }; > > +&sdhci0 { > + vmmc-supply = <&wlan_en>; > + bus-width = <4>; > + non-removable; > + cap-power-off-card; > + keep-power-in-suspend; > + ti,driver-strength-ohm = <50>; > + > + #address-cells = <1>; > + #size-cells = <0>; > + wlcore: wlcore@2 { > + compatible = "ti,wl1837"; > + reg = <2>; > + pinctrl-0 = <&main_wlan_pins_default>; > + pinctrl-names = "default"; > + interrupt-parent = <&main_gpio0>; > + interrupts = <46 IRQ_TYPE_EDGE_FALLING>; > + }; > +}; > + > &sdhci1 { > /* SD/MMC */ > vmmc-supply = <&vdd_mmc1>;