Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1727620pxb; Wed, 9 Feb 2022 03:15:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJxbEna0Zh1TFBVNeD8MgxzgPDm+z8zFDB/jIKjRwi3TdB8SpfX8PL14HyHz8OzEirIE7eh2 X-Received: by 2002:a05:6402:d0d:: with SMTP id eb13mr1913313edb.92.1644405320787; Wed, 09 Feb 2022 03:15:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644405320; cv=none; d=google.com; s=arc-20160816; b=pxwwHO1c36Ddxg6yMWMw31muBaAqSaS+zT70EixNoTYPiiE671htheHtMikQAV3tmm xJexO8Z52GKHslSOsmsSGJ03AhNQS8jq4wV5xrK2dwA38GSDYF2VrclmORavP6SpSf0g XzTUvXazfHBrbUzgqV1EONmR1Az/tgfJvZGcy5dCt/sU9Em2CxlZk3ojhjutGBGmyDzz mJX6Qs/CMASQkJ+dlQLDhFxIQRDiw2u1FtnKjk5jrzZtQZ7L7liaudsx5QLfT2e4Qxb0 yv3AxIwm4Ee0NTdEgv+1q9msGb4w29IV4ybBoiOpuUtR76vc0rfp/AD7DS3c4hlDus/c TSOQ== 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=AehZw/m0Nas6LkoMeQNIU5pK46BRtTYHOumWG56ikG0=; b=t28Sh5dov1mLetljrjdqaaBHF0R3I6x3mS2xv7fRQsxCPO59kCAWhrpxyd+BmRWNtw nOZwkznCq0LRQHigypmYpuyn7tE8l9wPuZWPQlezMEzt7jaeiNjBKc8HVa0guaxDNnU1 fRmwuPOxdbFqHjLFbmO8dhW1ziBkCI2+WBaRKJcgb8FCHsu3/MRewzf0POmP6oftqAR8 AqwnZpZV2cjre/TMrDG557S7cP4fOkE+Ojn4peKueXO752qly4HITnbJedy+E4jGn3i4 52IxgdlcVtxPVCOn0FVqSh59a0yFA3juRWjTf23I0NKX0fclfe6fil6TKIJsPfgh/opG vzRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=hgOJBvAl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w9si2776814edv.363.2022.02.09.03.14.55; Wed, 09 Feb 2022 03:15:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=hgOJBvAl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1379778AbiBHPTc (ORCPT + 99 others); Tue, 8 Feb 2022 10:19:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379708AbiBHPTa (ORCPT ); Tue, 8 Feb 2022 10:19:30 -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 AFB95C061579; Tue, 8 Feb 2022 07:19:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1644333569; x=1675869569; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=AehZw/m0Nas6LkoMeQNIU5pK46BRtTYHOumWG56ikG0=; b=hgOJBvAlxmLb6nUD6tlDoriP0Zd2ycn9SAir6pqC6cSfeWj4D0Eg4wFK KYSTkDxIFzeamgFC9sywTM354BPXsFPDXyFRWwDQ7CvVaFCPQxgAEl2mD jWz0wK4TFL2MSSxvqYlk8X+B4mGsYhlVH0VdQ+JFjg3ALZry5FDJ8+14t c=; Received: from unknown (HELO ironmsg01-sd.qualcomm.com) ([10.53.140.141]) by alexa-out-sd-02.qualcomm.com with ESMTP; 08 Feb 2022 07:19:29 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg01-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2022 07:19:30 -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; Tue, 8 Feb 2022 07:19:28 -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; Tue, 8 Feb 2022 07:19:22 -0800 From: Sankeerth Billakanti To: , , , , , , , , , , , , , , , , CC: Sankeerth Billakanti , , , , Subject: [PATCH v2 3/4] drm/panel-edp: Add eDP sharp panel support Date: Tue, 8 Feb 2022 20:48:44 +0530 Message-ID: <1644333525-30920-4-git-send-email-quic_sbillaka@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1644333525-30920-1-git-send-email-quic_sbillaka@quicinc.com> References: <1644333525-30920-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 --- Changes in v2: - add mode when not using hpd - add delays - put dt-bindings drivers/gpu/drm/panel/panel-edp.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-edp.c b/drivers/gpu/drm/panel/panel-edp.c index a394a15..5d13ccc 100644 --- a/drivers/gpu/drm/panel/panel-edp.c +++ b/drivers/gpu/drm/panel/panel-edp.c @@ -1605,6 +1605,34 @@ static const struct panel_desc sharp_lq123p1jx31 = { }, }; +static const struct drm_display_mode sharp_lq140m1jw46_mode = { + .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 = 1, + .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 +1747,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