요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
The Broadcom BCM87XX devices are a family of 10G Ethernet PHYs. They
have these bindings in addition to the standard PHY bindings.
Compatible: Should contain "broadcom,bcm8706" or "broadcom,bcm8727" and
"ethernet-phy-ieee802.3-c45"
Optional Properties:
- broadcom,c45-reg-init : one of more sets of 4 cells. The first cell
is the MDIO Manageable Device (MMD) address, the second a register
address within the MMD, the third cell contains a mask to be ANDed
with the existing register value, and the fourth cell is ORed with
he result to yield the new register value. If the third cell has a
value of zero, no read of the existing value is performed.
Example:
ethernet-phy@5 {
reg = <5>;
compatible = "broadcom,bcm8706", "ethernet-phy-ieee802.3-c45";
interrupt-parent = <&gpio>;
interrupts = <12 8>; /* Pin 12, active low */
/*
* Set PMD Digital Control Register for
* GPIO[1] Tx/Rx
* GPIO[0] R64 Sync Acquired
*/
broadcom,c45-reg-init = <1 0xc808 0xff8f 0x70>;
};
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
Broadcom BCM87XX 10G Ethernet PHY
1-6Broadcom BCM87XX 장치는 10G Ethernet PHY 제품군입니다. 표준 PHY binding에 더해 이 문서의 속성을 사용합니다.
`compatible`에는 `broadcom,bcm8706` 또는 `broadcom,bcm8727`과 `ethernet-phy-ieee802.3-c45`가 들어가야 합니다.
Clause 45 레지스터 초기화
7-15선택 속성 `broadcom,c45-reg-init`는 하나 이상의 4-cell 집합입니다. 첫 번째 cell은 MDIO Manageable Device(MMD) 주소, 두 번째는 MMD 안의 레지스터 주소입니다.
세 번째 cell의 mask를 기존 레지스터 값과 AND하고 네 번째 cell을 그 결과와 OR하여 새 레지스터 값을 만듭니다. 세 번째 cell이 0이면 기존 값을 읽지 않습니다.
각 초기화 항목은 네 cell로 구성됩니다.
BCM8706 PHY 예제
16-29예제는 MDIO 주소 5의 BCM8706 PHY와 active-low GPIO interrupt를 선언합니다. MMD 1의 PMD Digital Control Register `0xc808`을 mask `0xff8f`, OR 값 `0x70`으로 갱신해 GPIO[1] Tx/Rx와 GPIO[0] R64 Sync Acquired 기능을 설정합니다.
ethernet-phy@5 {
reg = <5>;
compatible = "broadcom,bcm8706", "ethernet-phy-ieee802.3-c45";
interrupt-parent = <&gpio>;
interrupts = <12 8>; /* Pin 12, active low */
/*
* Set PMD Digital Control Register for
* GPIO[1] Tx/Rx
* GPIO[0] R64 Sync Acquired
*/
broadcom,c45-reg-init = <1 0xc808 0xff8f 0x70>;
};
요약과 해설
broadcom-bcm87xx.txt:1-29MMD 주소, register 주소, AND mask, OR 값으로 구성된 4-cell 초기화 연산을 해설합니다.