요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
1
Hisilicon Fast Ethernet MDIO Controller interface
3
Required properties:
4
- compatible: should be "hisilicon,hisi-femac-mdio".
5
- reg: address and length of the register set for the device.
6
- clocks: A phandle to the reference clock for this device.
8
- PHY subnode: inherits from phy binding [1]
9
[1] Documentation/devicetree/bindings/net/phy.txt
11
Example:
12
mdio: mdio@10091100 {
13
compatible = "hisilicon,hisi-femac-mdio";
14
reg = <0x10091100 0x10>;
15
clocks = <&crg HI3516CV300_MDIO_CLK>;
16
#address-cells = <1>;
17
#size-cells = <0>;
19
phy0: phy@1 {
20
reg = <1>;
21
};
22
};
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
Hisilicon Fast Ethernet MDIO
1-10필수 `compatible`은 `hisilicon,hisi-femac-mdio`입니다. `reg`는 장치 register set의 주소와 길이이고 `clocks`는 장치 reference clock의 phandle입니다.
PHY subnode는 `[1] Documentation/devicetree/bindings/net/phy.txt`의 PHY binding을 상속합니다.
HI3516CV300 MDIO 예제
11-22예제는 `0x10091100`의 16-byte MDIO register와 `HI3516CV300_MDIO_CLK`를 연결하고 MDIO 주소 1에 `phy0`을 둡니다.
mdio: mdio@10091100 {
compatible = "hisilicon,hisi-femac-mdio";
reg = <0x10091100 0x10>;
clocks = <&crg HI3516CV300_MDIO_CLK>;
#address-cells = <1>;
#size-cells = <0>;
phy0: phy@1 {
reg = <1>;
};
};
요약과 해설
hisilicon-femac-mdio.txt:1-22Reference clock과 MDIO 주소 1의 PHY 예제를 설명합니다.