← Documents Documentation/devicetree/bindings/extcon/extcon-palmas.txt GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings

Palmas/TWL USB Comparator Extcon

Palmas/TWL USB ID, VBUS와 wakeup comparator 바인딩입니다.

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

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

1. 요약·해설

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

요약과 해설

extcon-palmas.txt:1-22

GPIO 또는 OTG core를 통한 ID detection과 VBUS detection을 설명합니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 EXTCON FOR PALMAS/TWL CHIPS
2
3 PALMAS USB COMPARATOR
4 Required Properties:
5 - compatible: should contain one of:
6 * "ti,palmas-usb-vid".
7 * "ti,twl6035-usb-vid".
8 * "ti,palmas-usb" (DEPRECATED - use "ti,palmas-usb-vid").
9 * "ti,twl6035-usb" (DEPRECATED - use "ti,twl6035-usb-vid").
10
11 Optional Properties:
12 - ti,wakeup : To enable the wakeup comparator in probe
13 - ti,enable-id-detection: Perform ID detection. If id-gpio is specified
14 it performs id-detection using GPIO else using OTG core.
15 - ti,enable-vbus-detection: Perform VBUS detection.
16 - id-gpio: gpio for GPIO ID detection. See gpio binding.
17 - debounce-delay-ms: debounce delay for GPIO ID pin in milliseconds.
18
19 palmas-usb {
20 compatible = "ti,twl6035-usb", "ti,palmas-usb";
21 ti,wakeup;
22 };
23

3. 한국어 전문 번역

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

Palmas/TWL USB comparator 속성

1-18

Palmas/TWL chip의 USB comparator extcon입니다. `compatible`은 `ti,palmas-usb-vid` 또는 `ti,twl6035-usb-vid`를 사용합니다. `ti,palmas-usb`와 `ti,twl6035-usb`는 폐기되었으며 각각 `-vid` 형식을 사용해야 합니다.

선택 `ti,wakeup`은 probe 때 wakeup comparator를 활성화합니다. `ti,enable-id-detection`은 ID detection을 수행하며 `id-gpio`가 있으면 GPIO를, 없으면 OTG core를 사용합니다. `ti,enable-vbus-detection`은 VBUS detection을 수행합니다.

`id-gpio`는 GPIO ID detection에 사용할 GPIO이며 GPIO binding을 따릅니다. `debounce-delay-ms`는 GPIO ID pin의 debounce delay를 millisecond 단위로 지정합니다.

Palmas USB cable 감지
ti,enable-id-detectionID detection 활성화
id-gpio presentGPIO ID path
id-gpio absentOTG core ID path
ti,enable-vbus-detectionVBUS detection

선택 속성에 따른 ID와 VBUS 감지 경로를 나타냅니다.

Palmas USB 예제

19-22

예제는 폐기된 `ti,twl6035-usb`, `ti,palmas-usb` compatible 조합과 `ti,wakeup`을 사용합니다. 새 DTS에서는 `ti,twl6035-usb-vid` 또는 `ti,palmas-usb-vid`를 사용해야 합니다.

palmas-usb {
       compatible = "ti,twl6035-usb", "ti,palmas-usb";
       ti,wakeup;
};