← Documents Documentation/devicetree/bindings/bus/omap-ocp2scp.txt GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings

OMAP OCP2SCP bridge

OMAP OCP와 SCP interface 사이의 1:1 주소 bridge 및 USB PHY hwmod 바인딩입니다.

Source pathDocumentation/devicetree/bindings/bus/omap-ocp2scp.txt
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.

1. 요약·해설

원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.

요약과 해설

omap-ocp2scp.txt:1-29

OCP2SCP register block 아래 연결 장치를 subnode로 배치하는 방식을 설명합니다.

2. 영어 원문 전체

번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.

원문 전체 펼치기
1 * OMAP OCP2SCP - ocp interface to scp interface
2
3 properties:
4 - compatible : Should be "ti,am437x-ocp2scp" for AM437x processor
5 Should be "ti,omap-ocp2scp" for all others
6 - reg : Address and length of the register set for the device
7 - #address-cells, #size-cells : Must be present if the device has sub-nodes
8 - ranges : the child address space are mapped 1:1 onto the parent address space
9 - ti,hwmods : must be "ocp2scp_usb_phy"
10
11 Sub-nodes:
12 All the devices connected to ocp2scp are described using sub-node to ocp2scp
13
14 ocp2scp@4a0ad000 {
15 compatible = "ti,omap-ocp2scp";
16 reg = <0x4a0ad000 0x1f>;
17 #address-cells = <1>;
18 #size-cells = <1>;
19 ranges;
20 ti,hwmods = "ocp2scp_usb_phy";
21
22 subnode1 {
23 ...
24 };
25
26 subnode2 {
27 ...
28 };
29 };
30

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.

OMAP OCP-to-SCP bridge 속성

1-13

OMAP 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로 기술합니다.

OCP2SCP bridge 계층
OMAP OCP busParent address space
ocp2scpti,hwmods = ocp2scp_usb_phy
rangesChild와 parent를 1:1 mapping
SCP devicesOCP2SCP subnodes

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 {
        ...
        };
};