Documentation/devicetree/bindings/timer/nxp,lpc3220-timer.yaml GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings / Timer

NXP LPC3220 Timer

LPC3220 timer의 timerclk과 선택 reset을 설명합니다.

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

요약·해설, 영어 원문, 전체 번역을 구분해 실었습니다. API 이름, 코드 심벌, 소스 경로는 원문 표기를 유지합니다.

1. 요약·해설

원문의 핵심 내용을 정리하고 커널 프로그래밍에 필요한 설명을 덧붙였습니다. 아래의 전체 번역과는 별도로 작성한 해설입니다.

요약과 해설

nxp,lpc3220-timer.yaml:1-55

LPC3220 timer의 timerclk과 선택 reset을 설명합니다. 접을 수 있는 영어 원문 전체와 한국어 전문 번역을 함께 제공하며 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/nxp,lpc3220-timer.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: NXP LPC3220 timer
8
9 maintainers:
10 - Animesh Agarwal <[email protected]>
11
12 description: |
13 The NXP LPC3220 timer is used on a wide range of NXP SoCs. This includes
14 LPC32xx, LPC178x, LPC18xx and LPC43xx parts.
15
16 properties:
17 compatible:
18 const: nxp,lpc3220-timer
19
20 reg:
21 maxItems: 1
22
23 interrupts:
24 maxItems: 1
25
26 clocks:
27 maxItems: 1
28
29 clock-names:
30 const: timerclk
31
32 resets:
33 maxItems: 1
34
35 required:
36 - compatible
37 - reg
38 - interrupts
39 - clocks
40 - clock-names
41
42 additionalProperties: false
43
44 examples:
45 - |
46 #include <dt-bindings/clock/lpc32xx-clock.h>
47 #include <dt-bindings/interrupt-controller/irq.h>
48
49 timer@4004c000 {
50 compatible = "nxp,lpc3220-timer";
51 reg = <0x4004c000 0x1000>;
52 interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
53 clocks = <&clk LPC32XX_CLK_TIMER1>;
54 clock-names = "timerclk";
55 };
56

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미에 맞춰 전체 내용을 번역했습니다. 코드, 함수명, 코드 심벌, URL은 원문 표기를 유지합니다.

NXP LPC3220 timer

1-15

GPL-2.0-only 또는 BSD-2-Clause 라이선스의 이 스키마는 LPC32xx, LPC178x, LPC18xx, LPC43xx 등 여러 NXP SoC에서 쓰이는 LPC3220 timer를 정의합니다. Maintainer는 Animesh Agarwal입니다.

Timer clock과 선택 reset

16-43

`compatible`은 `nxp,lpc3220-timer`입니다. `reg`, `interrupts`, `clocks`, 선택적인 `resets`는 각각 최대 한 항목이고 clock 이름은 `timerclk`입니다. `compatible`, `reg`, `interrupts`, `clocks`, `clock-names`가 필수이며 추가 속성은 허용되지 않습니다.

properties:
  compatible:
    const: nxp,lpc3220-timer

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

  clocks:
    maxItems: 1

  clock-names:
    const: timerclk

  resets:
    maxItems: 1

required:
  - compatible
  - reg
  - interrupts
  - clocks
  - clock-names

additionalProperties: false

LPC32xx timer1 예제

44-55

예제는 `timer@4004c000`에 0x1000-byte register 영역, interrupt 17 level-low, `LPC32XX_CLK_TIMER1` clock을 지정하고 이름을 `timerclk`으로 설정합니다.

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

    timer@4004c000 {
        compatible = "nxp,lpc3220-timer";
        reg = <0x4004c000 0x1000>;
        interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
        clocks = <&clk LPC32XX_CLK_TIMER1>;
        clock-names = "timerclk";
    };