From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AB78AC5517A for ; Thu, 5 Nov 2020 21:58:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4AC3420735 for ; Thu, 5 Nov 2020 21:58:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="mAvTnRbn" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732488AbgKEV6F (ORCPT ); Thu, 5 Nov 2020 16:58:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731508AbgKEV6F (ORCPT ); Thu, 5 Nov 2020 16:58:05 -0500 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53E7BC0613D2 for ; Thu, 5 Nov 2020 13:58:05 -0800 (PST) Received: by mail-pg1-x543.google.com with SMTP id f38so2314819pgm.2 for ; Thu, 05 Nov 2020 13:58:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9M3puV2O+f9OQuFbTUvfKRPi3QbkyCpFGgLmOhG8TIo=; b=mAvTnRbni1OBh9wjhdQOvX3RdLhypGfZ6OC8ix0pN2QH21/iw1GcshCJpYtABCfI1K mi5h1Xj2OqtfyLfrksXFLPRGz17c8htW7pokNCL0ckwZoj0SZNVpbP/NM3apSSwRIbd2 jB4umcALDkn5sZkX36l7yn9NTWVTSnsVl/swY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9M3puV2O+f9OQuFbTUvfKRPi3QbkyCpFGgLmOhG8TIo=; b=b3y/F7CXQ+F8BQdzc4Q87qqp18dRNSnCzwsyCHgUM+kQmBHJ3xDDMDW3RSwUdMJSHn zj5Tf9n8g/OH15SRTI8A/C84nQkhgcqc+foqhJEw4mZaqLvvHBpKJPavoJTOH2GxtqJe 9kqwgA7R5Uw+CbiTEXCp45/Ov70pozBgM/rgca/rqUunSYhudP2rWxI4Pvhz9qNfH1qC M4M2sNo8lx8PEGlAsVh2pRT3MEuy5sbZwXntX/kyUhyYwAS/jupp27NAgbCnseqopoza 0UHfBtgH00AB1F4b3jYOjvSvNY6DBegf/b7pB+Ag+LKuzVaarfwr0yCmx555pzJ3yf51 yOkA== X-Gm-Message-State: AOAM5306MROeppT6Pmq3XliCAY9OXHaaE8n1oYWN1yO+ElgCB5xKt3De Y/IjklHFLi9XmTyE09HTQaPJdA== X-Google-Smtp-Source: ABdhPJwypK1CAJ3uQ/QhZXmgYYJxHRTaUbSpdjDwluRHgFYuEhFuwB/HE75SHdb/1ua7ZJgVVkC+Dw== X-Received: by 2002:aa7:9af1:0:b029:152:6101:ad12 with SMTP id y17-20020aa79af10000b02901526101ad12mr4297747pfp.40.1604613484905; Thu, 05 Nov 2020 13:58:04 -0800 (PST) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:1:42b0:34ff:fe3d:58e6]) by smtp.gmail.com with ESMTPSA id k7sm3572890pfa.184.2020.11.05.13.58.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Nov 2020 13:58:04 -0800 (PST) From: Douglas Anderson To: Thierry Reding , Sam Ravnborg Cc: Rob Herring , robdclark@chromium.org, Daniel Vetter , dri-devel@lists.freedesktop.org, David Airlie , Douglas Anderson , linux-kernel@vger.kernel.org Subject: [PATCH v3 2/3] drm: panel: simple: Add BOE NV110WTM-N61 Date: Thu, 5 Nov 2020 13:57:40 -0800 Message-Id: <20201105135639.v3.2.I71b2118dfc00fd7b43b02d28e7b890081c2acfa2@changeid> X-Mailer: git-send-email 2.29.1.341.ge80a0c044ae-goog In-Reply-To: <20201105135639.v3.1.I31c4f8b111dbef1ab658f206764655ae983bc560@changeid> References: <20201105135639.v3.1.I31c4f8b111dbef1ab658f206764655ae983bc560@changeid> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support for the BOE NV110WTM-N61 panel. The EDID lists two modes (one for 60 Hz refresh rate and one for 40 Hz), so we'll list both of them here. Note that the panel datasheet requires 80 ms between HPD asserting and the backlight power being turned on. We'll use the new timing constraints structure to do this cleanly. This assumes that the backlight will be enabled _after_ the panel enable finishes. This is how it works today and seems a sane assumption. Signed-off-by: Douglas Anderson --- (no changes since v2) Changes in v2: - Adjust for shorter names in patch #1. drivers/gpu/drm/panel/panel-simple.c | 48 ++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index bb1e3d15f793..db3f0e2b6001 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1401,6 +1401,51 @@ static const struct panel_desc boe_nv101wxmn51 = { }, }; +static const struct drm_display_mode boe_nv110wtm_n61_modes[] = { + { + .clock = 207800, + .hdisplay = 2160, + .hsync_start = 2160 + 48, + .hsync_end = 2160 + 48 + 32, + .htotal = 2160 + 48 + 32 + 100, + .vdisplay = 1440, + .vsync_start = 1440 + 3, + .vsync_end = 1440 + 3 + 6, + .vtotal = 1440 + 3 + 6 + 31, + }, + { + .clock = 138500, + .hdisplay = 2160, + .hsync_start = 2160 + 48, + .hsync_end = 2160 + 48 + 32, + .htotal = 2160 + 48 + 32 + 100, + .vdisplay = 1440, + .vsync_start = 1440 + 3, + .vsync_end = 1440 + 3 + 6, + .vtotal = 1440 + 3 + 6 + 31, + }, +}; + +static const struct panel_desc boe_nv110wtm_n61 = { + .modes = boe_nv110wtm_n61_modes, + .num_modes = ARRAY_SIZE(boe_nv110wtm_n61_modes), + .bpc = 8, + .size = { + .width = 233, + .height = 155, + }, + .delay = { + .hpd_absent_delay = 200, + }, + .min_times = { + .prepare_to_enable = 80, + .unprepare_to_prepare = 500, + }, + .bus_format = MEDIA_BUS_FMT_RGB888_1X24, + .bus_flags = DRM_BUS_FLAG_DATA_MSB_TO_LSB, + .connector_type = DRM_MODE_CONNECTOR_eDP, +}; + /* Also used for boe_nv133fhm_n62 */ static const struct drm_display_mode boe_nv133fhm_n61_modes = { .clock = 147840, @@ -4063,6 +4108,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "boe,nv101wxmn51", .data = &boe_nv101wxmn51, + }, { + .compatible = "boe,nv110wtm-n61", + .data = &boe_nv110wtm_n61, }, { .compatible = "boe,nv133fhm-n61", .data = &boe_nv133fhm_n61, -- 2.29.1.341.ge80a0c044ae-goog From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C3783C55ABD for ; Thu, 5 Nov 2020 21:58:11 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 535B320756 for ; Thu, 5 Nov 2020 21:58:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="mAvTnRbn" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 535B320756 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 370AF6EDEF; Thu, 5 Nov 2020 21:58:06 +0000 (UTC) Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5610B6EDEF for ; Thu, 5 Nov 2020 21:58:05 +0000 (UTC) Received: by mail-pg1-x543.google.com with SMTP id w4so2276129pgg.13 for ; Thu, 05 Nov 2020 13:58:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9M3puV2O+f9OQuFbTUvfKRPi3QbkyCpFGgLmOhG8TIo=; b=mAvTnRbni1OBh9wjhdQOvX3RdLhypGfZ6OC8ix0pN2QH21/iw1GcshCJpYtABCfI1K mi5h1Xj2OqtfyLfrksXFLPRGz17c8htW7pokNCL0ckwZoj0SZNVpbP/NM3apSSwRIbd2 jB4umcALDkn5sZkX36l7yn9NTWVTSnsVl/swY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9M3puV2O+f9OQuFbTUvfKRPi3QbkyCpFGgLmOhG8TIo=; b=E1LfDoKfJ5BXLi92/oQtjhXCLgeEj6/c58tKzObvsbwa3ok4dcVvb6gfY3RyNIuROl UgDlCaE0UnbhjX/0oBpN8BCs4kEsSjLo1KQDr40AB1WnCFH1+Qtqd8pvdAXA9NAOpP0o 6s/rbsFCJwIDzWtIQB6FBNS70gFpRgulY2uM+se1JEs16gExfEbXubI3gzJ2nhsfZwKg sw3TtTLn2/X12NtSu4dIAS1k7p/+dwKc1K8NbB9viYNXX/9Egza6cTpX8wlSR/SKhaSX geN+Qu3nYEz04Uycn/s+CWF+kDGYbR9KU4N0FPYrOMxnS+XF7Fy9Ku4u/3y4xsiBxiZS tvZQ== X-Gm-Message-State: AOAM533NQSwu4x4tNyYkbwGwP1nx0ouMIaNjoSltnhzrhIplvKQD1lJZ y1xR6GuuQUVebj9M1xlw64CVDg== X-Google-Smtp-Source: ABdhPJwypK1CAJ3uQ/QhZXmgYYJxHRTaUbSpdjDwluRHgFYuEhFuwB/HE75SHdb/1ua7ZJgVVkC+Dw== X-Received: by 2002:aa7:9af1:0:b029:152:6101:ad12 with SMTP id y17-20020aa79af10000b02901526101ad12mr4297747pfp.40.1604613484905; Thu, 05 Nov 2020 13:58:04 -0800 (PST) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:1:42b0:34ff:fe3d:58e6]) by smtp.gmail.com with ESMTPSA id k7sm3572890pfa.184.2020.11.05.13.58.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Nov 2020 13:58:04 -0800 (PST) From: Douglas Anderson To: Thierry Reding , Sam Ravnborg Subject: [PATCH v3 2/3] drm: panel: simple: Add BOE NV110WTM-N61 Date: Thu, 5 Nov 2020 13:57:40 -0800 Message-Id: <20201105135639.v3.2.I71b2118dfc00fd7b43b02d28e7b890081c2acfa2@changeid> X-Mailer: git-send-email 2.29.1.341.ge80a0c044ae-goog In-Reply-To: <20201105135639.v3.1.I31c4f8b111dbef1ab658f206764655ae983bc560@changeid> References: <20201105135639.v3.1.I31c4f8b111dbef1ab658f206764655ae983bc560@changeid> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: robdclark@chromium.org, David Airlie , Douglas Anderson , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Rob Herring Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add support for the BOE NV110WTM-N61 panel. The EDID lists two modes (one for 60 Hz refresh rate and one for 40 Hz), so we'll list both of them here. Note that the panel datasheet requires 80 ms between HPD asserting and the backlight power being turned on. We'll use the new timing constraints structure to do this cleanly. This assumes that the backlight will be enabled _after_ the panel enable finishes. This is how it works today and seems a sane assumption. Signed-off-by: Douglas Anderson --- (no changes since v2) Changes in v2: - Adjust for shorter names in patch #1. drivers/gpu/drm/panel/panel-simple.c | 48 ++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index bb1e3d15f793..db3f0e2b6001 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1401,6 +1401,51 @@ static const struct panel_desc boe_nv101wxmn51 = { }, }; +static const struct drm_display_mode boe_nv110wtm_n61_modes[] = { + { + .clock = 207800, + .hdisplay = 2160, + .hsync_start = 2160 + 48, + .hsync_end = 2160 + 48 + 32, + .htotal = 2160 + 48 + 32 + 100, + .vdisplay = 1440, + .vsync_start = 1440 + 3, + .vsync_end = 1440 + 3 + 6, + .vtotal = 1440 + 3 + 6 + 31, + }, + { + .clock = 138500, + .hdisplay = 2160, + .hsync_start = 2160 + 48, + .hsync_end = 2160 + 48 + 32, + .htotal = 2160 + 48 + 32 + 100, + .vdisplay = 1440, + .vsync_start = 1440 + 3, + .vsync_end = 1440 + 3 + 6, + .vtotal = 1440 + 3 + 6 + 31, + }, +}; + +static const struct panel_desc boe_nv110wtm_n61 = { + .modes = boe_nv110wtm_n61_modes, + .num_modes = ARRAY_SIZE(boe_nv110wtm_n61_modes), + .bpc = 8, + .size = { + .width = 233, + .height = 155, + }, + .delay = { + .hpd_absent_delay = 200, + }, + .min_times = { + .prepare_to_enable = 80, + .unprepare_to_prepare = 500, + }, + .bus_format = MEDIA_BUS_FMT_RGB888_1X24, + .bus_flags = DRM_BUS_FLAG_DATA_MSB_TO_LSB, + .connector_type = DRM_MODE_CONNECTOR_eDP, +}; + /* Also used for boe_nv133fhm_n62 */ static const struct drm_display_mode boe_nv133fhm_n61_modes = { .clock = 147840, @@ -4063,6 +4108,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "boe,nv101wxmn51", .data = &boe_nv101wxmn51, + }, { + .compatible = "boe,nv110wtm-n61", + .data = &boe_nv110wtm_n61, }, { .compatible = "boe,nv133fhm-n61", .data = &boe_nv133fhm_n61, -- 2.29.1.341.ge80a0c044ae-goog _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel