요약·해설, 영어 원문, 전체 번역을 구분해 실었습니다. API 이름, 코드 심벌, 소스 경로는 원문 표기를 유지합니다.
1. 요약·해설
원문의 핵심 내용을 정리하고 커널 프로그래밍에 필요한 설명을 덧붙였습니다. 아래의 전체 번역과는 별도로 작성한 해설입니다.
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. 한국어 전문 번역
영어 원문의 문단 순서와 의미에 맞춰 전체 내용을 번역했습니다. 코드, 함수명, 코드 심벌, 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 예제를 설명합니다.