요약·해설, 영어 원문, 전체 번역을 구분해 실었습니다. API 이름, 코드 심벌, 소스 경로는 원문 표기를 유지합니다.
1. 요약·해설
원문의 핵심 내용을 정리하고 커널 프로그래밍에 필요한 설명을 덧붙였습니다. 아래의 전체 번역과는 별도로 작성한 해설입니다.
2. 영어 원문 전체
번역에 사용한 Linux v6.18.37 원문입니다. 줄 번호는 해당 버전의 소스 파일을 기준으로 합니다.
원문 전체 펼치기
STMicroelectronics Low Power Controller (LPC) - Watchdog
========================================================
LPC currently supports Watchdog OR Real Time Clock OR Clocksource
functionality.
[See: ../rtc/rtc-st-lpc.txt for RTC options]
[See: ../timer/st,stih407-lpc for Clocksource options]
Required properties
- compatible : Should 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.
Required properties [watchdog mode]
- st,syscfg : Phandle to syscfg node used to enable watchdog and configure
CPU reset type.
- timeout-sec : Watchdog timeout in seconds
Optional properties [watchdog mode]
- st,warm-reset : If present reset type will be 'warm' - if not it will be cold
Example:
lpc@fde05000 {
compatible = "st,stih407-lpc";
reg = <0xfde05000 0x1000>;
clocks = <&clk_s_d3_flexgen CLK_LPC_0>;
st,syscfg = <&syscfg_core>;
timeout-sec = <120>;
st,lpc-mode = <ST_LPC_MODE_WDT>;
st,warm-reset;
};
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미에 맞춰 전체 내용을 번역했습니다. 코드, 함수명, 코드 심벌, URL은 원문 표기를 유지합니다.
ST 저전력 컨트롤러의 동작 모드
1-9이 문서는 STMicroelectronics Low Power Controller(LPC)의 watchdog 바인딩을 설명합니다. LPC는 watchdog, Real Time Clock(RTC), clocksource 기능 가운데 하나로 동작할 수 있습니다.
RTC 선택 사항은 `../rtc/rtc-st-lpc.txt`를, clocksource 선택 사항은 `../timer/st,stih407-lpc`를 참고합니다.
공통 필수 속성과 단일 모드 선택
10-21`compatible`은 `st,stih407-lpc`여야 합니다. `reg`는 LPC 레지스터의 기준 주소와 크기, `interrupts`는 LPC 인터럽트 선 번호와 관련 플래그, `clocks`는 LPC 장치가 사용하는 클록을 지정합니다.
`st,lpc-mode`는 `ST_LPC_MODE_RTC`(0), `ST_LPC_MODE_WDT`(1), `ST_LPC_MODE_CLKSRC`(2) 가운데 하나를 선택합니다. 세 모드 중 반드시 하나만 선택해야 합니다.
Required properties
- compatible : Should 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.
watchdog 모드 전용 속성
22-31watchdog 모드에서는 `st,syscfg`와 `timeout-sec`가 필수입니다. `st,syscfg`는 watchdog을 활성화하고 CPU reset 유형을 구성하는 데 쓰는 syscfg 노드의 phandle이며, `timeout-sec`는 초 단위 watchdog timeout입니다.
선택 속성 `st,warm-reset`이 있으면 reset 유형은 warm reset이고, 없으면 cold reset입니다.
Required properties [watchdog mode]
- st,syscfg : Phandle to syscfg node used to enable watchdog and configure
CPU reset type.
- timeout-sec : Watchdog timeout in seconds
Optional properties [watchdog mode]
- st,warm-reset : If present reset type will be 'warm' - if not it will be cold
STiH407 watchdog 예제
32-41예제는 주소 `0xfde05000`, 크기 `0x1000`의 LPC를 `ST_LPC_MODE_WDT`로 선택합니다. `clk_s_d3_flexgen`의 `CLK_LPC_0`, `syscfg_core`, 120초 timeout을 연결하고 `st,warm-reset`으로 warm reset을 요청합니다.
Example:
lpc@fde05000 {
compatible = "st,stih407-lpc";
reg = <0xfde05000 0x1000>;
clocks = <&clk_s_d3_flexgen CLK_LPC_0>;
st,syscfg = <&syscfg_core>;
timeout-sec = <120>;
st,lpc-mode = <ST_LPC_MODE_WDT>;
st,warm-reset;
};
요약과 해설
st_lpc_wdt.txt:1-41ST LPC의 세 동작 모드와 watchdog 전용 syscfg, timeout, warm reset 설정을 설명합니다. 접을 수 있는 영어 원문 전체와 한국어 전문 번역을 함께 제공하며, compatible, register, clock, interrupt, reset, timeout과 예제는 원문 줄 좌표를 원형대로 보존합니다.