Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp559914lqt; Thu, 6 Jun 2024 11:08:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXJA+Y8eYkaxTcC1kwKqJRZm3HgBllkIm4epMCwwoBRwlcbNmZ6upz8MAJ5Jwqzi8HnwXgaU/ap0aEAfUyUsx+GmXkPhU2lFC+QTdi4yg== X-Google-Smtp-Source: AGHT+IGKf5QzeFXoiN4Cis+6KE+1iRz2l6ZzZ9elR3T/z3tf2n/hfqa0NKgLyAoVRtuUthaGaW8i X-Received: by 2002:a17:90a:7d0a:b0:2c1:9cd4:665b with SMTP id 98e67ed59e1d1-2c2bcafe3ecmr280204a91.28.1717697330420; Thu, 06 Jun 2024 11:08:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717697330; cv=pass; d=google.com; s=arc-20160816; b=iT35BYy5v4rsElQ8WLyJATRsaUh7tuXkD39DWESsP4m/hvMumP7iRfj+p/kd4WJB5L o3VuN/eX0FHt9Lga4uUsJ0tegaNU6YO1qAGR8QAmpxAsjUkXyaJU948a8lHyyIIHdvi9 kb3yKS6igOWZfOB95VK2V3A6GM4s0cTdV/fGmxCvJnD3Z/OOkVDTljSFskWaLwAy2nyz En/LptKdbl7F2ok1oQ28a8/WooJ7K1/+CB7jMk5BXwb2NM7VIbTLY8JD7I/UiHFOPQBO +QYDTs2VNZVJ/L03U/F5wx3BaLvRy3/OCrxtvoiPlv06CZv+6X1YOSychSAHCn68EhMK Brpg== 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=sFgymo/FZ1mBM/so/Gc56Q4p5/VyC1A8hH1xyBB/UOc=; fh=RnDbeSHcSVbP66XPd6sk/1jvifydOwSGDwk0DaLmKSQ=; b=mMWsEmV0/dPV33ELxUuVLsVISbeDpeFIL7lYEEvgKGWalXWxNqQLvPr8K0q0N/Y0ih GgCPeWbNTdQrdDzpYrmojjbYOFiIFfG8RShPU1hFBhdbY+P0GdwwHyqrjcz2d5FUMqpe 1DqQ/Do46/J0hXF2ikUFaHqyeFVEO4vOf8rVQ6BrI1c7w/KoIpNMXWaEE+9Izdj6ffhy 5H23kfCmOp2IB/KBZF6zO2SignJvxicYU1uialJPkISu0lZymQsegZzDM80jQvdMJVVf CK53qfllCNWT4TnA5K6zezMLYwCbsmVOs0t46I3Mi926D2MnfkfJcTEmtKbE2hgbh//N BXNg==; 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=c+EYy9P8; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-wireless+bounces-8640-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8640-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c2806d2bfcsi2615676a91.150.2024.06.06.11.08.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 11:08:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-8640-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=c+EYy9P8; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-wireless+bounces-8640-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8640-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 56B96285FA3 for ; Thu, 6 Jun 2024 18:08:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4FCE1199392; Thu, 6 Jun 2024 18:08:27 +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="c+EYy9P8" X-Original-To: linux-wireless@vger.kernel.org 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 3D8BA199383 for ; Thu, 6 Jun 2024 18:08:24 +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=1717697307; cv=none; b=agtci+mX9lTKYnjOt/I/DzRt/T5s8XzieYanfE9IPrw07972A8dHFg13YDT/CPv9EG5zIJ3VyaNtPD5+nrfG5ZFT1J8NJ0AQWUTZ3yDMR9/J79GTBZmzBm4yYZe6Ol401XZXDPZbBXn8XGJ4j0DPm9Pjr8UjHu/B3Bo3UudCwuw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717697307; c=relaxed/simple; bh=UuHyBaZqZ0ETTUmxyLtoNi6/bmTPX8y+z8SZWI0RROE=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=B1Iyi6j25idtDulZDSSYfii3T/xa06J7ekkB+ZmPxCgGmGC91cLcEztsc4DV5vH2poqMUi5svOcGgYF0pfb6ssY/PatIMAC9qA+LOy0UNbK99U8wmn6SmYGKHW+Ocw7nu0zztwW9C8TrSPMCcceupyXP6IxH5FICN8BE6YH09lc= 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=c+EYy9P8; 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-2eaad2c673fso18938261fa.3 for ; Thu, 06 Jun 2024 11:08:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1717697302; x=1718302102; 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=sFgymo/FZ1mBM/so/Gc56Q4p5/VyC1A8hH1xyBB/UOc=; b=c+EYy9P8lDgBwuHqaFbSJFM8bazHHvsGfXD77gqRgnk1nuCEjvbr4/4DUfeHbdezC5 zN9p/Vt/gkfp7OXRE9tGUEAcH6ixzIHO/Txl3dlR3mFkDvWNoz45bhTpdqENC8aZiMlO rWnhTS1/O8p5mXBT5S+631P6fQ2UASsOYZlwhZFctAPj/FE6lI+X+iMP0Ju+BA7UiZwP 9rcU9RBFzEad6CHbnZlOeB92q4q6tt18KxPsADLihXLTJkgiE+zkMgkNXNX2yfM23C56 i/o/qnAuw8egCIsf0j8OwJ3K/TMKhaqqxBD6yJiGHlGylOXpwpJJDmAMFxvltgYZAM8+ /1CA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717697302; x=1718302102; 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=sFgymo/FZ1mBM/so/Gc56Q4p5/VyC1A8hH1xyBB/UOc=; b=smiXoLparoBAH6qjbzbYN7dn+FonaV09/RpgcJ361UDp+OPbrpgyIkD6haE8ZwLAzZ EUeIsxAogin3q1FMP3zs150RN+eZiLAe5zmHz8HtOr3udAA0/OQ51UaFC31nX9w0x31x rnUFT+A1wFasm42cG4ouwN2aQKsJ89oL1QPTRK5FMq5OSpG1xxrBfZvjhftEBtOVJv71 7iCuUkMt8rP1usPg7HMZQiiPtNg/rtrjnI5zDewFB+BEgl9y1Bm6PPzbem0MkdWetDea CMTGnneE3wS6Cx/hdDJOb5sd7oti7jF9W3HinIKuzB0buSkyXi6/a46BHfqDOkET6jtr Aq+A== X-Forwarded-Encrypted: i=1; AJvYcCVHsZRdxeh+VuiDU+pPWvGxw3f6GftdhJfgtU/lFRDxN5iiDFuESTNWXhI2WmFOjv2JGKOp+09W6XQh2WK/efXPzVHR/Z/Xq1PU2XjZ6bE= X-Gm-Message-State: AOJu0Yy6yhMnFP9dahJxew8rkQZbbKUJ6jJxHlyHZ2b5BNkf6DXlUcMN JdClazsvk4FM0Humxo/VOGheuN0gcldiyYgif/U8aStPtIjSW7AbhLkfWrxViD/SEkFFAiqK1y0 QTGwgK4++JFme+oXKviFzbzkbYPork2ncP1Ngtw== X-Received: by 2002:a2e:7d12:0:b0:2ea:8d54:452b with SMTP id 38308e7fff4ca-2eadce3836cmr3770821fa.16.1717697302075; Thu, 06 Jun 2024 11:08:22 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-wireless@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> <87sexqoxm9.fsf@kernel.org> In-Reply-To: <87sexqoxm9.fsf@kernel.org> From: Bartosz Golaszewski Date: Thu, 6 Jun 2024 20:08:11 +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 6:16=E2=80=AFPM Kalle Valo wrote: > > Bartosz Golaszewski writes: > > > On Thu, Jun 6, 2024 at 4:02=E2=80=AFPM Kalle Valo wr= ote: > > > >> > >> Bartosz Golaszewski writes: > >> > >> > On Thu, Jun 6, 2024 at 3:30=E2=80=AFPM Kalle Valo = wrote: > >> > > >> >> > >> >> Bartosz Golaszewski writes: > >> >> > >> >> > From: Bartosz Golaszewski > >> >> > > >> >> > Add a PCI compatible for the ATH11K module on QCA6390 and describ= e the > >> >> > 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 understan= d > >> >> that there can't be an DT entry for device pci17cb,1101 without all= the > >> >> supply properties? But there are QCA6390 devices with PCI id 17cb:1= 101 > >> >> which do not need these supplies and already work. For example, my = Dell > >> >> XPS 13 x86 laptop is one. Or anyone who manually installs QCA6390 b= oard > >> >> to their PCI slot and some of them might want to use DT, for exampl= e > >> >> setting qcom,ath11k-calibration-variant. > >> >> > >> >> This is not a blocker for me, just making sure that we are not brea= king > >> >> 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 us= e > >> 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. > > I think we are just looking at this from different point of views. You > are looking at a datasheet (most likely for a Snapdragon based system) > and I'm looking what actual devices there are out in the field. > > > 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 why? If there are boards out there who don't need any of this why > would they still need to model all this in DT? > Because this is what is there? The goal of the device tree is to describe the hardware. The fact we didn't describe it before doesn't make it correct. > Based on the discussions I have heard only Snapdragon systems who > require all this configuration you describe. Of course there can be > other systems but I have not heard about those. > DT is not configuration, it is description of actual hardware. It doesn't matter if Snapdragon systems are the only ones that actually *require* this description to make WLAN/BT functional upstream. The chipset would be the same on any PCIe board, it's just that the host systems wouldn't need to take care with its power sequence. But for a dynamic board like this, you don't need DT. > > But if you don't have the supplies, that's alright for downstream. > > What do you mean downstream in this context? > I mean: if you wanted to upstream the DT sources, then they should include the supplies AND the PMU node. But if you just want to make the WLAN run on some vendor kernel then you don't need to think about it, it will work. > >> Again, I don't see this as a blocker. I just want to understand how th= is > >> 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 visib= le > >> 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. > > Exactly, a lot of WLAN boards are like this. > > > 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. > > And I guess you are looking at Snapdragon boards only? > But what is your point? > > 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. > > I don't know how the boards are implemented but it could be so. But from > host system point of view it's just a regular PCI device. > And you don't need DT anyway for this type of devices. > > Also: I doubt you need DT for your detachable board? > > Sure, I don't need DT but that's not my point. My point is why require > these supplies for _all_ devices having PCI id 17cb:1101 (ie. QCA6390) > then clearly there are such devices which don't need it? To me that's > bad design and, if I'm understanding correctly, prevents use of > qcom,ath11k-calibration-variant property. To me having the supplies > optional in DT is more approriate. > We require them because *they are physically there*. Bart > -- > https://patchwork.kernel.org/project/linux-wireless/list/ > > https://wireless.wiki.kernel.org/en/developers/documentation/submittingpa= tches