6
我正在嘗試爲嵌入式PowerPC板設置驅動程序,今天正確的方法是使用OpenFirmware設備樹數據結構(.dtb文件,編譯自.dts文件)。創建樹很簡單,但是如何讓我的設備驅動程序找到它的節點及其中的數據?我還沒有找到任何好的參考資料,像「Linux設備驅動程序」這樣的書籍太多進入x86領域,對於大多數與基於Power Architecture的設備相關的設備樹(Linux內核中的arch powerpc)術語)。開放固件設備樹概述/參考手冊
由於這個問題在2009年被問到,[Linux設備樹綁定]中有文檔(https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings)目錄。不幸的是,有人通過**的**調用header/source來欺騙所有人。請參閱:[of.h](https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/include/linux/of.h)(更多內容參見linux/of * .h)和[drivers/of](https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/of)。 – 2014-04-04 20:29:31