How to add PTN5150 Type C controller module into LS1021a Linux

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to add PTN5150 Type C controller module into LS1021a Linux

1,377 Views
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

Labels (2)
0 Kudos
6 Replies

1,193 Views
yipingwang
NXP TechSupport
NXP TechSupport
0 Kudos

1,193 Views
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 Kudos

1,193 Views
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 Kudos

1,193 Views
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 Kudos

1,193 Views
yipingwang
NXP TechSupport
NXP TechSupport

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

0 Kudos

1,193 Views
jiye
Contributor V

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

0 Kudos