요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
Binding for the LTC2952 PowerPath controller
This chip is used to externally trigger a system shut down. Once the trigger has
been sent, the chip's watchdog has to be reset to gracefully shut down.
A full powerdown can be triggered via the kill signal.
Required properties:
- compatible: Must contain: "lltc,ltc2952"
- watchdog-gpios: phandle + gpio-specifier for the GPIO connected to the
chip's watchdog line
- kill-gpios: phandle + gpio-specifier for the GPIO connected to the
chip's kill line
Optional properties:
- trigger-gpios: phandle + gpio-specifier for the GPIO connected to the
chip's trigger line. If this property is not set, the
trigger function is ignored and the chip is kept alive
until an explicit kill signal is received
- trigger-delay-ms The number of milliseconds to wait after trigger line
assertion before executing shut down procedure.
The default is 2500ms.
Example:
ltc2952 {
compatible = "lltc,ltc2952";
trigger-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
trigger-delay-ms = <2000>;
watchdog-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
kill-gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
};
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
LTC2952 PowerPath 종료 절차
1-6LTC2952는 외부에서 system shutdown을 trigger하는 chip입니다. Trigger가 전달된 뒤 graceful shutdown을 위해 chip의 watchdog을 reset해야 하며, kill signal을 사용하면 완전한 powerdown을 일으킬 수 있습니다.
GPIO와 trigger delay
7-23필수 `compatible`은 `lltc,ltc2952`입니다. `watchdog-gpios`는 chip watchdog line에 연결된 GPIO의 phandle과 gpio-specifier이고 `kill-gpios`는 kill line에 연결된 GPIO의 phandle과 specifier입니다.
선택적 `trigger-gpios`는 trigger line GPIO를 지정합니다. 이 property가 없으면 trigger 기능을 무시하고 explicit kill signal을 받을 때까지 chip을 계속 살려 둡니다.
`trigger-delay-ms`는 trigger line assertion 후 shutdown procedure를 실행하기 전에 기다릴 millisecond 수이며 기본값은 2500ms입니다.
Active-low trigger·kill 예제
24-33예제는 active-low trigger와 kill, active-high watchdog을 연결하고 trigger delay를 2000ms로 설정합니다.
ltc2952 {
compatible = "lltc,ltc2952";
trigger-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
trigger-delay-ms = <2000>;
watchdog-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
kill-gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
};
요약과 해설
ltc2952-poweroff.txt:1-33Trigger 이후 watchdog 처리와 kill signal, 기본 2500ms delay를 설명합니다.