From: Stephan Gerhold <stephan.gerhold@linaro.org>
To: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Cc: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>,
Val Packett <val@packett.cool>,
Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, Johan Hovold <johan@kernel.org>
Subject: Re: [PATCH 2/4] arm64: dts: qcom: Add support for X1E80100 Dell Latitude 7455
Date: Tue, 27 May 2025 17:12:48 +0200 [thread overview]
Message-ID: <aDXWcASIH92C3oKo@linaro.org> (raw)
In-Reply-To: <9A47A2D6-93EA-4C73-A681-474C977474DD@linaro.org>
On Tue, May 27, 2025 at 05:54:49PM +0530, Manivannan Sadhasivam wrote:
> On May 25, 2025 6:55:42 PM GMT+05:30, Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> wrote:
> >On Sun, May 25, 2025 at 06:53:34AM -0300, Val Packett wrote:
> >> Add a device tree for the Dell Latitude 7455 (X Elite) laptop.
> >>
> >> Working:
> >> - Wi-Fi (WCN7850 hw2.0)
> >> - Bluetooth
> >> - USB Type-C x2 (with DP alt mode)
> >> - USB Type-A
> >> - USB Fingerprint reader
> >> - eDP Display (with brightness)
> >> - NVMe
> >> - SDHC (microSD slot)
> >> - Keyboard
> >> - Touchpad
> >> - Touchscreen
> >> - Battery
> >>
> >> Not included:
> >> - Audio
> >> - Camera
> >>
> >> Signed-off-by: Val Packett <val@packett.cool>
> >> ---
> >> arch/arm64/boot/dts/qcom/Makefile | 2 +
> >> .../dts/qcom/x1e80100-dell-latitude-7455.dts | 1484 +++++++++++++++++
> >> 2 files changed, 1486 insertions(+)
> >> create mode 100644 arch/arm64/boot/dts/qcom/x1e80100-dell-latitude-7455.dts
> >>
> >
> [...]
> >> +
> >> + vreg_wcn_3p3: regulator-wcn-3p3 {
> >> + compatible = "regulator-fixed";
> >> +
> >> + regulator-name = "VREG_WCN_3P3";
> >> + regulator-min-microvolt = <3300000>;
> >> + regulator-max-microvolt = <3300000>;
> >> +
> >> + gpio = <&tlmm 214 GPIO_ACTIVE_HIGH>;
> >> + enable-active-high;
> >> +
> >> + pinctrl-0 = <&wcn_sw_en>;
> >> + pinctrl-names = "default";
> >> +
> >> + regulator-boot-on;
> >> + };
> >> +
> >> + /*
> >> + * TODO: These two regulators are actually part of the removable M.2
> >> + * card and not the mainboard. Need to describe this differently.
> >> + * Functionally it works correctly, because all we need to do is to
> >> + * turn on the actual 3.3V supply above.
> >> + */
> >
> >Indeed, it should be possible to describe just M.2 card, because in
> >theory nothing prevents you from swapping it with some other card.
> >I _think_, it should be possible to describe WiFI part by listing 3.3V
> >supply as slot supply. However I don't think we have a way "random BT
> >connected to the UART". So, this is probably suitable.
>
> If it is *just* an M.2 card, then why the PMU node for WLAN is
> defined?
We keep discussing incomplete approaches for handling these M.2 cards,
but still haven't come up with a proper consensus for the whole setup.
This is why currently describing the PMU - even if it feels weird and
describes lots of redundant information - is the only working solution.
These are reasonably standard M.2 cards, with the following resources
that must be controlled:
- Shared:
- 3.3V supply
- 1.8V supply
- WiFi:
- PCIe (discoverable)
- wlan-enable-gpios (W_DISABLE1#)
- Bluetooth
- UART (non-discoverable, must be hardcoded in DT?)
- bt-enable-gpios (W_DISABLE2#)
Currently, defining the PMU is required for the Bluetooth
(qcom,wcn7850-bt) and also the WiFi (pci17cb,1107) bindings. We need to
add proper alternatives for the M.2 case.
> PMU is defining the internal supplies of the M.2 cards. If
> that's not required, you'd be better off with defining the slot supply
> alone in the PCIe bridge node. Like,
>
> In SoC dtsi:
>
> pcieport0: pcie@0 {
> compatible "pciclass,0604"
> ...
> };
>
> In board dts:
>
> &pcieport0 {
> vpcie3v3-supply = <&vreg_wcn_3p3>;
> };
>
> But I guess you are sticking with PMU for UART? Even in that case, the PCIe node should just define the slot supply.
>
Can this handle the standard 1.8V supply as well? What about the
wlan-enable-gpios (W_DISABLE1#)? I don't think it makes sense describing
the shared PMU only for Bluetooth. The question if the PMU really needs
to be modelled at all (rather than relying on reference counting for
regulators etc) is also still open though.
We need to start looking for solutions for the whole setup. We have
discussed lots of partial solutions over the last year, but eventually
always got stuck when putting things together for the whole M.2 card. :/
Thanks,
Stephan
next prev parent reply other threads:[~2025-05-27 15:12 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-25 9:53 [PATCH 0/4] Add support for Dell Latitude 7455 (X1E-80-100) Val Packett
2025-05-25 9:53 ` [PATCH 1/4] dt-bindings: arm: qcom: Add Dell Latitude 7455 Val Packett
2025-05-29 9:29 ` Krzysztof Kozlowski
2025-05-25 9:53 ` [PATCH 2/4] arm64: dts: qcom: Add support for X1E80100 " Val Packett
2025-05-25 13:25 ` Dmitry Baryshkov
2025-05-27 12:24 ` Manivannan Sadhasivam
2025-05-27 15:12 ` Stephan Gerhold [this message]
2025-05-27 11:25 ` Konrad Dybcio
2025-08-11 18:41 ` (subset) [PATCH 0/4] Add support for Dell Latitude 7455 (X1E-80-100) Bjorn Andersson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aDXWcASIH92C3oKo@linaro.org \
--to=stephan.gerhold@linaro.org \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.baryshkov@oss.qualcomm.com \
--cc=johan@kernel.org \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=manivannan.sadhasivam@linaro.org \
--cc=robh@kernel.org \
--cc=val@packett.cool \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox