June 2017
Intermediate to advanced
478 pages
13h 14m
English
A lot of hardware is common between SoCs of the same family and between boards using the same SoC. This is reflected in the device tree by splitting out common sections into include files, usually with the extension .dtsi. The Open Firmware standard defines /include/ as the mechanism to be used, as in this snippet from vexpress-v2p-ca9.dts:
/include/ "vexpress-v2m.dtsi"
Look through the .dts files in the kernel, though, and you will find an alternative include statement that is borrowed from C, for example in am335x-boneblack.dts:
#include "am33xx.dtsi"#include "am335x-bone-common.dtsi"
Here is another example from am33xx.dtsi:
#include <dt-bindings/gpio/gpio.h>#include <dt-bindings/pinctrl/am33xx.h>
Lastly, ...
Read now
Unlock full access