Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2939592ybl; Mon, 20 Jan 2020 12:21:42 -0800 (PST) X-Google-Smtp-Source: APXvYqxC9dwlAM/S1M1gZPYXJxFraVJzVXVMOdqV1833Z5sczHJutSzQA+kVhl7gx8Fw6PBX+eno X-Received: by 2002:a9d:750b:: with SMTP id r11mr957355otk.209.1579551702803; Mon, 20 Jan 2020 12:21:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579551702; cv=none; d=google.com; s=arc-20160816; b=zkXGteBg5R+g/7QvyLcozzZ0CXJZA9pHRchA7ebqBuRNdLBO3kuRmNJIfYszTAUmg2 zzqrF2y6SXZ5QdYT7isUJsRKiyalFx4mlkBZ7kLlKN4S/YSQs4SFlYzRlPKw80aka97f +73m9pfJkzpULwFH6b26vT33vt/CTrulbXUMHLw1RVCrN3UISf4goMl/xv6ZiaqHbs3N 9zV/LH5W6APQQnDXJMwIuChiGVNhfBPUpYbWf2AEqMDG490ebbDp2fEuouJC+Rhqbbhk CzA+cDGgZP9ezTqWGAlVRwYBiUakPyDZKyMB2NK2xISM4rs51OHs1bKR5lJE2msd+gsp 2BKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=7+stDDznjhQLqlck8JGQ+/Wf59O8tZuDK8XUbJRhLyA=; b=ZuxmpEor3Ja7u8tU3r8tbeLn27curcVMxtM2TeHdElTo6Dy9/BM6f8jpqpr862K08N 3N8gxvOIb+i8HTDch4rjtIwOJeMLVdf93MC2n3KATx+fdoQ7JxyTYtSa8773fak4p5BL QHIjpyolPOUrPFaWXz//qLNDygn694KzP77rtzhg/kmbi+0++qTd2sZYo98ymhXh/gwQ XeOrq4/GQ5QltG0jJhqLaOVtdppD/ICTNO0B4KWIplXR4/US1D+sp7bqCmApUOhB1R3P sFAQUUAjMC8a5RN0JvbzRWICJfgIPRjDlwERfP9emc2A97k1OJl/idhtoR72nvESDjo2 hZ3A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v14si19927442oto.127.2020.01.20.12.21.31; Mon, 20 Jan 2020 12:21:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727011AbgATUUK (ORCPT + 99 others); Mon, 20 Jan 2020 15:20:10 -0500 Received: from asavdk3.altibox.net ([109.247.116.14]:46542 "EHLO asavdk3.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726752AbgATUUJ (ORCPT ); Mon, 20 Jan 2020 15:20:09 -0500 Received: from ravnborg.org (unknown [158.248.194.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by asavdk3.altibox.net (Postfix) with ESMTPS id 8C24C2002C; Mon, 20 Jan 2020 21:20:06 +0100 (CET) Date: Mon, 20 Jan 2020 21:20:05 +0100 From: Sam Ravnborg To: Oleksandr Suvorov Cc: Marcel Ziswiler , "linux-kernel@vger.kernel.org" , David Airlie , Igor Opanyuk , Thierry Reding , "dri-devel@lists.freedesktop.org" Subject: Re: [PATCH 1/3] drm/panel: make LVDS panel driver DPI capable Message-ID: <20200120202005.GA17555@ravnborg.org> References: <20200115123401.2264293-1-oleksandr.suvorov@toradex.com> <20200115123401.2264293-2-oleksandr.suvorov@toradex.com> <20200118130418.GA13417@ravnborg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=eMA9ckh1 c=1 sm=1 tr=0 a=UWs3HLbX/2nnQ3s7vZ42gw==:117 a=UWs3HLbX/2nnQ3s7vZ42gw==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=7gkXJVJtAAAA:8 a=vY_M7HEJ-dsChd7xKHoA:9 a=CjuIK1q_8ugA:10 a=E9Po1WZjFZOl8hwRPBS3:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Oleksandr. Thanks for the quick reply. On Mon, Jan 20, 2020 at 10:03:20AM +0000, Oleksandr Suvorov wrote: > Hi Sam, > > On Sat, Jan 18, 2020 at 3:04 PM Sam Ravnborg wrote: > > > > > > The LVDS panel driver has almost everything which is required to > > > describe a simple parallel RGB panel (also known as DPI, Display > > > Pixel Interface). > > > > > > --- > > > > There are a few high-level things we need to have sorted out. > > > > The driver, when this patch is added, assumes that certain properties > > are now mandatory when using the panel-dpi compatible. > > - data-mapping > > - width-mm > > - height-mm > > - panel-timing > > > > But this does not match the panel-dpi binding. > > So we need the panel-dpi binding updated first. I just sent a patch-set converting this binding to DT schema. Let's land this and you can make your changes on top of it. Care to review it? > > > > > > The current driver specify the connector type in drm_panel_init(). > > But a DPI panel is assumed to use a DRM_MODE_CONNECTOR_DPI, > > and not a DRM_MODE_CONNECTOR_LVDS. > > So the drm_panel_init() call needs to take into account the type > > of binding. > > > Thanks, I'll fix it in 2nd version. > > > > > @@ -257,7 +279,7 @@ static struct platform_driver panel_lvds_driver = { > > > .probe = panel_lvds_probe, > > > .remove = panel_lvds_remove, > > > .driver = { > > > - .name = "panel-lvds", > > > + .name = "panel-generic", > > > > I think changing the name of the driver like this is an UAPI change, > > which is not OK > > I see 2 simple ways there: > - keep the original platform driver name; Please keep the original platform driver name. It is a bit confusing but this is the best option I see. Sam