← Documents Documentation/ABI/testing/sysfs-driver-typec-displayport GitHub 원문 ↗

Linux 6.18.37 · ABI / testing

USB Type-C DisplayPort Alt Mode sysfs ABI

USB Type-C DisplayPort Alt Mode connector의 USB/source/sink configuration, pin assignment, HPD state와 driver-lifetime IRQ_HPD count를 설명합니다.

Source pathDocumentation/ABI/testing/sysfs-driver-typec-displayport
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

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

1. 요약·해설

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

DisplayPort configuration and pin assignment

sysfs-driver-typec-displayport:1-50

지원 configuration과 A~F pin assignments를 공백 목록으로 표시하고 active 값을 대괄호로 감싸며, file write로 선택을 변경합니다.

HPD state and IRQ count

sysfs-driver-typec-displayport:51-74

hpd는 current HPD logical state를 0/1로, irq_hpd는 driver lifetime 동안 발생한 IRQ_HPD events의 누적 수를 read-only로 반환합니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 What: /sys/bus/typec/devices/.../displayport/configuration
2 Date: July 2018
3 Contact: Heikki Krogerus <[email protected]>
4 Description:
5 Shows the current DisplayPort configuration for the connector.
6 Valid values are USB, source and sink. Source means DisplayPort
7 source, and sink means DisplayPort sink.
8
9 All supported configurations are listed as space separated list
10 with the active one wrapped in square brackets.
11
12 Source example:
13
14 USB [source] sink
15
16 The configuration can be changed by writing to the file
17
18 Note. USB configuration does not equal to Exit Mode. It is
19 separate configuration defined in VESA DisplayPort Alt Mode on
20 USB Type-C Standard. Functionally it equals to the situation
21 where the mode has been exited (to exit the mode, see
22 Documentation/ABI/testing/sysfs-bus-typec, and use file
23 /sys/bus/typec/devices/.../active).
24
25 What: /sys/bus/typec/devices/.../displayport/pin_assignment
26 Date: July 2018
27 Contact: Heikki Krogerus <[email protected]>
28 Description:
29 VESA DisplayPort Alt Mode on USB Type-C Standard defines six
30 different pin assignments for USB Type-C connector that are
31 labeled A, B, C, D, E, and F. The supported pin assignments are
32 listed as space separated list with the active one wrapped in
33 square brackets.
34
35 Example:
36
37 C [D]
38
39 Pin assignment can be changed by writing to the file. It is
40 possible to set pin assignment before configuration has been
41 set, but the assignment will not be active before the
42 connector is actually configured.
43
44 Note. As of VESA DisplayPort Alt Mode on USB Type-C Standard
45 version 1.0b, pin assignments A, B, and F are deprecated. Only
46 pin assignment D can now carry simultaneously one channel of
47 USB SuperSpeed protocol. From user perspective pin assignments C
48 and E are equal, where all channels on the connector are used
49 for carrying DisplayPort protocol (allowing higher resolutions).
50
51 What: /sys/bus/typec/devices/.../displayport/hpd
52 Date: Dec 2022
53 Contact: Badhri Jagan Sridharan <[email protected]>
54 Description:
55 VESA DisplayPort Alt Mode on USB Type-C Standard defines how
56 HotPlugDetect(HPD) shall be supported on the USB-C connector when
57 operating in DisplayPort Alt Mode. This is a read only node which
58 reflects the current state of HPD.
59
60 Valid values:
61 - 1: when HPD’s logical state is high (HPD_High) as defined
62 by VESA DisplayPort Alt Mode on USB Type-C Standard.
63 - 0 when HPD’s logical state is low (HPD_Low) as defined by
64 VESA DisplayPort Alt Mode on USB Type-C Standard.
65
66 What: /sys/bus/typec/devices/.../displayport/irq_hpd
67 Date: June 2025
68 Contact: RD Babiera <[email protected]>
69 Description:
70 IRQ_HPD events are sent over the USB PD protocol in Status Update and
71 Attention messages. IRQ_HPD can only be asserted when HPD is high,
72 and is asserted when an IRQ_HPD has been issued since the last Status
73 Update. This is a read only node that returns the number of IRQ events
74 raised in the driver's lifetime.
75

3. 한국어 전문 번역

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

