Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1089417pxm; Wed, 23 Feb 2022 17:51:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJzM/Ty402N9R1a5jm8WRBrZYZeJQJDnnwlo3JbV/+a73mG/OZvBrOtFVPewG99/v+UaigEf X-Received: by 2002:a17:90a:ab89:b0:1bc:71a7:f93a with SMTP id n9-20020a17090aab8900b001bc71a7f93amr412664pjq.111.1645667493574; Wed, 23 Feb 2022 17:51:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645667493; cv=none; d=google.com; s=arc-20160816; b=sZOoG9lx3uyKBE6UxotGMpriwIBsn9Ld5TI1eMXp27JxEhzrAbST12hlx6cHadBInA l0YA/pe/66aV7QcnSy+4Stp4k7jcuFWgIuHkPAzH5T9zqjPh2icv9a31c4t0UXxYc0+e Cflzn9UGikvV62ZYZwIWACS+ex70KErRWShBQrRg3DHT7iAH/nXdAb+oW8W/QodVvx1C zQez1ickaf0v9vzED/kiAMS5pfA1RQjhWIsnrkkY86yyJx3JHRzRgHzN8PAmRBVJAeVD TyOvLNIehmTPs9EIwyjuqWioFO4kgQpQdfg1kLVzEw0V7iVnyN+fN4kCo2BHMpTOZ0C2 IRoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=E/bTPkKyvKNO3M+trEvQvgNaUVq/uZYZz6ly5Zwvuy4=; b=kC6ydBzJQznSGAheXLGulO7u6TyzucDnb1DydP0jd9lJ1tjTrqS+MvIqwbuqTGGMdw UWupidjmq44YF4Zz3U0ZRuBrsa95h9PQXEnCEsWl5h+Ct62ViOgGn7bnUtXJwCBvITQc +/nH0l+AumXxbnoY/V6JeAVM7HkB0RZCWptWJXBO0k+RZLmlsgA+saiAot9LkB3d6o8r +Q+1lk/JVS/H2WuO/OUQnRr/cTaMi0dbrN6/1KeFV3AguLkVY8HFmK4/1M7MaBiGcGEu pk9O3B737IkMpwMy45cVWhEizTtJQ6J8Ntq9S4h5bfrjbZhQUVPk8QedIRw7O0HGQqN7 +Vvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=gNONmWsY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id u15si1485980pgl.185.2022.02.23.17.51.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Feb 2022 17:51:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=gNONmWsY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 88C1718DAB4; Wed, 23 Feb 2022 17:23:30 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242521AbiBWP7d (ORCPT + 99 others); Wed, 23 Feb 2022 10:59:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234105AbiBWP7c (ORCPT ); Wed, 23 Feb 2022 10:59:32 -0500 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A27BC12CB; Wed, 23 Feb 2022 07:59:01 -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 21NFwl67063190; Wed, 23 Feb 2022 09:58:47 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1645631927; bh=E/bTPkKyvKNO3M+trEvQvgNaUVq/uZYZz6ly5Zwvuy4=; h=From:To:CC:Subject:Date; b=gNONmWsY2mVORI2MITc6H7MZj1ZLYeH8gmLE0Kt9awiSQ/oWFdIyw/Pby/9aWoa+W cmynfjfpKyHcwIrSpnc1gjMSVS80QhO8+uitz1tyo25C+XkzqRgqm2YF7uWr5tSEsq 1RPLWkg4XxkYA6Wnz9siCjkKbtJOD+wfDneESDlU= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 21NFwlae104499 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 23 Feb 2022 09:58:47 -0600 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE112.ent.ti.com (10.64.6.33) 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 09:58:46 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE101.ent.ti.com (10.64.6.22) 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 09:58:46 -0600 Received: from swubn03.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 21NFwhDF032258; Wed, 23 Feb 2022 09:58:43 -0600 From: Aparna M To: , , , , , , , CC: , Subject: [PATCH v2] arm64: dts: ti: k3-am642-sk: Enable WLAN connected to SDHCI0 Date: Wed, 23 Feb 2022 21:27:54 +0530 Message-ID: <20220223155754.7298-1-a-m1@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 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 --- v1 -> v2: Update commit message with "From:" details 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 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 = <&vcc_3v3_sys>; gpio = <&exp1 3 GPIO_ACTIVE_HIGH>; }; + + com8_ls_en: fixed-regulator-com8 { + 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: fixed-regulator-wlan { + /* 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>; -- 2.17.1