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

Linux 6.18.37 · Devicetree Bindings / Sound

Cirrus CS4341 audio DAC

CS4341의 I2C·SPI bus 선택과 필수 속성을 설명합니다.

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

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

1. 요약·해설

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

요약과 해설

cs4341.txt:1-22

Audio codec의 bus·전원·clock·microphone·jack detection 속성을 먼저 해설하고, 접을 수 있는 영어 원문 전체와 원문 줄 좌표를 보존한 한국어 전문 번역을 제공합니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 Cirrus Logic CS4341 audio DAC
2
3 This device supports both I2C and SPI (configured with pin strapping
4 on the board).
5
6 Required properties:
7 - compatible: "cirrus,cs4341a"
8 - reg : the I2C address of the device for I2C, the chip select
9 number for SPI.
10
11 For required properties on I2C-bus, please consult
12 dtschema schemas/i2c/i2c-controller.yaml
13 For required properties on SPI-bus, please consult
14 Documentation/devicetree/bindings/spi/spi-bus.txt
15
16 Example:
17 codec: cs4341@0 {
18 #sound-dai-cells = <0>;
19 compatible = "cirrus,cs4341a";
20 reg = <0>;
21 spi-max-frequency = <6000000>;
22 };
23

3. 한국어 전문 번역

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

CS4341 bus와 필수 속성

1-15

Cirrus Logic CS4341 audio DAC는 board의 pin strapping으로 구성한 I2C와 SPI를 모두 지원합니다.

`compatible` 값은 `cirrus,cs4341a`입니다. `reg`에는 I2C를 사용할 때 장치 주소, SPI를 사용할 때 chip select 번호를 지정합니다.

I2C bus의 필수 속성은 dtschema `schemas/i2c/i2c-controller.yaml`, SPI bus의 필수 속성은 `Documentation/devicetree/bindings/spi/spi-bus.txt`를 참조합니다.

CS4341 SPI 예제

16-22

예제는 sound DAI cell 수 0, chip select 0과 최대 SPI frequency 6MHz를 지정합니다.

codec: cs4341@0 {
        #sound-dai-cells = <0>;
        compatible = "cirrus,cs4341a";
        reg = <0>;
        spi-max-frequency = <6000000>;
};