← Documents Documentation/devicetree/bindings/sound/rt5651.txt GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings / Sound

Realtek RT5651 codec

RT5651의 DMIC, jack detection, micbias over-current와 route pin을 설명합니다.

Source pathDocumentation/devicetree/bindings/sound/rt5651.txt
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

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

1. 요약·해설

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

요약과 해설

rt5651.txt:1-63

RT5651의 DMIC, jack detection, micbias over-current와 route pin을 설명합니다. 영어 원문 전체와 줄 좌표를 보존하고 한국어 전문 번역에서는 property·pin·phandle·수치와 예제 코드를 원형대로 유지합니다.

2. 영어 원문 전체

번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.

원문 전체 펼치기
1 RT5651 audio CODEC
2
3 This device supports I2C only.
4
5 Required properties:
6
7 - compatible : "realtek,rt5651".
8
9 - reg : The I2C address of the device.
10
11 Optional properties:
12
13 - realtek,in2-differential
14 Boolean. Indicate MIC2 input are differential, rather than single-ended.
15
16 - realtek,dmic-en
17 Boolean. true if dmic is used.
18
19 - realtek,jack-detect-source
20 u32. Valid values:
21 1: Use JD1_1 pin for jack-detect
22 2: Use JD1_2 pin for jack-detect
23 3: Use JD2 pin for jack-detect
24
25 - realtek,jack-detect-not-inverted
26 bool. Normal jack-detect switches give an inverted (active-low) signal,
27 set this bool in the rare case you've a jack-detect switch which is not
28 inverted.
29
30 - realtek,over-current-threshold-microamp
31 u32, micbias over-current detection threshold in µA, valid values are
32 600, 1500 and 2000µA.
33
34 - realtek,over-current-scale-factor
35 u32, micbias over-current detection scale-factor, valid values are:
36 0: Scale current by 0.5
37 1: Scale current by 0.75
38 2: Scale current by 1.0
39 3: Scale current by 1.5
40
41 Pins on the device (for linking into audio routes) for RT5651:
42
43 * DMIC L1
44 * DMIC R1
45 * IN1P
46 * IN2P
47 * IN2N
48 * IN3P
49 * HPOL
50 * HPOR
51 * LOUTL
52 * LOUTR
53 * PDML
54 * PDMR
55
56 Example:
57
58 rt5651: codec@1a {
59 compatible = "realtek,rt5651";
60 reg = <0x1a>;
61 realtek,dmic-en = "true";
62 realtek,in2-diff = "false";
63 };
64

3. 한국어 전문 번역

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

RT5651 I2C 필수 속성

1-10

RT5651 audio codec은 I2C만 지원합니다. 필수 `compatible`은 `realtek,rt5651`, `reg`는 device I2C address입니다.

Input·DMIC·jack·over-current 설정

11-40

Boolean `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-55

Route 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";
};