From patchwork Thu Nov 10 10:35:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 18068 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp67887wru; Thu, 10 Nov 2022 02:42:46 -0800 (PST) X-Google-Smtp-Source: AMsMyM4kHqlq2LeNz6qIjbcVj842vrROpUYc8lDx+PHJamtKIky8gDW3Ddwdu1rqRYYTLJzlTgqy X-Received: by 2002:a17:907:97d6:b0:7ad:b962:33e8 with SMTP id js22-20020a17090797d600b007adb96233e8mr59174550ejc.27.1668076966671; Thu, 10 Nov 2022 02:42:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668076966; cv=none; d=google.com; s=arc-20160816; b=n4Qz8OpYqZ5yBClSvbO7KCb7BhOuSTAsFQV3wHwzpCUunNXFAxyZVp+Bz0zZNT3BrZ 4PIkRIpsA+TkZ+uxgf190vULDgL8cN0svzc1b6bk1PK033pSDqEQ6t7+HyHLd+garrx9 XwBhJzeLTwswn53CenFnwIr/jVK1G5tqc6cO1cXcx9MEEac5dmiwKzBPTgJXmthLUT6b qN6y8oR/SN9OddpXk4+CFZOb5loiLBuPkscdYwLx5nn+qmfrcdvyXeGBzUdy3+O/Tdqd wdS8yE9ZoY4MBB1AlmgOBmOmIYiSozYInLnRWFvwB3TCGeWYg6/Sbb9cS969+3xshYsJ 7F5Q== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dn8-20020a17090794c800b00782627f37d6si18539075ejc.778.2022.11.10.02.42.20; Thu, 10 Nov 2022 02:42:46 -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 + 99 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749105473354788926?= X-GMAIL-MSGID: =?utf-8?q?1749105473354788926?= 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";