Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp1354304pxb; Wed, 16 Feb 2022 17:42:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJy6JXbGnTadXxLOuJMpXmadMfuXscsmD9moNL/n/L1Kn4e9EE4NMR+QJgqE1OzhE4zd1r8J X-Received: by 2002:a17:907:1183:b0:6cf:ce2f:51c1 with SMTP id uz3-20020a170907118300b006cfce2f51c1mr579325ejb.209.1645062143655; Wed, 16 Feb 2022 17:42:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645062143; cv=none; d=google.com; s=arc-20160816; b=P27A8oBrQOAEXnraIBFkCP3Ey1s0ngY0E5M6P+buhjRYwsZcZGyIX3qHvsUmKHBL5m 8BzmOAG7hgH+rAgYkZGFYcaVFuXyWpYXNs12+lXINI+wThqqni8+5qQgijnP0Kf0GWfH TfB/VDPXpY0HTQKVu2LbJEH3jSr09zKQtlSWrdkSC5LPZpI9i3xCivTJVOKjYcOLDUnJ a2dwSCr8TOSPD/9BikafPx/OoQoBdssQ87bQNvCDaRX3ZSKzIFJP6xYctGlmgYhD/5HH EniUnijNdc4p/8AnAyYQZ6WIX7ShdNcbAHdg1yMpAW/n6PUimpKeGJ99SRqsH2lTI5t9 1opg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=UfNeLFpAca+dwhic3vHFKq6qhz/Ba/MIpsO5eKztqDU=; b=CSy4+KV6XY4FkvfEBFgQ2azRw7afwgu7zZnIHzfmmItAzHcRgkzRSwG6Eov4yLdqRM asgInvtjfFNGwo1PKbcDlYkJQ6p6nQ3om/k5SfjL/mmphRacmt7OnQxG5qDLykGY+rtC GrdXvhwQGBDlK06MUUL555md8iG5GgD+HiF4fe4TCK9KZiNAfiOMxALqhMmw7TrsJliB PhAa7QPTHbNekHTG4eI7EahuY2lSgp07iAlQuXCOCYA6f9kvbKePS9XgIgShi0WL2kII nFpEPtdGeAS6z1sO1sZp8wd9/yT2huA//mInJNCse+OYuuGVGj1j+fraKuhQuk4omo5N obqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=CR5zq4aR; 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=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v5si3382269edi.429.2022.02.16.17.42.00; Wed, 16 Feb 2022 17:42:23 -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; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=CR5zq4aR; 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=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234977AbiBPV0K (ORCPT + 99 others); Wed, 16 Feb 2022 16:26:10 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:36176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234648AbiBPVZ4 (ORCPT ); Wed, 16 Feb 2022 16:25:56 -0500 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52BF82AE735; Wed, 16 Feb 2022 13:25:43 -0800 (PST) Received: from localhost.localdomain (ip-213-127-118-180.ip.prioritytelecom.net [213.127.118.180]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id DD607C7173; Wed, 16 Feb 2022 21:25:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1645046742; bh=vlTmR233YI8p9UvGkFUjB1SzePvBOMARWM3FUKEF2OY=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=CR5zq4aRCr5xtbYxdvLKfVX6kUcrhI1U0qbJJrE26TFs2sl9Mps8KlO4CV/IZRRor RF14JJTZda1aKBxNNPo0rBuz7Srvzy/mD/wJrI3TH88kcMo1JKvfQiW3iYwFFaXaO/ 45EHHb3rV1+Nit3Nrafk7L8VjdwcUJ+L66sDIJ78= From: Luca Weiss To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Luca Weiss , Andy Gross , Bjorn Andersson , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/5] ARM: dts: qcom: apq8026-lg-lenok: Add Wifi Date: Wed, 16 Feb 2022 22:24:31 +0100 Message-Id: <20220216212433.1373903-5-luca@z3ntu.xyz> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220216212433.1373903-1-luca@z3ntu.xyz> References: <20220216212433.1373903-1-luca@z3ntu.xyz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROM_SUSPICIOUS_NTLD, PDS_OTHER_BAD_TLD,SPF_HELO_NONE,SPF_PASS,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 The device contains BCM43430A0 for wifi. Add a node for it. Signed-off-by: Luca Weiss --- arch/arm/boot/dts/qcom-apq8026-lg-lenok.dts | 53 +++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8026-lg-lenok.dts b/arch/arm/boot/dts/qcom-apq8026-lg-lenok.dts index 5ce42dd962c4..333fae435913 100644 --- a/arch/arm/boot/dts/qcom-apq8026-lg-lenok.dts +++ b/arch/arm/boot/dts/qcom-apq8026-lg-lenok.dts @@ -21,6 +21,20 @@ aliases { chosen { stdout-path = "serial0:115200n8"; }; + + vreg_wlan: wlan-regulator { + compatible = "regulator-fixed"; + + regulator-name = "wl-reg"; + regulator-min-microvolt = <2950000>; + regulator-max-microvolt = <2950000>; + + gpio = <&tlmm 46 GPIO_ACTIVE_HIGH>; + enable-active-high; + + pinctrl-names = "default"; + pinctrl-0 = <&wlan_regulator_default_state>; + }; }; &blsp1_i2c1 { @@ -206,6 +220,30 @@ &sdhc_1 { non-removable; }; +&sdhc_3 { + status = "okay"; + + max-frequency = <100000000>; + non-removable; + + vmmc-supply = <&vreg_wlan>; + vqmmc-supply = <&pm8226_l6>; + + #address-cells = <1>; + #size-cells = <0>; + + wifi@1 { + compatible = "brcm,bcm43430a0-fmac", "brcm,bcm4329-fmac"; + reg = <1>; + + interrupts-extended = <&tlmm 37 IRQ_TYPE_EDGE_FALLING>; + interrupt-names = "host-wake"; + + pinctrl-names = "default"; + pinctrl-0 = <&wlan_hostwake_default_state>; + }; +}; + &smbb { qcom,fast-charge-safe-current = <450000>; qcom,fast-charge-current-limit = <400000>; @@ -235,6 +273,21 @@ reset { output-high; }; }; + + wlan_hostwake_default_state: wlan-hostwake-default-state { + pins = "gpio37"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + input-enable; + }; + + wlan_regulator_default_state: wlan-regulator-default-state { + pins = "gpio46"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; }; &usb { -- 2.35.1