- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Labels:
-
ispn:38623:1:0
-
l1:314:1:0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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