Linux driver support for CYUSBS234

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
bhargavasb
Level 1
Level 1
First reply posted First question asked Welcome!

Hi,

We are using CYUSBS234 to expand GPIOs via USB. We are using IMX8MM board for the development.

Please provide information about the device driver and device tree integration in yocto for CYUSBS234.

How these GPIOs can be assigned?

 

SOM: IMX8MM

BSP: Yocto Zeus

 

Regards,

Bhargava

0 Likes
1 Solution
Meghavi
Moderator
Moderator
Moderator
250 replies posted 100 solutions authored 10 likes received

Hi Bhargava,

Yes, the configuration utility is only for Windows. You would need to configure the device from Windows USB-Serial Configuration Utility or you can use the command-line Utility which is attached in this KBA: https://community.infineon.com/t5/Knowledge-Base-Articles/Command-line-tool-for-configuring-USB-Seri... 

Regards

View solution in original post

0 Likes
4 Replies
Meghavi
Moderator
Moderator
Moderator
250 replies posted 100 solutions authored 10 likes received

Hi Bhargava,

Linux does not need a separate driver or library in CDC device class operation. The standard CDC class driver itself can be used as the Virtual Com Port driver.

The GPIOs can be configured as input/output/tristate from the USB-Serial Configuration Utility. Once the GPIO's functionality is configured, the GPIO current value is set/get depending on the configuration(input/output) using the CyUSBSerial Library through a host application. There is no separate driver needed for that. You can refer the USB-Serial API doc to control the GPIO operation from USB-Serial SDK.

Regards

0 Likes

And "USB-Serial configuration utility " is only for Windows and not there for Linux. Is it like the configuration has to be generated in Windows and then that has to be ported to Linux?

0 Likes
Meghavi
Moderator
Moderator
Moderator
250 replies posted 100 solutions authored 10 likes received

Hi Bhargava,

Yes, the configuration utility is only for Windows. You would need to configure the device from Windows USB-Serial Configuration Utility or you can use the command-line Utility which is attached in this KBA: https://community.infineon.com/t5/Knowledge-Base-Articles/Command-line-tool-for-configuring-USB-Seri... 

Regards

0 Likes
bhargavasb
Level 1
Level 1
First reply posted First question asked Welcome!

Hi Meghavi,

Thanks for responding.

Can we use these GPIOs in the linux device tree and if so how can we use them.

We have interfaced Rotary encoder device to 2 GPIOs. Is it possible to read their state using generic rotary encoder driver (drivers/input/misc/rotary_encoder) in Linux?

 

Regards,

Bhargava

0 Likes