ptn5110 device tree configuration?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

ptn5110 device tree configuration?

2,680件の閲覧回数
amodamatya
Contributor II

We have been using imx8qxp processors which has support for USB Power delivery.
In imx8x-mek.dtsi , I can see that there is a node for ptn5110 device. We would want the device to be able to provide 5V, 12V and 15V with 3A current. 

I have changed the source pdos to the values that I have mentioned above in this way, is this a correct implementation? How does the voltage switching in kernel happen? Do I have to write down some properties for the vbus-supply to switch the voltage?

ptn5110@50 {
compatible = "nxp,ptn5110";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_typec>;
reg = <0x50>;
interrupt-parent = <&lsio_gpio1>;
interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
status = "okay";

usb_con: connector {
compatible = "usb-c-connector";
label = "USB-C";
data-role = "dual";
power-role = "source";
source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)
PDO_FIXED(12000, 3000, PDO_FIXED_USB_COMM)
PDO_FIXED(15000, 3000, PDO_FIXED_USB_COMM)>;

ports {
#address-cells = <1>;
#size-cells = <0>;

port@1 {
reg = <1>;
usb_con_ss: endpoint {
remote-endpoint = <&usb3_data_ss>;
};
};
};
};
};
ラベル(1)
0 件の賞賛
返信
2 返答(返信)

2,664件の閲覧回数
IvanRuiz
NXP Employee
NXP Employee

Hello,

 

I believe this configuration involves SW and HW but need to check internally. In the meantime, could you please share your schematics in order to check the HW part?

 

Thank you.

 

BR,

Ivan.

0 件の賞賛
返信

2,647件の閲覧回数
amodamatya
Contributor II

Hello, thank you for your response and also sorry for the late reply as I am only working as a part time.
We found out, where in the kernel we have to supply the regulator voltage, here
 https://elixir.bootlin.com/linux/latest/source/drivers/usb/typec/tcpm/tcpm.c#L3861,
so we got some idea to move ahead, we will seek your help, if there is any confusions ahead..

0 件の賞賛
返信