← Documents Documentation/devicetree/bindings/net/can/mpc5xxx-mscan.txt GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings

Freescale MPC5xxx MSCAN

MPC5200/MPC5121 MSCAN의 clock source 선택과 divider binding입니다.

Source pathDocumentation/devicetree/bindings/net/can/mpc5xxx-mscan.txt
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.

1. 요약·해설

원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.

요약과 해설

mpc5xxx-mscan.txt:1-53

MPC5200의 ip/ref 선택과 MPC5121의 ip/ref/sys 자동 선택 및 divider 차이를 비교합니다.

2. 영어 원문 전체

번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.

원문 전체 펼치기
1 CAN Device Tree Bindings
2 ------------------------
3
4 (c) 2006-2009 Secret Lab Technologies Ltd
5 Grant Likely <grant.likely@secretlab.ca>
6
7 fsl,mpc5200-mscan nodes
8 -----------------------
9 In addition to the required compatible-, reg- and interrupt-properties, you can
10 also specify which clock source shall be used for the controller:
11
12 - fsl,mscan-clock-source : a string describing the clock source. Valid values
13 are: "ip" for ip bus clock
14 "ref" for reference clock (XTAL)
15 "ref" is default in case this property is not
16 present.
17
18 fsl,mpc5121-mscan nodes
19 -----------------------
20 In addition to the required compatible-, reg- and interrupt-properties, you can
21 also specify which clock source and divider shall be used for the controller:
22
23 - fsl,mscan-clock-source : a string describing the clock source. Valid values
24 are: "ip" for ip bus clock
25 "ref" for reference clock
26 "sys" for system clock
27 If this property is not present, an optimal CAN
28 clock source and frequency based on the system
29 clock will be selected. If this is not possible,
30 the reference clock will be used.
31
32 - fsl,mscan-clock-divider: for the reference and system clock, an additional
33 clock divider can be specified. By default, a
34 value of 1 is used.
35
36 Note that the MPC5121 Rev. 1 processor is not supported.
37
38 Examples:
39 can@1300 {
40 compatible = "fsl,mpc5121-mscan";
41 interrupts = <12 0x8>;
42 interrupt-parent = <&ipic>;
43 reg = <0x1300 0x80>;
44 };
45
46 can@1380 {
47 compatible = "fsl,mpc5121-mscan";
48 interrupts = <13 0x8>;
49 interrupt-parent = <&ipic>;
50 reg = <0x1380 0x80>;
51 fsl,mscan-clock-source = "ref";
52 fsl,mscan-clock-divider = <3>;
53 };
54

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-36

MPC5121 노드도 필수 `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는 지원하지 않습니다.

MPC5xxx MSCAN clock source
SoCsource기본 동작
MPC5200ip, refref
MPC5121ip, ref, syssystem clock 기반 최적 선택

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>;
};