linux menuconfig and device tree setup for "plug and play"...??

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

linux menuconfig and device tree setup for "plug and play"...??

6,662 次查看
lwothgin
Contributor II

Just like WindowsOS, I want my embedded LinuxOS to detect a new display device connection on the MIPI-DSI SAS connector;  I want to connect to an HDMI monitor (using the SAS to HDMI cable in the imx8mm evk); Also, I want to connect to a Tianma touch monitor with a MIPI-DSI SAS cable. Plus I want to select one of three MIPI-CSI cameras (OV5640, OV9734, and AR0144) . Now, I guess like Windows, the drivers are loaded (LKM's .ko drivers) when the camera is selected and connection detected (hardware is an I2C MUX,  I2C GPIO Translator/Expander, etc). I assume that the Camera Drivers would be added to kernel as Modules<M> ,as well as the touch and panel drivers for the Tianma display { ILITEK(touch driver)& Raydium(panel driver)}.  BUT, how do I set up the device tree; do i include the touch node and the panel node, plus the adv7535 node stuff for the HDMI monitor....SLEEPY AND CONFUSED!!

0 项奖励
回复
5 回复数

6,643 次查看
lwothgin
Contributor II

will the touch panel as CONFIG_DRM_PANEL_RAYDIUM_RM67191=m get loaded if the dtb file has its node setup when booted, 

0 项奖励
回复

6,639 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

No, you need load driver first, you should set  CONFIG_DRM_PANEL_RAYDIUM_RM67191=y

0 项奖励
回复

6,645 次查看
lwothgin
Contributor II

thanks much...I guess i could boot from boot prompt with a different dtb file...???

0 项奖励
回复

6,640 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Yes, you can choose dtb in when uboot load dtb.

0 项奖励
回复

6,653 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

1.MIPI-HDMI can detect hotplug, MIPI DSI driver can't detect hotplug.

2.You can find demo device tree about touch driver and display driver.

Documentation/devicetree/bindings/display
0 项奖励
回复