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 이름, 코드 심벌, 소스 경로는 원문 표기를 유지합니다.

1. 요약·해설

원문의 핵심 내용을 정리하고 커널 프로그래밍에 필요한 설명을 덧붙였습니다. 아래의 전체 번역과는 별도로 작성한 해설입니다.

요약과 해설

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. 한국어 전문 번역

영어 원문의 문단 순서와 의미에 맞춰 전체 내용을 번역했습니다. 코드, 함수명, 코드 심벌, 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>;
};