Re: [PATCH] arm64: dts: qcom: sm8250-xiaomi-elish: add usb pd negotiation support

Jianhua Lu
2024-03-02T13:01:36Z

On Sat, Mar 02, 2024 at 12:58:57AM +0100, Konrad Dybcio wrote:
> On 27.02.2024 13:45, Jianhua Lu wrote:
> > Add usb pd negotiation, but charging is controlled by pm8150b pmic,
> > so it can only charge battery with 5W,
> >
> > Signed-off-by: Jianhua Lu <lujianhua000@gmail.com>
> > ---
> > arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi | 9 ++++++++-
> > 1 file changed, 8 insertions(+), 1 deletion(-)
> >
> > diff --git a/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi
> > index 6f54f50a70b0..ed103b90f4e6 100644
> > --- a/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi
> > +++ b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi
> > @@ -636,7 +636,8 @@ &pm8150b_typec {
> > connector {
> > compatible = "usb-c-connector";
> >
> > - power-role = "source";
> > + op-sink-microwatt = <10000000>;
>
> Is 10W really the minimum value for this tablet to function as a sink?
>
After testing 1W, 5W and 10W, 10W is the minimum value for this device to function as a
sink.
>