Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3237531pxu; Mon, 19 Oct 2020 07:24:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAfG26xmRSFGlYLmLRki0Yki7RyI9hVm6gk5QbEbq0TIyOB7JdLLYa2cqxCSE2wEeKC3rp X-Received: by 2002:a17:906:b783:: with SMTP id dt3mr138478ejb.534.1603117489672; Mon, 19 Oct 2020 07:24:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603117489; cv=none; d=google.com; s=arc-20160816; b=v4zK2hPYRT0o8lqhKcxRAWm4LIHz+iBgEOTBmYH4pI5cA1C9mNARwCKAfY85o66jdO 7InO1KMWhJoB7Nxo9YOgZgSvjn8U9OwgqOqX4JeTRi1pvvaKBIQ5o/DleimCvzY/vthj aSbaUbw4ErG9mNkh+y4WasAXbKsNRvfHQFiDpv3ZbYFkq5zMEg0y19prBTFX5oOSxbbi wyfBpRLb0JwpVS+fE1d2EM8dvOer/ZpqdM/v56VYD4gJtetatW/OvF8s4mx9ZyziC1f7 LgRwlzb/HMdbtiIT9fKL/tKZ+/42YuIJgjVzgR7pP8BnBrRn9DysyWeyrafVeadPl0vV +W+Q== 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 :references:in-reply-to:message-id:subject:reply-to:cc:from:to :dkim-signature:date; bh=AvlSjPI3Me+ZbY0QqfRvvc7iGE+vKeFgTugSWG0IhM0=; b=kBeAhntjm4OER9hx57oGLUHvGIuQojHfyCpPgHpbprwcwhg72XHeNozm/XDdLhzNuZ 5LkM0Gt9AHuHOhp73Cs3xgCNCVMncvyHhpZnO7L31x0n3wPAVeV/rXE5RSOtXePfwQ5f pFYRZANUUU3bjYHhNMgZDl6o+N11JH6mvWWzO23X5T8Ujl9CrZnFpYUniZ3W8M4BYolN EeO1jxIybxuCpHl0nwf/78uKgDk0hS3a8BJbfim9Ex2I90D9FtNEAVCkN6lrJNVXSQ2q +sPpXZI/Ul3OfqdISsjajRR05isBLprDXi2CNog7AwtsuBR37ozag796Bv73/uHsn4vS seIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@connolly.tech header.s=protonmail header.b=YzAWRqQC; 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=connolly.tech Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j14si8180046edy.562.2020.10.19.07.24.27; Mon, 19 Oct 2020 07:24:49 -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=@connolly.tech header.s=protonmail header.b=YzAWRqQC; 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=connolly.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729397AbgJSOV3 (ORCPT + 99 others); Mon, 19 Oct 2020 10:21:29 -0400 Received: from mail-03.mail-europe.com ([91.134.188.129]:52910 "EHLO mail-03.mail-europe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729350AbgJSOV3 (ORCPT ); Mon, 19 Oct 2020 10:21:29 -0400 Date: Mon, 19 Oct 2020 14:21:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=connolly.tech; s=protonmail; t=1603117282; bh=AvlSjPI3Me+ZbY0QqfRvvc7iGE+vKeFgTugSWG0IhM0=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=YzAWRqQC88AqO0NSkOJdo6Z5rdbVeUaZW6y+o6VL3sfKq2KS8Q5GdsZkxGC9f1PIF QQYpTz17OQjpi8RJdtRxfnNJRugzKiVyJpqGb503v+1u5dTQb5STGr7oKa2eQqMjJX Krq3fUmWnTZ5/OvCLH7HjB95C0tchgwMcPsT/vJ8= To: Sam Ravnborg From: Caleb Connolly Cc: linux-arm-msm@vger.kernel.org, Thierry Reding , David Airlie , Daniel Vetter , ~postmarketos/upstreaming@lists.sr.ht, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Reply-To: Caleb Connolly Subject: Re: [PATCH 1/5] drm/panel/oneplus6: Add panel-oneplus6 Message-ID: In-Reply-To: <20201018133546.GA352707@ravnborg.org> References: <20201007174736.292968-1-caleb@connolly.tech> <20201007174736.292968-2-caleb@connolly.tech> <20201018133546.GA352707@ravnborg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sam, Thanks a lot for the feedback! I'll get those issues resolved for the=20 next revision. Caleb On 2020-10-18 14:35, Sam Ravnborg wrote: > Hi Caleb. > > I have missed to provice review feedback so here goes. > There is some improvements that can be made as the infrastructure has > evolved since the driver was started. > But despite the number of comments below it is all trivial and the > driver looks good in general. > > I look forward to see the next revision. > > =09Sam > > On Wed, Oct 07, 2020 at 05:49:08PM +0000, Caleb Connolly wrote: >> This commit adds support for the display panels used in the OnePlus 6 / >> T devices. >> >> The OnePlus 6/T devices use different panels however they are >> functionally identical with much of the commands being shared. The >> panels don't appear to be used by any other devices some combine them as >> one driver that is specific to the devices. >> >> The panels are: samsung,sofef00 >> and samsung,s6e3fc2x01 >> >> Signed-off-by: Caleb Connolly >> --- >> drivers/gpu/drm/panel/Kconfig | 12 + >> drivers/gpu/drm/panel/Makefile | 1 + >> drivers/gpu/drm/panel/panel-oneplus6.c | 418 +++++++++++++++++++++++++ > It would be better to name the driver after the panels and not their > user. So something like panel-samsung-sofef00. > It is OK to name it after one panel and let it support mroe than one > panel. The Kconfig description could then expain where it is used. > > >> 3 files changed, 431 insertions(+) >> create mode 100644 drivers/gpu/drm/panel/panel-oneplus6.c >> >> diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconf= ig >> index de2f2a452be5..d72862265400 100644 >> --- a/drivers/gpu/drm/panel/Kconfig >> +++ b/drivers/gpu/drm/panel/Kconfig >> @@ -229,6 +229,18 @@ config DRM_PANEL_OLIMEX_LCD_OLINUXINO >> =09 Say Y here if you want to enable support for Olimex Ltd. >> =09 LCD-OLinuXino panel. >> >> +config DRM_PANEL_ONEPLUS6 >> +=09tristate "OnePlus 6/6T Samsung AMOLED DSI command mode panels" >> +=09depends on OF >> +=09depends on DRM_MIPI_DSI >> +=09depends on BACKLIGHT_CLASS_DEVICE >> +=09select VIDEOMODE_HELPERS >> +=09help >> +=09 Say Y or M here if you want to enable support for the Samsung AMOL= ED >> +=09 command mode panels found in the OnePlus 6/6T smartphones. >> + >> +=09 The panels are 2280x1080@60Hz and 2340x1080@60Hz respectively >> + >> config DRM_PANEL_ORISETECH_OTM8009A >> =09tristate "Orise Technology otm8009a 480x800 dsi 2dl panel" >> =09depends on OF >> diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Make= file >> index e45ceac6286f..017539056f53 100644 >> --- a/drivers/gpu/drm/panel/Makefile >> +++ b/drivers/gpu/drm/panel/Makefile >> @@ -21,6 +21,7 @@ obj-$(CONFIG_DRM_PANEL_NEC_NL8048HL11) +=3D panel-nec-= nl8048hl11.o >> obj-$(CONFIG_DRM_PANEL_NOVATEK_NT35510) +=3D panel-novatek-nt35510.o >> obj-$(CONFIG_DRM_PANEL_NOVATEK_NT39016) +=3D panel-novatek-nt39016.o >> obj-$(CONFIG_DRM_PANEL_OLIMEX_LCD_OLINUXINO) +=3D panel-olimex-lcd-oli= nuxino.o >> +obj-$(CONFIG_DRM_PANEL_ONEPLUS6) +=3D panel-oneplus6.o >> obj-$(CONFIG_DRM_PANEL_ORISETECH_OTM8009A) +=3D panel-orisetech-otm800= 9a.o >> obj-$(CONFIG_DRM_PANEL_OSD_OSD101T2587_53TS) +=3D panel-osd-osd101t258= 7-53ts.o >> obj-$(CONFIG_DRM_PANEL_PANASONIC_VVX10F034N00) +=3D panel-panasonic-vv= x10f034n00.o >> diff --git a/drivers/gpu/drm/panel/panel-oneplus6.c b/drivers/gpu/drm/pa= nel/panel-oneplus6.c >> new file mode 100644 >> index 000000000000..5e212774b1e0 >> --- /dev/null >> +++ b/drivers/gpu/drm/panel/panel-oneplus6.c >> @@ -0,0 +1,418 @@ >> +// SPDX-License-Identifier: GPL-2.0-only >> +/* Copyright (c) 2020 Caleb Connolly >> + * Generated with linux-mdss-dsi-panel-driver-generator from vendor dev= ice tree: >> + * Copyright (c) 2020, The Linux Foundation. All rights reserved. >> + * >> + * Caleb Connolly >> + */ >> + >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> + >> +#include