요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/usb/analogix,anx7411.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Analogix ANX7411 Type-C controller
maintainers:
- Xin Ji <xji@analogixsemi.com>
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
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>;
};
};
};
};
};
};
...
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
Analogix ANX7411 Type-C controller
1-11GPL-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>;
};
};
};
};
};
};
...
요약과 해설
analogix,anx7411.yaml:1-70ANX7411 I2C Type-C controller의 interrupt, dual-role connector와 endpoint 연결을 설명합니다. 접을 수 있는 영어 원문 전체와 한국어 전문 번역을 함께 제공하며, compatible, register, clock, interrupt, PHY, endpoint, source path와 원문 줄 좌표를 원형대로 보존합니다.