← Documents Documentation/devicetree/bindings/net/can/cc770.txt GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings

Bosch CC770 and Intel AN82527 CAN

CC770/AN82527의 MMIO, interrupt, oscillator와 CLKOUT 설정 binding입니다.

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

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

1. 요약·해설

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

요약과 해설

cc770.txt:1-53

외부 oscillator와 절반 주파수의 내부 clock, 선택적인 CLKOUT과 신호 핀 속성을 구분합니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 Memory mapped Bosch CC770 and Intel AN82527 CAN controller
2
3 Note: The CC770 is a CAN controller from Bosch, which is 100%
4 compatible with the old AN82527 from Intel, but with "bugs" being fixed.
5
6 Required properties:
7
8 - compatible : should be "bosch,cc770" for the CC770 and "intc,82527"
9 for the AN82527.
10
11 - reg : should specify the chip select, address offset and size required
12 to map the registers of the controller. The size is usually 0x80.
13
14 - interrupts : property with a value describing the interrupt source
15 (number and sensitivity) required for the controller.
16
17 Optional properties:
18
19 - bosch,external-clock-frequency : frequency of the external oscillator
20 clock in Hz. Note that the internal clock frequency used by the
21 controller is half of that value. If not specified, a default
22 value of 16000000 (16 MHz) is used.
23
24 - bosch,clock-out-frequency : slock frequency in Hz on the CLKOUT pin.
25 If not specified or if the specified value is 0, the CLKOUT pin
26 will be disabled.
27
28 - bosch,slew-rate : slew rate of the CLKOUT signal. If not specified,
29 a reasonable value will be calculated.
30
31 - bosch,disconnect-rx0-input : see data sheet.
32
33 - bosch,disconnect-rx1-input : see data sheet.
34
35 - bosch,disconnect-tx1-output : see data sheet.
36
37 - bosch,polarity-dominant : see data sheet.
38
39 - bosch,divide-memory-clock : see data sheet.
40
41 - bosch,iso-low-speed-mux : see data sheet.
42
43 For further information, please have a look to the CC770 or AN82527.
44
45 Examples:
46
47 can@3,100 {
48 compatible = "bosch,cc770";
49 reg = <3 0x100 0x80>;
50 interrupts = <2 0>;
51 interrupt-parent = <&mpic>;
52 bosch,external-clock-frequency = <16000000>;
53 };
54

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.

메모리 매핑 CC770과 AN82527

1-16

Bosch CC770은 구형 Intel AN82527과 100% 호환하면서 알려진 버그를 수정한 CAN controller입니다.

`compatible`은 CC770에 `bosch,cc770`, AN82527에 `intc,82527`을 사용합니다. `reg`는 controller register를 매핑하는 chip select, address offset과 크기를 지정하며 크기는 보통 `0x80`입니다.

`interrupts`는 컨트롤러에 필요한 interrupt source의 번호와 sensitivity를 기술합니다.

클록과 신호 선택 속성

17-44

`bosch,external-clock-frequency`는 외부 oscillator clock의 Hz 주파수입니다. 컨트롤러가 사용하는 내부 clock은 이 값의 절반이며, 생략하면 기본값 16000000(16MHz)을 사용합니다.

`bosch,clock-out-frequency`는 CLKOUT pin의 Hz clock frequency입니다. 생략하거나 0이면 CLKOUT을 disable합니다. `bosch,slew-rate`는 CLKOUT signal의 slew rate이며 생략하면 적절한 값을 계산합니다.

`bosch,disconnect-rx0-input`, `bosch,disconnect-rx1-input`, `bosch,disconnect-tx1-output`, `bosch,polarity-dominant`, `bosch,divide-memory-clock`, `bosch,iso-low-speed-mux`의 의미는 data sheet를 참조하십시오.

자세한 내용은 CC770 또는 AN82527 문서를 참조하십시오.

CC770 외부와 내부 클록
External oscillator 16MHz defaultCC770 clock input
CC770 clock inputInternal controller clock /2
CC770 clock inputOptional CLKOUT

컨트롤러 내부 클록은 외부 oscillator 주파수의 절반입니다.

CC770 예제

45-53

예제는 chip select 3, offset `0x100`, 크기 `0x80`에 CC770을 매핑하고 MPIC interrupt 2와 16MHz 외부 clock을 지정합니다.

can@3,100 {
        compatible = "bosch,cc770";
        reg = <3 0x100 0x80>;
        interrupts = <2 0>;
        interrupt-parent = <&mpic>;
        bosch,external-clock-frequency = <16000000>;
};