요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
1) OF unittest platform device
** unittest
Required properties:
- compatible: must be "unittest"
All other properties are optional.
Example:
unittest {
compatible = "unittest";
};
2) OF unittest i2c adapter platform device
** platform device unittest adapter
Required properties:
- compatible: must be unittest-i2c-bus
Children nodes contain unittest i2c devices.
Example:
unittest-i2c-bus {
compatible = "unittest-i2c-bus";
};
3) OF unittest i2c device
** I2C unittest device
Required properties:
- compatible: must be unittest-i2c-dev
All other properties are optional
Example:
unittest-i2c-dev {
compatible = "unittest-i2c-dev";
};
4) OF unittest i2c mux device
** I2C unittest mux
Required properties:
- compatible: must be unittest-i2c-mux
Children nodes contain unittest i2c bus nodes per channel.
Example:
unittest-i2c-mux {
compatible = "unittest-i2c-mux";
#address-cells = <1>;
#size-cells = <0>;
channel-0 {
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
i2c-dev {
reg = <8>;
compatible = "unittest-i2c-dev";
};
};
};
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
OF unittest platform device
1-14이 항목은 Open Firmware unittest용 platform device를 정의합니다. Node 이름은 `unittest`이며 필수 속성 `compatible`의 값은 정확히 `unittest`여야 합니다. 그 밖의 모든 속성은 선택 사항입니다.
예제는 `unittest` node 하나를 만들고 `compatible = "unittest"`를 지정합니다.
Example:
unittest {
compatible = "unittest";
};
OF unittest I2C adapter platform device
15-28Platform device unittest adapter의 필수 `compatible` 값은 `unittest-i2c-bus`입니다. 이 adapter의 child node에는 unittest I2C device가 들어갑니다.
예제 `unittest-i2c-bus` node는 같은 문자열을 `compatible`에 설정합니다.
Example:
unittest-i2c-bus {
compatible = "unittest-i2c-bus";
};
OF unittest I2C device
29-42I2C unittest device의 필수 `compatible` 값은 `unittest-i2c-dev`입니다. 다른 모든 속성은 선택 사항입니다.
예제 `unittest-i2c-dev` node는 `compatible = "unittest-i2c-dev"`를 지정합니다.
Example:
unittest-i2c-dev {
compatible = "unittest-i2c-dev";
};
OF unittest I2C mux device
43-66I2C unittest mux의 필수 `compatible` 값은 `unittest-i2c-mux`입니다. 각 channel의 child node에는 해당 channel에 속하는 unittest I2C bus node가 들어갑니다.
예제 mux는 주소 cell 하나와 크기 cell 0개를 사용합니다. `channel-0`은 `reg = <0>`으로 channel 0을 나타내며, 그 아래의 `i2c-dev`는 bus 주소 8과 `unittest-i2c-dev` compatible을 갖습니다.
Example:
unittest-i2c-mux {
compatible = "unittest-i2c-mux";
#address-cells = <1>;
#size-cells = <0>;
channel-0 {
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
i2c-dev {
reg = <8>;
compatible = "unittest-i2c-dev";
};
};
};
요약과 해설
unittest.txt:1-66OF unittest platform device, I2C adapter, I2C device와 channel별 I2C mux node의 필수 compatible 및 예제를 설명합니다. 접을 수 있는 영어 원문 전체와 한국어 전문 번역을 함께 제공하며, compatible, register, interrupt, clock, PHY, DMA, source path와 원문 줄 좌표를 원형대로 보존합니다.