在中文内核邮件列表,惊闻宋宝华老师说,arm也在向dts过渡。最新的arm soc已经必须使用dts了
git clone了最新的linux内核版本3.0,发现果然如此
仅有可怜兮兮的一个dts
看起来跟powerpc的语法很类似 就是简陋了些 powerpc上已经能够描述很多的硬件控制器了
感谢platform总线,感谢dts,今后的linux移植会更加轻松
- /*
-
* Copyright (C) 2011 Xilinx
-
*
-
* This software is licensed under the terms of the GNU General Public
-
* License version 2, as published by the Free Software Foundation, and
-
* may be copied, distributed, and modified under those terms.
-
*
-
* This program is distributed in the hope that it will be useful,
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-
* GNU General Public License for more details.
-
*/
-
-
/dts-v1/;
-
/ {
-
model = "Xilinx Zynq EP107";
-
compatible = "xlnx,zynq-ep107";
-
#address-cells = <1>;
-
#size-cells = <1>;
-
interrupt-parent = <&intc>;
-
-
memory {
-
device_type = "memory";
-
reg = <0x0 0x10000000>;
-
};
-
-
chosen {
-
bootargs = "console=ttyPS0,9600 root=/dev/ram rw initrd=0x800000,8M earlyprintk";
-
linux,stdout-path = &uart0;
-
};
-
-
amba {
-
compatible = "simple-bus";
-
#address-cells = <1>;
-
#size-cells = <1>;
-
ranges;
-
-
intc: interrupt-controller@f8f01000 {
-
interrupt-controller;
-
compatible = "arm,gic";
-
reg = <0xF8F01000 0x1000>;
-
#interrupt-cells = <2>;
-
};
-
-
uart0: uart@e0000000 {
-
compatible = "xlnx,xuartps";
-
reg = <0xE0000000 0x1000>;
-
interrupts = <59 0>;
-
clock = <50000000>;
-
};
-
};
-
};
阅读(1622) | 评论(0) | 转发(0) |