요약·해설, 영어 원문, 전체 번역을 구분해 실었습니다. API 이름, 코드 심벌, 소스 경로는 원문 표기를 유지합니다.
1. 요약·해설
원문의 핵심 내용을 정리하고 커널 프로그래밍에 필요한 설명을 덧붙였습니다. 아래의 전체 번역과는 별도로 작성한 해설입니다.
2. 영어 원문 전체
번역에 사용한 Linux v6.18.37 원문입니다. 줄 번호는 해당 버전의 소스 파일을 기준으로 합니다.
원문 전체 펼치기
* Milbeaut AHB DMA Controller
Milbeaut AHB DMA controller has transfer capability below.
- device to memory transfer
- memory to device transfer
Required property:
- compatible: Should be "socionext,milbeaut-m10v-hdmac"
- reg: Should contain DMA registers location and length.
- interrupts: Should contain all of the per-channel DMA interrupts.
Number of channels is configurable - 2, 4 or 8, so
the number of interrupts specified should be {2,4,8}.
- #dma-cells: Should be 1. Specify the ID of the slave.
- clocks: Phandle to the clock used by the HDMAC module.
Example:
hdmac1: dma-controller@1e110000 {
compatible = "socionext,milbeaut-m10v-hdmac";
reg = <0x1e110000 0x10000>;
interrupts = <0 132 4>,
<0 133 4>,
<0 134 4>,
<0 135 4>,
<0 136 4>,
<0 137 4>,
<0 138 4>,
<0 139 4>;
#dma-cells = <1>;
clocks = <&dummy_clk>;
};
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미에 맞춰 전체 내용을 번역했습니다. 코드, 함수명, 코드 심벌, URL은 원문 표기를 유지합니다.
Milbeaut AHB HDMAC 속성
1-16Milbeaut AHB DMA controller는 device-to-memory와 memory-to-device transfer를 지원합니다. 필수 `compatible`은 `socionext,milbeaut-m10v-hdmac`, `reg`는 DMA register 위치와 길이입니다.
`interrupts`에는 channel별 interrupt 전체를 넣습니다. Channel 수는 2, 4, 8로 구성 가능하므로 interrupt 수도 2, 4, 8 중 하나여야 합니다. `#dma-cells = <1>`의 cell은 slave ID이고 `clocks`는 HDMAC module clock의 phandle입니다.
Slave ID가 선택한 channel이 peripheral과 memory 사이 양방향 transfer를 수행합니다.
8-channel HDMAC 예제
17-32예제 HDMAC1은 interrupt 132부터 139까지 여덟 개, 단일-cell DMA specifier와 module clock을 사용합니다.
hdmac1: dma-controller@1e110000 {
compatible = "socionext,milbeaut-m10v-hdmac";
reg = <0x1e110000 0x10000>;
interrupts = <0 132 4>,
<0 133 4>,
<0 134 4>,
<0 135 4>,
<0 136 4>,
<0 137 4>,
<0 138 4>,
<0 139 4>;
#dma-cells = <1>;
clocks = <&dummy_clk>;
};
요약과 해설
milbeaut-m10v-hdmac.txt:1-322/4/8-channel 구성과 8-channel 예제를 설명합니다.