[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230903214150.2877023-1-dmitry.baryshkov@linaro.org>
Date: Mon, 4 Sep 2023 00:41:38 +0300
From: Dmitry Baryshkov <dmitry.baryshkov@...aro.org>
To: David Airlie <airlied@...il.com>, Daniel Vetter <daniel@...ll.ch>,
Andrzej Hajda <andrzej.hajda@...el.com>,
Neil Armstrong <neil.armstrong@...aro.org>,
Robert Foss <rfoss@...nel.org>,
Laurent Pinchart <Laurent.pinchart@...asonboard.com>,
Jonas Karlman <jonas@...boo.se>,
Jernej Skrabec <jernej.skrabec@...il.com>,
Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>,
Maxime Ripard <mripard@...nel.org>,
Thomas Zimmermann <tzimmermann@...e.de>,
"Bryan O'Donoghue" <bryan.odonoghue@...aro.org>,
Guenter Roeck <linux@...ck-us.net>,
Heikki Krogerus <heikki.krogerus@...ux.intel.com>,
Janne Grunau <j@...nau.net>, Simon Ser <contact@...rsion.fr>,
Andy Gross <agross@...nel.org>,
Bjorn Andersson <andersson@...nel.org>,
Konrad Dybcio <konrad.dybcio@...aro.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: dri-devel@...ts.freedesktop.org, linux-arm-msm@...r.kernel.org,
linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org,
freedreno@...ts.freedesktop.org
Subject: [RFC PATCH v1 00/12] drm,usb/typec: uABI for USB-C DisplayPort connectors
During the discussion regarding DisplayPort wrapped in the USB-C
connectors (via the USB-C altmode) it was pointed out that currently
there is no good way to let userspace know if the DRM connector in
question is the 'native' DP connector or if it is the USB-C connector.
An attempt to use DRM_MODE_CONNECTOR_USB for such connectors was
declined, as existing DP drivers (i915, AMD) use
DRM_MODE_CONNECTOR_DisplayPort. New drivers should behave in the same
way.
An attempt to use subconnector property was also declined. It is defined
to the type of the DP dongle connector rather than the host connector.
This attempt targets reusing the connector's PATH property. Currently
this property is only used for the DP MST connectors. This patchset
reuses it to point out to the corresponding registered typec port
device.
Dmitry Baryshkov (12):
Revert "drm/sysfs: Link DRM connectors to corresponding Type-C
connectors"
drm/sysfs: link DRM connector device to the connector's fw nodes
drm/connector: extend PATH property to covert Type-C case
drm/bridge-connector: set the PATH property for the connector
drm/bridge: remove conditionals around devicetree pointers
soc: qcom: pmic_glink_altmode: fix DRM connector type
soc: qcom: pmic_glink_altmode: report that this is a Type-C connector
usb: typec: support generating Type-C port names for userspace
usb: typec: tcpm: support generating Type-C port names for userspace
usb: typec: qcom: implement proper error path in probe()
usb: typec: qcom: extract DRM bridge functionality to separate file
usb: typec: qcom: define the bridge's path
drivers/gpu/drm/bridge/panel.c | 2 -
drivers/gpu/drm/drm_bridge_connector.c | 14 ++++-
drivers/gpu/drm/drm_connector.c | 10 +++-
drivers/gpu/drm/drm_sysfs.c | 42 +-------------
drivers/soc/qcom/pmic_glink_altmode.c | 3 +-
drivers/usb/typec/class.c | 14 +++++
drivers/usb/typec/tcpm/qcom/Makefile | 4 ++
drivers/usb/typec/tcpm/qcom/qcom_pmic_typec.c | 56 ++++++-------------
.../usb/typec/tcpm/qcom/qcom_pmic_typec_drm.c | 40 +++++++++++++
.../usb/typec/tcpm/qcom/qcom_pmic_typec_drm.h | 22 ++++++++
drivers/usb/typec/tcpm/tcpm.c | 14 +++++
include/drm/drm_bridge.h | 9 ++-
include/linux/usb/tcpm.h | 2 +
include/linux/usb/typec.h | 2 +
14 files changed, 146 insertions(+), 88 deletions(-)
create mode 100644 drivers/usb/typec/tcpm/qcom/qcom_pmic_typec_drm.c
create mode 100644 drivers/usb/typec/tcpm/qcom/qcom_pmic_typec_drm.h
--
2.39.2
Powered by blists - more mailing lists