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

Linux 6.18.37 · Devicetree Bindings / Sound

Cirrus CS4265 audio codec

CS4265의 AD0별 I2C 주소와 reset GPIO를 설명합니다.

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

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

1. 요약·해설

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

요약과 해설

cs4265.txt:1-29

Codec의 주소·전원·clock·analog input과 측정 속성을 먼저 해설하고, 접을 수 있는 영어 원문 전체와 원문 줄 좌표를 보존한 한국어 전문 번역을 제공합니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 CS4265 audio CODEC
2
3 This device supports I2C only.
4
5 Required properties:
6
7 - compatible : "cirrus,cs4265"
8
9 - reg : the I2C address of the device for I2C. The I2C address depends on
10 the state of the AD0 pin. If AD0 is high, the i2c address is 0x4f.
11 If it is low, the i2c address is 0x4e.
12
13 Optional properties:
14
15 - reset-gpios : a GPIO spec for the reset pin. If specified, it will be
16 deasserted before communication to the codec starts.
17
18 Examples:
19
20 codec_ad0_high: cs4265@4f { /* AD0 Pin is high */
21 compatible = "cirrus,cs4265";
22 reg = <0x4f>;
23 };
24
25
26 codec_ad0_low: cs4265@4e { /* AD0 Pin is low */
27 compatible = "cirrus,cs4265";
28 reg = <0x4e>;
29 };
30

3. 한국어 전문 번역

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

CS4265 I2C 주소

1-12

CS4265 audio CODEC은 I2C만 지원합니다. `compatible` 값은 `cirrus,cs4265`이고 `reg`에는 I2C 주소를 지정합니다.

I2C 주소는 AD0 pin 상태에 따라 달라집니다. AD0가 high이면 `0x4f`, low이면 `0x4e`입니다.

선택적 reset GPIO

13-17

선택 속성 `reset-gpios`는 reset pin을 나타내는 GPIO spec입니다. 지정하면 codec과 통신을 시작하기 전에 reset을 deassert합니다.

AD0별 CS4265 예제

18-29

첫 노드는 AD0 high 상태의 주소 `0x4f`, 둘째 노드는 AD0 low 상태의 주소 `0x4e`를 사용합니다.

codec_ad0_high: cs4265@4f { /* AD0 Pin is high */
        compatible = "cirrus,cs4265";
        reg = <0x4f>;
};


codec_ad0_low: cs4265@4e { /* AD0 Pin is low */
        compatible = "cirrus,cs4265";
        reg = <0x4e>;
};