← Documents Documentation/devicetree/bindings/rtc/rtc-cmos.txt GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings / RTC

MC146818 compatible RTC

CMOS RTC의 Register A·B 초기값과 ISA 예제를 설명합니다.

Source pathDocumentation/devicetree/bindings/rtc/rtc-cmos.txt
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

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

1. 요약·해설

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

요약과 해설

rtc-cmos.txt:1-27

RTC 기능과 전원·clock·interrupt 연결을 먼저 해설하고, 접을 수 있는 영어 원문 전체와 원문 줄 좌표를 보존한 한국어 전문 번역을 제공합니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 Motorola mc146818 compatible RTC
2 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3
4 Required properties:
5 - compatible : "motorola,mc146818"
6 - reg : should contain registers location and length.
7
8 Optional properties:
9 - interrupts : should contain interrupt.
10 - ctrl-reg : Contains the initial value of the control register also
11 called "Register B".
12 - freq-reg : Contains the initial value of the frequency register also
13 called "Register A".
14
15 "Register A" and "B" are usually initialized by the firmware (BIOS for
16 instance). If this is not done, it can be performed by the driver.
17
18 ISA Example:
19
20 rtc@70 {
21 compatible = "motorola,mc146818";
22 interrupts = <8 3>;
23 interrupt-parent = <&ioapic1>;
24 ctrl-reg = <2>;
25 freq-reg = <0x26>;
26 reg = <1 0x70 2>;
27 };
28

3. 한국어 전문 번역

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

Motorola MC146818 RTC

1-6

Motorola MC146818 호환 RTC의 필수 `compatible`은 `motorola,mc146818`이며 `reg`에는 register 위치와 길이가 들어갑니다.

선택 속성

7-13

`interrupts`는 RTC interrupt를 지정합니다. `ctrl-reg`는 `Register B`라고도 하는 control register의 초기값이고 `freq-reg`는 `Register A`라고도 하는 frequency register의 초기값입니다.

Register A·B 초기화

14-16

`Register A`와 `Register B`는 보통 BIOS 같은 firmware가 초기화합니다. firmware가 초기화하지 않았다면 드라이버가 수행할 수 있습니다.

ISA RTC 예제

17-27

예제는 I/O APIC interrupt와 함께 control 초기값 2, frequency 초기값 `0x26`, ISA register 범위를 지정합니다.

rtc@70 {
         compatible = "motorola,mc146818";
         interrupts = <8 3>;
         interrupt-parent = <&ioapic1>;
         ctrl-reg = <2>;
         freq-reg = <0x26>;
         reg = <1 0x70 2>;
 };