← Documents Documentation/devicetree/bindings/net/samsung-sxgbe.txt GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings

Samsung SXGBE

Samsung 10G SXGBE의 interrupt, DMA burst와 PHY mode binding입니다.

Source pathDocumentation/devicetree/bindings/net/samsung-sxgbe.txt
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

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

1. 요약·해설

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

요약과 해설

samsung-sxgbe.txt:1-52

고정된 26개 interrupt index 배치를 구조화해 설명합니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 * Samsung 10G Ethernet driver (SXGBE)
2
3 Required properties:
4 - compatible: Should be "samsung,sxgbe-v2.0a"
5 - reg: Address and length of the register set for the device
6 - interrupts: Should contain the SXGBE interrupts
7 These interrupts are ordered by fixed and follows variable
8 transmit DMA interrupts, receive DMA interrupts and lpi interrupt.
9 index 0 - this is fixed common interrupt of SXGBE and it is always
10 available.
11 index 1 to 25 - 8 variable transmit interrupts, variable 16 receive interrupts
12 and 1 optional lpi interrupt.
13 - phy-mode: String, operation mode of the PHY interface.
14 Supported values are: "sgmii", "xgmii".
15 - samsung,pbl: Integer, Programmable Burst Length.
16 Supported values are 1, 2, 4, 8, 16, or 32.
17 - samsung,burst-map: Integer, Program the possible bursts supported by sxgbe
18 This is an integer and represents allowable DMA bursts when fixed burst.
19 Allowable range is 0x01-0x3F. When this field is set fixed burst is enabled.
20 When fixed length is needed for burst mode, it can be set within allowable
21 range.
22
23 Optional properties:
24 - max-frame-size: Maximum Transfer Unit (IEEE defined MTU), rather
25 than the maximum frame size.
26
27 The MAC address will be determined using the optional properties
28 defined in ethernet.txt.
29
30 Example:
31
32 aliases {
33 ethernet0 = <&sxgbe0>;
34 };
35
36 sxgbe0: ethernet@1a040000 {
37 compatible = "samsung,sxgbe-v2.0a";
38 reg = <0 0x1a040000 0 0x10000>;
39 interrupt-parent = <&gic>;
40 interrupts = <0 209 4>, <0 185 4>, <0 186 4>, <0 187 4>,
41 <0 188 4>, <0 189 4>, <0 190 4>, <0 191 4>,
42 <0 192 4>, <0 193 4>, <0 194 4>, <0 195 4>,
43 <0 196 4>, <0 197 4>, <0 198 4>, <0 199 4>,
44 <0 200 4>, <0 201 4>, <0 202 4>, <0 203 4>,
45 <0 204 4>, <0 205 4>, <0 206 4>, <0 207 4>,
46 <0 208 4>, <0 210 4>;
47 samsung,pbl = <0x08>
48 samsung,burst-map = <0x20>
49 mac-address = [ 00 11 22 33 44 55 ]; /* Filled in by U-Boot */
50 max-frame-size = <9000>;
51 phy-mode = "xgmii";
52 };
53

3. 한국어 전문 번역

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

Samsung SXGBE 필수 속성

1-22

Samsung 10G Ethernet SXGBE의 필수 `compatible`은 `samsung,sxgbe-v2.0a`입니다. `reg`는 register 주소와 길이이며 `interrupts`는 고정 순서의 SXGBE interrupt를 담습니다.

SXGBE interrupt ordering
IndexCountPurpose
01항상 존재하는 SXGBE common interrupt
1-88Variable transmit DMA interrupts
9-2416Variable receive DMA interrupts
251Optional LPI interrupt

원문의 고정 interrupt index 배치를 구조화했습니다.

`phy-mode`는 PHY interface operation mode이며 `sgmii`, `xgmii`를 지원합니다. `samsung,pbl`은 Programmable Burst Length로 1, 2, 4, 8, 16, 32 중 하나입니다.

`samsung,burst-map`은 fixed burst 때 허용할 DMA burst bitmap입니다. 범위는 `0x01-0x3F`이며 이 field를 설정하면 fixed burst가 enable됩니다.

SXGBE 선택 속성

23-29

선택 `max-frame-size`는 최대 frame 크기가 아니라 IEEE가 정의한 Maximum Transfer Unit(MTU)입니다. MAC address는 `ethernet.txt`의 선택 속성으로 결정합니다.

SXGBE 예제

30-52

예제는 common interrupt 209, 이어지는 DMA/LPI interrupt 185-210, PBL 8, burst map `0x20`, U-Boot가 채우는 MAC address, MTU 9000과 XGMII mode를 사용합니다.

aliases {
        ethernet0 = <&sxgbe0>;
};

sxgbe0: ethernet@1a040000 {
        compatible = "samsung,sxgbe-v2.0a";
        reg = <0 0x1a040000 0 0x10000>;
        interrupt-parent = <&gic>;
        interrupts = <0 209 4>, <0 185 4>, <0 186 4>, <0 187 4>,
                     <0 188 4>, <0 189 4>, <0 190 4>, <0 191 4>,
                     <0 192 4>, <0 193 4>, <0 194 4>, <0 195 4>,
                     <0 196 4>, <0 197 4>, <0 198 4>, <0 199 4>,
                     <0 200 4>, <0 201 4>, <0 202 4>, <0 203 4>,
                     <0 204 4>, <0 205 4>, <0 206 4>, <0 207 4>,
                     <0 208 4>, <0 210 4>;
        samsung,pbl = <0x08>
        samsung,burst-map = <0x20>
        mac-address = [ 00 11 22 33 44 55 ]; /* Filled in by U-Boot */
        max-frame-size = <9000>;
        phy-mode = "xgmii";
};