← Documents Documentation/devicetree/bindings/watchdog/st_lpc_wdt.txt GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings / Watchdog

STMicroelectronics LPC Watchdog

ST LPC의 세 동작 모드와 watchdog 전용 syscfg, timeout, warm reset 설정을 설명합니다.

Source pathDocumentation/devicetree/bindings/watchdog/st_lpc_wdt.txt
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

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

1. 요약·해설

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

요약과 해설

st_lpc_wdt.txt:1-41

ST LPC의 세 동작 모드와 watchdog 전용 syscfg, timeout, warm reset 설정을 설명합니다. 접을 수 있는 영어 원문 전체와 한국어 전문 번역을 함께 제공하며, compatible, register, clock, interrupt, reset, timeout과 예제는 원문 줄 좌표를 원형대로 보존합니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 STMicroelectronics Low Power Controller (LPC) - Watchdog
2 ========================================================
3
4 LPC currently supports Watchdog OR Real Time Clock OR Clocksource
5 functionality.
6
7 [See: ../rtc/rtc-st-lpc.txt for RTC options]
8 [See: ../timer/st,stih407-lpc for Clocksource options]
9
10 Required properties
11
12 - compatible : Should be: "st,stih407-lpc"
13 - reg : LPC registers base address + size
14 - interrupts : LPC interrupt line number and associated flags
15 - clocks : Clock used by LPC device (See: ../clock/clock-bindings.txt)
16 - st,lpc-mode : The LPC can run either one of three modes:
17 ST_LPC_MODE_RTC [0]
18 ST_LPC_MODE_WDT [1]
19 ST_LPC_MODE_CLKSRC [2]
20 One (and only one) mode must be selected.
21
22 Required properties [watchdog mode]
23
24 - st,syscfg : Phandle to syscfg node used to enable watchdog and configure
25 CPU reset type.
26 - timeout-sec : Watchdog timeout in seconds
27
28 Optional properties [watchdog mode]
29
30 - st,warm-reset : If present reset type will be 'warm' - if not it will be cold
31
32 Example:
33 lpc@fde05000 {
34 compatible = "st,stih407-lpc";
35 reg = <0xfde05000 0x1000>;
36 clocks = <&clk_s_d3_flexgen CLK_LPC_0>;
37 st,syscfg = <&syscfg_core>;
38 timeout-sec = <120>;
39 st,lpc-mode = <ST_LPC_MODE_WDT>;
40 st,warm-reset;
41 };
42

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 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-31

watchdog 모드에서는 `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;
        };