← Documents Documentation/devicetree/bindings/spi/nxp,lpc3220-spi.yaml GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings / SPI

NXP LPC3220 SPI controller

LPC3220 SPI controller의 register와 module clock을 설명합니다.

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

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

1. 요약·해설

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

요약과 해설

nxp,lpc3220-spi.yaml:1-44

LPC3220 SPI controller의 register와 module clock을 설명합니다. 접을 수 있는 영어 원문 전체와 줄 좌표를 보존하고, 한국어 전문 번역에서는 compatible·property·phandle·clock/DMA 순서·수치·예제 코드를 원형대로 유지합니다.

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/spi/nxp,lpc3220-spi.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: NXP LPC3220 SPI controller
8
9 maintainers:
10 - Frank Li <Frank.Li@nxp.com>
11
12 properties:
13 compatible:
14 enum:
15 - nxp,lpc3220-spi
16
17 reg:
18 maxItems: 1
19
20 clocks:
21 maxItems: 1
22
23 allOf:
24 - $ref: spi-controller.yaml#
25
26 unevaluatedProperties: false
27
28 required:
29 - compatible
30 - reg
31 - clocks
32
33 examples:
34 - |
35 #include <dt-bindings/clock/lpc32xx-clock.h>
36
37 spi@20088000 {
38 compatible = "nxp,lpc3220-spi";
39 reg = <0x20088000 0x1000>;
40 clocks = <&clk LPC32XX_CLK_SPI1>;
41 #address-cells = <1>;
42 #size-cells = <0>;
43 };
44
45

3. 한국어 전문 번역

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

NXP LPC3220 SPI schema

1-11

이 GPL-2.0-only 또는 BSD-2-Clause YAML schema는 NXP LPC3220 SPI controller를 정의합니다. Schema ID는 `http://devicetree.org/schemas/spi/nxp,lpc3220-spi.yaml#`, maintainer는 Frank Li입니다.

Compatible, register와 clock

12-32

`compatible`은 `nxp,lpc3220-spi`입니다. `reg`와 `clocks`는 각각 최대 한 항목입니다. `spi-controller.yaml#`을 상속하며 `unevaluatedProperties: false`로 평가되지 않은 추가 속성을 금지합니다.

필수 속성은 `compatible`, `reg`, `clocks`입니다.

LPC3220 SPI1 예제

33-44

예제는 address `0x20088000`, register 길이 `0x1000`과 `LPC32XX_CLK_SPI1` clock을 사용하는 controller를 선언합니다.

#include <dt-bindings/clock/lpc32xx-clock.h>

spi@20088000 {
    compatible = "nxp,lpc3220-spi";
    reg = <0x20088000 0x1000>;
    clocks = <&clk LPC32XX_CLK_SPI1>;
    #address-cells = <1>;
    #size-cells = <0>;
};