← Documents Documentation/devicetree/bindings/timer/csky,mptimer.yaml GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings / Timer

C-SKY Multiprocessor Timer

C-SKY SMP timer의 coprocessor 4 register와 필수 자원을 설명합니다.

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

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

1. 요약·해설

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

요약과 해설

csky,mptimer.yaml:1-46

C-SKY SMP timer의 coprocessor 4 register와 필수 자원을 설명합니다. 접을 수 있는 영어 원문 전체와 한국어 전문 번역을 함께 제공하며 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/csky,mptimer.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: C-SKY Multi-processors Timer
8
9 maintainers:
10 - Flavio Suligoi <f.suligoi@asem.it>
11 - Guo Ren <guoren@kernel.org>
12
13 description: |
14 C-SKY multi-processors timer is designed for C-SKY SMP system and the regs are
15 accessed by cpu co-processor 4 registers with mtcr/mfcr.
16
17 - PTIM_CTLR "cr<0, 14>" Control reg to start reset timer.
18 - PTIM_TSR "cr<1, 14>" Interrupt cleanup status reg.
19 - PTIM_CCVR "cr<3, 14>" Current counter value reg.
20 - PTIM_LVR "cr<6, 14>" Window value reg to trigger next event.
21
22 properties:
23 compatible:
24 items:
25 - const: csky,mptimer
26
27 clocks:
28 maxItems: 1
29
30 interrupts:
31 maxItems: 1
32
33 required:
34 - compatible
35 - clocks
36 - interrupts
37
38 additionalProperties: false
39
40 examples:
41 - |
42 timer {
43 compatible = "csky,mptimer";
44 clocks = <&dummy_apb_clk>;
45 interrupts = <16>;
46 };
47

3. 한국어 전문 번역

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

C-SKY multiprocessor timer

1-12

GPL-2.0-only 또는 BSD-2-Clause 라이선스의 이 스키마는 C-SKY multiprocessor timer를 정의합니다. Maintainer는 Flavio Suligoi와 Guo Ren입니다.

Coprocessor 4 register와 필수 자원

13-39

이 timer는 C-SKY SMP system용이며 register는 `mtcr`/`mfcr` 명령으로 CPU coprocessor 4를 통해 접근합니다. `PTIM_CTLR` (`cr<0, 14>`)는 timer 시작·reset control, `PTIM_TSR` (`cr<1, 14>`)은 interrupt cleanup status, `PTIM_CCVR` (`cr<3, 14>`)은 current counter value, `PTIM_LVR` (`cr<6, 14>`)은 다음 event를 trigger할 window value register입니다.

description: |
  C-SKY multi-processors timer is designed for C-SKY SMP system and the regs are
  accessed by cpu co-processor 4 registers with mtcr/mfcr.

   - PTIM_CTLR "cr<0, 14>" Control reg to start reset timer.
   - PTIM_TSR  "cr<1, 14>" Interrupt cleanup status reg.
   - PTIM_CCVR "cr<3, 14>" Current counter value reg.
   - PTIM_LVR  "cr<6, 14>" Window value reg to trigger next event.

`compatible`은 `csky,mptimer`이고 `clocks`와 `interrupts`는 각각 최대 한 항목입니다. 세 속성 모두 필수이며 추가 속성은 허용되지 않습니다.

properties:
  compatible:
    items:
      - const: csky,mptimer

  clocks:
    maxItems: 1

  interrupts:
    maxItems: 1

required:
  - compatible
  - clocks
  - interrupts

additionalProperties: false

C-SKY SMP timer 예제

40-46

예제의 `timer` node는 `dummy_apb_clk`을 사용하고 interrupt 16을 지정합니다.

examples:
  - |
    timer {
        compatible = "csky,mptimer";
        clocks = <&dummy_apb_clk>;
        interrupts = <16>;
    };