요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
1
WM8741 audio CODEC
3
This device supports both I2C and SPI (configured with pin strapping
4
on the board).
6
Required properties:
8
- compatible : "wlf,wm8741"
10
- reg : the I2C address of the device for I2C, the chip select
11
number for SPI.
13
Optional properties:
15
- diff-mode: Differential output mode configuration. Default value for field
16
DIFF in register R8 (MODE_CONTROL_2). If absent, the default is 0, shall be:
17
0 = stereo
18
1 = mono left
19
2 = stereo reversed
20
3 = mono right
22
Example:
24
wm8741: codec@1a {
25
compatible = "wlf,wm8741";
26
reg = <0x1a>;
28
diff-mode = <3>;
29
};
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
WM8741 I2C·SPI 속성
1-12WM8741은 board pin strapping으로 I2C 또는 SPI를 선택합니다. 필수 `compatible`은 `wlf,wm8741`, `reg`는 I2C address 또는 SPI chip-select number입니다.
Differential output mode
13-21선택 `diff-mode`는 register R8 `MODE_CONTROL_2`의 `DIFF` field 기본값입니다. 0은 stereo, 1은 mono left, 2는 reversed stereo, 3은 mono right이며 생략 시 0입니다.
WM8741 mono-right 예제
22-29예제는 address `0x1a`에서 `diff-mode = 3`으로 mono-right output을 선택합니다.
wm8741: codec@1a {
compatible = "wlf,wm8741";
reg = <0x1a>;
diff-mode = <3>;
};
요약과 해설
wm8741.txt:1-29WM8741 I2C·SPI와 differential output mode를 설명합니다. 영어 원문 전체와 줄 좌표를 보존하고 한국어 전문 번역에서는 property·callback·pin·phandle·수치와 예제 코드를 원형대로 유지합니다.