How to add PTN5150 Type C controller module into LS1021a Linux

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to add PTN5150 Type C controller module into LS1021a Linux

2,794 次查看
jiye
Contributor V

Hi,

My system ls1021a has TYPE C connector and CC controller PTN5150 and a MUX, I would like to know how to add this module (PTN5150) into my Linux so that I can configure the settings of this chip through I2C from Linux.

Linux kernel 4.19

Debian

LSDK1906

标签 (2)
0 项奖励
回复
6 回复数

2,610 次查看
yipingwang
NXP TechSupport
NXP TechSupport
0 项奖励
回复

2,610 次查看
jiye
Contributor V

Hi Yiping Wang,

I could not find things like this in my menu config :

pastedImage_1.png

Would you be able to provide more instructions on how to patch this driver?

0 项奖励
回复

2,610 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Please add the following in drivers/extcon/Kconfig manually.

config EXTCON_PTN5150

        tristate "NXP PTN5150 CC LOGIC USB EXTCON support"

        depends on I2C

        select REGMAP_I2C

        help

          Say Y here to enable support for USB peripheral and USB host

          detection by NXP PTN5150 CC (Configuration Channel) logic chip

0 项奖励
回复

2,610 次查看
jiye
Contributor V

can you tell me where is the  drivers/extcon/ located?

I could not even find this directory in my linux build folder

also after I am done, how to use this driver from my device side ?

0 项奖励
回复

2,610 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Please go to LSDK Linux Kernel source code folder packages/linux/linux/.

0 项奖励
回复

2,610 次查看
jiye
Contributor V

Do I need to add anything into the Makefile as well for the object file of this driver compilation ?

0 项奖励
回复