요약·해설, 영어 원문, 전체 번역을 구분해 실었습니다. API 이름, 코드 심벌, 소스 경로는 원문 표기를 유지합니다.
1. 요약·해설
원문의 핵심 내용을 정리하고 커널 프로그래밍에 필요한 설명을 덧붙였습니다. 아래의 전체 번역과는 별도로 작성한 해설입니다.
2. 영어 원문 전체
번역에 사용한 Linux v6.18.37 원문입니다. 줄 번호는 해당 버전의 소스 파일을 기준으로 합니다.
원문 전체 펼치기
* Cirrus Logic CLPS711X Framebuffer
Required properties:
- compatible: Shall contain "cirrus,ep7209-fb".
- reg : Physical base address and length of the controller's registers +
location and size of the framebuffer memory.
- clocks : phandle + clock specifier pair of the FB reference clock.
- display : phandle to a display node as described in
Documentation/devicetree/bindings/display/panel/display-timing.txt.
Additionally, the display node has to define properties:
- bits-per-pixel: Bits per pixel.
- ac-prescale : LCD AC bias frequency. This frequency is the required
AC bias frequency for a given manufacturer's LCD plate.
- cmap-invert : Invert the color levels (Optional).
Optional properties:
- lcd-supply: Regulator for LCD supply voltage.
Example:
fb: fb@800002c0 {
compatible = "cirrus,ep7312-fb", "cirrus,ep7209-fb";
reg = <0x800002c0 0xd44>, <0x60000000 0xc000>;
clocks = <&clks 2>;
lcd-supply = <®5v0>;
display = <&display>;
};
display: display {
model = "320x240x4";
bits-per-pixel = <4>;
ac-prescale = <17>;
display-timings {
native-mode = <&timing0>;
timing0: 320x240 {
hactive = <320>;
hback-porch = <0>;
hfront-porch = <0>;
hsync-len = <0>;
vactive = <240>;
vback-porch = <0>;
vfront-porch = <0>;
vsync-len = <0>;
clock-frequency = <6500000>;
};
};
};
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미에 맞춰 전체 내용을 번역했습니다. 코드, 함수명, 코드 심벌, URL은 원문 표기를 유지합니다.
CLPS711X framebuffer 속성
1-18Cirrus Logic CLPS711X framebuffer 바인딩입니다. `compatible`에는 `cirrus,ep7209-fb`가 들어가야 합니다. `reg`는 controller register의 physical base address와 length뿐 아니라 framebuffer memory의 위치와 크기도 함께 담습니다. `clocks`는 framebuffer reference clock의 phandle과 clock specifier 쌍입니다.
`display`는 `Documentation/devicetree/bindings/display/panel/display-timing.txt`에 정의된 display node를 가리키는 phandle입니다. 이 display node에는 pixel당 bit 수를 나타내는 `bits-per-pixel`과 해당 제조사 LCD plate에 필요한 LCD AC bias frequency인 `ac-prescale`을 추가로 지정해야 합니다. 선택 속성 `cmap-invert`는 color level을 반전합니다.
선택 속성 `lcd-supply`는 LCD supply voltage를 제공하는 regulator를 가리킵니다.
Controller register와 별도 framebuffer memory를 display timing 및 LCD 전원에 결합합니다.
320x240 4-bpp timing 예제
19-47예제 framebuffer node는 EP7312 호환성과 기본 EP7209 호환성을 함께 선언하고, controller register와 `0x60000000`의 framebuffer memory를 두 `reg` 범위로 제공합니다. Clock index 2와 5 V regulator를 사용하고 `display` node를 참조합니다.
Display는 `320x240x4` 모델, pixel당 4 bit, AC prescale 17을 사용합니다. `timing0`이 native mode이며 active 영역은 320x240, 모든 porch와 sync length는 0, pixel clock은 6,500,000 Hz입니다.
fb: fb@800002c0 {
compatible = "cirrus,ep7312-fb", "cirrus,ep7209-fb";
reg = <0x800002c0 0xd44>, <0x60000000 0xc000>;
clocks = <&clks 2>;
lcd-supply = <®5v0>;
display = <&display>;
};
display: display {
model = "320x240x4";
bits-per-pixel = <4>;
ac-prescale = <17>;
display-timings {
native-mode = <&timing0>;
timing0: 320x240 {
hactive = <320>;
hback-porch = <0>;
hfront-porch = <0>;
hsync-len = <0>;
vactive = <240>;
vback-porch = <0>;
vfront-porch = <0>;
vsync-len = <0>;
clock-frequency = <6500000>;
};
};
};
요약과 해설
cirrus,clps711x-fb.txt:1-47별도 framebuffer memory와 320x240 display timing 예제를 설명합니다.