요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
Hisilicon MDIO bus controller
Properties:
- compatible: can be one of:
"hisilicon,hns-mdio"
"hisilicon,mdio"
"hisilicon,hns-mdio" is recommended to be used for hip05 and later SOCs,
while "hisilicon,mdio" is optional for backwards compatibility only on
hip04 Soc.
- reg: The base address of the MDIO bus controller register bank.
- #address-cells: Must be <1>.
- #size-cells: Must be <0>. MDIO addresses have no size component.
Typically an MDIO bus might have several children.
Example:
mdio@803c0000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "hisilicon,hns-mdio","hisilicon,mdio";
reg = <0x0 0x803c0000 0x0 0x10000>;
ethernet-phy@0 {
...
reg = <0>;
};
};
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
Hisilicon HNS MDIO bus
1-15`compatible`은 `hisilicon,hns-mdio` 또는 `hisilicon,mdio`입니다. HIP05 이후 SoC에는 `hisilicon,hns-mdio` 사용을 권장하고 `hisilicon,mdio`는 HIP04의 이전 버전 호환에만 선택적으로 사용합니다.
`reg`는 MDIO bus controller register bank의 base address입니다. `#address-cells`는 `<1>`, `#size-cells`는 `<0>`이어야 하며 MDIO address에는 size 성분이 없습니다. 일반적으로 한 bus에 여러 child를 둘 수 있습니다.
HNS MDIO 예제
16-27예제는 두 compatible을 함께 사용해 `0x803c0000`의 `0x10000` byte controller를 선언하고 MDIO 주소 0에 Ethernet PHY를 둡니다.
mdio@803c0000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "hisilicon,hns-mdio","hisilicon,mdio";
reg = <0x0 0x803c0000 0x0 0x10000>;
ethernet-phy@0 {
...
reg = <0>;
};
};
요약과 해설
hisilicon-hns-mdio.txt:1-27권장 HNS 문자열과 HIP04 호환 문자열의 사용 범위를 구분합니다.