Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp614448rdb; Thu, 1 Feb 2024 20:34:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IHH9tP+W7JLmxcdhHuDHc9RFLRGe9XmfAEPMR6J8Glzbz3uY/2ysgVQRnRKViP87vhz8C1/ X-Received: by 2002:a05:6214:1d0b:b0:68c:5cba:a7f2 with SMTP id e11-20020a0562141d0b00b0068c5cbaa7f2mr8351864qvd.56.1706848488639; Thu, 01 Feb 2024 20:34:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706848488; cv=pass; d=google.com; s=arc-20160816; b=Iww+ZjIki4O2EFGHcOUdCl0GzLjlLZP6cZ69FX5t3bKfe23S9kx1IAyZB/rzILikEg hprI1PrrvuvYjVJhmtOTcNs8xk/F5+mNL/CLeOyPe9DlTPjJhztG48ej71xmAV2hS5hh RAeRkx6qNGj/RnO8fb3RjnoQ7pe3ibVIssexsVfBBSdFoIeFBIdaBq2Ls52lXzDVXTz8 oXrntkUTfJmthCCbZwHKNq8dpMtBbqq3AQvcMx/QHZCjVErKS6D37Cm5swhG5FmsrUAm rI6QjafLkJI7QICDoz/BzxL0Uo4fje9olTap/y8HkQ9kKzOXPHzVJEda2YxQWl/q78dI Vx+g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=YQaK+Y/xSf0bOfA+xM4P7TnXIJ1UTWCoVrY0mKqAxuc=; fh=pHK47Ki+Od98n8pyfYjNs/lF3OvggLs4fzp25d6/CYo=; b=rujZL18vOHNYZ8OBKVwZFQzL0lODvjhYjKm4PKb+WK1CC4dbZGnhrjCFOI6xhXnFNP MYXP1DSqOoZvHfitkYx6kUIM0yhpikdgmgkMZuPOp649BiRDRbSpzOQS+Z/PkCblt5tS Nvuw6JpHBhB/NBPe4zjzWoBWwGtrKtDd5Vgux2sewo9wc+JDUvsB2BhuQKipEUMnIjnW OtVSdbFVK+rP0vL1kebHOuOZNaRhslM3JIBi6xpcgFSDWWWNsn6fyZAp1IXoyuL1MlP5 wSU51w5fs/AOA+3yoiAI6Ayq39wF0p+Vu6FAe2sYS99VK+2biUTtf3+2cpuOjo3Aeiz8 IHEw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mvkWrecU; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-1561-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1561-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCVcAif9BgZgSfxPokNPkQrLrq9HYg/YFWoT6ZMcj7BAzUyPbWtvagtQyHl8CpLbThnacQmAVEnFx3ObPxVI6r1rgUMTjD1RdIFkMpqeHw== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id o9-20020a0ccb09000000b0068c6bf92d67si1175396qvk.545.2024.02.01.20.34.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 20:34:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-1561-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mvkWrecU; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-1561-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1561-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 64F921C23328 for ; Fri, 2 Feb 2024 04:34:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F1B49F51D; Fri, 2 Feb 2024 04:34:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mvkWrecU" X-Original-To: linux-bluetooth@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4711BEAF2; Fri, 2 Feb 2024 04:34:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706848475; cv=none; b=jDivbTPgzA/TjRldERgvIVjf0qeU/2oY84IEKyMBPmHKHlGz0/rFnYG/PQ8ktxVd1K9EM+aUEM0L43Vq8dHOm11hhe6TyXcRyTw7MRADe37zc4ThJardCjP6oMrg4m4FfejWjabUOIeKNlS39546X1gfwQ8Ewb7Olp9HbNwV9Ko= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706848475; c=relaxed/simple; bh=satbLNeZz+QWwEIu5LrwtxRMwFvB1z9KyJTB07xtAgw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KTCMZNF4g/GW1mL/ViQaPu3bwKsJYUPPIPJSdVxALRAQbwLal8fWcMMi0FcloT8k8mhDr7QNljzJqK7S8fXQRVY/l8iqsJJ5qAYkIxqcu5vvURcwawEaQoTSGK7f9KKRJ7WGdd0j1uHniRzrE8rIuLc+p3fILr5b9soZYE/cJ1o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mvkWrecU; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id EAECDC433F1; Fri, 2 Feb 2024 04:34:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706848474; bh=satbLNeZz+QWwEIu5LrwtxRMwFvB1z9KyJTB07xtAgw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mvkWrecULFI83GjFioZwqm5vQ1TbPIlFqnepDB4YbeJudyH6HH4//FFf42DN2DhqN E16V9EUtLRMVBl8NOkxZ81MzljTO1myTN++gHrA1u/ncJQrrsTYai2Z0yN6loVzx8R YzaOEtjrFjoeKvD3Rod1kVYDB42d8hn/qXdHKcxiLjZMIxYFvBl9PrvvUTdKgKX3yS F/R/Vm0ED29YaHpwNvHFN6YmiDuZZkzg4e5SmbaTR/6JhSB25QiEmCuzGLbJXjl+1b 3mZeuzrQYKvxGZJ+kxcMOGSdaDud/tKKepoSxycP+b+IEMVxgwfjZThKoOxSCOdE3V OLmt+gdb4LgNQ== Date: Thu, 1 Feb 2024 22:34:30 -0600 From: Bjorn Andersson To: Bartosz Golaszewski Cc: Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Marcel Holtmann , Luiz Augusto von Dentz , Bjorn Helgaas , Neil Armstrong , Alex Elder , Srini Kandagatla , Greg Kroah-Hartman , Arnd Bergmann , Abel Vesa , Manivannan Sadhasivam , Lukas Wunner , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-bluetooth@vger.kernel.org, linux-pci@vger.kernel.org, Bartosz Golaszewski Subject: Re: [RFC 2/9] arm64: dts: qcom: qrb5165-rb5: model the PMU of the QCA6391 Message-ID: <5lirm5mnf7yqbripue5nyqu6ej54sx4rtmgmyqjrqanabsriyp@2pjiv5xbmxpk> References: <20240201155532.49707-1-brgl@bgdev.pl> <20240201155532.49707-3-brgl@bgdev.pl> Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240201155532.49707-3-brgl@bgdev.pl> On Thu, Feb 01, 2024 at 04:55:25PM +0100, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > Add a node for the PMU module of the QCA6391 present on the RB5 board. > Assign its LDO power outputs to the existing Bluetooth module. Add a > node for the PCIe port to sm8250.dtsi and define the WLAN node on it in > the board's .dts and also make it consume the power outputs of the PMU. > > Signed-off-by: Bartosz Golaszewski > --- > arch/arm64/boot/dts/qcom/qrb5165-rb5.dts | 128 +++++++++++++++++++++-- > arch/arm64/boot/dts/qcom/sm8250.dtsi | 10 ++ > 2 files changed, 127 insertions(+), 11 deletions(-) > > diff --git a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts > index cd0db4f31d4a..fab5bebafbad 100644 > --- a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts > +++ b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts > @@ -108,6 +108,87 @@ lt9611_3v3: lt9611-3v3 { > regulator-always-on; > }; > > + qca6390_pmu: pmu@0 { > + compatible = "qcom,qca6390-pmu"; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&bt_en_state>, <&wlan_en_state>; > + > + vddaon-supply = <&vreg_s6a_0p95>; > + vddpmu-supply = <&vreg_s2f_0p95>; > + vddrfa1-supply = <&vreg_s2f_0p95>; > + vddrfa2-supply = <&vreg_s8c_1p3>; > + vddrfa3-supply = <&vreg_s5a_1p9>; > + vddpcie1-supply = <&vreg_s8c_1p3>; > + vddpcie2-supply = <&vreg_s5a_1p9>; > + vddio-supply = <&vreg_s4a_1p8>; > + > + wlan-enable-gpios = <&tlmm 20 GPIO_ACTIVE_HIGH>; > + bt-enable-gpios = <&tlmm 21 GPIO_ACTIVE_HIGH>; > + > + regulators { > + vreg_pmu_rfa_cmn: ldo0 { > + regulator-name = "vreg_pmu_rfa_cmn"; > + regulator-min-microvolt = <760000>; > + regulator-max-microvolt = <840000>; I'm still not convinced that the PMU has a set of LDOs, and looking at your implementation you neither register these with the regulator framework, nor provide any means of controlling the state or voltage of these "regulators". [..] > > &uart6 { > @@ -1311,17 +1418,16 @@ &uart6 { > bluetooth { > compatible = "qcom,qca6390-bt"; > > - pinctrl-names = "default"; > - pinctrl-0 = <&bt_en_state>; > - > - enable-gpios = <&tlmm 21 GPIO_ACTIVE_HIGH>; > - > - vddio-supply = <&vreg_s4a_1p8>; > - vddpmu-supply = <&vreg_s2f_0p95>; > - vddaon-supply = <&vreg_s6a_0p95>; > - vddrfa0p9-supply = <&vreg_s2f_0p95>; > - vddrfa1p3-supply = <&vreg_s8c_1p3>; > - vddrfa1p9-supply = <&vreg_s5a_1p9>; > + vddrfacmn-supply = <&vreg_pmu_rfa_cmn>; > + vddaon-supply = <&vreg_pmu_aon_0p59>; > + vddwlcx-supply = <&vreg_pmu_wlcx_0p8>; > + vddwlmx-supply = <&vreg_pmu_wlmx_0p85>; > + vddbtcmx-supply = <&vreg_pmu_btcmx_0p85>; > + vddrfa0-supply = <&vreg_pmu_rfa_0p8>; > + vddrfa1-supply = <&vreg_pmu_rfa_1p2>; > + vddrfa2-supply = <&vreg_pmu_rfa_1p7>; > + vddpcie0-supply = <&vreg_pmu_pcie_0p9>; > + vddpcie1-supply = <&vreg_pmu_pcie_1p8>; As I asked before, why does bluetooth suddenly care about PCIe supplies? Regards, Bjorn > }; > }; > > diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi > index 4d849e98bf9b..7cd21d4e7278 100644 > --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi > +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi > @@ -2203,6 +2203,16 @@ pcie0: pcie@1c00000 { > 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 { > -- > 2.40.1 >