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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

6,620 Views
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 Kudos
Reply
5 Replies

6,601 Views
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 Kudos
Reply

6,597 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply

6,603 Views
lwothgin
Contributor II

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

0 Kudos
Reply

6,598 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply

6,611 Views
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 Kudos
Reply