Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp459700lqt; Thu, 6 Jun 2024 08:30:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVEpAOfXjJrYm4O6TQSq6FEZWW0LUPGFdXubHLPe23Mi37ALl3NRDsJngw1Ox5aeVQJB5ySzvxXG2IX6dqag3GZCsz3gLbFVE4jQuuz3A== X-Google-Smtp-Source: AGHT+IGrFb5ZKoSTv3mexEMxZo2+VmTuueAxtin4B2GHoN98gKOo3n3sqDzWaa12J7R7Mf+Wqufb X-Received: by 2002:a05:6a21:6d9a:b0:1af:dd77:86ab with SMTP id adf61e73a8af0-1b2b715e5b8mr6936525637.54.1717687838669; Thu, 06 Jun 2024 08:30:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717687838; cv=pass; d=google.com; s=arc-20160816; b=NgvMngwci+2JaHebwwEg4UCPD9v8AvevGvA9r9EDut//kQT4J0DKsULpIz1EapnS84 SnhMGTG6wfcwhrUxWxwNupdNLi4UT/HuurGSM3+LsWjvDlOtMRHMWKI+EftvnBP4d0Ue WzzukmEJf1+mJaw2npWOhyEFh97qB+Y+YIzrcHAAR9nVEQNcFH1KmlJwNDZSidmkdGK1 YvH4y5PDOpoeAEjuCBPE8qG3hZBFv+ZxetCLXE2ZWB/8KiGOl539oAXwc8nu5z8d5nnE kVYvMVKfCcQpAv0xhZudJtGgnaEQY6jTnwKI3BSvwB9wEGx6UWnwII5KKbkqGhfCyKTL 19ZA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=QWrHmrBVbxL2N+yjukzrB1xNIeLZkMy2NcMIU1+JPUg=; fh=L2SBIFoXX7R6/OyFqRyJF022GcvU2LhNepZs4FB4ujA=; b=MTqGcAzjNc/FUMIr0lWnXDyyY2cNYAGhNXyEbPXGTzfug5W+yeNZrdyTl5doo50vjV 0Gp2vuFzANPuVLEOxipLvmNa0/Vv2uwWNis26StWhiz4bw6C7aPuRm4w0wnhywmIukFV DUb6v0a+RTcBeLliE5chRB1OuKAEel6brNzOQJRmE1wvpDUVo8n4QZR7XVIB9dOEYGuQ jQQ2YxryQX28FWr47qVra4Ce/BlUv9pP8g3Ty9O/3oVNEZzIUfWs/0RbeNyOBBu1bFy8 lZ/afqOLpF8AHivqs7F0qB4H5j6DqH3o6H2g7WxqN/gAY464Rgk6WJsHrs71KcfEoWTk Y5kg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=Uqz4lGYx; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-204475-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204475-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de261cae2csi1333606a12.277.2024.06.06.08.30.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 08:30:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204475-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=Uqz4lGYx; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-204475-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204475-linux.lists.archive=gmail.com@vger.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 97B34B2C57B for ; Thu, 6 Jun 2024 14:56:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3B92F19AD48; Thu, 6 Jun 2024 14:29:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="Uqz4lGYx" Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 82ABE19884A for ; Thu, 6 Jun 2024 14:29:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717684175; cv=none; b=DVm1AlVyemaefZrLZMQdC5EAJkFaj9p9UVq8lWN8sNATsL0dsGDJX99v+OnsImilZQ/4HllnmhkTiGFgMdMNbPbaCMQVoDVIvldIywC7EFIiA7rzfa90e9WnBDG/KEA2nIfTaLbgrTkqRyBKyMn0YPa2qft2aAAuLFbE0E7FXAI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717684175; c=relaxed/simple; bh=GimoAQIvtE/omE2LWe9rkmcZVAyFh7hH8t8gFFgucFY=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=A2rUrBqpHVsupxP1eOFwJlgIId5aeSUeXX2oN4X3ZQR45FNBYCv9mSzUvhRb7xVFPu1/Adzkp9XWfPBWADUSSh7QEwDOFPFGH0K9ZQOh0vZLCx2Xf4F7j5nggFV1GdMtDcGT25q8PYqOik/hd0NAugXZXXCQCw/hbnRX31ij7kM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl; spf=none smtp.mailfrom=bgdev.pl; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b=Uqz4lGYx; arc=none smtp.client-ip=209.85.208.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bgdev.pl Received: by mail-lj1-f176.google.com with SMTP id 38308e7fff4ca-2ead2c6b553so12141721fa.0 for ; Thu, 06 Jun 2024 07:29:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1717684171; x=1718288971; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=QWrHmrBVbxL2N+yjukzrB1xNIeLZkMy2NcMIU1+JPUg=; b=Uqz4lGYxdcOmil+vyxA0jJrA8cR4Acx4g2UO2V6EZYsl4TmmK6DDITf7fJ19Fyv0jy g2HD7ify7eEzsC2ZTQYfCj4yB4jVILVXjRLz+8sAXwo7c95uSQCqemDN97S6W2ka7ptz MLoi08vZkJM9OR36t5ZunIDtGQyTYRnabAeEH5iXOjQOg2SEy1mbYGBK09+LG0GlYxRl EUM/MFxFvrn5Yog8it2E+Qzp0Pub8E84clekP/wXhwfaJfR2a5UELn229IuXIjRLKDXe j75Gudw/i91V2bTlHgkapKt8EJ0Eqi6VeDcv/K5bFgi8CN891He2hQ0j5LwHKzio2aRd lO4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717684171; x=1718288971; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QWrHmrBVbxL2N+yjukzrB1xNIeLZkMy2NcMIU1+JPUg=; b=Nmj+1+m9JRn/sqZGH95ykpWE0uni1ad+hKNMHbXFu8i+Gb1GV4SL2U9QmThsmVa0wu WZp6i/wessaMHCOMnav7Iirs5dl1F4tG0T/p6sasWYq5YbQaqbnyuCTbF8oVl9F7K6qt hHyK5IEUhmLcpXHxGsUBjY+QCiBgGcKMdL7nsEmXyeM2SpjsolFusg2xnF+Cn6oyZymm +RtWPMWA+i1QXsTQkD/Zk7/5NU3fqok/LEaCjYsVkYLZJpRESL+YVZnxjgsrNbeZRWcd Yp7NuzDoccduuLui5heWrPOzwiIHWc5MRkJesvubPQ5wdg/QYfGeeXgisSI3JX+8cg+i z+/A== X-Forwarded-Encrypted: i=1; AJvYcCWB0d4dkRITSAigwRPpbsctIBKsWzfBLGzJgeu0DMr9SWJSeBIFkKO4HyBd3WILG8zJfss7v25mq3LQPwGxH6Hh+MPhBHXgNASHzgFV X-Gm-Message-State: AOJu0Ywqd/GfAmR8n5u50VycJmcJCrJTVsTzO7jwYtlX6u03N2addVJt N8GO+kJG+yYLXgN85m62tfMLNs9C+4TTEdpX+LzbczWpi3NhRbIpYtFYmKy14uNyXnzweIjjTLe FTP/kgmvaKgt77iRx64UMMfnvDaxzQeqjkb2iQg== X-Received: by 2002:a2e:a403:0:b0:2ea:903b:ca0e with SMTP id 38308e7fff4ca-2eac7a986abmr42490961fa.52.1717684171575; Thu, 06 Jun 2024 07:29:31 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240605122106.23818-1-brgl@bgdev.pl> <20240605122106.23818-2-brgl@bgdev.pl> <87h6e6qjuh.fsf@kernel.org> <871q5aqiei.fsf@kernel.org> In-Reply-To: <871q5aqiei.fsf@kernel.org> From: Bartosz Golaszewski Date: Thu, 6 Jun 2024 16:29:20 +0200 Message-ID: Subject: Re: [PATCH v9 1/2] dt-bindings: net: wireless: qcom,ath11k: describe the ath11k on QCA6390 To: Kalle Valo Cc: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jeff Johnson , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, ath11k@lists.infradead.org, linux-kernel@vger.kernel.org, ath12k@lists.infradead.org, Bartosz Golaszewski , Krzysztof Kozlowski Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Jun 6, 2024 at 4:02=E2=80=AFPM Kalle Valo wrote: > > Bartosz Golaszewski writes: > > > On Thu, Jun 6, 2024 at 3:30=E2=80=AFPM Kalle Valo wr= ote: > > > >> > >> Bartosz Golaszewski writes: > >> > >> > From: Bartosz Golaszewski > >> > > >> > Add a PCI compatible for the ATH11K module on QCA6390 and describe t= he > >> > power inputs from the PMU that it consumes. > >> > > >> > Reviewed-by: Krzysztof Kozlowski > >> > Signed-off-by: Bartosz Golaszewski > >> > >> [...] > >> > >> > +allOf: > >> > + - if: > >> > + properties: > >> > + compatible: > >> > + contains: > >> > + const: pci17cb,1101 > >> > + then: > >> > + required: > >> > + - vddrfacmn-supply > >> > + - vddaon-supply > >> > + - vddwlcx-supply > >> > + - vddwlmx-supply > >> > + - vddrfa0p8-supply > >> > + - vddrfa1p2-supply > >> > + - vddrfa1p7-supply > >> > + - vddpcie0p9-supply > >> > + - vddpcie1p8-supply > >> > >> Not sure if we discussed this before, but based on this I understand > >> that there can't be an DT entry for device pci17cb,1101 without all th= e > >> supply properties? But there are QCA6390 devices with PCI id 17cb:1101 > >> which do not need these supplies and already work. For example, my Del= l > >> XPS 13 x86 laptop is one. Or anyone who manually installs QCA6390 boar= d > >> to their PCI slot and some of them might want to use DT, for example > >> setting qcom,ath11k-calibration-variant. > >> > >> This is not a blocker for me, just making sure that we are not breakin= g > >> any existing setups. > >> > > > > If they are already powered up without the need for the PCI pwrctl > > driver to do it, then they will work alright. Bindings don't affect > > functionality. > > Sure, I'm not worried about functionality. I'm worried that if I > there's, for example, an ARM based setup which uses DT and wants to use > a similar QCA6390 board that I have, and set > qcom,ath11k-calibration-variant in DT. In other words, I'm worried if > you are looking at this only for Snapdragon family of boards? > No, what I'm looking at is the entire QCA6390 package. That means WLAN *and* Bluetooth *and* the PMU that manages power. If you're using the QCA6390 on a device-tree system then you should probably model at least the WLAN node and the PMU and the problem with supplies is fixed. But if you don't have the supplies, that's alright for downstream. > Again, I don't see this as a blocker. I just want to understand how this > should work for all types of devices there are out there. > > > But if you have a QCA6390 then you have its PMU too and the bindings > > model the real-world hardware. > > > > IOW: your laptop should be alright but the supplies are really there > > which warrants adding them to the bindings. > > Sorry, not following here. Can you clarify your comment "the supplies > are really there"? You mean inside the PCI board? But that's not visible > to the kernel in anyway, the PCI board just works after I plug it in. > It's like a regular PCI device. So I don't understand why that should be > visible in DT, but I can very well be missing something. > I think you're thinking about some kind of detachable PCIe board with this chipset on it. I refer to the QCA6390 chipset itself which is also more than just PCI. The Bluetooth interface doesn't use PCI at all. On the boards I'm working on, the chipset is just soldered to the main board. If your detachable board "just works" then it must be wired in a way that enables WLAN the moment it's plugged in but this doesn't happen over PCI. The chipset has a power input and GPIOs to enable each module. Also: I doubt you need DT for your detachable board? Bart > -- > https://patchwork.kernel.org/project/linux-wireless/list/ > > https://wireless.wiki.kernel.org/en/developers/documentation/submittingpa= tches