요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
CAN Device Tree Bindings
------------------------
(c) 2006-2009 Secret Lab Technologies Ltd
Grant Likely <grant.likely@secretlab.ca>
fsl,mpc5200-mscan nodes
-----------------------
In addition to the required compatible-, reg- and interrupt-properties, you can
also specify which clock source shall be used for the controller:
- fsl,mscan-clock-source : a string describing the clock source. Valid values
are: "ip" for ip bus clock
"ref" for reference clock (XTAL)
"ref" is default in case this property is not
present.
fsl,mpc5121-mscan nodes
-----------------------
In addition to the required compatible-, reg- and interrupt-properties, you can
also specify which clock source and divider shall be used for the controller:
- fsl,mscan-clock-source : a string describing the clock source. Valid values
are: "ip" for ip bus clock
"ref" for reference clock
"sys" for system clock
If this property is not present, an optimal CAN
clock source and frequency based on the system
clock will be selected. If this is not possible,
the reference clock will be used.
- fsl,mscan-clock-divider: for the reference and system clock, an additional
clock divider can be specified. By default, a
value of 1 is used.
Note that the MPC5121 Rev. 1 processor is not supported.
Examples:
can@1300 {
compatible = "fsl,mpc5121-mscan";
interrupts = <12 0x8>;
interrupt-parent = <&ipic>;
reg = <0x1300 0x80>;
};
can@1380 {
compatible = "fsl,mpc5121-mscan";
interrupts = <13 0x8>;
interrupt-parent = <&ipic>;
reg = <0x1380 0x80>;
fsl,mscan-clock-source = "ref";
fsl,mscan-clock-divider = <3>;
};
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
Freescale MSCAN binding
1-6이 문서는 CAN Device Tree binding이며 저작권은 2006-2009 Secret Lab Technologies Ltd에 있고 작성자는 Grant Likely `<grant.likely@secretlab.ca>`입니다.
fsl,mpc5200-mscan 노드
7-17필수 `compatible`, `reg`, `interrupts` 외에 controller의 clock source를 선택할 수 있습니다.
`fsl,mscan-clock-source`는 clock source를 나타내는 문자열입니다. `ip`는 IP bus clock, `ref`는 reference clock(XTAL)을 뜻하며 속성이 없을 때 기본값은 `ref`입니다.
fsl,mpc5121-mscan 노드
18-36MPC5121 노드도 필수 `compatible`, `reg`, `interrupts` 외에 controller가 사용할 clock source와 divider를 지정할 수 있습니다.
`fsl,mscan-clock-source`의 유효한 값은 IP bus clock의 `ip`, reference clock의 `ref`, system clock의 `sys`입니다. 속성이 없으면 system clock을 바탕으로 최적의 CAN clock source와 frequency를 선택하고, 가능하지 않으면 reference clock을 사용합니다.
`fsl,mscan-clock-divider`는 reference clock과 system clock에 적용할 추가 divider이며 기본값은 1입니다. MPC5121 Rev. 1 processor는 지원하지 않습니다.
SoC 세대에 따라 선택할 수 있는 clock source가 다릅니다.
MPC5121 MSCAN 예제
37-53첫 예제는 offset `0x1300`, interrupt 12의 기본 clock 선택을 사용합니다. 두 번째는 offset `0x1380`, interrupt 13에서 reference clock과 divider 3을 명시합니다. 두 register window의 크기는 모두 `0x80`입니다.
can@1300 {
compatible = "fsl,mpc5121-mscan";
interrupts = <12 0x8>;
interrupt-parent = <&ipic>;
reg = <0x1300 0x80>;
};
can@1380 {
compatible = "fsl,mpc5121-mscan";
interrupts = <13 0x8>;
interrupt-parent = <&ipic>;
reg = <0x1380 0x80>;
fsl,mscan-clock-source = "ref";
fsl,mscan-clock-divider = <3>;
};
요약과 해설
mpc5xxx-mscan.txt:1-53MPC5200의 ip/ref 선택과 MPC5121의 ip/ref/sys 자동 선택 및 divider 차이를 비교합니다.