Testing yaml dtschemas
First test the binding :
make clean && make -j8 dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/<path to yaml>Then check the
dtsi/dtsfiles that are compatible with this schema. Example :rg "generic-uhci", here rg is recursive grep program
arch/arm/boot/dts/aspeed/aspeed-g4.dtsi
158: compatible = "aspeed,ast2400-uhci", "generic-uhci";
arch/arm/boot/dts/aspeed/aspeed-g5.dtsi
186: compatible = "aspeed,ast2500-uhci", "generic-uhci";
Now set options to cross-compile with the architecture that has the dts files (here-arm) :
export CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm KBUILD_OUTPUT=out/Now make config file :
First clean your setup (and you have to build your bindings again in step 4)
Then you may have to run
make mrproperto switch to the new architectureThen run
make defconfigfor default configBuild the bindings again :
make -j8 dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/<path to yaml>
Now test the dts files :
make -j8 dtbs_check DT_SCHEMA_FILES=<path to yaml>
Last updated