FDD-book/examples/part-07/ch32-fdt-embedded/lab02-overlay/fdthello-overlay.dts
Edson Brandi 6e6dac94fe Add book companion files under examples/
Organize companion code and materials by book part:

  part-01/      Foundations
  part-02/      Kernel & driver fundamentals
  part-03/      Character & block devices
  part-04/      Networking & storage
  part-05/      Buses & advanced topics
  part-06/      Debugging & performance
  part-07/      Real-world drivers
  appendices/   Supplementary material
  README.md     Overview and build instructions
2026-04-25 16:51:00 +00:00

27 lines
549 B
Text

/*
* fdthello-overlay.dts - Overlay that adds an fdthello DT node
*
* Companion overlay for Chapter 32, Section 5 of
* "FreeBSD Device Drivers: From First Steps to Kernel Mastery."
*
* Targets the /soc node of a Raspberry Pi 4 base tree and adds a
* fdthello@20000 child that matches the driver from Lab 1.
*/
/dts-v1/;
/plugin/;
/ {
compatible = "brcm,bcm2711";
fragment@0 {
target-path = "/soc";
__overlay__ {
hello@20000 {
compatible = "freebsd,fdthello";
reg = <0x20000 0x100>;
status = "okay";
};
};
};
};