Device Tree

From krtkl wiki
Jump to navigation Jump to search


Device Tree Overlays

Device tree overlays are necessary to populate the devices on the system after boot. This is particularly important and useful for devices that are synthesized for and reside within the programmable logic of snickerdoodle.

/plugin/;       /* allow undefined label references and record them */
/ {
        ....    /* various properties for loader use; i.e. part id etc. */
        fragment@0 {
                target = <&ocp>;
                __overlay__ {
                        /* bar peripheral */
                        bar {
                                compatible = "corp,bar";
                                ... /* various properties and child nodes */
                        }
                };
        };
};