当前位置:网站首页>Quanzhi t507 removes the IO expansion chip and retains the expansion pin function
Quanzhi t507 removes the IO expansion chip and retains the expansion pin function
2022-07-20 09:42:00 【Kakarot GT】
Launched by Feiling embedded OKT507-C As a popular development board, it has rich interface resources , But in fact OKT507-C Of CPU Pin resources are relatively scarce , So how does it implement such rich interface resources ?
The answer is that Feiling uses a IO Expansion chip ——TCA6424A. This is a 24 position I2C And system management bus (SMBus), Input and output (I/O) The extender has an interrupt output 、 Reset and configure registers .
Affected by the current international situation , The situation of the chip industry is very serious , In order to meet the needs of more customers , Keep as many functions as possible while reducing costs , Feiling brings you OKT507-C Get rid of IO The implementation method of retaining the function of the extended pin after expanding the chip .
On the expansion chip IO Oral quilt WiFi、 bluetooth 、MIPI camera TP2854、DVP Cameras and line-out Port power enable pin reference , If you want to keep these functions , It is necessary to use other pins of the core board that can be reused for these functions .
This article will choose the development board LCD Function pins are reused for these functions , Users can choose according to their actual functional requirements . The method is as follows :
1. Select pin
The corresponding function pins are shown in the table below :
2. Turn off the gpio_ext And the original function of the multiplexing pin
Modify the device tree , take LCD When the function is turned off , This group of pins can be used as ordinary GPIO. The modification path is as follows :
vi OKT507-linux-sdk/kernel/linux4.9/arch/arm64/boot/dts/sunxi/OKT507-C Common.dtsi
2.1 Turn off the IO Expand chip functions
Because the expansion chip has been removed , So turn off the expansion chip node .
2.2 Turn off the function of reusing pins
close LCD function , This article chooses LCD The pins on the are used for function multiplexing , The user needs to turn off the pin function used according to the actual situation .
take lcd_used Change it to 0
lcd0 Node add status = “disabled”;
3. Change the... Referenced in the device node GPIO
3.1 MIPI-5640 Pin configuration
Path as follows :
vi OKT507-linux-sdk/kernel/linux-4.9/arch/arm64/boot/dts/sunxi/OKT507-C-Common.dtsi
3.2 TP2854 Pin configuration
Path as follows :
vi OKT507-linux-sdk/kernel/linux-4.9/arch/arm64/boot/dts/sunxi/OKT507-C-Common-TP2854M.dtsi
It should be noted that ,MIPI5640 and TP2854 Share one MIPI Interface , Both functions are used MIPI_PWRDN Pin , Only one function can be selected in actual use , Therefore, this paper selects the same pin in the two function tests .
3.3 DVP-5640 Pin configuration
Path as follows :
vi OKT507-linux-sdk/kernel/linux-4.9/arch/arm64/boot/dts/sunxi/OKT507-C-Common.dtsi
3.4 WiFi Pin configuration
Path as follows :
vi OKT507-linux-sdk/kernel/linux-4.9/arch/arm64/boot/dts/sunxi/OKT507-C-Common.dtsi
3.5 Bluetooth pin configuration
Path as follows :
vi OKT507-linux-sdk/kernel/linux-4.9/arch/arm64/boot/dts/sunxi/OKT507-C-Common.dtsi
3.6 Audio pin
Path as follows :
vi OKT507-linux-sdk/kernel/linux-4.9/arch/arm64/boot/dts/sunxi/OKT507-C-Common.dtsi
That's all OKT507-C Remove the development board IO The implementation method of retaining the function of the extended pin after expanding the chip , Please refer to the specific test method
边栏推荐
- [a800-9000] [mindspire ascend 910 version] after installation, the official mindspot test program reported an error
- 基于定时器捕获功能的红外解码程序(NEC协议)
- 最小二乘法线性拟合及其代码实现(C语言)
- yolov5-face
- Absolute position information of the target in the image (1) -- how much position information do revolutionary neural networks encode
- Vsftp server setup
- FPGA刷题P1:4选1多路选择器、异步复位的串联T触发器、奇偶校验、移位拼接乘法
- The paper interprets beyond self attention: external attention using two linear layers for visual tasks
- Vit structure
- E2EC: An End-to-End Contour-based Method for High-Quality High-Speed Instance Segmentation
猜你喜欢
如何把一个“平台” 塞进一个小盒子里?(上 )|方案对比
【mindspore】【import erro】 undefined symbol _ Z14DlogErrorInneriPK
单电源运放和双电源运放及其供电方式选择与转换的注意事项
printf的归宿-数据打印到哪儿了
全志 T507实现SPI转CAN 全过程
Install Oracle 11g and build database based on Linux operating system (centos7x without graphics)
“嵌入式智能化”为医疗设备不断赋能
Vit structure
The paper interprets beyond self attention: external attention using two linear layers for visual tasks
FPGA ——IP核的封装和调用(vivado)
随机推荐
STM32 CubeIDE 断点失效的解决方法
三极管串联线性稳压电路原理详解及Multisim仿真
瑞芯微RK3568开发板深度评测
有趣的torch.einsum
Summary of errors reported during compilation of vivado2020
smplify
xilinx中的复位
FreeRTOS线程安全、中断安全的printf实现方式
SMPL模型
小波分析之多分辨率分解和重构过程详解
全志A40i网卡软件问题怎么办
How to test the availability and stability of EIM bus
[mindspore1.1] [batchnorm / gradoperation] test module infer_ Backward, find the answer
FPGA网口实现与详解(2)
FPGA——用VGA时序显示图像原理详解(2)
G2L系列 核心板 -RZ/G2L 處理器簡介|框架圖|功耗|原理圖及硬件設計指南
Debian系统移植USBWiFi RTL8192EU驱动并设置开机自启
yolov5-face
VSFTP服务器搭建
Ktor 2.0?半香不香的尴尬