Re: [PATCH 1/3] usb: typec: Add QCOM PMIC typec detection driver

From: Wesley Cheng
Date: Fri Jun 12 2020 - 00:19:25 EST




On 6/10/2020 12:37 PM, Bjorn Andersson wrote:
>> along with USB_BASE @ 0x1300, is it ok to allow this driver to access
>> registers outside of its 'reg' base (0x1500 according to the DT
>> bindings)?
>>
>
> Depending on how entangled a future driver for the charger blocks would
> be one could either just upstream a dcdc regulator driver to control
> vbus today, or a "lite version" of a charging driver exposing just the
> vbus regulator.
>
> Either way I would prefer this over poking the register directly from
> this driver, as it will make it tricky to migrate to a proper charger
> driver later.
>
> Regards,
> Bjorn
>

Hi Bjorn/Jack,

I have removed the need for referencing other base addresses other than
the type C block within the driver, and have moved the DCDC set to be
handled by another regulator driver, which solely controls the vbus
output. The type C driver will control the vbus output using the
regulator APIs. Thanks for the input.

--
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project