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 E583AC433EF for ; Thu, 28 Apr 2022 09:24:19 +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:In-Reply-To:From:References:CC:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=tb/HoAZrlR6pJBzmbs6KIeGnSKV/ICeHTDJJHtWdLww=; b=zor0LcUUl/cyza 42jb5X2OkaHK4pdDzBVQuIfFKUUS9NtGjTD2FWoAmIC1mtukOaP3VMw6LSzeYzwqMuLIV2ka7QTk7 g+ABohR3SUCmMLWmEj9ghJcqffTTn7lwiRcFTJlPoqOY/rWmJRQXdx4ii4px4X1MAX/Wwsl/P/6UE zbKUd+qEINy0tu8niEsX+05fIIq94Xt4t/ui3hBgRHveGnrykRDHbmupaWcHdwgfE917bsLqhP8Sp i2TgqA27ZJVO0xUExptTYyA/XmNXm0KUu1Ej33vIj29IF3wN+CSMDr7o2RAGhuFX2Sot0eJymxY1X zv8fgQbar1oRQg0SMH2w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nk0Mc-005gf8-BH; Thu, 28 Apr 2022 09:23:06 +0000 Received: from lelv0143.ext.ti.com ([198.47.23.248]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nk0MY-005gdO-RX for linux-arm-kernel@lists.infradead.org; Thu, 28 Apr 2022 09:23:04 +0000 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> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220428_022303_093293_01D55CBD X-CRM114-Status: GOOD ( 16.13 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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>; _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel