From patchwork Fri Feb 16 20:32:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13560657 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B4D7EC48295 for ; Fri, 16 Feb 2024 20:34:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=MKsa/ZalKbQY8GcEvRkyvrcmXLffTU7ejtvoS0P2kTY=; b=PmxVdI48zrk8dE keBtsVTwJb8xy9OXb8K05+cUZd113ja/2BWjuP+pKiRdV0GXvQM4jRPjzNh01VLSbH8MUwXG2xH4z moj9dFhm4LUDV/GYnaKMjuXFXJVmdJihI8lo3GtBqg9iAXu3kOy4I0U57OCPf3vl6DsdwqIOdQUlH VbYZpebsDH2Z/IyPfbvZlc9yr/7Kl0KmuyWibK8pkSlboqputCCWZtVXnYuSpI/d1aYweHzhbpH0m p9g/mfshmqilzkyeMMoLGwFKi8pIxh9TRi1DgCqFrt1gyOb6JB1gLhcdTrOmvnsmVs91gJjEktCW9 CSkoU6VJwYk1+4VxQekA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rb4uw-00000003eXj-3qvP; Fri, 16 Feb 2024 20:34:42 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rb4tv-00000003dsV-2HJG for linux-arm-kernel@bombadil.infradead.org; Fri, 16 Feb 2024 20:33:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=Xi8a7IDbsc7NWjITXvW8vzVKHWVwk2jKqzcZASrP8yE=; b=q45xhxqO9ddzzRQe6EYr8iv/gm jf/kpL1kbhFhRTtoAqu+JANBmNFOUnygSdOw/bG9/IyiyallP9VVkz96nKZNcwpz0rFXb4IEeiq83 isKlDJC8NWRMGEy4RePi5pvjkLOqW2kpYOKO/1lBni+2moYWMc3dfmqjZMLz4p551OkjPI9PVEzRT QKGEPYw9HEZqbQct/z7G/YHgOy6EIincDkq19DlefSf/m+0/2ndKDoLLZs+AH6whUuiO6rSim9MKd QtBQGnXsmuMw3SO/YUMGGybCSel6iI0KBMPBlPd8ADtJ1xedN7QbTjXo/LycLPM4iJ6JJLsWegYLC Stk/fVbQ==; Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by desiato.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rb4tp-000000001sq-3umq for linux-arm-kernel@lists.infradead.org; Fri, 16 Feb 2024 20:33:38 +0000 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-412568b5c1eso1003445e9.1 for ; Fri, 16 Feb 2024 12:33:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1708115603; x=1708720403; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Xi8a7IDbsc7NWjITXvW8vzVKHWVwk2jKqzcZASrP8yE=; b=FrS+RyUGn8cDyMhkluLdNJyKf6h4y4qKZN3sRZwrY5COOq9iaxqShTabCD0OcnhvPP GJzk9tkUcjK3fp65Sc9q/u1BlGjHoWMYD8OpvwXvqoqEt54xC+RqK8u4wSQZNZ4uODkD hvHgqUaQKyNdeV8+6mzdBlfg8xJhck4GkuCEVZ3TrpmBWphXAOMxJgqBsWsqKnpec42r l1bR9o60Fi+Jgfcsgujg62qhryZWbSWsZjLB7pUHoenLEI2L14NUZ2jyTxBbtoXG1dRY rVXWwl+/9yKj5rxvye3xL9gS7U+vysS4M/J/BX9c+xwxHCAKh+zAS009X4myExbkFU+d 9R3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708115603; x=1708720403; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Xi8a7IDbsc7NWjITXvW8vzVKHWVwk2jKqzcZASrP8yE=; b=UVZt9ASQlly0xOqUMr8pR1ECQfk5xk4aun0GYM/aSYKG6R30+RxP+DpcQ6idFFJmz9 GTIvi9pLrDDalO+iEbUDW1lHiPc/iGr+iR9Qs59RgTbKwH86xHsL1jCvGFXmt4Iai6iq HuxFxlezNxpD9wLOSmOp3+eYYKNE6uDN/ap6NAbhs5N5wrMKdbPWldv9OHwkZLamT+pq 9vjNTpR+d7ZQlmGyxnSrYKJw7zTW7P83wuhGOS4nXkA41hixmUJObyq5JgGjPH7o2NJi ytdBdrmO48BFh8RMsMKXkT5wminoG5brf5jUnF/Sui45URK/FDfvFpmyQGxDhx4Sy0GX qbuA== X-Forwarded-Encrypted: i=1; AJvYcCXmw4IvoQ12l5ubIgtYUkJZw3lAehj8psJAu5bZH9f475ZX6rRzdECx9UFa7XEQEWf3+EtstemyxBm6AInRm2JC1o32gJkx2pwUDf2EqSNhIVUpoes= X-Gm-Message-State: AOJu0Ywd/CuDJSuJdQVD0UC4thwA3yl0ouN6jWL2B+744DICuKDEWW8A 75PPo8tuJUr6Re98YAMZduS+cqZFvO6Ohz2tscvbLYMwuA84igWxnUwZv798j6c= X-Google-Smtp-Source: AGHT+IEdNFiS4jqjTMwr9bbhFoBmmcjEmHiM7ik8UO5vPc2X24r/EQeJTolFoj1NizIPC6YHWTEuWQ== X-Received: by 2002:a05:600c:4f0d:b0:410:7428:1fb5 with SMTP id l13-20020a05600c4f0d00b0041074281fb5mr4348569wmq.27.1708115603697; Fri, 16 Feb 2024 12:33:23 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:7758:12d:16:5f19]) by smtp.gmail.com with ESMTPSA id m5-20020a05600c4f4500b0041253d0acd6sm1420528wmq.47.2024.02.16.12.33.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 12:33:23 -0800 (PST) From: Bartosz Golaszewski To: Marcel Holtmann , Luiz Augusto von Dentz , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kalle Valo , Bjorn Andersson , Konrad Dybcio , Liam Girdwood , Mark Brown , Catalin Marinas , Will Deacon , Bjorn Helgaas , Bartosz Golaszewski , Saravana Kannan , Geert Uytterhoeven , Arnd Bergmann , Neil Armstrong , Marek Szyprowski , Alex Elder , Srini Kandagatla , Greg Kroah-Hartman , Abel Vesa , Manivannan Sadhasivam , Lukas Wunner , Dmitry Baryshkov Cc: linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org, linux-pm@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v5 08/18] arm64: dts: qcom: sm8650-qrd: add the Wifi node Date: Fri, 16 Feb 2024 21:32:05 +0100 Message-Id: <20240216203215.40870-9-brgl@bgdev.pl> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240216203215.40870-1-brgl@bgdev.pl> References: <20240216203215.40870-1-brgl@bgdev.pl> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240216_203335_238390_1B60FFD8 X-CRM114-Status: GOOD ( 11.72 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Neil Armstrong Describe the ath12k WLAN on-board the WCN7850 module present on the board. Signed-off-by: Neil Armstrong [Bartosz: - move the pcieport0 node into the .dtsi - make regulator naming consistent with existing DT code - add commit message] Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sm8650-qrd.dts | 29 +++++++++++++++++++++++++ arch/arm64/boot/dts/qcom/sm8650.dtsi | 10 +++++++++ 2 files changed, 39 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8650-qrd.dts b/arch/arm64/boot/dts/qcom/sm8650-qrd.dts index b07cac2e5bc8..4623c358f634 100644 --- a/arch/arm64/boot/dts/qcom/sm8650-qrd.dts +++ b/arch/arm64/boot/dts/qcom/sm8650-qrd.dts @@ -845,6 +845,28 @@ &pcie0 { status = "okay"; }; +&pcieport0 { + wifi@0 { + compatible = "pci17cb,1107"; + reg = <0x10000 0x0 0x0 0x0 0x0>; + + pinctrl-names = "default"; + pinctrl-0 = <&wlan_en>; + + enable-gpios = <&tlmm 16 GPIO_ACTIVE_HIGH>; + + vdd-supply = <&vreg_s4i_0p85>; + vddio-supply = <&vreg_l15b_1p8>; + vddio1p2-supply = <&vreg_l3c_1p2>; + vddaon-supply = <&vreg_s2c_0p8>; + vdddig-supply = <&vreg_s3c_0p9>; + vddrfa1p2-supply = <&vreg_s1c_1p2>; + vddrfa1p8-supply = <&vreg_s6c_1p8>; + + clocks = <&rpmhcc RPMH_RF_CLK1>; + }; +}; + &pcie0_phy { vdda-phy-supply = <&vreg_l1i_0p88>; vdda-pll-supply = <&vreg_l3i_1p2>; @@ -1139,6 +1161,13 @@ wcd_default: wcd-reset-n-active-state { bias-disable; output-low; }; + + wlan_en: wlan-en-state { + pins = "gpio16"; + function = "gpio"; + drive-strength = <8>; + bias-pull-down; + }; }; &uart14 { diff --git a/arch/arm64/boot/dts/qcom/sm8650.dtsi b/arch/arm64/boot/dts/qcom/sm8650.dtsi index d488b3b3265e..baf4932e460c 100644 --- a/arch/arm64/boot/dts/qcom/sm8650.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8650.dtsi @@ -2293,6 +2293,16 @@ &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>, dma-coherent; status = "disabled"; + + pcieport0: pcie@0 { + device_type = "pci"; + reg = <0x0 0x0 0x0 0x0 0x0>; + #address-cells = <3>; + #size-cells = <2>; + ranges; + + bus-range = <0x01 0xff>; + }; }; pcie0_phy: phy@1c06000 {