← Documents Documentation/devicetree/bindings/timer/arm,twd-timer.yaml GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings / Timer

ARM Timer-Watchdog

ARM11MP·Cortex-A5·A9 TWD의 local timer와 watchdog 자원을 설명합니다.

Source pathDocumentation/devicetree/bindings/timer/arm,twd-timer.yaml
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.

1. 요약·해설

원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.

요약과 해설

arm,twd-timer.yaml:1-56

ARM11MP·Cortex-A5·A9 TWD의 local timer와 watchdog 자원을 설명합니다. 접을 수 있는 영어 원문 전체와 한국어 전문 번역을 함께 제공하며 compatible, interrupt, clock, register, phandle, 수치와 줄 좌표를 원형대로 보존합니다.

2. 영어 원문 전체

번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.

원문 전체 펼치기
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/timer/arm,twd-timer.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: ARM Timer-Watchdog Timer
8
9 maintainers:
10 - Rob Herring <robh@kernel.org>
11
12 description:
13 ARM 11MP, Cortex-A5 and Cortex-A9 are often associated with a per-core
14 Timer-Watchdog (aka TWD), which provides both a per-cpu local timer
15 and watchdog.
16
17 The TWD is usually attached to a GIC to deliver its two per-processor
18 interrupts.
19
20 properties:
21 compatible:
22 enum:
23 - arm,cortex-a9-twd-timer
24 - arm,cortex-a5-twd-timer
25 - arm,arm11mp-twd-timer
26
27 reg:
28 maxItems: 1
29
30 interrupts:
31 maxItems: 1
32
33 clocks:
34 maxItems: 1
35
36 always-on:
37 description:
38 If present, the timer is powered through an always-on power domain,
39 therefore it never loses context.
40
41 required:
42 - compatible
43 - reg
44 - interrupts
45
46 additionalProperties: false
47
48 examples:
49 - |
50 #include <dt-bindings/interrupt-controller/arm-gic.h>
51
52 timer@2c000600 {
53 compatible = "arm,arm11mp-twd-timer";
54 reg = <0x2c000600 0x20>;
55 interrupts = <GIC_PPI 13 0xf01>;
56 };
57

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.

ARM Timer-Watchdog

1-19

GPL-2.0-only 또는 BSD-2-Clause 라이선스의 이 스키마는 ARM Timer-Watchdog, 즉 TWD를 정의합니다. ARM11MP, Cortex-A5, Cortex-A9에는 흔히 core별 TWD가 있으며 CPU별 local timer와 watchdog을 모두 제공합니다. TWD는 보통 GIC에 연결되어 두 per-processor interrupt를 전달합니다. Maintainer는 Rob Herring입니다.

Compatible과 always-on

20-47

지원 compatible은 `arm,cortex-a9-twd-timer`, `arm,cortex-a5-twd-timer`, `arm,arm11mp-twd-timer`입니다. `reg`, `interrupts`, `clocks`는 각각 최대 한 항목입니다. `always-on`이 있으면 timer가 always-on power domain에서 동작해 context를 잃지 않습니다. 필수 속성은 `compatible`, `reg`, `interrupts`이며 `clocks`는 선택 사항입니다.

properties:
  compatible:
    enum:
      - arm,cortex-a9-twd-timer
      - arm,cortex-a5-twd-timer
      - arm,arm11mp-twd-timer

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

  clocks:
    maxItems: 1

  always-on:
    description:
      If present, the timer is powered through an always-on power domain,
      therefore it never loses context.

required:
  - compatible
  - reg
  - interrupts

additionalProperties: false

ARM11MP TWD 예제

48-56

예제는 `timer@2c000600`에 0x20-byte register 영역을 두고 GIC PPI 13을 연결합니다.

- |
  #include <dt-bindings/interrupt-controller/arm-gic.h>

  timer@2c000600 {
      compatible = "arm,arm11mp-twd-timer";
      reg = <0x2c000600 0x20>;
      interrupts = <GIC_PPI 13 0xf01>;
  };