I.MX device-tree overlay implement

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

I.MX device-tree overlay implement

393 Views
charleshuang
Senior Contributor II

Hi NXP team,

    How to load dtbo (overlay file) in runtime.

    An example for imx8mp, In kernel 6.1.36 there have imx8mp-evk-revb4.dtbo and it merge with others DTB file to generate a new one like :

imx8mp-evk-revb4-ov2775-dtbs = imx8mp-evk-ov2775.dtb imx8mp-evk-revb4.dtbo

 

   In this case can we use imx8mp-evk-ov2775.dtb and runtime load imx8mp-evk-revb4.dtbo ?

    If the answer is yes, how to do that ?

 

BR,

Sean

Labels (1)
0 Kudos
Reply
1 Reply

367 Views
joanxie
NXP TechSupport
NXP TechSupport

the purpose of your request is that you wan to add or remove dtbo file dynamically, right?

you can refer to the document as below, which is verified on nxp bsp, if/else test can meet your request or not

How to use linux device tree overlay from u-boot and apply it automatically - NXP Community

you also can refer to 

Device tree overlay - dynamic load and unload - Raspberry Pi Forums

pi 4 - Using the Dynamic Device Tree to add Overlays at Run Time - Raspberry Pi Stack Exchange

0 Kudos
Reply