요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/timer/fsl,gtm.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Freescale General-purpose Timers Module
maintainers:
- J. Neuschäfer <j.ne@posteo.net>
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
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>;
};
...
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
Freescale General-purpose Timers Module
1-11GPL-2.0-only 또는 BSD-2-Clause 라이선스의 이 스키마는 Freescale General-purpose Timers Module(GTM)을 정의합니다. Maintainer는 J. Neuschäfer입니다.
SoC·QE·CPM2 fallback과 네 interrupt
12-58SoC 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>;
};
...
요약과 해설
fsl,gtm.yaml:1-83Freescale GTM의 SoC·QE·CPM2 fallback과 네 interrupt를 설명합니다. 접을 수 있는 영어 원문 전체와 한국어 전문 번역을 함께 제공하며 compatible, interrupt, clock, register, phandle, 수치와 줄 좌표를 원형대로 보존합니다.