Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp497676rwb; Thu, 10 Nov 2022 03:55:20 -0800 (PST) X-Google-Smtp-Source: AMsMyM588nzCRE77QnMsBPZHQpjAPog9fM8yI6l/ilIsdiNrZUMTCgb9agGJuce6aXmEEl240Vkw X-Received: by 2002:a05:6a00:4206:b0:56c:2e49:ca0d with SMTP id cd6-20020a056a00420600b0056c2e49ca0dmr64838654pfb.22.1668081320448; Thu, 10 Nov 2022 03:55:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668081320; cv=none; d=google.com; s=arc-20160816; b=Ur7GWlQQ3N/FLRyeOzhLrWcHwB5aG6JulU4szHj/vgBVbV4jp7i1AjK6otcmsJghtT 4YkCK5arE7E+csK/ZT7zxvOoP2Zcsq2eJV+Tmi5yN8GiRFn5GSL5Aqh2TMI9Eee9InVX jNTOQRMmNYbWCJh8pA0asY8uHCYeK0uSQRhIinY+TLMDeCKcMvEWlN4mUJNC/ZST+cFL vqF9ozyEq7QnNxCeoigiJWFf7PymajGXHGJUiDxEVgHTmcofZXM6DgpbfgiXlbzkpavO 2EquwwIMtrueezUGZ0OCHFjE3c0ZVtCHWj46Zyb8RfNduTrnf90f+7+0INSCPbt9Zhok TeLg== 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=ZPTUWLADb/0nIbf/V9/HYVwSnFCh1SZlguJC62UCGPw=; b=VnYv09nRwU1dY3j4e6b6KYEYMMKQBsatEyGIktGMVQhRhT16rcUFbKl+Fzi29o2Jq/ JzW62MNgT0/D3A27eRgHsMU8P350CpBspUjCy6tX7/Zg70OUYVBpmhSkTiJ3AkSXmm/m 6KMXaDmnQF1sEIszFI6U1pzDL/kEfKc5GdVdvKBVaOTNQfRJRM8rhulsGVNTvLZ0p9My XhhYzkl4++fn5zNNq04y04FWumPOT0IDeMo9nYPpoKph97PB+hbHbRt/WJX+LryVX5wL IhY8vOFPLecpox6V2a95JYKjhV50HSMv25xUU2Cm1bF8qqwiw903PChoL5IpabBDPjfo M3Ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qkF+zuqL; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k4-20020a170902c40400b00174eef66680si23650914plk.120.2022.11.10.03.55.06; Thu, 10 Nov 2022 03:55:20 -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=pass header.i=@kernel.org header.s=k20201202 header.b=qkF+zuqL; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230185AbiKJKio (ORCPT + 92 others); Thu, 10 Nov 2022 05:38:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230014AbiKJKiW (ORCPT ); Thu, 10 Nov 2022 05:38:22 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B4DD1B8; Thu, 10 Nov 2022 02:38:21 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 2DE65B82173; Thu, 10 Nov 2022 10:38:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 33626C4314E; Thu, 10 Nov 2022 10:38:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668076698; bh=RaSWI0h8Io8p8YTgnqBH42nqXpVE+mqv11zxBaU/nTg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qkF+zuqLmh/gzqrbsX+AN5cJ4S9dF0CS0M43h1nPrK9hyEvhkBdW1g5Vy06tBybZj OJcJENb9AokKCd8/WwyKl10Z5VvV/+F29qVZ9YlpsQddd+RxAaFyn9suLLlYN+0wQe R0eBFP5GI0nziHqDMbvIxh2+NVnDL3S50evXVZ9XD54khw68MlHZ/GIiraTPSCp4II J2OF+OWl9N0L9S+P01C/I4AfFEEAZgC4IE0Kcw1S641k+qa+UjT3Z9fCThp6BPqvNb wqylPzctx6MNMgtMhSgbhMzg3MGU5YPL1wGM7V/TzpXDb9Iq1g/qSGPgSRL/2zAtWu uYBHiXPT3WgDA== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1ot4wR-0003Ll-Fe; Thu, 10 Nov 2022 11:37:51 +0100 From: Johan Hovold To: Bjorn Andersson Cc: Andy Gross , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 9/9] arm64: dts: qcom: sc8280xp-x13s: enable WiFi controller Date: Thu, 10 Nov 2022 11:35:58 +0100 Message-Id: <20221110103558.12690-10-johan+linaro@kernel.org> X-Mailer: git-send-email 2.37.4 In-Reply-To: <20221110103558.12690-1-johan+linaro@kernel.org> References: <20221110103558.12690-1-johan+linaro@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Enable the Qualcomm QCNFA765 Wireless Network Adapter connected to PCIe4. Signed-off-by: Johan Hovold --- .../qcom/sc8280xp-lenovo-thinkpad-x13s.dts | 65 +++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts index 2285c8311f0f..e8963a51e189 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts +++ b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts @@ -141,6 +141,22 @@ vreg_nvme: regulator-nvme { regulator-boot-on; }; + vreg_wlan: regulator-wlan { + compatible = "regulator-fixed"; + + regulator-name = "VCC_WLAN_3R9"; + regulator-min-microvolt = <3900000>; + regulator-max-microvolt = <3900000>; + + gpio = <&pmr735a_gpios 1 GPIO_ACTIVE_HIGH>; + enable-active-high; + + pinctrl-names = "default"; + pinctrl-0 = <&hastings_reg_en>; + + regulator-boot-on; + }; + vreg_wwan: regulator-wwan { compatible = "regulator-fixed"; @@ -304,6 +320,25 @@ &pcie3a_phy { status = "okay"; }; +&pcie4 { + perst-gpios = <&tlmm 141 GPIO_ACTIVE_LOW>; + wake-gpios = <&tlmm 139 GPIO_ACTIVE_LOW>; + + vddpe-3v3-supply = <&vreg_wlan>; + + pinctrl-names = "default"; + pinctrl-0 = <&pcie4_default>; + + status = "okay"; +}; + +&pcie4_phy { + vdda-phy-supply = <&vreg_l6d>; + vdda-pll-supply = <&vreg_l4d>; + + status = "okay"; +}; + &pmc8280c_lpg { status = "okay"; }; @@ -646,6 +681,13 @@ edp_bl_pwm: edp-bl-pwm-state { }; }; +&pmr735a_gpios { + hastings_reg_en: hastings-reg-en-state { + pins = "gpio1"; + function = "normal"; + }; +}; + &tlmm { gpio-reserved-ranges = <70 2>, <74 6>, <83 4>, <125 2>, <128 2>, <154 7>; @@ -729,6 +771,29 @@ wake-n-pins { }; }; + pcie4_default: pcie4-default-state { + clkreq-n-pins { + pins = "gpio140"; + function = "pcie4_clkreq"; + drive-strength = <2>; + bias-pull-up; + }; + + perst-n-pins { + pins = "gpio141"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + }; + + wake-n-pins { + pins = "gpio139"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; + }; + qup0_i2c4_default: qup0-i2c4-default-state { pins = "gpio171", "gpio172"; function = "qup4"; -- 2.37.4