← Documents Documentation/devicetree/bindings/timer/ingenic,sysost.yaml GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings / Timer

SYSOST in Ingenic XBurst SoCs

Ingenic SYSOST의 64-bit clocksource와 32-bit clockevent timer를 설명합니다.

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

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

1. 요약·해설

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

요약과 해설

ingenic,sysost.yaml:1-63

Ingenic SYSOST의 64-bit clocksource와 32-bit clockevent 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/ingenic,sysost.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: SYSOST in Ingenic XBurst family SoCs
8
9 maintainers:
10 - 周琰杰 (Zhou Yanjie) <[email protected]>
11
12 description:
13 The SYSOST in an Ingenic SoC provides one 64bit timer for clocksource
14 and one or more 32bit timers for clockevent.
15
16 properties:
17 "#clock-cells":
18 const: 1
19
20 compatible:
21 enum:
22 - ingenic,x1000-ost
23 - ingenic,x2000-ost
24
25 reg:
26 maxItems: 1
27
28 clocks:
29 maxItems: 1
30
31 clock-names:
32 const: ost
33
34 interrupts:
35 maxItems: 1
36
37 required:
38 - "#clock-cells"
39 - compatible
40 - reg
41 - clocks
42 - clock-names
43 - interrupts
44
45 additionalProperties: false
46
47 examples:
48 - |
49 #include <dt-bindings/clock/ingenic,x1000-cgu.h>
50
51 ost: timer@12000000 {
52 compatible = "ingenic,x1000-ost";
53 reg = <0x12000000 0x3c>;
54
55 #clock-cells = <1>;
56
57 clocks = <&cgu X1000_CLK_OST>;
58 clock-names = "ost";
59
60 interrupt-parent = <&cpuintc>;
61 interrupts = <3>;
62 };
63 ...
64

3. 한국어 전문 번역

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

Ingenic SYSOST

1-15

GPL-2.0-only 또는 BSD-2-Clause 라이선스의 이 스키마는 Ingenic XBurst family SoC의 SYSOST를 정의합니다. SYSOST는 clocksource용 64-bit timer 하나와 clockevent용 32-bit timer 하나 이상을 제공합니다. Maintainer는 Zhou Yanjie입니다.

X1000·X2000 OST clock provider

16-46

`#clock-cells`는 1이므로 SYSOST가 한 cell clock specifier를 받는 clock provider임을 나타냅니다. `compatible`은 `ingenic,x1000-ost` 또는 `ingenic,x2000-ost`입니다. `reg`, `clocks`, `interrupts`는 각각 최대 한 항목이고 `clock-names`는 `ost`로 고정됩니다. `#clock-cells`, `compatible`, `reg`, `clocks`, `clock-names`, `interrupts`가 모두 필수이며 추가 속성은 허용되지 않습니다.

properties:
  "#clock-cells":
    const: 1

  compatible:
    enum:
      - ingenic,x1000-ost
      - ingenic,x2000-ost

  reg:
    maxItems: 1

  clocks:
    maxItems: 1

  clock-names:
    const: ost

  interrupts:
    maxItems: 1

required:
  - "#clock-cells"
  - compatible
  - reg
  - clocks
  - clock-names
  - interrupts

additionalProperties: false

X1000 SYSOST 예제

47-63

예제는 label `ost`가 붙은 `timer@12000000`에 0x3c-byte register 영역과 `#clock-cells = <1>`을 선언합니다. `cgu`의 `X1000_CLK_OST`를 `ost` clock으로 연결하고 `cpuintc` interrupt controller의 interrupt 3을 지정합니다.

examples:
  - |
    #include <dt-bindings/clock/ingenic,x1000-cgu.h>

    ost: timer@12000000 {
        compatible = "ingenic,x1000-ost";
        reg = <0x12000000 0x3c>;

        #clock-cells = <1>;

        clocks = <&cgu X1000_CLK_OST>;
        clock-names = "ost";

        interrupt-parent = <&cpuintc>;
        interrupts = <3>;
    };
...