← Documents Documentation/devicetree/bindings/usb/microchip,mpfs-musb.yaml GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings / USB

Microchip MPFS USB Controller

MPFS MUSB의 DMA·MC interrupt, ULPI external VBUS와 host-mode 예제를 설명합니다.

Source pathDocumentation/devicetree/bindings/usb/microchip,mpfs-musb.yaml
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

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

1. 요약·해설

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

요약과 해설

microchip,mpfs-musb.yaml:1-69

MPFS MUSB의 DMA·MC interrupt, ULPI external VBUS와 host-mode 예제를 설명합니다. 접을 수 있는 영어 원문 전체와 한국어 전문 번역을 함께 제공하며, compatible, register, interrupt, clock, PHY, supply, source path와 원문 줄 좌표를 원형대로 보존합니다.

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/usb/microchip,mpfs-musb.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Microchip MPFS USB Controller
8
9 allOf:
10 - $ref: usb-drd.yaml#
11
12 maintainers:
13 - Conor Dooley <conor.dooley@microchip.com>
14
15 properties:
16 compatible:
17 oneOf:
18 - items:
19 - const: microchip,pic64gx-musb
20 - const: microchip,mpfs-musb
21 - const: microchip,mpfs-musb
22
23 dr_mode: true
24
25 reg:
26 maxItems: 1
27
28 interrupts:
29 minItems: 2
30 maxItems: 2
31
32 interrupt-names:
33 items:
34 - const: dma
35 - const: mc
36
37 clocks:
38 maxItems: 1
39
40 microchip,ext-vbus-drv:
41 description:
42 Some ULPI USB PHYs do not support an internal VBUS supply and driving
43 the CPEN pin requires the configuration of the UPLI_USE__EXTVBUS
44 bit in ULPI_BUSCONTROL.
45 $ref: /schemas/types.yaml#/definitions/flag
46
47 required:
48 - compatible
49 - reg
50 - interrupts
51 - interrupt-names
52 - clocks
53
54 additionalProperties: false
55
56 examples:
57 - |
58 #include "dt-bindings/clock/microchip,mpfs-clock.h"
59 usb@20201000 {
60 compatible = "microchip,mpfs-musb";
61 reg = <0x20201000 0x1000>;
62 clocks = <&clkcfg CLK_USB>;
63 interrupt-parent = <&plic>;
64 interrupts = <86>, <87>;
65 interrupt-names = "dma", "mc";
66 dr_mode = "host";
67 };
68
69 ...
70

3. 한국어 전문 번역

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

Microchip MPFS USB controller

1-14

GPL-2.0-only 또는 BSD-2-Clause로 배포되는 이 schema는 Microchip PolarFire SoC 계열 USB controller를 정의하고 공통 `usb-drd.yaml`을 상속합니다. 관리자는 Conor Dooley입니다.

Compatible, interrupt와 external VBUS

15-46

PIC64GX는 `microchip,pic64gx-musb` 뒤에 `microchip,mpfs-musb` fallback을 두며 MPFS는 후자만 사용합니다. `dr_mode`를 지원하고 register와 clock은 각각 하나입니다.

interrupt는 `dma`, `mc` 순서의 두 개가 필요합니다. 일부 ULPI USB PHY에는 내부 VBUS supply가 없으므로 `microchip,ext-vbus-drv` flag를 사용해 `ULPI_BUSCONTROL`의 `ULPI_USE__EXTVBUS` bit를 설정하고 CPEN pin을 구동할 수 있습니다.

properties:
  compatible:
    oneOf:
      - items:
          - const: microchip,pic64gx-musb
          - const: microchip,mpfs-musb
      - const: microchip,mpfs-musb

  dr_mode: true

  reg:
    maxItems: 1

  interrupts:
    minItems: 2
    maxItems: 2

  interrupt-names:
    items:
      - const: dma
      - const: mc

  clocks:
    maxItems: 1

  microchip,ext-vbus-drv:
    description:
      Some ULPI USB PHYs do not support an internal VBUS supply and driving
      the CPEN pin requires the configuration of the UPLI_USE__EXTVBUS
      bit in ULPI_BUSCONTROL.
    $ref: /schemas/types.yaml#/definitions/flag

필수 controller 속성

47-55

필수 속성은 `compatible`, `reg`, `interrupts`, `interrupt-names`, `clocks`입니다. 정의되지 않은 추가 속성은 허용하지 않습니다.

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

additionalProperties: false

MPFS host-mode MUSB 예제

56-69

예제 `usb@20201000`은 0x1000-byte register 영역, `CLK_USB`, PLIC interrupt 86·87을 `dma`, `mc` 이름으로 사용하며 `dr_mode`를 `host`로 설정합니다.

examples:
  - |
    #include "dt-bindings/clock/microchip,mpfs-clock.h"
    usb@20201000 {
        compatible = "microchip,mpfs-musb";
        reg = <0x20201000 0x1000>;
        clocks = <&clkcfg CLK_USB>;
        interrupt-parent = <&plic>;
        interrupts = <86>, <87>;
        interrupt-names = "dma", "mc";
        dr_mode = "host";
    };

...