Chinaunix首页 | 论坛 | 博客
  • 博客访问: 481571
  • 博文数量: 51
  • 博客积分: 1056
  • 博客等级: 少尉
  • 技术积分: 676
  • 用 户 组: 普通用户
  • 注册时间: 2010-11-10 22:53
文章存档

2018年(2)

2017年(1)

2013年(2)

2012年(9)

2011年(36)

2010年(1)

分类: 嵌入式

2011-06-12 21:38:26

在中文内核邮件列表,惊闻宋宝华老师说,arm也在向dts过渡。最新的arm soc已经必须使用dts了
git clone了最新的linux内核版本3.0,发现果然如此
仅有可怜兮兮的一个dts
看起来跟powerpc的语法很类似  就是简陋了些 powerpc上已经能够描述很多的硬件控制器了
感谢platform总线,感谢dts,今后的linux移植会更加轻松

  1. /*
  2.  * Copyright (C) 2011 Xilinx
  3.  *
  4.  * This software is licensed under the terms of the GNU General Public
  5.  * License version 2, as published by the Free Software Foundation, and
  6.  * may be copied, distributed, and modified under those terms.
  7.  *
  8.  * This program is distributed in the hope that it will be useful,
  9.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11.  * GNU General Public License for more details.
  12.  */

  13. /dts-v1/;
  14. / {
  15.     model = "Xilinx Zynq EP107";
  16.     compatible = "xlnx,zynq-ep107";
  17.     #address-cells = <1>;
  18.     #size-cells = <1>;
  19.     interrupt-parent = <&intc>;

  20.     memory {
  21.         device_type = "memory";
  22.         reg = <0x0 0x10000000>;
  23.     };

  24.     chosen {
  25.         bootargs = "console=ttyPS0,9600 root=/dev/ram rw initrd=0x800000,8M earlyprintk";
  26.         linux,stdout-path = &uart0;
  27.     };

  28.     amba {
  29.         compatible = "simple-bus";
  30.         #address-cells = <1>;
  31.         #size-cells = <1>;
  32.         ranges;

  33.         intc: interrupt-controller@f8f01000 {
  34.             interrupt-controller;
  35.             compatible = "arm,gic";
  36.             reg = <0xF8F01000 0x1000>;
  37.             #interrupt-cells = <2>;
  38.         };

  39.         uart0: uart@e0000000 {
  40.             compatible = "xlnx,xuartps";
  41.             reg = <0xE0000000 0x1000>;
  42.             interrupts = <59 0>;
  43.             clock = <50000000>;
  44.         };
  45.     };
  46. };

阅读(1612) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~