Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4954605pxj; Tue, 22 Jun 2021 11:38:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMRWZXz4a4CVYdkW4GsaWhhRXKj18Gm2PnO6U2Q1M+KtNPy0ktw2MgLQe51zUQozzBcA8Y X-Received: by 2002:a5d:948a:: with SMTP id v10mr3216762ioj.37.1624387081198; Tue, 22 Jun 2021 11:38:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624387081; cv=none; d=google.com; s=arc-20160816; b=sPXT2QUfgfrL3TKR2ww67zrIi0nzIc6HCesdiaW9I7nNcVOsKQUI83OlUyX9V437FO d/sIZAv0uteQ119L2jGmcZYVfQNt2blG5LBuDIsXpDROokgizUku6juUGrfYtam01FTZ 0iF+ESFKp2WGHHNY+adYfsLIXLt9wPMD1vKOe0qwFKHlwuQq9Kvc93UZFbQDGVpxVcoQ rfXgY8ayW3jUlDVqFiwqnjHWppZrk0U3OuQAF4jY1LFVEqgKRp9m9ZBWGk8gQ5ZISnc2 IRTJMCuOmxst9USpLgBVyim7QacZBcVTm1lB+4kTfrcI6D8FtilpaYZTYP5AYLDhIhbk juHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=5hHHpcbuGzfoV+GfFLB8z1cKhHoFMqWAiFyD3G6YAko=; b=cnn98FPu83HG/w7DoGoNX5ERNhoHkX11ejP3X7cJNBXc3Yz8xK/BXz0zuRSGx6ukPb bzaH/zTuucV2zfXLb00jwkAP7nkd1StTqWBrQZHQkIzA5Ay6OHNRt9nOl6MZwwF10Xfe vIu0DNKq++INY11hLRNxuJ6CWUaBn1YAtCtLScqqJatbJkEPIgTr1P7PwMHgmNf6rE8e CV1/TcFqxCqH9JfSJBwjapiGxLcCBGL9xLJJUXNyp9osE082AxX3r/Md/pKPGK250yr/ tFAZUxi/d2JK+hH4/vNYz98rjsrs7YzGyawLI62nGXavGi5hbkwx7NYr3Nj9dPM1a1oV 8jKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=SqgfTNdO; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h36si179234jav.41.2021.06.22.11.37.49; Tue, 22 Jun 2021 11:38:01 -0700 (PDT) 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=@chromium.org header.s=google header.b=SqgfTNdO; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232584AbhFVSjT (ORCPT + 99 others); Tue, 22 Jun 2021 14:39:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232376AbhFVSjT (ORCPT ); Tue, 22 Jun 2021 14:39:19 -0400 Received: from mail-qk1-x730.google.com (mail-qk1-x730.google.com [IPv6:2607:f8b0:4864:20::730]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87C9BC061756 for ; Tue, 22 Jun 2021 11:37:02 -0700 (PDT) Received: by mail-qk1-x730.google.com with SMTP id g4so40866188qkl.1 for ; Tue, 22 Jun 2021 11:37:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5hHHpcbuGzfoV+GfFLB8z1cKhHoFMqWAiFyD3G6YAko=; b=SqgfTNdOPOEae4ycnm65VuiFolDjL75QzhVcNDAYaB18+y6gC/dR2FGFGIRRYu1pnO 6G/9w/gHa9kP4JXdIkgngJVl7pR9Q1k1pW/6bgLGCYUR69Fnfa/Go4hs4E81apxFVeYM CknYzB21+ZhhBxq4HsfpOUobGYuws4uDgpVZQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5hHHpcbuGzfoV+GfFLB8z1cKhHoFMqWAiFyD3G6YAko=; b=Du22WOkxWvzekWQWI40fkozgJtsKN+RdmmaJWXywuxyMARgzTpFWDJc4MZEpgYPqN4 SqAHn+8ohjnof9fXNcedIlR0ltk/64J0oGF/j1irorEcpzWZi4xn6KNLNmbwpR0Ima2V GhXX2bbGm1BUBsOtZfqGaLmNbn+CLJ2mrXRdse6ufASeM9NZE0bAzby71IsW1ktQCF5r Izf4N/guilRE8GlspMGgQcqdpMuHuCcAHzei9oecsjSrU0czhKWRN1ZhFlCKA15drSJy 8FAJowscaTqsBwnsuMVM66gY4HJyDfbnXcN0Two/Jq70Sd0ZtLsgXsKo27y+6I5oWl3c 5zmw== X-Gm-Message-State: AOAM530+pNXftGi0FWvtn0ewjYC8Fcm3un16iNGpo2BFnUOuOn4uXJJg 7czomLDVwNi5TFZa8ajrCpyN3Xsqq4yerw== X-Received: by 2002:a37:b205:: with SMTP id b5mr6005031qkf.208.1624387021627; Tue, 22 Jun 2021 11:37:01 -0700 (PDT) Received: from mail-qk1-f170.google.com (mail-qk1-f170.google.com. [209.85.222.170]) by smtp.gmail.com with ESMTPSA id q14sm217249qtw.24.2021.06.22.11.37.00 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 22 Jun 2021 11:37:01 -0700 (PDT) Received: by mail-qk1-f170.google.com with SMTP id f70so41993340qke.13 for ; Tue, 22 Jun 2021 11:37:00 -0700 (PDT) X-Received: by 2002:a25:60c1:: with SMTP id u184mr5281625ybb.343.1624387020330; Tue, 22 Jun 2021 11:37:00 -0700 (PDT) MIME-Version: 1.0 References: <1624099230-20899-1-git-send-email-rajeevny@codeaurora.org> <1624099230-20899-6-git-send-email-rajeevny@codeaurora.org> <20210620100147.GB703072@ravnborg.org> <20210621184157.GB918146@ravnborg.org> In-Reply-To: <20210621184157.GB918146@ravnborg.org> From: Doug Anderson Date: Tue, 22 Jun 2021 11:36:49 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [v7 5/5] drm/panel-simple: Add Samsung ATNA33XC20 To: Sam Ravnborg Cc: Rajeev Nandan , dri-devel , linux-arm-msm , freedreno , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML , Thierry Reding , Rob Clark , Lyude Paul , Jani Nikula , Rob Herring , Laurent Pinchart , Andrzej Hajda , Daniel Thompson , "Kristian H. Kristensen" , Abhinav Kumar , Sean Paul , Kalyan Thota , Krishna Manikandan Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Mon, Jun 21, 2021 at 11:42 AM Sam Ravnborg wrote: > > Hi Doug, > > On Mon, Jun 21, 2021 at 08:34:51AM -0700, Doug Anderson wrote: > > Hi, > > > > On Sun, Jun 20, 2021 at 3:01 AM Sam Ravnborg wrote: > > > > > > Hi Rajeev > > > On Sat, Jun 19, 2021 at 04:10:30PM +0530, Rajeev Nandan wrote: > > > > Add Samsung 13.3" FHD eDP AMOLED panel. > > > > > > > > Signed-off-by: Rajeev Nandan > > > > Reviewed-by: Douglas Anderson > > > > --- > > > > > > > > Changes in v4: > > > > - New > > > > > > > > Changes in v5: > > > > - Remove "uses_dpcd_backlight" property, not required now. (Douglas) > > > > > > > > Changes in v7: > > > > - Update disable_to_power_off and power_to_enable delays. (Douglas) > > > > > > > > drivers/gpu/drm/panel/panel-simple.c | 33 +++++++++++++++++++++++++++++++++ > > > > 1 file changed, 33 insertions(+) > > > > > > > > diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c > > > > index 86e5a45..4adc44a 100644 > > > > --- a/drivers/gpu/drm/panel/panel-simple.c > > > > +++ b/drivers/gpu/drm/panel/panel-simple.c > > > > @@ -3562,6 +3562,36 @@ static const struct panel_desc rocktech_rk101ii01d_ct = { > > > > .connector_type = DRM_MODE_CONNECTOR_LVDS, > > > > }; > > > > > > > > +static const struct drm_display_mode samsung_atna33xc20_mode = { > > > > + .clock = 138770, > > > > + .hdisplay = 1920, > > > > + .hsync_start = 1920 + 48, > > > > + .hsync_end = 1920 + 48 + 32, > > > > + .htotal = 1920 + 48 + 32 + 80, > > > > + .vdisplay = 1080, > > > > + .vsync_start = 1080 + 8, > > > > + .vsync_end = 1080 + 8 + 8, > > > > + .vtotal = 1080 + 8 + 8 + 16, > > > > + .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_NVSYNC, > > > > +}; > > > > + > > > > +static const struct panel_desc samsung_atna33xc20 = { > > > > + .modes = &samsung_atna33xc20_mode, > > > > + .num_modes = 1, > > > > + .bpc = 10, > > > > + .size = { > > > > + .width = 294, > > > > + .height = 165, > > > > + }, > > > > + .delay = { > > > > + .disable_to_power_off = 200, > > > > + .power_to_enable = 400, > > > > + .hpd_absent_delay = 200, > > > > + .unprepare = 500, > > > > + }, > > > > + .connector_type = DRM_MODE_CONNECTOR_eDP, > > > > +}; > > > > > > bus_format is missing. There should be a warning about this when you > > > probe the display. > > > > Sam: I'm curious about the requirement of hardcoding bus_format like > > this for eDP panels. Most eDP panels support a variety of bits per > > pixel and do so dynamically. Ones I've poked at freely support 6bpp > > and 8bpp. Presumably this one supports both of those modes and also > > 10bpp. I haven't done detailed research on it, but it would also > > surprise me if the "bus format" for a given bpp needed to be specified > > for eDP. Presumably since eDP has most of the "autodetect" type > > features of DP then if the format needed to be accounted for that you > > could query the hardware? > > > > Looking at the datasheet for the ti-sn65dsi86 MIPI-to-eDP bridge chip > > I see that it explicitly calls out the bus formats that it supports > > for the MIPI side but doesn't call out anything for eDP. That would > > tend to support my belief that there isn't variance on the eDP side... > > > > Maybe the right fix is to actually change the check not to give a > > warning for eDP panels? ...or am I misunderstanding? > > I have never dived into the datasheets of eDP panels so I do not know. > The checks were added based on what we had in-tree and it is no suprise > if they need an update or are just plain wrong. > I expect you to be in a better position to make the call here - but we > should not add panels that triggers warnings so either fix the warnings > or fix the panel description. Agreed. I'd support a patch that removes this warning for eDP panels unless someone knows that it makes sense. I haven't been able to find anything indicating that it does. -Doug