DisplayPort connector configuration

1-24
항목한국어 전문 번역
What/sys/bus/typec/devices/.../displayport/configuration
Date2018년 7월
ContactHeikki Krogerus <[email protected]>
DescriptionConnector의 current DisplayPort configuration을 표시합니다. Valid values는 USB, source, sink이며 source는 DisplayPort source, sink는 DisplayPort sink입니다. 지원되는 모든 configurations를 space-separated list로 표시하고 active configuration은 square brackets로 감쌉니다. File에 써서 configuration을 변경할 수 있습니다. USB configuration은 Exit Mode와 같지 않고 VESA DisplayPort Alt Mode on USB Type-C Standard가 정의한 별도 configuration입니다. 기능상 mode를 exit한 상황과 같지만 mode exit에는 Documentation/ABI/testing/sysfs-bus-typec의 /sys/bus/typec/devices/.../active file을 사용합니다.
AccessRead-write
ValuesUSB, source, sink
DisplayPort connector configurations
ValueMeaningNote
USBUSB configurationSeparate from Exit Mode
sourceDisplayPort sourceActive item appears in brackets
sinkDisplayPort sinkActive item appears in brackets

USB, DisplayPort source와 sink roles를 구분합니다.

USB [source] sink

DisplayPort pin assignment

25-50
항목한국어 전문 번역
What/sys/bus/typec/devices/.../displayport/pin_assignment
Date2018년 7월
ContactHeikki Krogerus <[email protected]>
DescriptionVESA DisplayPort Alt Mode on USB Type-C Standard는 connector의 pin assignments A, B, C, D, E, F를 정의합니다. 지원 assignments는 space-separated list로 표시하고 active item은 square brackets로 감쌉니다. File에 써서 assignment를 변경할 수 있습니다. Configuration을 설정하기 전에 assignment를 설정할 수 있지만 connector가 실제로 configured되기 전에는 active하지 않습니다. Standard version 1.0b 기준으로 A, B, F는 deprecated되었습니다. 현재 D만 USB SuperSpeed protocol 한 channel을 동시에 전달할 수 있습니다. User 관점에서 C와 E는 connector의 모든 channels를 DisplayPort protocol에 사용하므로 같고 더 높은 resolution을 허용합니다.
AccessRead-write
ValuesA, B, C, D, E, F
DisplayPort pin-assignment status
AssignmentsStatus / behavior
A, B, FDeprecated in version 1.0b
DCan simultaneously carry one USB SuperSpeed channel
C, EAll channels carry DisplayPort; equivalent to users

Version 1.0b의 deprecation과 USB SuperSpeed coexistence를 정리했습니다.

C [D]

DisplayPort HotPlugDetect state

51-65
항목한국어 전문 번역
What/sys/bus/typec/devices/.../displayport/hpd
Date2022년 12월
ContactBadhri Jagan Sridharan <[email protected]>
DescriptionVESA DisplayPort Alt Mode on USB Type-C Standard가 DisplayPort Alt Mode 동작 중 USB-C connector에서 지원하도록 정의한 HotPlugDetect(HPD)의 current state를 반영하는 read-only node입니다. 1은 HPD logical state high(HPD_High), 0은 low(HPD_Low)입니다.
AccessRead-only
Values1 = HPD_High; 0 = HPD_Low
DisplayPort HPD and IRQ_HPD relationship
Read hpd logical stateHPD must be high before IRQ_HPD can be assertedIRQ_HPD arrives in USB PD Status Update or Attention messageRead irq_hpd for driver-lifetime IRQ event count

IRQ_HPD assertion은 HPD high 상태에서만 가능합니다.

DisplayPort IRQ_HPD event count

66-74
항목한국어 전문 번역
What/sys/bus/typec/devices/.../displayport/irq_hpd
Date2025년 6월
ContactRD Babiera <[email protected]>
DescriptionIRQ_HPD events는 USB PD protocol의 Status Update와 Attention messages로 전달됩니다. IRQ_HPD는 HPD가 high일 때만 assert될 수 있고 마지막 Status Update 이후 IRQ_HPD가 issued되었을 때 assert됩니다. Driver lifetime 동안 발생한 IRQ events 수를 반환하는 read-only node입니다.
AccessRead-only