요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
* Freescale Serial RapidIO (SRIO) Controller
RapidIO port node:
Properties:
- compatible
Usage: required
Value type: <string>
Definition: Must include "fsl,srio" for IP blocks with IP Block
Revision Register (SRIO IPBRR1) Major ID equal to 0x01c0.
Optionally, a compatible string of "fsl,srio-vX.Y" where X is Major
version in IP Block Revision Register and Y is Minor version. If this
compatible is provided it should be ordered before "fsl,srio".
- reg
Usage: required
Value type: <prop-encoded-array>
Definition: A standard property. Specifies the physical address and
length of the SRIO configuration registers. The size should
be set to 0x11000.
- interrupts
Usage: required
Value type: <prop_encoded-array>
Definition: Specifies the interrupts generated by this device. The
value of the interrupts property consists of one interrupt
specifier. The format of the specifier is defined by the
binding document describing the node's interrupt parent.
A single IRQ that handles error conditions is specified by this
property. (Typically shared with port-write).
- fsl,srio-rmu-handle:
Usage: required if rmu node is defined
Value type: <phandle>
Definition: A single <phandle> value that points to the RMU.
(See srio-rmu.txt for more details on RMU node binding)
Port Child Nodes: There should a port child node for each port that exists in
the controller. The ports are numbered starting at one (1) and should have
the following properties:
- cell-index
Usage: required
Value type: <u32>
Definition: A standard property. Matches the port id.
- ranges
Usage: required if local access windows preset
Value type: <prop-encoded-array>
Definition: A standard property. Utilized to describe the memory mapped
IO space utilized by the controller. This corresponds to the
setting of the local access windows that are targeted to this
SRIO port.
- fsl,liodn
Usage: optional-but-recommended (for devices with PAMU)
Value type: <prop-encoded-array>
Definition: The logical I/O device number for the PAMU (IOMMU) to be
correctly configured for SRIO accesses. The property should
not exist on devices that do not support PAMU.
For HW (ie, the P4080) that only supports a LIODN for both
memory and maintenance transactions then a single LIODN is
represented in the property for both transactions.
For HW (ie, the P304x/P5020, etc) that supports an LIODN for
memory transactions and a unique LIODN for maintenance
transactions then a pair of LIODNs are represented in the
property. Within the pair, the first element represents the
LIODN associated with memory transactions and the second element
represents the LIODN associated with maintenance transactions
for the port.
Note: All other standard properties (see the Devicetree Specification)
are allowed but are optional.
Example:
rapidio: rapidio@ffe0c0000 {
#address-cells = <2>;
#size-cells = <2>;
reg = <0xf 0xfe0c0000 0 0x11000>;
compatible = "fsl,srio";
interrupts = <16 2 1 11>; /* err_irq */
fsl,srio-rmu-handle = <&rmu>;
ranges;
port1 {
cell-index = <1>;
#address-cells = <2>;
#size-cells = <2>;
fsl,liodn = <34>;
ranges = <0 0 0xc 0x20000000 0 0x10000000>;
};
port2 {
cell-index = <2>;
#address-cells = <2>;
#size-cells = <2>;
fsl,liodn = <48>;
ranges = <0 0 0xc 0x30000000 0 0x10000000>;
};
};
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
SRIO controller node
1-38Freescale Serial RapidIO controller의 필수 `compatible`에는 SRIO IPBRR1 Major ID가 0x01c0인 IP block용 `fsl,srio`가 들어갑니다. 선택 `fsl,srio-vX.Y`를 제공하면 IP Block Revision Register의 Major·Minor version을 사용하고 `fsl,srio`보다 앞에 둡니다.
필수 `reg`는 SRIO configuration register의 physical address와 length를 지정하며 size는 0x11000이어야 합니다. 필수 `interrupts`는 error condition을 처리하는 단일 IRQ이며 보통 port-write와 공유합니다.
RMU node를 정의했다면 필수 `fsl,srio-rmu-handle` phandle이 RMU를 가리켜야 합니다. RMU binding은 `srio-rmu.txt`에 설명되어 있습니다.
SRIO port child node
39-76Controller에 존재하는 port마다 1부터 번호를 매긴 child node가 있어야 합니다. 필수 u32 `cell-index`는 port ID와 일치합니다. Local access window가 있으면 필수 `ranges`가 해당 SRIO port를 대상으로 하는 memory-mapped I/O 공간을 기술합니다.
PAMU가 있는 device에는 선택 권장 `fsl,liodn`을 둡니다. P4080처럼 memory와 maintenance transaction에 LIODN 하나만 지원하는 hardware는 단일 값을 사용합니다. P304x·P5020처럼 별도 LIODN을 지원하면 두 값을 쓰며 첫 값은 memory transaction, 두 번째 값은 maintenance transaction용입니다. PAMU 미지원 device에는 이 property가 없어야 합니다.
Devicetree Specification의 다른 표준 property도 허용되지만 선택 사항입니다.
두 SRIO port 예제
77-104예제 controller는 0x11000 register 공간과 error IRQ, RMU handle을 선언합니다. Port 1과 2는 각각 LIODN 34와 LIODN 48을 사용하고 0x10000000 크기의 서로 다른 local access window를 mapping합니다.
rapidio: rapidio@ffe0c0000 {
#address-cells = <2>;
#size-cells = <2>;
reg = <0xf 0xfe0c0000 0 0x11000>;
compatible = "fsl,srio";
interrupts = <16 2 1 11>; /* err_irq */
fsl,srio-rmu-handle = <&rmu>;
ranges;
port1 {
cell-index = <1>;
#address-cells = <2>;
#size-cells = <2>;
fsl,liodn = <34>;
ranges = <0 0 0xc 0x20000000 0 0x10000000>;
};
port2 {
cell-index = <2>;
#address-cells = <2>;
#size-cells = <2>;
fsl,liodn = <48>;
ranges = <0 0 0xc 0x30000000 0 0x10000000>;
};
};
요약과 해설
srio.txt:1-104SRIO revision compatible ordering과 port별 단일 또는 memory·maintenance LIODN 쌍을 설명합니다.