Commit 2164188d authored by Chris Zhong's avatar Chris Zhong Committed by Chanwoo Choi

extcon: Add EXTCON_DISP_DP and the property for USB Type-C

Add EXTCON_DISP_DP for the Display external connector. For Type-C
connector the DisplayPort can work as an Alternate Mode(VESA DisplayPort
Alt Mode on USB Type-C Standard). The Type-C support both normal
and flipped orientation, so add a property to extcon.
Signed-off-by: default avatarChris Zhong <zyw@rock-chips.com>
Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
Tested-by: default avatarChris Zhong <zyw@rock-chips.com>
Tested-by: default avatarGuenter Roeck <groeck@chromium.org>
Reviewed-by: default avatarGuenter Roeck <groeck@chromium.org>
parent ab11af04
...@@ -157,6 +157,11 @@ struct __extcon_info { ...@@ -157,6 +157,11 @@ struct __extcon_info {
.id = EXTCON_DISP_VGA, .id = EXTCON_DISP_VGA,
.name = "VGA", .name = "VGA",
}, },
[EXTCON_DISP_DP] = {
.type = EXTCON_TYPE_DISP | EXTCON_TYPE_USB,
.id = EXTCON_DISP_DP,
.name = "DP",
},
/* Miscellaneous external connector */ /* Miscellaneous external connector */
[EXTCON_DOCK] = { [EXTCON_DOCK] = {
......
...@@ -69,6 +69,7 @@ ...@@ -69,6 +69,7 @@
#define EXTCON_DISP_MHL 41 /* Mobile High-Definition Link */ #define EXTCON_DISP_MHL 41 /* Mobile High-Definition Link */
#define EXTCON_DISP_DVI 42 /* Digital Visual Interface */ #define EXTCON_DISP_DVI 42 /* Digital Visual Interface */
#define EXTCON_DISP_VGA 43 /* Video Graphics Array */ #define EXTCON_DISP_VGA 43 /* Video Graphics Array */
#define EXTCON_DISP_DP 44 /* Display Port */
/* Miscellaneous external connector */ /* Miscellaneous external connector */
#define EXTCON_DOCK 60 #define EXTCON_DOCK 60
...@@ -102,11 +103,16 @@ ...@@ -102,11 +103,16 @@
* @type: integer (intval) * @type: integer (intval)
* @value: 0 (low) or 1 (high) * @value: 0 (low) or 1 (high)
* @default: 0 (low) * @default: 0 (low)
* - EXTCON_PROP_USB_TYPEC_POLARITY
* @type: integer (intval)
* @value: 0 (normal) or 1 (flip)
* @default: 0 (normal)
*/ */
#define EXTCON_PROP_USB_VBUS 0 #define EXTCON_PROP_USB_VBUS 0
#define EXTCON_PROP_USB_TYPEC_POLARITY 1
#define EXTCON_PROP_USB_MIN 0 #define EXTCON_PROP_USB_MIN 0
#define EXTCON_PROP_USB_MAX 0 #define EXTCON_PROP_USB_MAX 1
#define EXTCON_PROP_USB_CNT (EXTCON_PROP_USB_MAX - EXTCON_PROP_USB_MIN + 1) #define EXTCON_PROP_USB_CNT (EXTCON_PROP_USB_MAX - EXTCON_PROP_USB_MIN + 1)
/* Properties of EXTCON_TYPE_CHG. */ /* Properties of EXTCON_TYPE_CHG. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment