요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
* OMAP OCP2SCP - ocp interface to scp interface
properties:
- compatible : Should be "ti,am437x-ocp2scp" for AM437x processor
Should be "ti,omap-ocp2scp" for all others
- reg : Address and length of the register set for the device
- #address-cells, #size-cells : Must be present if the device has sub-nodes
- ranges : the child address space are mapped 1:1 onto the parent address space
- ti,hwmods : must be "ocp2scp_usb_phy"
Sub-nodes:
All the devices connected to ocp2scp are described using sub-node to ocp2scp
ocp2scp@4a0ad000 {
compatible = "ti,omap-ocp2scp";
reg = <0x4a0ad000 0x1f>;
#address-cells = <1>;
#size-cells = <1>;
ranges;
ti,hwmods = "ocp2scp_usb_phy";
subnode1 {
...
};
subnode2 {
...
};
};
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
OMAP OCP-to-SCP bridge 속성
1-13OMAP OCP2SCP, 즉 OCP interface에서 SCP interface로의 bridge
AM437x processor의 `compatible`은 `ti,am437x-ocp2scp`, 그 밖의 장치는 `ti,omap-ocp2scp`입니다.
`reg`에는 장치 register set의 주소와 길이를 지정합니다. 장치에 subnode가 있으면 `#address-cells`와 `#size-cells`가 있어야 합니다.
`ranges`는 child address space를 parent address space에 1:1로 매핑합니다. `ti,hwmods`는 `ocp2scp_usb_phy`여야 합니다.
OCP2SCP에 연결된 모든 장치는 OCP2SCP 노드의 subnode로 기술합니다.
OCP parent 주소와 SCP child 장치를 1:1로 연결합니다.
OCP2SCP subnode 예
14-29예제는 0x4a0ad000 register set의 OCP2SCP bridge 아래 두 장치 subnode를 배치합니다.
ocp2scp@4a0ad000 {
compatible = "ti,omap-ocp2scp";
reg = <0x4a0ad000 0x1f>;
#address-cells = <1>;
#size-cells = <1>;
ranges;
ti,hwmods = "ocp2scp_usb_phy";
subnode1 {
...
};
subnode2 {
...
};
};
요약과 해설
omap-ocp2scp.txt:1-29OCP2SCP register block 아래 연결 장치를 subnode로 배치하는 방식을 설명합니다.