Documentation\devicetree\bindings\arm\arch_timer.txt

如果想评论或更新本文的内容,请直接联系原文档的维护者。


如果你使用英文交流有困难的话,也可以向中文版维护者求助。


如果本翻译更新不及时或者翻译存在问题,请联系中文版维护者。


中文版维护者: 陶莹莉  tyl18768122426@163.com


中文版翻译者:  陶莹莉  tyl18768122426@163.com


中文版校译者:  陶莹莉  tyl18768122426@163.com
* ARM architected timer
*ARM架构定时器


ARM cores may have a per-core architected timer, which provides per-cpu timers,
or a memory mapped architected timer, which provides up to 8 frames with a
physical and optional virtual timer per frame.


每个ARM内核可能会有相应的被提供了CPU定时器,或映射了架构定时器的内存的架构定时器,,
每帧可提供高达8帧的物理和可选的虚拟计时器。


The per-core architected timer is attached to a GIC to deliver its
per-processor interrupts via PPIs. The memory mapped timer is attached to a GIC
to deliver its interrupts via SPIs.


每个核心架构定时器通过PPIs提供的每个处理器的中断连接到GIC,内存映射定时器通过SPI接口提供的中断连接到GIC。


** CP15 Timer node properties:


- compatible : Should at least contain one of
"arm,armv7-timer"
"arm,armv8-timer"


** CP15定时器的节点属性:


- 兼容性:至少应该包含一个“arm,armv7-timer”或者“arm,armv8-timer”


- interrupts : Interrupt list for secure, non-secure, virtual and
  hypervisor timers, in that order.


- clock-frequency : The frequency of the main counter, in Hz. Optional.


- 中断:中断列表秩序为:安全,不安全,虚拟和管理程序各种定时器。


- 时钟频率:主计数器以Hz为单位的频率。可选。


Example:


timer {
compatible = "arm,cortex-a15-timer",
    "arm,armv7-timer";
interrupts = <1 13 0xf08>,
    <1 14 0xf08>,
    <1 11 0xf08>,
    <1 10 0xf08>;
clock-frequency = <100000000>;
};


** Memory mapped timer node properties:


- compatible : Should at least contain "arm,armv7-timer-mem".


- clock-frequency : The frequency of the main counter, in Hz. Optional.


- reg : The control frame base address.


**内存映射定时器的节点属性:


- 兼容性:至少应该包含“arm,armv7-timer-mem”。


- 时钟频率:主计数器以Hz为单位的频率。可选。


- 寄存器:控制帧的基址。


Note that #address-cells, #size-cells, and ranges shall be present to ensure
the CPU can address a frame's registers.


需要注意的是单元的地址,单元的大小和范围应确保CPU可以处理一帧的寄存器。


A timer node has up to 8 frame sub-nodes, each with the following properties:


- frame-number: 0 to 7.


- interrupts : Interrupt list for physical and virtual timers in that order.
  The virtual timer interrupt is optional.


- reg : The first and second view base addresses in that order. The second view
  base address is optional.


- status : "disabled" indicates the frame is not available for use. Optional.


一个定时器节点有8帧的子节点,每个子节点具有以下属性:


- 帧数目:0~7。


- 中断:中断列表的顺序为物理和虚拟定时器。虚拟定时器中断是可选的。


- 寄存器:顺序为第一和第二观点的基地址。第二种观点基地址是可选的。


- 状态:“禁用”表示帧不可以使用。可选。


Example:


timer@f0000000 {
compatible = "arm,armv7-timer-mem";
#address-cells = <1>;
#size-cells = <1>;
ranges;
reg = <0xf0000000 0x1000>;
clock-frequency = <50000000>;


frame@f0001000 {
frame-number = <0>
interrupts = <0 13 0x8>,
    <0 14 0x8>;
reg = <0xf0001000 0x1000>,
     <0xf0002000 0x1000>;
};


frame@f0003000 {
frame-number = <1>
interrupts = <0 15 0x8>;
reg = <0xf0003000 0x1000>;
status = "disabled";
};
};

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值