Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2579233yba; Mon, 22 Apr 2019 09:14:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqzJL+3IinoLE9F5rqkOob8hI9yxlSl1zmDwUgWL0c06AAn/QMsrotg57eW/Qt+s7WYooG4b X-Received: by 2002:a65:6688:: with SMTP id b8mr10033085pgw.81.1555949664301; Mon, 22 Apr 2019 09:14:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555949664; cv=none; d=google.com; s=arc-20160816; b=SeNlM8q0wzFeinFlf0zCFN4R6xpJnR/allGjP/Tb/t3E8an76QtsB3uMgaI5lSfT3F qDWfLyKrIwZQFXWXonPvvKrTEedsvCzttdfCyZqtfjnSfgNPWz2vJ3Sn8CD1AmLXeffG RfnvfaJ0KqXmzWL8mIJIYe4F85bSwGyZiCbIJfFeWROJBJr4Sl8kgQwTeNRnsVlpHHNy cqIqZh+bwc+bQCrJXjdidEzF+Mr4Wh0mpFRAGFmcXAg/NkbPueuGgiDwHqkUvOh2XePa M+tp7wkZY/Nr78xi64Gy6j5EkD4PrvMETTjES9EvgVg5gr/njA6ZO63qFJYoBm6LwCL+ RYcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:cc:to:subject:from:date :dkim-signature; bh=AgYqFhHK9+KEdoRaW0HT5/Jpbx15R9mKS2eYOPHyvQU=; b=kvtXy3FfwK8tb5fXKaB0ytENDFnmbLptgwDDzTiXnhqk0tPj8g3aJJgwL64oOvLXmd BgJCHyEU+SYukTCZ/glLZ/LytrbXwg5MGFQ23WYEdmr6Dp4G2K8TeU9b46xKzztyjwDi uyK6Cm8LCHRfu3oQcQjbr376BfRChd/PPiDIVeD9ImwWK/vEEZX0kxP4AnygrWBtxKcN dZLEhV7iWfrdhc5LXhLPeIlPWhvjT1EClvILuaB0tAXgUS2xi2j7YK1bN1rm9gFI/1uM IkqRk43JHrIq+LH1TEiRiWN7S8WySO1h+JnJiH9rHWMY/6a7rjXzhH10Uk67NEgIe7zE pgxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=E5HfDJqO; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m5si13157138pll.132.2019.04.22.09.14.08; Mon, 22 Apr 2019 09:14:24 -0700 (PDT) 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; dkim=fail header.i=@crapouillou.net header.s=mail header.b=E5HfDJqO; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727487AbfDVQNN (ORCPT + 99 others); Mon, 22 Apr 2019 12:13:13 -0400 Received: from outils.crapouillou.net ([89.234.176.41]:56582 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726098AbfDVQNN (ORCPT ); Mon, 22 Apr 2019 12:13:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1555949588; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=AgYqFhHK9+KEdoRaW0HT5/Jpbx15R9mKS2eYOPHyvQU=; b=E5HfDJqOG/dKz5uh7mOGylwgUlc5MSDOmxwoLxV3ytrQ6rZo3uBZ0Zlpyy6xOSiSx8I8c5 MlEnkQdSxXIMDXaxULwWIbYS1Qs1Kh/lHA1gCFYAkdahEmM0QUlNkKy9c+sf7YK+RMsrpd mTWOV5fLJCoyJHX1aJzVBWnLG5VlvPc= Date: Mon, 22 Apr 2019 18:13:02 +0200 From: Paul Cercueil Subject: Re: [PATCH v3 2/3] dt-bindings: Add header for the ingenic-drm driver bindings To: Ezequiel Garcia Cc: Rob Herring , David Airlie , Daniel Vetter , Mark Rutland , Maarten Lankhorst , Maxime Ripard , Sean Paul , od@zcrc.me, dri-devel , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Message-Id: <1555949582.1483.0@crapouillou.net> In-Reply-To: References: <20190414200824.28348-1-paul@crapouillou.net> <20190414200824.28348-2-paul@crapouillou.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Le sam. 20 avril 2019 =E0 14:23, Ezequiel Garcia=20 a =E9crit : > On Wed, 17 Apr 2019 at 10:48, Rob Herring wrote: >>=20 >> On Sun, Apr 14, 2019 at 3:08 PM Paul Cercueil=20 >> wrote: >> > >> > Add macros that can be used with the ingenic,lcd-mode property in=20 >> the >> > devicetree node that corresponds to the ingenic-drm driver. >>=20 >> DRM is a Linuxism. >>=20 >> > >> > Signed-off-by: Paul Cercueil >> > Tested-by: Artur Rojek >> > --- >> > >> > Notes: >> > v2: No change >> > >> > v3: s/_DRM// >> > >> > include/dt-bindings/display/ingenic,drm.h | 28=20 >> ++++++++++++++++++++++++++++ >>=20 >> DRM is a Linuxism... >>=20 >> > 1 file changed, 28 insertions(+) >> > create mode 100644 include/dt-bindings/display/ingenic,drm.h >> > >> > diff --git a/include/dt-bindings/display/ingenic,drm.h=20 >> b/include/dt-bindings/display/ingenic,drm.h >> > new file mode 100644 >> > index 000000000000..c749b8c346fc >> > --- /dev/null >> > +++ b/include/dt-bindings/display/ingenic,drm.h >> > @@ -0,0 +1,28 @@ >> > +/* SPDX-License-Identifier: GPL-2.0 */ >> > +/* >> > + * Ingenic JZ47xx KMS driver >>=20 >> Pretty sure this file is not a KMS driver. >>=20 >> > + * >> > + * Copyright (C) 2019, Paul Cercueil >> > + */ >> > +#ifndef __INCLUDE_DT_BINDINGS_DISPLAY_INGENIC_DRM_H__ >> > +#define __INCLUDE_DT_BINDINGS_DISPLAY_INGENIC_DRM_H__ >> > + >> > +#define JZ_LCD_GENERIC_16BIT 0 >> > +#define JZ_LCD_GENERIC_18BIT 16 >>=20 >> We have some generic properties for defining the bus width already. >> Plus, in many cases this can be implied by the panel compatible. The >> exceptions are cases such as when both the ctrlr and panel support >> multiple modes. >>=20 >=20 > In the same direction as Rob's comment, I'd like to see these=20 > decoupled > from the register value. >=20 > Ideally, we'd like to reuse this driver and its bindings for JZ4780, > and these values are already different. Well they are not any different on the JZ4780, I just checked on the=20 manual. But yes, I don't mind getting rid of that devicetree property and its corresponding bindings file. The major problem is that we don't have a way to map some of the values=20 there to DRM macros. I sumitted a PR to add a MEDIA_BUS_FMT_RGB888_3X8_BE bus=20 format (that I could detect to support 8-bit serial TFT panels, which is what=20 the Ben Nanonote uses), but I miss a way to detect the special* TFT panels. I will leave these aside for now, but I want to support them eventually. Thanks, -Paul * "special" TFT panels have extra pins (CLS, SPL, REV, PS) and seem to=20 be a thing from Sharp. Ingenic SoCs (as well as i.MX SoCs) have the required hardware to drive these panels. > Thanks! > -- > Ezequiel Garc=EDa, VanguardiaSur > www.vanguardiasur.com.ar =