← Documents Documentation/devicetree/bindings/sound/fsl,mxs-audio-sgtl5000.yaml GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings / Sound

MXS audio complex with SGTL5000

MXS SAIF와 SGTL5000 codec phandle, board audio routing을 설명합니다.

Source pathDocumentation/devicetree/bindings/sound/fsl,mxs-audio-sgtl5000.yaml
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

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

1. 요약·해설

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

요약과 해설

fsl,mxs-audio-sgtl5000.yaml:1-81

NXP/Freescale digital microphone, GPIO audio, SGTL5000 machine card와 QMC multichannel audio의 핵심 signal path와 조건부 속성을 먼저 해설하고, 접을 수 있는 영어 원문 전체와 줄 좌표를 보존한 한국어 전문 번역을 제공합니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/sound/fsl,mxs-audio-sgtl5000.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Freescale MXS audio complex with SGTL5000 codec
8
9 maintainers:
10 - Frank Li <Frank.Li@nxp.com>
11
12 properties:
13 compatible:
14 items:
15 - enum:
16 - bluegiga,apx4devkit-sgtl5000
17 - denx,m28evk-sgtl5000
18 - fsl,imx28-evk-sgtl5000
19 - fsl,imx28-mbmx28lc-sgtl5000
20 - fsl,imx28-tx28-sgtl5000
21 - const: fsl,mxs-audio-sgtl5000
22
23 model:
24 $ref: /schemas/types.yaml#/definitions/string
25 description: The user-visible name of this sound complex
26
27 saif-controllers:
28 $ref: /schemas/types.yaml#/definitions/phandle-array
29 description: The phandle list of the MXS SAIF controller
30
31 audio-codec:
32 $ref: /schemas/types.yaml#/definitions/phandle
33 description: The phandle of the SGTL5000 audio codec
34
35 audio-routing:
36 $ref: /schemas/types.yaml#/definitions/non-unique-string-array
37 description: |
38 A list of the connections between audio components.
39 Each entry is a pair of strings, the first being the
40 connection's sink, the second being the connection's
41 source. Valid names could be power supplies, SGTL5000
42 pins, and the jacks on the board:
43
44 Power supplies:
45 * Mic Bias
46
47 SGTL5000 pins:
48 * MIC_IN
49 * LINE_IN
50 * HP_OUT
51 * LINE_OUT
52
53 Board connectors:
54 * Mic Jack
55 * Line In Jack
56 * Headphone Jack
57 * Line Out Jack
58 * Ext Spk
59
60 required:
61 - compatible
62 - saif-controllers
63 - audio-codec
64
65 allOf:
66 - $ref: dai-common.yaml#
67
68 unevaluatedProperties: false
69
70 examples:
71 - |
72 sound {
73 compatible = "fsl,imx28-evk-sgtl5000", "fsl,mxs-audio-sgtl5000";
74 model = "imx28-evk-sgtl5000";
75 saif-controllers = <&saif0 &saif1>;
76 audio-codec = <&sgtl5000>;
77 audio-routing =
78 "MIC_IN", "Mic Jack",
79 "Mic Jack", "Mic Bias",
80 "Headphone Jack", "HP_OUT";
81 };
82

3. 한국어 전문 번역

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

MXS와 SGTL5000 audio complex

1-11

이 YAML binding은 SGTL5000 codec을 사용하는 Freescale MXS audio complex를 정의합니다. Schema ID는 `http://devicetree.org/schemas/sound/fsl,mxs-audio-sgtl5000.yaml#`이며 maintainer는 Frank Li입니다.

Board 호환성과 SAIF·codec phandle

12-34

`compatible`은 `bluegiga,apx4devkit-sgtl5000`, `denx,m28evk-sgtl5000`, `fsl,imx28-evk-sgtl5000`, `fsl,imx28-mbmx28lc-sgtl5000`, `fsl,imx28-tx28-sgtl5000` 중 board 항목 하나 뒤에 fallback `fsl,mxs-audio-sgtl5000`을 둡니다.

`model`은 사용자에게 보이는 sound complex 이름입니다. `saif-controllers`는 MXS SAIF controller phandle 목록이고 `audio-codec`은 SGTL5000 codec의 phandle입니다.

SGTL5000 audio routing

35-59

`audio-routing`은 component 사이 연결 목록이며 각 pair의 첫 문자열은 sink, 두 번째는 source입니다.

유효한 이름은 power supply `Mic Bias`, SGTL5000 pin `MIC_IN`, `LINE_IN`, `HP_OUT`, `LINE_OUT`, board connector `Mic Jack`, `Line In Jack`, `Headphone Jack`, `Line Out Jack`, `Ext Spk`입니다.

필수 속성과 DAI 공통 규칙

60-69

필수 속성은 `compatible`, `saif-controllers`, `audio-codec`입니다. `dai-common.yaml#`을 상속하며 평가되지 않은 추가 속성은 허용하지 않습니다.

i.MX28 EVK routing 예제

70-81

예제는 SAIF0과 SAIF1을 SGTL5000에 연결하고 `MIC_IN`을 `Mic Jack`에서, `Mic Jack` bias를 `Mic Bias`에서, `Headphone Jack`을 `HP_OUT`에서 공급받도록 route합니다.

sound {
    compatible = "fsl,imx28-evk-sgtl5000", "fsl,mxs-audio-sgtl5000";
    model = "imx28-evk-sgtl5000";
    saif-controllers = <&saif0 &saif1>;
    audio-codec = <&sgtl5000>;
    audio-routing =
        "MIC_IN", "Mic Jack",
        "Mic Jack", "Mic Bias",
        "Headphone Jack", "HP_OUT";
};