Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2776121pxb; Thu, 10 Feb 2022 05:27:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJzJhGVk4pp/3flon1iffKUMY9DVx64TvE4BDacb+HfdQGUrt+XbY4mSsWZ+zyam/mhpIkaO X-Received: by 2002:a05:6a00:889:: with SMTP id q9mr7602916pfj.23.1644499656622; Thu, 10 Feb 2022 05:27:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644499656; cv=none; d=google.com; s=arc-20160816; b=vndNo41WJdaNNoJg1LXfD1v+J114jbfmG6FUz2Ao6YbTr9wktPbtQ8rhTAa9QJNxLg Nik71BjWY5j7VoFrP3AZXC1WOLH1h9/flm3ol9Hve6bkUPsL5syGJyejFyav0hwTgP92 qyqSEfuKgMRlIhIItKAv65CQfdVz2p5U+CClZCcVou+xYzWd4ikXZ/J6OODSHydx85Fd rf3nV3haOtv9cYcOq33JP/Ohzf5ppMnliVE2gTKIXq5nIocLlkQOp09Fgd1YXGxEGku3 Escg2PSPnpXRyh1v8sLyVLb7HWYwP4wIfRyBAcEFb4ApjjrpDpCjUeMi6HCr9B7NnWXe 0arg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=byGm30trr+ftjZSNJVDV3jvraOo2jtOVZ2ftABvtjI4=; b=l00Xi2a1+gvx9dMhlhsmiusQCdkIyT7dxtrICKdTEsCGqAUKg9m1hrpTF9rl+H+NUI +dspe3JTBo5/WQb0mKJN8HmR9cDCheSXEoSfTU3tSTKIlfVyr3H5JP0Fld6km/T29ijm fm2y3YQgzICaRrVeqYn5qOzs6m0NpHMSM/SF2OEMhCaoK37X0HGb/hL8qMeOlRL8jeT+ mr+1mnGWStOa/jluvkEpIRdrU3WXqG/5tQYfPfsSlqeHPdMxEUzt9PX7H3NgrxfJlGZT r8DemAyyC8xpjCOjoMtFd1t2Hg77Va1tsHBc1V5DvzwPpVR0IE5QsZkjiQ91LS1kzhtr EI+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=YoBMGl6x; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k26si2326532pgt.627.2022.02.10.05.27.21; Thu, 10 Feb 2022 05:27:36 -0800 (PST) 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; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=YoBMGl6x; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241249AbiBJL6f (ORCPT + 99 others); Thu, 10 Feb 2022 06:58:35 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:52512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241218AbiBJL6Z (ORCPT ); Thu, 10 Feb 2022 06:58:25 -0500 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 664DE2616; Thu, 10 Feb 2022 03:58:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1644494307; x=1676030307; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=byGm30trr+ftjZSNJVDV3jvraOo2jtOVZ2ftABvtjI4=; b=YoBMGl6x47zp/0EvRzflwa31YDPUE8+fOscM3cCu0RPDKcHvZVm1h4l2 6wppzSzV6F6x+UiYee8+VBCWCV8jzfx3viGCMaji9z5M43ti55ZFEFdnI 7RQvRxxFqJwUjyNbhrsIihTFiwl2pKVaucu6Oyny925Mawgy8nKNXxZ9N 4=; Received: from unknown (HELO ironmsg-SD-alpha.qualcomm.com) ([10.53.140.30]) by alexa-out-sd-02.qualcomm.com with ESMTP; 10 Feb 2022 03:58:27 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg-SD-alpha.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Feb 2022 03:58:26 -0800 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Thu, 10 Feb 2022 03:58:26 -0800 Received: from sbillaka-linux.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Thu, 10 Feb 2022 03:58:19 -0800 From: Sankeerth Billakanti To: , , , , , , , , , , , , , , , , CC: Sankeerth Billakanti , , , , , Subject: [PATCH v4 4/5] drm/panel-edp: Add eDP sharp panel support Date: Thu, 10 Feb 2022 17:27:34 +0530 Message-ID: <1644494255-6632-5-git-send-email-quic_sbillaka@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1644494255-6632-1-git-send-email-quic_sbillaka@quicinc.com> References: <1644494255-6632-1-git-send-email-quic_sbillaka@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 support for the 14" sharp,lq140m1jw46 eDP panel. Signed-off-by: Sankeerth Billakanti --- 00 ff ff ff ff ff ff 00 4d 10 23 15 00 00 00 00 35 1e 01 04 a5 1f 11 78 07 de 50 a3 54 4c 99 26 0f 50 54 00 00 00 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 5a 87 80 a0 70 38 4d 40 30 20 35 00 35 ae 10 00 00 18 65 38 80 a0 70 38 4d 40 30 20 35 00 35 ae 10 00 00 18 00 00 00 fd 00 30 90 a7 a7 23 01 00 00 00 00 00 00 00 00 00 00 fc 00 4c 51 31 34 30 4d 31 4a 57 34 39 0a 20 00 77 ---------------- Block 0, Base EDID: EDID Structure Version & Revision: 1.4 Vendor & Product Identification: Manufacturer: SHP Model: 5411 Made in: week 53 of 2020 Basic Display Parameters & Features: Digital display Bits per primary color channel: 8 DisplayPort interface Maximum image size: 31 cm x 17 cm Gamma: 2.20 Supported color formats: RGB 4:4:4 Default (sRGB) color space is primary color space First detailed timing includes the native pixel format and preferred refresh rate Display is continuous frequency Color Characteristics: Red : 0.6396, 0.3291 Green: 0.2998, 0.5996 Blue : 0.1494, 0.0595 White: 0.3125, 0.3281 Established Timings I & II: none Standard Timings: none Detailed Timing Descriptors: DTD 1: 1920x1080 143.981 Hz 16:9 166.587 kHz 346.500 MHz (309 mm x 174 mm) Hfront 48 Hsync 32 Hback 80 Hpol N Vfront 3 Vsync 5 Vback 69 Vpol N DTD 2: 1920x1080 59.990 Hz 16:9 69.409 kHz 144.370 MHz (309 mm x 174 mm) Hfront 48 Hsync 32 Hback 80 Hpol N Vfront 3 Vsync 5 Vback 69 Vpol N Display Range Limits: Monitor ranges (Bare Limits): 48-144 Hz V, 167-167 kHz H, max dotclock 350 MHz Display Product Name: 'LQ140M1JW49' Checksum: 0x77 Changes in v4: -Add all modes from EDID -Provide EDID blob Changes in v3: None drivers/gpu/drm/panel/panel-edp.c | 44 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-edp.c b/drivers/gpu/drm/panel/panel-edp.c index a394a15..f9355b2 100644 --- a/drivers/gpu/drm/panel/panel-edp.c +++ b/drivers/gpu/drm/panel/panel-edp.c @@ -1605,6 +1605,47 @@ static const struct panel_desc sharp_lq123p1jx31 = { }, }; +static const struct drm_display_mode sharp_lq140m1jw46_mode[] = { + { + .clock = 346500, + .hdisplay = 1920, + .hsync_start = 1920 + 48, + .hsync_end = 1920 + 48 + 32, + .htotal = 1920 + 48 + 32 + 80, + .vdisplay = 1080, + .vsync_start = 1080 + 3, + .vsync_end = 1080 + 3 + 5, + .vtotal = 1080 + 3 + 5 + 69, + .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, + }, { + .clock = 144370, + .hdisplay = 1920, + .hsync_start = 1920 + 48, + .hsync_end = 1920 + 48 + 32, + .htotal = 1920 + 48 + 32 + 80, + .vdisplay = 1080, + .vsync_start = 1080 + 3, + .vsync_end = 1080 + 3 + 5, + .vtotal = 1080 + 3 + 5 + 69, + .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, + }, +}; + +static const struct panel_desc sharp_lq140m1jw46 = { + .modes = sharp_lq140m1jw46_mode, + .num_modes = ARRAY_SIZE(sharp_lq140m1jw46_mode), + .bpc = 8, + .size = { + .width = 309, + .height = 174, + }, + .delay = { + .hpd_absent = 80, + .enable = 50, + .unprepare = 500, + }, +}; + static const struct drm_display_mode starry_kr122ea0sra_mode = { .clock = 147000, .hdisplay = 1920, @@ -1719,6 +1760,9 @@ static const struct of_device_id platform_of_match[] = { .compatible = "sharp,lq123p1jx31", .data = &sharp_lq123p1jx31, }, { + .compatible = "sharp,lq140m1jw46", + .data = &sharp_lq140m1jw46, + }, { .compatible = "starry,kr122ea0sra", .data = &starry_kr122ea0sra, }, { -- 2.7.4