public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
From: Johan Hovold <johan@kernel.org>
To: Stephan Gerhold <stephan.gerhold@linaro.org>
Cc: jens.glathe@oldschoolsolutions.biz,
	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
Subject: Re: [PATCH v2 1/3] arm64: dts: qcom: x1e80100-hp-x14: add usb-1-ss1-sbu-mux
Date: Fri, 11 Apr 2025 14:16:25 +0200	[thread overview]
Message-ID: <Z_kIGS0GLduS1H1z@hovoldconsulting.com> (raw)
In-Reply-To: <Z_kChvolKDp2JAcS@linaro.org>

On Fri, Apr 11, 2025 at 01:52:38PM +0200, Stephan Gerhold wrote:
> On Fri, Apr 11, 2025 at 01:25:39PM +0200, Johan Hovold wrote:
 
> > > +	usb_1_ss1_sbu_default: usb-1-ss1-sbu-state {
> > > +		mode-pins {
> > > +			pins = "gpio177";
> > > +			function = "gpio";
> > > +			bias-disable;
> > > +			drive-strength = <2>;
> > > +			output-high;
> > > +		};
> > 
> > This is more of a question for Stephan who added this to QCP [1], but
> > why is this mode pin here and what does it do?
> > 
> > It's not part of the binding for the mux (which indeed only has two
> > control signals according to the datasheet) so it looks like something
> > is not modelled correctly.
> 
> I'm afraid you have opened a "can of worms" here. :')

Heh.

> On the QCP, there are actually two of these muxes chained for each port.
> One of them does the orientation switching that we are describing here,
> the other selects between routing SBU to DP AUX or USB SBTX/SBRX. I'm
> guessing this is meant for USB4. Given that:
> 
>  - We don't have any support for USB4 on QC platforms at the moment.
>  - We're not modelling the USB4 stuff for the retimer either(?).
>  - We have no clear overview of what/how to model for USB4.
>  - The ports without retimer aren't advertised with USB4 support (I'm
>    guessing the signal quality is not reliable enough without retimer).
>  - The gpio-sbu-mux driver doesn't support shared enable-gpios.
> 
> ... we just went with the tradeoff of forcing DP AUX mode here by
> setting a fixed state for the second mux. I'm not sure if the other
> configuration is even a valid use case for the ports without retimer.
> 
> A comment about this would have been nice, but I didn't think of that
> anymore when cleaning up the patches. :-)

Thanks for the explanation. Makes sense.

Johan

  reply	other threads:[~2025-04-11 12:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-10 10:07 [PATCH v2 0/3] arm64: dts: qcom: x1e80100-hp-x14: add usb-1-ss1-sbu-mux Jens Glathe via B4 Relay
2025-04-10 10:07 ` [PATCH v2 1/3] " Jens Glathe via B4 Relay
2025-04-11 11:25   ` Johan Hovold
2025-04-11 11:52     ` Stephan Gerhold
2025-04-11 12:16       ` Johan Hovold [this message]
2025-04-10 10:07 ` [PATCH v2 2/3] arm64: dts: qcom: x1e80100-hp-x14: remove unused i2c buses Jens Glathe via B4 Relay
2025-04-10 10:07 ` [PATCH v2 3/3] arm64: dts: qcom: x1e80100-hp-x14: amend order of nodes Jens Glathe via B4 Relay

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=Z_kIGS0GLduS1H1z@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=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 \
    --cc=stephan.gerhold@linaro.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