Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp289478imw; Fri, 8 Jul 2022 03:04:31 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tfJDjyUXTRNpm0fNSThDcFvCz2x1b5KeY1xAW4uG1HBdrrSB/d59Dlxq6qjoFTPsN1tkfl X-Received: by 2002:a17:90b:3d84:b0:1ef:9049:9f43 with SMTP id pq4-20020a17090b3d8400b001ef90499f43mr3164990pjb.45.1657274671277; Fri, 08 Jul 2022 03:04:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657274671; cv=none; d=google.com; s=arc-20160816; b=M3CnlRy5abI3fhevkncB8jxSPrVl7yLvvl42X/38Ozy1JHb9YjvNPzUOmlba+zBvnb vU1KQRXmXxHtg9Mj33yADDDyow2uikB8NIPxANkOiEgy9Vlbdf7q6IZuyY5ksyN/kh/2 M/H77xz29nCVzmN1gbWsg1mzhr/V9F9/c7/ffZnkwfrLQeyJx/s00GqfOfCy8S5kk71n 1HXvdACHsCgwUHol2FOfU89XcbobcaN1rQse6zLpufpiUi5kwZP9NmUA7ob7/+vJ4TUS E6gkRTf3v3o0IO58gNvjP7NBUkUsSiE8MyKDFlVtuYJ8UAdgu+rERXkc0pmPw/XxP3pZ wA+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=k/zCwYs979ZHySxHePjZlJPuLvHehDPWWXMlRTKMKqI=; b=Cdcm1ihvz5b1vxre8HUbHorzWtq4bNuR+2mtiPiCyiDhK+EETcYZGUSiOJc5qMVlF2 YXZgQOmlmUmOxpDWPKtAJQ9Iyydff1E1A2jPy5haLKfRaqK+Uzltfls8gN11Fl9fZ2Km 35MZyPkxvXj4N64Y87KNu96/ULqKOWvsu85KqvVl41xJfUloT11QkRWstIlc884ShcPB csf0Hq9ltcyOeJI5SdDM6CbK2uNFWb3E92spR4Dz8PPWAD0jokjj8pGy+ZEg5U8sRuCs TOD34NZV6MIYydLPBmHiNd5kVIMqqNCcta8Xs3xEIzGv18WcHADYgOHe0zjGijbl/5Mi lUKQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q12-20020a170902dacc00b0016b8fbdf16bsi1584597plx.403.2022.07.08.03.04.17; Fri, 08 Jul 2022 03:04:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237701AbiGHJ5m (ORCPT + 99 others); Fri, 8 Jul 2022 05:57:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237661AbiGHJ5l (ORCPT ); Fri, 8 Jul 2022 05:57:41 -0400 Received: from out29-170.mail.aliyun.com (out29-170.mail.aliyun.com [115.124.29.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA1A783F02 for ; Fri, 8 Jul 2022 02:57:39 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.5469381|-1;BR=01201311R151S63rulernew998_84748_2000303;CH=blue;DM=|CONTINUE|false|;DS=CONTINUE|ham_alarm|0.11328-0.00592779-0.880792;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047190;MF=michael@allwinnertech.com;NM=1;PH=DS;RN=4;RT=4;SR=0;TI=SMTPD_---.ONXoFOV_1657274256; Received: from SunxiBot.allwinnertech.com(mailfrom:michael@allwinnertech.com fp:SMTPD_---.ONXoFOV_1657274256) by smtp.aliyun-inc.com; Fri, 08 Jul 2022 17:57:37 +0800 From: Michael Wu To: myungjoo.ham@samsung.com, cw00.choi@samsung.com Cc: linux-kernel@vger.kernel.org, allwinner-opensource-support@allwinnertech.com Subject: [PATCH] extcon: Add EXTCON_DISP_CVBS and EXTCON_DISP_EDP Date: Fri, 8 Jul 2022 17:57:14 +0800 Message-Id: <20220708095714.127736-1-michael@allwinnertech.com> X-Mailer: git-send-email 2.29.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add EXTCON_DISP_CVBS for Composite Video Broadcast Signal. Add EXTCON_DISP_EDP for Embedded Display Port [1] https://en.wikipedia.org/wiki/Composite_video [2] https://en.wikipedia.org/wiki/DisplayPort#eDP Signed-off-by: Michael Wu --- drivers/extcon/extcon.c | 10 ++++++++++ include/linux/extcon.h | 2 ++ 2 files changed, 12 insertions(+) diff --git a/drivers/extcon/extcon.c b/drivers/extcon/extcon.c index d3a32b8064994..774607a616f7b 100644 --- a/drivers/extcon/extcon.c +++ b/drivers/extcon/extcon.c @@ -167,6 +167,16 @@ static const struct __extcon_info { .id = EXTCON_DISP_HMD, .name = "HMD", }, + [EXTCON_DISP_CVBS] = { + .type = EXTCON_TYPE_DISP, + .id = EXTCON_DISP_CVBS, + .name = "CVBS", + }, + [EXTCON_DISP_EDP] = { + .type = EXTCON_TYPE_DISP, + .id = EXTCON_DISP_EDP, + .name = "EDP", + }, /* Miscellaneous external connector */ [EXTCON_DOCK] = { diff --git a/include/linux/extcon.h b/include/linux/extcon.h index 685401d94d398..3c45c3846fe94 100644 --- a/include/linux/extcon.h +++ b/include/linux/extcon.h @@ -76,6 +76,8 @@ #define EXTCON_DISP_VGA 43 /* Video Graphics Array */ #define EXTCON_DISP_DP 44 /* Display Port */ #define EXTCON_DISP_HMD 45 /* Head-Mounted Display */ +#define EXTCON_DISP_CVBS 46 /* Composite Video Broadcast Signal */ +#define EXTCON_DISP_EDP 47 /* Embedded Display Port */ /* Miscellaneous external connector */ #define EXTCON_DOCK 60 -- 2.29.0