mirror of
https://github.com/ebrandi/FDD-book.git
synced 2026-12-06 08:33:30 +00:00
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
27 lines
549 B
Text
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";
|
|
};
|
|
};
|
|
};
|
|
};
|