Debugging Device Tree issues may be bit challenging but essential for proper hardware configuration.
Below are the some debugging techniques,
Check syntax errors :- By verifying the generated DTB with the DTC tool.
Debug prints:- By adding debug prints in the kernel code to understand the Device Tree node information.
Using debugger tool :- Use the kernel debuggers like kgdb to halt the kernel and inspect Device Tree content.
Verifying Properties Information :- By verifying the Device Tree bindings with the hardware specification. Checking for missing or incorrect device nodes and their properties.