Skip to content

Commit fc06bf1

Browse files
committed
drm: Add SPI connector type
tinydrm drivers announce DRM_MODE_CONNECTOR_VIRTUAL for its SPI drivers. Add a SPI connector type to match the actual connector. X will list the connector as Unknown: X.Org X Server 1.19.2 Release Date: 2017-03-02 <...> [ 53523.905] (II) modeset(0): Output Unknown19-1 has no monitor section [ 53523.908] (II) modeset(0): EDID for output Unknown19-1 [ 53523.910] (II) modeset(0): Printing probed modes for output Unknown19-1 [ 53523.911] (II) modeset(0): Modeline "320x240"x0.0 0.00 320 320 320 320 240 240 240 240 (0.0 kHz eP) [ 53523.911] (II) modeset(0): Output Unknown19-1 connected [ 53523.912] (II) modeset(0): Using exact sizes for initial modes [ 53523.912] (II) modeset(0): Output Unknown19-1 using initial mode 320x240 +0+0 The weston source shows that it will be listed as UNNAMED. v2: Split patch in core and driver changes, expand commit message (Daniel) Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Sam Ravnborg <sam@ravnborg.org> Acked-by: David Lechner <david@lechnology.com> Signed-off-by: Noralf Trønnes <noralf@tronnes.org> Link: https://patchwork.freedesktop.org/patch/msgid/20190719155916.62465-2-noralf@tronnes.org
1 parent 3b8720e commit fc06bf1

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎drivers/gpu/drm/drm_connector.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ static struct drm_conn_prop_enum_list drm_connector_enum_list[] = {
9292
{ DRM_MODE_CONNECTOR_DSI, "DSI" },
9393
{ DRM_MODE_CONNECTOR_DPI, "DPI" },
9494
{ DRM_MODE_CONNECTOR_WRITEBACK, "Writeback" },
95+
{ DRM_MODE_CONNECTOR_SPI, "SPI" },
9596
};
9697

9798
void drm_connector_ida_init(void)

‎include/uapi/drm/drm_mode.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@ enum drm_mode_subconnector {
361361
#define DRM_MODE_CONNECTOR_DSI 16
362362
#define DRM_MODE_CONNECTOR_DPI 17
363363
#define DRM_MODE_CONNECTOR_WRITEBACK 18
364+
#define DRM_MODE_CONNECTOR_SPI 19
364365

365366
struct drm_mode_get_connector {
366367

0 commit comments

Comments
 (0)