요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
Marvell PXA camera host interface
Required properties:
- compatible: Should be "marvell,pxa270-qci"
- reg: register base and size
- interrupts: the interrupt number
- any required generic properties defined in video-interfaces.txt
Optional properties:
- clocks: input clock (see clock-bindings.txt)
- clock-output-names: should contain the name of the clock driving the
sensor master clock MCLK
- clock-frequency: host interface is driving MCLK, and MCLK rate is this rate
Example:
pxa_camera: pxa_camera@50000000 {
compatible = "marvell,pxa270-qci";
reg = <0x50000000 0x1000>;
interrupts = <33>;
clocks = <&pxa2xx_clks 24>;
clock-names = "ciclk";
clock-frequency = <50000000>;
clock-output-names = "qci_mclk";
port {
#address-cells = <1>;
#size-cells = <0>;
/* Parallel bus endpoint */
qci: endpoint@0 {
reg = <0>; /* Local endpoint # */
remote-endpoint = <&mt9m111_1>;
bus-width = <8>; /* Used data lines */
hsync-active = <0>; /* Active low */
vsync-active = <0>; /* Active low */
pclk-sample = <1>; /* Rising */
};
};
};
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
Marvell PXA camera host
1-14Marvell PXA camera host interface의 필수 `compatible`은 `marvell,pxa270-qci`, `reg`는 register base와 크기, `interrupts`는 interrupt number입니다. 그 밖에 `video-interfaces.txt`가 정의한 필요한 generic property도 제공합니다.
선택적인 `clocks`는 `clock-bindings.txt`의 input clock입니다. `clock-output-names`는 sensor master clock MCLK를 구동하는 clock 이름이고, host interface가 MCLK를 직접 구동하면 `clock-frequency`가 그 rate입니다.
Host가 sensor MCLK를 출력하고 8-bit parallel endpoint에서 active-low sync를 sampling합니다.
50MHz MT9M111 연결 예제
15-42예제 host는 `0x50000000`의 0x1000-byte register region과 interrupt 33을 사용합니다. PXA clock 24를 `ciclk`로 받고 50MHz `qci_mclk`를 출력합니다.
Parallel endpoint 0은 MT9M111의 `mt9m111_1`을 가리키며 8-bit data bus, active-low HSYNC·VSYNC, rising-edge PCLK sample을 선언합니다.
pxa_camera: pxa_camera@50000000 {
compatible = "marvell,pxa270-qci";
reg = <0x50000000 0x1000>;
interrupts = <33>;
clocks = <&pxa2xx_clks 24>;
clock-names = "ciclk";
clock-frequency = <50000000>;
clock-output-names = "qci_mclk";
port {
#address-cells = <1>;
#size-cells = <0>;
/* Parallel bus endpoint */
qci: endpoint@0 {
reg = <0>; /* Local endpoint # */
remote-endpoint = <&mt9m111_1>;
bus-width = <8>; /* Used data lines */
hsync-active = <0>; /* Active low */
vsync-active = <0>; /* Active low */
pclk-sample = <1>; /* Rising */
};
};
};
요약과 해설
pxa-camera.txt:1-4250MHz MCLK와 MT9M111 active-low sync 예제를 설명합니다.