← Documents Documentation/devicetree/bindings/timer/nvidia,tegra186-timer.yaml GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings / Timer

NVIDIA Tegra186/234 Timer

Tegra186·234 timer의 10·16 channel interrupt 구성을 설명합니다.

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

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

1. 요약·해설

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

요약과 해설

nvidia,tegra186-timer.yaml:1-109

Tegra186·234 timer의 10·16 channel interrupt 구성을 설명합니다. 접을 수 있는 영어 원문 전체와 한국어 전문 번역을 함께 제공하며 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/nvidia,tegra186-timer.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: NVIDIA Tegra186 timer
8
9 maintainers:
10 - Thierry Reding <[email protected]>
11
12 description: >
13 The Tegra timer provides 29-bit timer counters and a 32-bit timestamp
14 counter. Each NV timer selects its timing reference signal from the 1 MHz
15 reference generated by USEC, TSC or either clk_m or OSC. Each TMR can be
16 programmed to generate one-shot, periodic, or watchdog interrupts.
17
18
19 properties:
20 compatible:
21 oneOf:
22 - const: nvidia,tegra186-timer
23 description: >
24 The Tegra186 timer provides ten 29-bit timer counters.
25 - const: nvidia,tegra234-timer
26 description: >
27 The Tegra234 timer provides sixteen 29-bit timer counters.
28
29 reg:
30 maxItems: 1
31
32 interrupts: true
33
34 allOf:
35 - if:
36 properties:
37 compatible:
38 contains:
39 const: nvidia,tegra186-timer
40 then:
41 properties:
42 interrupts:
43 maxItems: 10
44 description: >
45 One per each timer channels 0 through 9.
46
47 - if:
48 properties:
49 compatible:
50 contains:
51 const: nvidia,tegra234-timer
52 then:
53 properties:
54 interrupts:
55 maxItems: 16
56 description: >
57 One per each timer channels 0 through 15.
58
59 required:
60 - compatible
61 - reg
62 - interrupts
63
64 additionalProperties: false
65
66 examples:
67 - |
68 #include <dt-bindings/interrupt-controller/arm-gic.h>
69 #include <dt-bindings/interrupt-controller/irq.h>
70
71 timer@3010000 {
72 compatible = "nvidia,tegra186-timer";
73 reg = <0x03010000 0x000e0000>;
74 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
75 <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>,
76 <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>,
77 <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>,
78 <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>,
79 <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>,
80 <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,
81 <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>,
82 <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
83 <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
84 };
85
86 - |
87 #include <dt-bindings/interrupt-controller/arm-gic.h>
88 #include <dt-bindings/interrupt-controller/irq.h>
89
90 timer@2080000 {
91 compatible = "nvidia,tegra234-timer";
92 reg = <0x02080000 0x00121000>;
93 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
94 <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>,
95 <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>,
96 <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>,
97 <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>,
98 <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>,
99 <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,
100 <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>,
101 <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
102 <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
103 <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>,
104 <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
105 <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
106 <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>,
107 <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>,
108 <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
109 };
110

3. 한국어 전문 번역

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

Tegra186·234 timer

1-18

GPL-2.0-only 또는 BSD-2-Clause 라이선스의 이 스키마는 NVIDIA Tegra186 timer를 정의합니다. 이 timer는 29-bit timer counter와 32-bit timestamp counter를 제공합니다. 각 NV timer는 USEC가 만든 1 MHz reference, TSC, `clk_m`, OSC 중 timing reference를 선택하고 one-shot, periodic, watchdog interrupt를 생성하도록 설정할 수 있습니다. Maintainer는 Thierry Reding입니다.

10개·16개 counter variant

19-33

`nvidia,tegra186-timer`는 29-bit counter 10개, `nvidia,tegra234-timer`는 16개를 제공합니다. `reg`는 최대 한 영역이고 `interrupts`는 variant별 timer channel에 대응합니다.

properties:
  compatible:
    oneOf:
      - const: nvidia,tegra186-timer
        description: >
          The Tegra186 timer provides ten 29-bit timer counters.
      - const: nvidia,tegra234-timer
        description: >
          The Tegra234 timer provides sixteen 29-bit timer counters.

  reg:
    maxItems: 1

  interrupts: true

Variant별 channel interrupt

34-65

Tegra186은 channel 0~9마다 하나씩 최대 10개 interrupt를 사용합니다. Tegra234는 channel 0~15마다 하나씩 최대 16개 interrupt를 사용합니다. `compatible`, `reg`, `interrupts`가 필수이며 추가 속성은 허용되지 않습니다.

allOf:
  - if:
      properties:
        compatible:
          contains:
            const: nvidia,tegra186-timer
    then:
      properties:
        interrupts:
          maxItems: 10
          description: >
            One per each timer channels 0 through 9.

  - if:
      properties:
        compatible:
          contains:
            const: nvidia,tegra234-timer
    then:
      properties:
        interrupts:
          maxItems: 16
          description: >
            One per each timer channels 0 through 15.

required:
  - compatible
  - reg
  - interrupts

additionalProperties: false

Tegra186 열 channel 예제

66-85

첫 예제는 `timer@3010000`에 0x000e0000-byte register 영역을 두고 channel 0~9에 GIC SPI 0~9 level-high interrupt를 순서대로 지정합니다.

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

    timer@3010000 {
        compatible = "nvidia,tegra186-timer";
        reg = <0x03010000 0x000e0000>;
        interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
                     <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>,
                     <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>,
                     <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>,
                     <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>,
                     <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>,
                     <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,
                     <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>,
                     <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
                     <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
    };

Tegra234 열여섯 channel 예제

86-109

둘째 예제는 `timer@2080000`에 0x00121000-byte register 영역을 두고 channel 0~15에 GIC SPI 0~15 level-high interrupt를 순서대로 지정합니다.

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

  timer@2080000 {
      compatible = "nvidia,tegra234-timer";
      reg = <0x02080000 0x00121000>;
      interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
                   <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>,
                   <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>,
                   <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>,
                   <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>,
                   <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>,
                   <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,
                   <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>,
                   <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
                   <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
                   <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>,
                   <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
                   <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
                   <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>,
                   <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>,
                   <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
  };