← Documents Documentation/devicetree/bindings/usb/ingenic,musb.yaml GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings / USB

Ingenic JZ47xx MUSB

Ingenic JZ47xx MUSB의 compatible, UDC clock·interrupt 이름과 USB PHY 연결을 설명합니다.

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

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

1. 요약·해설

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

요약과 해설

ingenic,musb.yaml:1-79

Ingenic JZ47xx MUSB의 compatible, UDC clock·interrupt 이름과 USB PHY 연결을 설명합니다. 접을 수 있는 영어 원문 전체와 한국어 전문 번역을 함께 제공하며, compatible, register, clock, interrupt, PHY, connector, 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/ingenic,musb.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Ingenic JZ47xx USB IP
8
9 maintainers:
10 - Paul Cercueil <paul@crapouillou.net>
11
12 properties:
13 $nodename:
14 pattern: '^usb@.*'
15
16 compatible:
17 oneOf:
18 - enum:
19 - ingenic,jz4770-musb
20 - ingenic,jz4740-musb
21 - items:
22 - const: ingenic,jz4725b-musb
23 - const: ingenic,jz4740-musb
24
25 reg:
26 maxItems: 1
27
28 clocks:
29 maxItems: 1
30
31 clock-names:
32 items:
33 - const: udc
34
35 interrupts:
36 maxItems: 1
37
38 interrupt-names:
39 items:
40 - const: mc
41
42 phys:
43 maxItems: 1
44
45 usb-role-switch:
46 type: boolean
47
48 required:
49 - compatible
50 - reg
51 - clocks
52 - clock-names
53 - interrupts
54 - interrupt-names
55 - phys
56
57 additionalProperties: false
58
59 examples:
60 - |
61 #include <dt-bindings/clock/ingenic,jz4740-cgu.h>
62 usb_phy: usb-phy {
63 compatible = "usb-nop-xceiv";
64 #phy-cells = <0>;
65 };
66
67 udc: usb@13040000 {
68 compatible = "ingenic,jz4740-musb";
69 reg = <0x13040000 0x10000>;
70
71 interrupt-parent = <&intc>;
72 interrupts = <24>;
73 interrupt-names = "mc";
74
75 clocks = <&cgu JZ4740_CLK_UDC>;
76 clock-names = "udc";
77
78 phys = <&usb_phy>;
79 };
80

3. 한국어 전문 번역

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

Ingenic JZ47xx USB IP

1-11

GPL-2.0-only 또는 BSD-2-Clause로 배포되는 이 schema는 Ingenic JZ47xx SoC의 MUSB controller를 정의합니다. 관리자는 Paul Cercueil입니다.

Compatible, resource와 role switch

12-47

node 이름은 `usb@...` 형식입니다. `compatible`은 JZ4770·JZ4740 MUSB를 직접 선택하거나, JZ4725B와 JZ4740 fallback을 순서대로 함께 지정합니다.

register, clock, interrupt, PHY는 각각 하나만 허용합니다. clock 이름은 `udc`, interrupt 이름은 `mc`이며, `usb-role-switch` boolean으로 USB role switching 지원을 표시할 수 있습니다.

properties:
  $nodename:
    pattern: '^usb@.*'

  compatible:
    oneOf:
      - enum:
          - ingenic,jz4770-musb
          - ingenic,jz4740-musb
      - items:
          - const: ingenic,jz4725b-musb
          - const: ingenic,jz4740-musb

  reg:
    maxItems: 1

  clocks:
    maxItems: 1

  clock-names:
    items:
      - const: udc

  interrupts:
    maxItems: 1

  interrupt-names:
    items:
      - const: mc

  phys:
    maxItems: 1

  usb-role-switch:
    type: boolean

필수 속성과 추가 속성 제한

48-58

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

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

additionalProperties: false

JZ4740 UDC와 USB PHY 예제

59-79

예제는 cell 수가 0인 `usb-nop-xceiv` PHY를 만들고 `usb@13040000` UDC에 연결합니다. UDC는 0x10000-byte register 영역, interrupt 24, `JZ4740_CLK_UDC` clock과 `mc`·`udc` 이름을 사용합니다.

examples:
  - |
    #include <dt-bindings/clock/ingenic,jz4740-cgu.h>
    usb_phy: usb-phy {
      compatible = "usb-nop-xceiv";
      #phy-cells = <0>;
    };

    udc: usb@13040000 {
      compatible = "ingenic,jz4740-musb";
      reg = <0x13040000 0x10000>;

      interrupt-parent = <&intc>;
      interrupts = <24>;
      interrupt-names = "mc";

      clocks = <&cgu JZ4740_CLK_UDC>;
      clock-names = "udc";

      phys = <&usb_phy>;
    };