요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
RT5651 audio CODEC
This device supports I2C only.
Required properties:
- compatible : "realtek,rt5651".
- reg : The I2C address of the device.
Optional properties:
- realtek,in2-differential
Boolean. Indicate MIC2 input are differential, rather than single-ended.
- realtek,dmic-en
Boolean. true if dmic is used.
- realtek,jack-detect-source
u32. Valid values:
1: Use JD1_1 pin for jack-detect
2: Use JD1_2 pin for jack-detect
3: Use JD2 pin for jack-detect
- realtek,jack-detect-not-inverted
bool. Normal jack-detect switches give an inverted (active-low) signal,
set this bool in the rare case you've a jack-detect switch which is not
inverted.
- realtek,over-current-threshold-microamp
u32, micbias over-current detection threshold in µA, valid values are
600, 1500 and 2000µA.
- realtek,over-current-scale-factor
u32, micbias over-current detection scale-factor, valid values are:
0: Scale current by 0.5
1: Scale current by 0.75
2: Scale current by 1.0
3: Scale current by 1.5
Pins on the device (for linking into audio routes) for RT5651:
* DMIC L1
* DMIC R1
* IN1P
* IN2P
* IN2N
* IN3P
* HPOL
* HPOR
* LOUTL
* LOUTR
* PDML
* PDMR
Example:
rt5651: codec@1a {
compatible = "realtek,rt5651";
reg = <0x1a>;
realtek,dmic-en = "true";
realtek,in2-diff = "false";
};
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
RT5651 I2C 필수 속성
1-10RT5651 audio codec은 I2C만 지원합니다. 필수 `compatible`은 `realtek,rt5651`, `reg`는 device I2C address입니다.
Input·DMIC·jack·over-current 설정
11-40Boolean `realtek,in2-differential`은 MIC2 input이 single-ended가 아니라 differential임을 나타내고 `realtek,dmic-en`은 DMIC 사용 여부를 나타냅니다.
u32 `realtek,jack-detect-source` 값 1은 `JD1_1`, 2는 `JD1_2`, 3은 `JD2` pin을 jack detection source로 선택합니다. 일반 jack switch는 active-low이지만 rare non-inverted switch에서는 `realtek,jack-detect-not-inverted`를 설정합니다.
`realtek,over-current-threshold-microamp`는 micbias over-current threshold이며 600, 1500, 2000 µA가 유효합니다. `realtek,over-current-scale-factor`는 값 0·1·2·3에 따라 current를 각각 0.5·0.75·1.0·1.5배로 scaling합니다.
RT5651 audio route pin
41-55Route pin은 `DMIC L1`, `DMIC R1`, `IN1P`, `IN2P`, `IN2N`, `IN3P`, `HPOL`, `HPOR`, `LOUTL`, `LOUTR`, `PDML`, `PDMR`입니다.
RT5651 예제
56-63예제는 I2C address `0x1a`와 DMIC 사용을 지정합니다. 원문 예제의 `realtek,in2-diff`는 앞에서 정의한 `realtek,in2-differential`과 이름이 다르며 이 불일치를 그대로 보존합니다.
rt5651: codec@1a {
compatible = "realtek,rt5651";
reg = <0x1a>;
realtek,dmic-en = "true";
realtek,in2-diff = "false";
};
요약과 해설
rt5651.txt:1-63RT5651의 DMIC, jack detection, micbias over-current와 route pin을 설명합니다. 영어 원문 전체와 줄 좌표를 보존하고 한국어 전문 번역에서는 property·pin·phandle·수치와 예제 코드를 원형대로 유지합니다.