요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
1
* Cirris Logic CLPS711X PWM controller
3
Required properties:
4
- compatible: Shall contain "cirrus,ep7209-pwm".
5
- reg: Physical base address and length of the controller's registers.
6
- clocks: phandle + clock specifier pair of the PWM reference clock.
7
- #pwm-cells: Should be 1. The cell specifies the index of the channel.
9
Example:
10
pwm: pwm@80000400 {
11
compatible = "cirrus,ep7312-pwm", "cirrus,ep7209-pwm";
12
reg = <0x80000400 0x4>;
13
clocks = <&clks 8>;
14
#pwm-cells = <1>;
15
};
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
필수·선택 property
1-8Cirrus Logic CLPS711X PWM controller의 필수 `compatible`에는 `cirrus,ep7209-pwm`이 들어갑니다. `reg`는 controller register의 physical base와 length, `clocks`는 PWM reference clock의 phandle·specifier 쌍입니다. `#pwm-cells`는 1이며 cell은 channel index입니다.
Device-tree 예제
9-15EP7312 예제는 0x80000400의 4-byte register, clock 8과 단일 channel-index cell을 선언합니다.
pwm: pwm@80000400 {
compatible = "cirrus,ep7312-pwm", "cirrus,ep7209-pwm";
reg = <0x80000400 0x4>;
clocks = <&clks 8>;
#pwm-cells = <1>;
};
요약과 해설
cirrus,clps711x-pwm.txt:1-15Controller별 필수 property와 실제 device-tree 예제를 함께 설명합니다.