Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp851354lqt; Thu, 6 Jun 2024 23:44:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUKILfkoZsnUeChumlJ26t2suS7Oyom78srecVrafYXi+JpUuiDhuWicwh7LuTJPjo8MmKXnFIW8eihJuW6Uan4/sYikB0Eu183x6k7QA== X-Google-Smtp-Source: AGHT+IFSPbmfID/VjRIntTavhF5LfzosiFo0POhEdSE7XU+5mn991QdsC36dPbg558TzJD5fFT6V X-Received: by 2002:a05:6358:520d:b0:19c:334c:4ff9 with SMTP id e5c5f4694b2df-19f1fe13bf4mr230776655d.14.1717742646107; Thu, 06 Jun 2024 23:44:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717742646; cv=pass; d=google.com; s=arc-20160816; b=ve9Crzix+B7PgB7tMHsfqDOy5GQJLXNVpnNCov54A5Z3vb55K2FhzcRvcs8lQ+Pf5/ eXCyJJZ9JSRjXieLVZIr765feOyNAYjsB8uJ7WHxR5AtUm+z+D1B3xSNhJTAGPHDYdFI I0RqHsx/U4/RkyXMcnT3vXY+Z1EAHQn+4q0xtkvPTO1ywJ1gUY+0TPXyqeXr5ScwHbjY 4rmOhfrWdT8cD6CrOKU1AjgrSSqJDawBzXQ+eZT/xvtHnCCAa9CeTgEVgvKeBV7uDYen Dncgk4bJ9jpCIJ4Y52Wnc4y5SsJk7u/xgLKGyltE4sUiMcyhwK3AYNPc9GlKrVZqSz4p Qyyw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=FM+aVg/aLs/YZhzeREUgae8873jG8UYvkZRvVhjl35A=; fh=43i8Eat1/8qbuhfBD76T/Pa4DUWeYwvVZC7Db3hnHnY=; b=l+vSrd263/ZeeyARjDQB+hThIFXQYJM1IH7OM5zlgDtJlfTmXLWCWzydH25lZcvJPc LD/4HvRVLunFHrAWZ2TQd+hJljRs7nEoysHu/21P2oTjN4hZPG4nMwlTuQw1VtIDrbrq 8WtE0rc92xnEf89ge2J5SEHU6gr/ghoffR+DUi3qSuZkf2RV4xZXW/s1GWR1TDddUqF8 BnbBW1DS1x0KhIslBK9lsE6KGM0/m2zN/YBdpHMJqR8sTDCL1zoFbqi1Vn11PEDuV6wf xxES2K/tg/M+8ON8R9ZMmgqGfTtF8p+y6RV1QYdzpvjrfPShP3qnDu/16/Tx+3vlsWJf 3sOg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=T1d+RYtX; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-8661-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8661-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de29db0ae3si2437568a12.774.2024.06.06.23.44.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 23:44:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-8661-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=T1d+RYtX; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-8661-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8661-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id ADB2828B3EC for ; Fri, 7 Jun 2024 06:40:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5F06F152791; Fri, 7 Jun 2024 06:40:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="T1d+RYtX" X-Original-To: linux-wireless@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 2B3BB14EC79; Fri, 7 Jun 2024 06:40:51 +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=1717742452; cv=none; b=nO/id2uteDuf760aKgzX/ffSi0wdUfTuEUx4GuYuuWw6ZF86h2yKpHIfsxNK/00kWmnsCfDMpeuC7Yu7ytVXE8eyXA3n6XBgxjt8xcgpc93I3Drtw1OA9t57HMteN+M+JM8clm29w+8vCGGBBsJaMuldCUv7crl6BJjnmBSnzFM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717742452; c=relaxed/simple; bh=o4pvJBigImph+/4WxTGAX2YQ/B+mm8RB+o9aqeUkiBk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=kH34BIMXYXh4FXvVANb4EAyjHl2HUs/DtTWbhm3rJL6ycHHIPCve/dSopl4sLRj5vrAO9z4fcs7Ug9N3/4MF6KQd0LrJilHTlwEjX/n/z40W+w2S8M6uJaJGorRfhGQKxiDC+0PDPco9BB9MV/IQV2CAIpEM95ob5FSLLELcrhQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=T1d+RYtX; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BDE1BC2BBFC; Fri, 7 Jun 2024 06:40:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717742451; bh=o4pvJBigImph+/4WxTGAX2YQ/B+mm8RB+o9aqeUkiBk=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=T1d+RYtXCMgCPqWf0bG8FaiDQ9qYrVNW9jgDiDEa63tl0QR9uvL7Bc6/2j08QP3Wj F+R2M1U0gLlwFkHy+YoLcQUe3UK3v1ZENu4/g1qpZ71Jz4Tf+AISiq+1wCQBGLn6fO m/bOnQgZ80INfygz+9JNBm19Yy07j56kuMjRsuivs5RjNQEIhNo0NZWV9KhmD/NUW+ MypX18hbrzyHTyzEI4JOvQXzo/cjwuxtqr+ec5eTBbhOpK5obwam+SbzGL5U4MP71N YEISl5BFTS3g+Xah2Vh8ChcwVxkkO6bIWZyaZNceH0sstGSvVW38MZDgcK8mfehNfA sep3CsbS2KZsA== Message-ID: <8db01c97-1cb2-4a86-abff-55176449e264@kernel.org> Date: Fri, 7 Jun 2024 08:40:45 +0200 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v9 1/2] dt-bindings: net: wireless: qcom,ath11k: describe the ath11k on QCA6390 To: Bartosz Golaszewski , 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 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> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzk@kernel.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzSVLcnp5c3p0b2Yg S296bG93c2tpIDxrcnprQGtlcm5lbC5vcmc+wsGVBBMBCgA/Ah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wBvYll2buKod4qYntmNKEicoHGU+x91Gcan8mCoqhJkbqrL7+nXG2 5Q/GS5M9RFWS+nYyJh+c3OcfKqVcZQNANItt7+ULzdNJuhvTRRdC3g9hmCEuNSr+CLMdnRBY fv0= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 06/06/2024 20:08, Bartosz Golaszewski wrote: > On Thu, Jun 6, 2024 at 6:16 PM Kalle Valo wrote: >> >> Bartosz Golaszewski writes: >> >>> On Thu, Jun 6, 2024 at 4:02 PM Kalle Valo wrote: >>> >>>> >>>> Bartosz Golaszewski writes: >>>> >>>>> On Thu, Jun 6, 2024 at 3:30 PM Kalle Valo wrote: >>>>> >>>>>> >>>>>> Bartosz Golaszewski writes: >>>>>> >>>>>>> From: Bartosz Golaszewski >>>>>>> >>>>>>> Add a PCI compatible for the ATH11K module on QCA6390 and describe 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 understand >>>>>> 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:1101 >>>>>> 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 board >>>>>> 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 breaking >>>>>> 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. >> >> 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. Correct. Kalle, All of the devices out there need these supplies, but they are sometimes provided by generic PCI supply and on-board regulators. Basically your PCI adapter is not the same as QCA6390 chip on Snapdragon board. > >> 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. > Correct. ... > >>> 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. Detechable board, like PCI adapter, derives these supplies from generic PCI whatever-3.3v through additional regulators. All these supplies are there - on the board. > >>> 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*. I understand that for all known DT QCA6390 hardware, the supplies should be provided thus they should be required. If in the future we have different design or we represent some pluggable PCI card, then: 1. Probably that PCI card does not need power sequencing, thus no DT description, 2. If still needs power sequencing, you can always amend bindings and un-require the supplies. Best regards, Krzysztof