免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2573 | 回复: 1
打印 上一主题 下一主题

arm也要用上dts了 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-12-21 08:41 |只看该作者 |倒序浏览
在中文内核邮件列表,惊闻宋宝华老师说,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. };

论坛徽章:
0
2 [报告]
发表于 2012-12-18 10:34 |只看该作者
3.6.8就改成DTS了,和POWERPC一样了哈哈
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP