From nobody Thu Jun 25 07:14:29 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DAD60C433F5 for ; Wed, 23 Feb 2022 08:50:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239085AbiBWIvC (ORCPT ); Wed, 23 Feb 2022 03:51:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239063AbiBWIu6 (ORCPT ); Wed, 23 Feb 2022 03:50:58 -0500 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E46F079C70; Wed, 23 Feb 2022 00:50:30 -0800 (PST) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 21N8oPY7076115; Wed, 23 Feb 2022 02:50:25 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1645606225; bh=6CIkt/hlkAwW03RCFxZHbRpIUvcGICDjdJbyN3FRFrM=; h=From:To:CC:Subject:Date; b=FEJKTtcJlTcVHSJTSh6ZicVjayJoiV9pgWhohPylOGsg0bcWdGCHnGUHqfjtKt3+X KBkaN7hrfUq1Khied9SoR3aH5U8Dhqko11u7mEKa6mhV3Y368KSFy4oc/Ic2ppaRdV zozkz5iUGEqexrPqjlUuFBuX0jqlycETcsx8Ti34= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 21N8oPoT048788 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 23 Feb 2022 02:50:25 -0600 Received: from DLEE108.ent.ti.com (157.170.170.38) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Wed, 23 Feb 2022 02:50:25 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE108.ent.ti.com (157.170.170.38) 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; Wed, 23 Feb 2022 02:50:24 -0600 Received: from swubn03.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 21N8oKm5067262; Wed, 23 Feb 2022 02:50:21 -0600 From: Aparna M To: , , , , , , , CC: , Subject: [PATCH] arm64: dts: ti: k3-am642-sk: Enable WLAN connected to SDHCI0 Date: Wed, 23 Feb 2022 14:20:18 +0530 Message-ID: <20220223085018.29283-1-a-m1@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 --- 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/t= i/k3-am642-sk.dts index 6b04745147be..1178bb982f05 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 =3D <&vcc_3v3_sys>; gpio =3D <&exp1 3 GPIO_ACTIVE_HIGH>; }; + + com8_ls_en: fixed-regulator-com8 { + compatible =3D "regulator-fixed"; + regulator-name =3D "com8_ls_en"; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; + regulator-always-on; + regulator-boot-on; + pinctrl-0 =3D <&main_com8_ls_en_pins_default>; + pinctrl-names =3D "default"; + gpio =3D <&main_gpio0 62 GPIO_ACTIVE_LOW>; + }; + + wlan_en: fixed-regulator-wlan { + /* output of SN74AVC4T245RSVR */ + compatible =3D "regulator-fixed"; + regulator-name =3D "wlan_en"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + enable-active-high; + pinctrl-0 =3D <&main_wlan_en_pins_default>; + pinctrl-names =3D "default"; + vin-supply =3D <&com8_ls_en>; + gpio =3D <&main_gpio0 48 GPIO_ACTIVE_HIGH>; + }; }; =20 &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 =3D < + 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 =3D < + AM64X_IOPAD(0x00fc, PIN_OUTPUT, 7) /* (U7) PRG1_PRU0_GPO17.GPIO0_62 */ + >; + }; + + main_wlan_pins_default: main-wlan-pins-default { + pinctrl-single,pins =3D < + AM64X_IOPAD(0x00bc, PIN_INPUT, 7) /* (U8) GPIO0_46 */ + >; + }; }; =20 &mcu_uart0 { @@ -293,6 +335,26 @@ status =3D "reserved"; }; =20 +&sdhci0 { + vmmc-supply =3D <&wlan_en>; + bus-width =3D <4>; + non-removable; + cap-power-off-card; + keep-power-in-suspend; + ti,driver-strength-ohm =3D <50>; + + #address-cells =3D <1>; + #size-cells =3D <0>; + wlcore: wlcore@2 { + compatible =3D "ti,wl1837"; + reg =3D <2>; + pinctrl-0 =3D <&main_wlan_pins_default>; + pinctrl-names =3D "default"; + interrupt-parent =3D <&main_gpio0>; + interrupts =3D <46 IRQ_TYPE_EDGE_FALLING>; + }; +}; + &sdhci1 { /* SD/MMC */ vmmc-supply =3D <&vdd_mmc1>; --=20 2.17.1