← Documents Documentation/devicetree/bindings/timer/fsl,gtm.yaml GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings / Timer

Freescale General-purpose Timers Module

Freescale GTM의 SoC·QE·CPM2 fallback과 네 interrupt를 설명합니다.

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

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

1. 요약·해설

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

요약과 해설

fsl,gtm.yaml:1-83

Freescale GTM의 SoC·QE·CPM2 fallback과 네 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/fsl,gtm.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Freescale General-purpose Timers Module
8
9 maintainers:
10 - J. Neuschäfer <[email protected]>
11
12 properties:
13 compatible:
14 oneOf:
15 # for SoC GTMs
16 - items:
17 - enum:
18 - fsl,mpc8308-gtm
19 - fsl,mpc8313-gtm
20 - fsl,mpc8315-gtm
21 - fsl,mpc8360-gtm
22 - const: fsl,gtm
23
24 # for QE GTMs
25 - items:
26 - enum:
27 - fsl,mpc8360-qe-gtm
28 - fsl,mpc8569-qe-gtm
29 - const: fsl,qe-gtm
30 - const: fsl,gtm
31
32 # for CPM2 GTMs (no known examples)
33 - items:
34 # - enum:
35 # - fsl,<chip>-cpm2-gtm
36 - const: fsl,cpm2-gtm
37 - const: fsl,gtm
38
39 reg:
40 maxItems: 1
41
42 interrupts:
43 items:
44 - description: Interrupt for timer 1 (e.g. GTM1 or GTM5)
45 - description: Interrupt for timer 2 (e.g. GTM2 or GTM6)
46 - description: Interrupt for timer 3 (e.g. GTM3 or GTM7)
47 - description: Interrupt for timer 4 (e.g. GTM4 or GTM8)
48
49 clock-frequency: true
50
51 required:
52 - compatible
53 - reg
54 - interrupts
55 - clock-frequency
56
57 additionalProperties: false
58
59 examples:
60 - |
61 #include <dt-bindings/interrupt-controller/irq.h>
62
63 timer@500 {
64 compatible = "fsl,mpc8360-gtm", "fsl,gtm";
65 reg = <0x500 0x40>;
66 interrupts = <90 IRQ_TYPE_LEVEL_LOW>,
67 <78 IRQ_TYPE_LEVEL_LOW>,
68 <84 IRQ_TYPE_LEVEL_LOW>,
69 <72 IRQ_TYPE_LEVEL_LOW>;
70 /* filled by u-boot */
71 clock-frequency = <0>;
72 };
73
74 - |
75 timer@440 {
76 compatible = "fsl,mpc8360-qe-gtm", "fsl,qe-gtm", "fsl,gtm";
77 reg = <0x440 0x40>;
78 interrupts = <12>, <13>, <14>, <15>;
79 /* filled by u-boot */
80 clock-frequency = <0>;
81 };
82
83 ...
84

3. 한국어 전문 번역

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

Freescale General-purpose Timers Module

1-11

GPL-2.0-only 또는 BSD-2-Clause 라이선스의 이 스키마는 Freescale General-purpose Timers Module(GTM)을 정의합니다. Maintainer는 J. Neuschäfer입니다.

SoC·QE·CPM2 fallback과 네 interrupt

12-58

SoC GTM은 MPC8308·MPC8313·MPC8315·MPC8360별 compatible 뒤에 `fsl,gtm` fallback을 둡니다. QE GTM은 `fsl,mpc8360-qe-gtm` 또는 `fsl,mpc8569-qe-gtm` 뒤에 `fsl,qe-gtm`, `fsl,gtm`을 순서대로 둡니다. 알려진 chip별 예제가 없는 CPM2 GTM은 `fsl,cpm2-gtm`, `fsl,gtm`을 사용합니다. `reg`는 최대 한 항목이고, `interrupts`는 timer 1~4, 예를 들어 GTM1~4 또는 GTM5~8의 네 interrupt를 순서대로 담습니다. `clock-frequency`는 U-Boot가 채울 수 있는 필수 값입니다. `compatible`, `reg`, `interrupts`, `clock-frequency`가 모두 필수이며 추가 속성은 허용되지 않습니다.

properties:
  compatible:
    oneOf:
      # for SoC GTMs
      - items:
          - enum:
              - fsl,mpc8308-gtm
              - fsl,mpc8313-gtm
              - fsl,mpc8315-gtm
              - fsl,mpc8360-gtm
          - const: fsl,gtm

      # for QE GTMs
      - items:
          - enum:
              - fsl,mpc8360-qe-gtm
              - fsl,mpc8569-qe-gtm
          - const: fsl,qe-gtm
          - const: fsl,gtm

      # for CPM2 GTMs (no known examples)
      - items:
          # - enum:
          #     - fsl,<chip>-cpm2-gtm
          - const: fsl,cpm2-gtm
          - const: fsl,gtm

  reg:
    maxItems: 1

  interrupts:
    items:
      - description: Interrupt for timer 1 (e.g. GTM1 or GTM5)
      - description: Interrupt for timer 2 (e.g. GTM2 or GTM6)
      - description: Interrupt for timer 3 (e.g. GTM3 or GTM7)
      - description: Interrupt for timer 4 (e.g. GTM4 or GTM8)

  clock-frequency: true

required:
  - compatible
  - reg
  - interrupts
  - clock-frequency

additionalProperties: false

SoC GTM과 QE GTM 예제

59-83

첫 예제 `timer@500`은 MPC8360 SoC GTM의 0x40-byte 영역과 level-low interrupt 90·78·84·72를 지정합니다. 둘째 `timer@440`은 MPC8360 QE GTM의 0x40-byte 영역과 interrupt 12·13·14·15를 지정합니다. 두 예제 모두 U-Boot가 나중에 채울 `clock-frequency = <0>` placeholder를 사용합니다.

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

    timer@500 {
        compatible = "fsl,mpc8360-gtm", "fsl,gtm";
        reg = <0x500 0x40>;
        interrupts = <90 IRQ_TYPE_LEVEL_LOW>,
                     <78 IRQ_TYPE_LEVEL_LOW>,
                     <84 IRQ_TYPE_LEVEL_LOW>,
                     <72 IRQ_TYPE_LEVEL_LOW>;
        /* filled by u-boot */
        clock-frequency = <0>;
    };

  - |
    timer@440 {
        compatible = "fsl,mpc8360-qe-gtm", "fsl,qe-gtm", "fsl,gtm";
        reg = <0x440 0x40>;
        interrupts = <12>, <13>, <14>, <15>;
        /* filled by u-boot */
        clock-frequency = <0>;
    };

...