From: Johan Hovold <johan@kernel.org>
To: jens.glathe@oldschoolsolutions.biz
Cc: 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+linaro@kernel.org>
Subject: Re: [PATCH v2] dt: arm64: qcom: sc8280xp-x13s: amend usb0-sbu-mux enable gpio
Date: Tue, 10 Jun 2025 09:31:45 +0200 [thread overview]
Message-ID: <aEffYQND8eUgJbua@hovoldconsulting.com> (raw)
In-Reply-To: <20250610-x13s-usb0-mux-v2-1-598454e6ad64@oldschoolsolutions.biz>
On Tue, Jun 10, 2025 at 07:04:46AM +0200, Jens Glathe via B4 Relay wrote:
> From: Jens Glathe <jens.glathe@oldschoolsolutions.biz>
>
> The usb0 port didn't switch to dp altmode, investigation into DSDT
> UCS0 device resulted in GPIO 165.
DP alt mode works on both ports of the X13s and "resulted in
gpio165" makes little sense so this commit message would need to be
extended.
> Signed-off-by: Jens Glathe <jens.glathe@oldschoolsolutions.biz>
> ---
> This patch amends the enable gpio for the usb0-sbu-mux to the one
> found in the DSDT file for this laptop. UCS0 shows a list of GPIOs in
> a certain order, and it has 2 buffers with slightly different length.
> At the place where one would expect the GPIO for the select pin of USB0
> (by pattern application from USB1) is a deviating value (165 instead of
> 101). This value is the same in both buffers. The GPIO previously used
> is also there, but at the end of the UCS0 buffer structure. Changing it
> resulted in a working dp altmode functionality on usb0.
GPIO 101 *is* the OE_N pin, while GPIO 165 is not even connected
according to the schematics. The mux may still work after this change,
but you'd be relying on it having been enabled by the boot firmware.
> Since the X13s dt looks derived from the SC8280XP CRD, it is likely that
> the change also needs to be done there.
To some degree that's true, but we have schematics for both machines and
they are not identical.
> This debug effort is a result of work / testing of the 4-lanes patch
> [1] on all available devices. Independent of it, it enables dp
> altmode on usb0, and with it, also 4 lanes, making it even more useful.
>
> [1]: https://lore.kernel.org/all/20250527-topic-4ln_dp_respin-v3-0-f9a0763ec289@oss.qualcomm.com/
NAK
Johan
next prev parent reply other threads:[~2025-06-10 7:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-10 5:04 [PATCH v2] dt: arm64: qcom: sc8280xp-x13s: amend usb0-sbu-mux enable gpio Jens Glathe via B4 Relay
2025-06-10 7:31 ` Johan Hovold [this message]
2025-06-11 19:25 ` Jens Glathe
2025-06-11 23:50 ` Dmitry Baryshkov
2025-06-16 8:57 ` Johan Hovold
2025-06-16 9:04 ` Jens Glathe
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=aEffYQND8eUgJbua@hovoldconsulting.com \
--to=johan@kernel.org \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jens.glathe@oldschoolsolutions.biz \
--cc=johan+linaro@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=robh@kernel.org \
/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