Re: DT overlay syntax question

Vincent DEFERT <[email protected]> Sun, 20 Jul 2025 12:18:35 +0000
Newsgroups gmane.os.netbsd.ports.arm
Message-ID <[email protected]>
Thanks a lot! :)

/include/ didn't work, but the following command did:

cpp -I /home/wrk/netbsd/src/sys/external/gpl2/dts/dist/include 
meson-gxbb-pwm_a.dts | dtc -@ -I dts -O dtb -o meson-gxbb-pwm_a.dtb


On 20/07/2025 14:01, Michael van Elst wrote:
> [email protected] (Vincent DEFERT) writes:
>
>> #include <dt-bindings/clock/gxbb-clkc.h>
> That's cpp syntax (i.e. you need to pipe the file through cpp
> before compiling).
>
> dtc however also should understand something like:
>
> /include/ "clock/gxbb-clkc.h"
>
> when you pass the dt-bindings directory path to dtc to search
> for include files.
>
>