The OKT507-C from Forlinx Embedded is a popular EVK with various interfaces. The OKT507-C's CPU does not have so many pin resources, so how does it provide various interfaces? The key point is IO Extended Chip—TCA6424A.
It is a 24-bit I2C and System Management Bus (SMBus). Inputs and outputs (I/O) extender has interrupt outputs, reset, and configuration registers. To meet the needs of a wide range of customers and to keep as many functions as possible while reducing costs. Forlinx Embedded provides a method to retain the extended pin function after removing the IO extended chip on OKT507-C.
The IO ports on the extended chip are used by the WiFi, Bluetooth, MIPI camera TP2854, DVP camera, and line-out port power enable pins. We need to use other pins on the SoM that can be multiplexed for these functions to achieve the retain goal.
In this article, we will take LCD function pin multiplexing as an example, users can choose the function pin according to their actual needs. Please refer to the method as below:
01 How to choose the pin
The relative function pins are shown in the table below:
02 How to turn off the original function of gpio_ext and multiplexing pins?
After modifying the device tree to turn off the LCD function, this group of pins can be used as normal GPIOs. Modify the path as follows:
2. Disable the pin function to be multiplexed.
Turn off the LCD function, as in this article we take LCD as an example, and users can turn off the specific functions according to actual needs.
Change lcd_used to 0.
lcd0 node add status = "disabled";
03 How to change the GPIOs used in a device node?
2. TP2854 pin configuration
The path is as follows:
We should note that the MIPI5640 and TP2854 share a MIPI interface, and both functions use the MIPI_PWRDN pin, so we can only choose one function in actual use. Therefore, we selected the same pin for both function tests in this article.
3. DVP-5640 pin configuration
The path is as follows:
4. WiFi pin configuration
The path is as follows:
5. Blue pin configuration
The path is as follows:
6. Audio pins
The path is as follows:
The above is how to realize the function of retaining the extended pins after removing the IO extended chip on the Forlinx OKT507-C SBC.
For additional information, visit the OKT507-C Single Board Computer
Originally published at www.forlinx.net.
It is a 24-bit I2C and System Management Bus (SMBus). Inputs and outputs (I/O) extender has interrupt outputs, reset, and configuration registers. To meet the needs of a wide range of customers and to keep as many functions as possible while reducing costs. Forlinx Embedded provides a method to retain the extended pin function after removing the IO extended chip on OKT507-C.
The IO ports on the extended chip are used by the WiFi, Bluetooth, MIPI camera TP2854, DVP camera, and line-out port power enable pins. We need to use other pins on the SoM that can be multiplexed for these functions to achieve the retain goal.
In this article, we will take LCD function pin multiplexing as an example, users can choose the function pin according to their actual needs. Please refer to the method as below:
01 How to choose the pin
The relative function pins are shown in the table below:
02 How to turn off the original function of gpio_ext and multiplexing pins?
After modifying the device tree to turn off the LCD function, this group of pins can be used as normal GPIOs. Modify the path as follows:
- Turn off the IO extended chip function
2. Disable the pin function to be multiplexed.
Turn off the LCD function, as in this article we take LCD as an example, and users can turn off the specific functions according to actual needs.
Change lcd_used to 0.
lcd0 node add status = "disabled";
03 How to change the GPIOs used in a device node?
- MIPI-5640 pin configuration
The path is as follows:
2. TP2854 pin configuration
The path is as follows:
We should note that the MIPI5640 and TP2854 share a MIPI interface, and both functions use the MIPI_PWRDN pin, so we can only choose one function in actual use. Therefore, we selected the same pin for both function tests in this article.
3. DVP-5640 pin configuration
The path is as follows:
4. WiFi pin configuration
The path is as follows:
5. Blue pin configuration
The path is as follows:
6. Audio pins
The path is as follows:
The above is how to realize the function of retaining the extended pins after removing the IO extended chip on the Forlinx OKT507-C SBC.
For additional information, visit the OKT507-C Single Board Computer
Originally published at www.forlinx.net.