[PATCH 5/5] arm64: dts: rockchip: fix USB OTG power on Photonicat in battery mode

Coia Prant coiaprant at gmail.com
Mon Nov 2 09:17:48 PST 2026


Chukun Pan <amadeus at jmu.edu.cn> 于2026年11月2日周一 19:50写道:
>
> Hi,
>
> > +     /* actually fed by vccin_5v, dependent on vcc5v0_usb30_otg0 */
> > +     vcc5v0_usb30_otg0_boost: regulator-vcc5v0-boost {
>
> This is incorrect from the schematic:
>
> VBAT -> 5V_BOOST / 5V_OUT regulator
>                  |
> Boost_EN ---------
>
> 5V_OUT -----
>             |-> VCC5V0_USB30_OTG0 -> USB3 VBUS
> VCCIN_5V ---            |
>                         |
> USB_HOST_PWREN_H -------
>
> So you should modify the vin-supply of vcc5v0_usb30_otg0.
>
> > +             regulator-name = "vcc5v0_boost";
>
> vcc5v_boost
>
> > +             vin-supply = <&vcc5v0_usb30_otg0>;
> > +     };
>
> vccin_5v: vbat: regulator-vccin-5v {
> vin-supply = <&vbat>;
>
> > +             vcc5v0_boost_en: vcc5v0-boost-en {
>
> boost_en

Hi,

Thanks for the schematic pointers. While reworking the USB power path, I
also noticed an issue with the modem power supply.

For the USB fix, I've reworked it according to the schematic:
- Added a `vbat` fixed-regulator node.
- Added `5v_boost` (VBAT -> 5V_BOOST via U16 and BOOST_EN).
- Added `5v_out` to represent the OR-ed 5V_OUT rail (Boost via D5002 +
VCCIN_5V via D16).
- Changed `vcc5v0_usb30_otg0` (USB VBUS load switch) to use `5v_out`
as its `vin-supply`.

For the modem, the `vcc3v4_rf` regulator was incorrectly supplied by
`vccin_5v`, which means the M.2 B-Key modem would lose power in
battery mode. The schematic shows it is actually derived from
`vcc_syson` via a ferrite bead (B1). I've changed its `vin-supply` to
`<&vcc_syson>`.

I'll send out a v2 with both fixes shortly.

Thanks,
Coia



More information about the linux-arm-kernel mailing list