요약·해설과 원문, 전문 번역을 서로 분리했습니다. 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/brcm,bcm2835-system-timer.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: BCM2835 System Timer
maintainers:
- Stefan Wahren <wahrenst@gmx.net>
- Raspberry Pi Kernel Maintenance <kernel-list@raspberrypi.com>
description:
The System Timer peripheral provides four 32-bit timer channels and a
single 64-bit free running counter. Each channel has an output compare
register, which is compared against the 32 least significant bits of the
free running counter values, and generates an interrupt.
properties:
compatible:
const: brcm,bcm2835-system-timer
reg:
maxItems: 1
interrupts:
items:
- description: System Timer Compare 0 match (used by VideoCore GPU)
- description: System Timer Compare 1 match (usable for ARM core)
- description: System Timer Compare 2 match (used by VideoCore GPU)
- description: System Timer Compare 3 match (usable for ARM core)
clock-frequency: true
required:
- compatible
- reg
- interrupts
additionalProperties: false
examples:
- |
timer@7e003000 {
compatible = "brcm,bcm2835-system-timer";
reg = <0x7e003000 0x1000>;
interrupts = <1 0>, <1 1>, <1 2>, <1 3>;
clock-frequency = <1000000>;
};
...
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
BCM2835 system timer
1-18GPL-2.0-only 또는 BSD-2-Clause 라이선스의 이 스키마는 BCM2835 System Timer를 정의합니다. Peripheral은 32-bit timer channel 네 개와 단일 64-bit free-running counter를 제공합니다. 각 channel의 output compare register는 free-running counter value의 하위 32 bit와 비교되고 값이 맞으면 interrupt를 생성합니다.
네 compare channel의 용도
19-41`compatible`은 `brcm,bcm2835-system-timer`, `reg`는 최대 한 항목입니다. Interrupt 순서는 System Timer Compare 0, 1, 2, 3 match입니다. Channel 0과 2는 VideoCore GPU가 사용하고 channel 1과 3은 ARM core에서 사용할 수 있습니다. `clock-frequency`를 지정할 수 있으며 `compatible`, `reg`, `interrupts`가 필수입니다. 추가 속성은 허용되지 않습니다.
properties:
compatible:
const: brcm,bcm2835-system-timer
reg:
maxItems: 1
interrupts:
items:
- description: System Timer Compare 0 match (used by VideoCore GPU)
- description: System Timer Compare 1 match (usable for ARM core)
- description: System Timer Compare 2 match (used by VideoCore GPU)
- description: System Timer Compare 3 match (usable for ARM core)
clock-frequency: true
required:
- compatible
- reg
- interrupts
additionalProperties: false
1MHz BCM2835 timer 예제
42-50예제는 `timer@7e003000`에 0x1000-byte register 영역과 compare 0부터 3까지 네 interrupt를 지정하고 clock frequency를 1000000Hz로 설정합니다.
- |
timer@7e003000 {
compatible = "brcm,bcm2835-system-timer";
reg = <0x7e003000 0x1000>;
interrupts = <1 0>, <1 1>, <1 2>, <1 3>;
clock-frequency = <1000000>;
};
...
요약과 해설
brcm,bcm2835-system-timer.yaml:1-50BCM2835의 64-bit counter와 네 output compare channel을 설명합니다. 접을 수 있는 영어 원문 전체와 한국어 전문 번역을 함께 제공하며 compatible, interrupt, clock, register, phandle, 수치와 줄 좌표를 원형대로 보존합니다.