← Documents Documentation/devicetree/bindings/timer/altr,timer-1.0.yaml GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings / Timer

Altera Timer

Altera timer의 register, interrupt와 counter clock frequency를 설명합니다.

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

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

1. 요약·해설

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

요약과 해설

altr,timer-1.0.yaml:1-39

Altera timer의 register, interrupt와 counter clock frequency를 설명합니다. 접을 수 있는 영어 원문 전체와 한국어 전문 번역을 함께 제공하며 compatible, clock, interrupt, 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/altr,timer-1.0.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Altera Timer
8
9 maintainers:
10 - Dinh Nguyen <dinguyen@kernel.org>
11
12 properties:
13 compatible:
14 const: altr,timer-1.0
15
16 reg:
17 maxItems: 1
18
19 interrupts:
20 maxItems: 1
21
22 clock-frequency:
23 description: Frequency of the clock that drives the counter, in Hz.
24
25 required:
26 - compatible
27 - reg
28 - interrupts
29
30 additionalProperties: false
31
32 examples:
33 - |
34 timer@400000 {
35 compatible = "altr,timer-1.0";
36 reg = <0x00400000 0x00000020>;
37 interrupts = <11>;
38 clock-frequency = <125000000>;
39 };
40

3. 한국어 전문 번역

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

Altera timer

1-11

GPL-2.0-only 또는 BSD-2-Clause 라이선스의 이 스키마는 Altera timer를 정의합니다. Maintainer는 Dinh Nguyen입니다.

Counter clock과 필수 속성

12-31

`compatible`은 정확히 `altr,timer-1.0`입니다. `reg`와 `interrupts`는 각각 최대 한 항목입니다. 선택적인 `clock-frequency`는 counter를 구동하는 clock frequency를 Hz 단위로 나타냅니다. 필수 속성은 `compatible`, `reg`, `interrupts`이고 추가 속성은 허용되지 않습니다.

properties:
  compatible:
    const: altr,timer-1.0

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

  clock-frequency:
    description: Frequency of the clock that drives the counter, in Hz.

required:
  - compatible
  - reg
  - interrupts

additionalProperties: false

125MHz timer 예제

32-39

예제는 `timer@400000`에 `0x00400000`부터 0x20-byte register 영역, interrupt 11, `125000000`Hz clock frequency를 지정합니다.

- |
  timer@400000 {
      compatible = "altr,timer-1.0";
      reg = <0x00400000 0x00000020>;
      interrupts = <11>;
      clock-frequency = <125000000>;
  };