← Documents Documentation/devicetree/bindings/timer/fsl,vf610-pit.yaml GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings / Timer

Freescale Periodic Interrupt Timer

VF610·S32G PIT의 compatible과 interrupt·DMA timer 배열을 설명합니다.

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

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

1. 요약·해설

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

요약과 해설

fsl,vf610-pit.yaml:1-59

VF610·S32G PIT의 compatible과 interrupt·DMA timer 배열을 설명합니다. 접을 수 있는 영어 원문 전체와 한국어 전문 번역을 함께 제공하며 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/fsl,vf610-pit.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Freescale Periodic Interrupt Timer (PIT)
8
9 maintainers:
10 - Frank Li <[email protected]>
11
12 description:
13 The PIT module is an array of timers that can be used to raise interrupts
14 and trigger DMA channels.
15
16 properties:
17 compatible:
18 oneOf:
19 - enum:
20 - fsl,vf610-pit
21 - nxp,s32g2-pit
22 - items:
23 - const: nxp,s32g3-pit
24 - const: nxp,s32g2-pit
25
26 reg:
27 maxItems: 1
28
29 interrupts:
30 maxItems: 1
31
32 clocks:
33 maxItems: 1
34
35 clock-names:
36 items:
37 - const: pit
38
39 required:
40 - compatible
41 - reg
42 - interrupts
43 - clocks
44 - clock-names
45
46 additionalProperties: false
47
48 examples:
49 - |
50 #include <dt-bindings/clock/vf610-clock.h>
51 #include <dt-bindings/interrupt-controller/irq.h>
52
53 timer@40037000 {
54 compatible = "fsl,vf610-pit";
55 reg = <0x40037000 0x1000>;
56 interrupts = <39 IRQ_TYPE_LEVEL_HIGH>;
57 clocks = <&clks VF610_CLK_PIT>;
58 clock-names = "pit";
59 };
60

3. 한국어 전문 번역

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

Freescale Periodic Interrupt Timer

1-15

GPL-2.0-only 또는 BSD-2-Clause 라이선스의 이 스키마는 Freescale Periodic Interrupt Timer(PIT)를 정의합니다. PIT module은 interrupt를 발생시키고 DMA channel을 trigger할 수 있는 timer 배열입니다. Maintainer는 Frank Li입니다.

VF610·S32G compatible과 pit clock

16-47

`compatible`은 `fsl,vf610-pit` 또는 `nxp,s32g2-pit`을 단독 사용하거나, S32G3의 경우 `nxp,s32g3-pit` 뒤에 `nxp,s32g2-pit` fallback을 둡니다. `reg`, `interrupts`, `clocks`는 각각 최대 한 항목이고 `clock-names`의 유일한 값은 `pit`입니다. `compatible`, `reg`, `interrupts`, `clocks`, `clock-names`가 모두 필수이며 추가 속성은 허용되지 않습니다.

properties:
  compatible:
    oneOf:
      - enum:
          - fsl,vf610-pit
          - nxp,s32g2-pit
      - items:
          - const: nxp,s32g3-pit
          - const: nxp,s32g2-pit

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

  clocks:
    maxItems: 1

  clock-names:
    items:
      - const: pit

required:
  - compatible
  - reg
  - interrupts
  - clocks
  - clock-names

additionalProperties: false

VF610 PIT 예제

48-59

예제는 `timer@40037000`에 0x1000-byte register 영역, level-high interrupt 39, `VF610_CLK_PIT` clock을 지정하고 clock 이름을 `pit`으로 설정합니다.

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

    timer@40037000 {
        compatible = "fsl,vf610-pit";
        reg = <0x40037000 0x1000>;
        interrupts = <39 IRQ_TYPE_LEVEL_HIGH>;
        clocks = <&clks VF610_CLK_PIT>;
        clock-names = "pit";
    };