mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
To: Alexander Koskovich <akoskovich@pm.me>
Cc: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>,
	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>, Kees Cook <kees@kernel.org>,
	Tony Luck <tony.luck@intel.com>,
	"Guilherme G. Piccoli" <gpiccoli@igalia.com>,
	linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 2/2] arm64: dts: qcom: sm8250-asus-obiwan: Add ASUS ROG Phone 3
Date: Mon, 23 Mar 2026 15:10:06 +0100	[thread overview]
Message-ID: <128aafba-6045-46f2-a83a-be5706e67424@oss.qualcomm.com> (raw)
In-Reply-To: <YUh0x0EbjEVDtKJ-osNM_rBJw1qSc6XM4CkS5w-rOewb_ZvsIlZ-sJXELcysAuPwmtx-M5CN08UfGJWUCqlWQJgxIPpQCU3PMNkD4d7NnVM=@pm.me>

On 3/18/26 12:56 PM, Alexander Koskovich wrote:
> On Wednesday, March 18th, 2026 at 7:29 AM, Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> wrote:
>  
>>>>> +		source-pdos = <PDO_FIXED(5000, 900,
>>>>> +					 PDO_FIXED_DUAL_ROLE |
>>>>> +					 PDO_FIXED_USB_COMM |
>>>>> +					 PDO_FIXED_DATA_SWAP)>;
>>>>> +
>>>>> +		sink-pdos = <PDO_FIXED(5000, 3000,
>>>>> +				       PDO_FIXED_DUAL_ROLE |
>>>>> +				       PDO_FIXED_USB_COMM |
>>>>> +				       PDO_FIXED_DATA_SWAP)
>>>>> +			     PDO_FIXED(9000, 3000, 0)
>>>>> +			     PDO_FIXED(12000, 2250, 0)>;
>>>>
>>>> Both ports have the same PDOs - will this kaboom if you plug in two chargers?
>>>
>>> Good catch, from what I can see there is zero hardware isolation. Downstream
>>> prevents dual sink by only allowing one port to negotiate sink at a time (seems
>>> to always prefer usb_1 if both are plugged in, guessing because its used for
>>> the dock), but there is no upstream mechanism to handle this as far as I know
>>> (not sure if this could even be done cleanly as it'd require cooperation
>>> between pm8150b_typec and rt1715).
>>
>> Could you please remind me how the two were connected? Maybe we can work
>> something out. Sounds like it would make sense for the two to have *some*
>> sort of relationship described
>>
> 
> Both USB-C connectors have their own OVP chip, and both OVP outputs feed into
> the same USB_IN rail on the PM8150B, there's no switch or mux on the power path
> just the OVP chips that are always passing through. The GPIOs on the OVPs are
> just for notification of what one is providing VBUS into USB_IN.
> 
> Here's a diagram from my understanding of the power setup:
> ┌────────┐
> │ USB-C1 │
> └───┬────┘
>     │
> ┌───┴───┐
> │  OVP  ├──── vbus-detect (GPIO 60)
> └───┬───┘
>     │
>     ├──── PM8150B (USB_IN)
>     │
>     ├──── NXP PCA9468 (direct charger)
>     │
> ┌───┴───┐
> │  OVP  ├──── vbus-detect (GPIO 13)
> └───┬───┘
>     │
> ┌───┴────┐
> │ USB-C2 │
> └────────┘

Hmm.. from a DT standpoint, I think a fair representation would be to have
the battery node track the two possible power inputs, but I have no clue
whether this is something that Linux (or binings) supports today

Konrad

  reply	other threads:[~2026-03-23 14:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-11  2:43 [PATCH v3 0/2] Add support for the ASUS ROG Phone 3 (SM8250) Alexander Koskovich
2026-03-11  2:43 ` [PATCH v3 1/2] dt-bindings: arm: qcom: Add ASUS ROG Phone 3 Alexander Koskovich
2026-03-11  2:43 ` [PATCH v3 2/2] arm64: dts: qcom: sm8250-asus-obiwan: " Alexander Koskovich
2026-03-18 10:28   ` Konrad Dybcio
2026-03-18 11:14     ` Alexander Koskovich
2026-03-18 11:29       ` Konrad Dybcio
2026-03-18 11:56         ` Alexander Koskovich
2026-03-23 14:10           ` Konrad Dybcio [this message]
2026-03-18 14:40         ` Dmitry Baryshkov

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=128aafba-6045-46f2-a83a-be5706e67424@oss.qualcomm.com \
    --to=konrad.dybcio@oss.qualcomm.com \
    --cc=akoskovich@pm.me \
    --cc=andersson@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.baryshkov@oss.qualcomm.com \
    --cc=gpiccoli@igalia.com \
    --cc=kees@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 \
    --cc=tony.luck@intel.com \
    /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

all inboxes | Powered by JetHome®