← Documents Documentation/devicetree/bindings/usb/analogix,anx7411.yaml GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings / USB

Analogix ANX7411 Type-C Controller

ANX7411 I2C Type-C controller의 interrupt, dual-role connector와 endpoint 연결을 설명합니다.

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

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

1. 요약·해설

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

요약과 해설

analogix,anx7411.yaml:1-70

ANX7411 I2C Type-C controller의 interrupt, dual-role connector와 endpoint 연결을 설명합니다. 접을 수 있는 영어 원문 전체와 한국어 전문 번역을 함께 제공하며, compatible, register, clock, interrupt, PHY, endpoint, 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/analogix,anx7411.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Analogix ANX7411 Type-C controller
8
9 maintainers:
10 - Xin Ji <[email protected]>
11
12 properties:
13 compatible:
14 enum:
15 - analogix,anx7411
16
17 reg:
18 maxItems: 1
19
20 interrupts:
21 maxItems: 1
22
23 connector:
24 type: object
25 $ref: ../connector/usb-connector.yaml
26
27 properties:
28 compatible:
29 const: usb-c-connector
30
31 required:
32 - compatible
33 - reg
34 - connector
35
36 additionalProperties: false
37
38 examples:
39 - |
40 #include <dt-bindings/interrupt-controller/irq.h>
41 i2c {
42 #address-cells = <1>;
43 #size-cells = <0>;
44
45 typec@2c {
46 compatible = "analogix,anx7411";
47 reg = <0x2c>;
48 interrupts = <8 IRQ_TYPE_EDGE_FALLING>;
49 interrupt-parent = <&gpio0>;
50
51 typec_con: connector {
52 compatible = "usb-c-connector";
53 power-role = "dual";
54 data-role = "dual";
55 try-power-role = "source";
56
57 ports {
58 #address-cells = <1>;
59 #size-cells = <0>;
60 port@0 {
61 reg = <0>;
62 typec_con_ep: endpoint {
63 remote-endpoint = <&usbotg_hs_ep>;
64 };
65 };
66 };
67 };
68 };
69 };
70 ...
71

3. 한국어 전문 번역

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

Analogix ANX7411 Type-C controller

1-11

GPL-2.0-only 또는 BSD-2-Clause 라이선스의 이 schema는 Analogix ANX7411 Type-C controller를 정의합니다. 관리자는 Xin Ji입니다.

I2C 주소, interrupt와 connector

12-37

`compatible`은 `analogix,anx7411`이고 `reg`와 `interrupts`는 각각 최대 한 항목입니다. `connector` child object는 공통 `usb-connector.yaml`을 따르며 그 `compatible` 값은 `usb-c-connector`입니다.

필수 속성은 `compatible`, `reg`, `connector`이고 정의되지 않은 추가 속성은 허용하지 않습니다. Interrupt는 schema에서 선택 사항입니다.

properties:
  compatible:
    enum:
      - analogix,anx7411

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

  connector:
    type: object
    $ref: ../connector/usb-connector.yaml

    properties:
      compatible:
        const: usb-c-connector

required:
  - compatible
  - reg
  - connector

additionalProperties: false

Dual-role Type-C connector 예제

38-70

예제 I2C node의 `typec@2c`는 주소 0x2c에 ANX7411을 두고 GPIO0의 falling-edge interrupt 8을 사용합니다. Connector는 power와 data 모두 `dual` role이고 선호 시도 전원 role은 `source`입니다.

Connector의 port 0 endpoint는 `remote-endpoint`로 `usbotg_hs_ep`와 연결되어 Type-C controller와 USB OTG data path를 잇습니다.

examples:
  - |
    #include <dt-bindings/interrupt-controller/irq.h>
    i2c {
        #address-cells = <1>;
        #size-cells = <0>;

        typec@2c {
            compatible = "analogix,anx7411";
            reg = <0x2c>;
            interrupts = <8 IRQ_TYPE_EDGE_FALLING>;
            interrupt-parent = <&gpio0>;

            typec_con: connector {
                compatible = "usb-c-connector";
                power-role = "dual";
                data-role = "dual";
                try-power-role = "source";

                ports {
                    #address-cells = <1>;
                    #size-cells = <0>;
                    port@0 {
                        reg = <0>;
                        typec_con_ep: endpoint {
                            remote-endpoint = <&usbotg_hs_ep>;
                        };
                    };
                };
            };
        };
    };
...