← Documents Documentation/devicetree/bindings/ptp/timestamper.txt GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings

MII Bus Timestamper

Standalone MII snooping timestamp controller와 PHY channel binding입니다.

Source pathDocumentation/devicetree/bindings/ptp/timestamper.txt
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

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

1. 요약·해설

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

요약과 해설

timestamper.txt:1-42

두 PHY를 서로 다른 timestamp channel에 연결합니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 Time stamps from MII bus snooping devices
2
3 This binding supports non-PHY devices that snoop the MII bus and
4 provide time stamps. In contrast to PHY time stamping drivers (which
5 can simply attach their interface directly to the PHY instance), stand
6 alone MII time stamping drivers use this binding to specify the
7 connection between the snooping device and a given network interface.
8
9 Non-PHY MII time stamping drivers typically talk to the control
10 interface over another bus like I2C, SPI, UART, or via a memory mapped
11 peripheral. This controller device is associated with one or more
12 time stamping channels, each of which snoops on a MII bus.
13
14 The "timestamper" property lives in a phy node and links a time
15 stamping channel from the controller device to that phy's MII bus.
16
17 Example:
18
19 tstamper: timestamper@10000000 {
20 compatible = "ines,ptp-ctrl";
21 reg = <0x10000000 0x80>;
22 };
23
24 ethernet@20000000 {
25 mdio {
26 ethernet-phy@1 {
27 timestamper = <&tstamper 0>;
28 };
29 };
30 };
31
32 ethernet@30000000 {
33 mdio {
34 ethernet-phy@2 {
35 timestamper = <&tstamper 1>;
36 };
37 };
38 };
39
40 In this example, time stamps from the MII bus attached to phy@1 will
41 appear on time stamp channel 0 (zero), and those from phy@2 appear on
42 channel 1.
43

3. 한국어 전문 번역

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

MII snooping timestamper

1-16

이 binding은 MII bus를 snoop해 timestamp를 제공하는 non-PHY device용입니다. PHY timestamp driver와 달리 standalone driver는 snooping device와 network interface 사이 연결을 명시해야 합니다.

Controller는 I2C, SPI, UART 또는 memory-mapped peripheral로 제어되며 하나 이상의 timestamp channel이 각각 MII bus를 snoop합니다. PHY node의 `timestamper` property가 controller channel을 해당 PHY의 MII bus에 연결합니다.

두 PHY channel 예제

17-42

예제는 PHY 1을 channel 0, PHY 2를 channel 1에 연결합니다.

tstamper: timestamper@10000000 {
        compatible = "ines,ptp-ctrl";
        reg = <0x10000000 0x80>;
};

ethernet@20000000 {
        mdio {
                ethernet-phy@1 {
                        timestamper = <&tstamper 0>;
                };
        };
};

ethernet@30000000 {
        mdio {
                ethernet-phy@2 {
                        timestamper = <&tstamper 1>;
                };
        };
};

따라서 `phy@1` MII bus timestamp는 channel 0, `phy@2` timestamp는 channel 1에 나타납니다.