[PATCH V10 3/4] power: supply: Add charger driver for Rockchip RK817

Philip C subs at pscan.uk
Sat Oct 8 11:30:28 PDT 2022


I have a question about the RK817 driver.

In Documentation/devicetree/bindings/phy/phy-rockchip-inno-usb2.yaml it 
says:-
"extcon:
     description:
       Phandle to the extcon device providing the cable state for the 
otg phy."

In the context of an RK356x/RK817 based device, is RK817 an "extcon 
device" that provides the cable state?

should I have statement like:-
&usb2phy0 {
   extcon = <&rk817>;
};
?

or maybe it should be extcon = <&otg_switch> ?

In the BSP kernels it's done the other way round with the charger having 
an extcon declaring a phandle to the phy like this:-

rk817: pmic at 20 {
   charger {
     extcon = <&usb2phy0>:
   };
};

thanks, Philip C



More information about the Linux-rockchip mailing list