요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
STMicroelectronics Low Power Controller (LPC) - RTC
===================================================
LPC currently supports Watchdog OR Real Time Clock OR Clocksource
functionality.
[See: ../watchdog/st_lpc_wdt.txt for Watchdog options]
[See: ../timer/st,stih407-lpc for Clocksource options]
Required properties
- compatible : Must be: "st,stih407-lpc"
- reg : LPC registers base address + size
- interrupts : LPC interrupt line number and associated flags
- clocks : Clock used by LPC device (See: ../clock/clock-bindings.txt)
- st,lpc-mode : The LPC can run either one of three modes:
ST_LPC_MODE_RTC [0]
ST_LPC_MODE_WDT [1]
ST_LPC_MODE_CLKSRC [2]
One (and only one) mode must be selected.
Example:
lpc@fde05000 {
compatible = "st,stih407-lpc";
reg = <0xfde05000 0x1000>;
clocks = <&clk_s_d3_flexgen CLK_LPC_0>;
st,lpc-mode = <ST_LPC_MODE_RTC>;
};
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
ST LPC RTC 기능
1-8STMicroelectronics LPC는 현재 Watchdog, Real Time Clock, Clocksource 가운데 하나의 기능을 지원합니다. Watchdog 선택 사항은 `../watchdog/st_lpc_wdt.txt`, Clocksource 선택 사항은 `../timer/st,stih407-lpc`를 참조합니다.
필수 속성과 mode
9-20`compatible`은 `st,stih407-lpc`, `reg`는 LPC register 시작 주소와 크기, `interrupts`는 interrupt line 번호와 flag, `clocks`는 LPC 장치가 사용하는 clock입니다.
`st,lpc-mode`에는 `ST_LPC_MODE_RTC` 0, `ST_LPC_MODE_WDT` 1, `ST_LPC_MODE_CLKSRC` 2 가운데 정확히 하나의 mode만 선택해야 합니다.
ST LPC RTC 예제
21-28예제는 `0xfde05000`의 4KiB LPC register area와 `CLK_LPC_0` clock을 연결하고 RTC mode를 선택합니다.
lpc@fde05000 {
compatible = "st,stih407-lpc";
reg = <0xfde05000 0x1000>;
clocks = <&clk_s_d3_flexgen CLK_LPC_0>;
st,lpc-mode = <ST_LPC_MODE_RTC>;
};
요약과 해설
rtc-st-lpc.txt:1-28RTC 기능과 전원·clock·interrupt 연결을 먼저 해설하고, 접을 수 있는 영어 원문 전체와 원문 줄 좌표를 보존한 한국어 전문 번역을 제공합니다.