From patchwork Sun Apr 14 20:08:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Cercueil X-Patchwork-Id: 10900175 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7A48B139A for ; Mon, 15 Apr 2019 07:11:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6170928849 for ; Mon, 15 Apr 2019 07:11:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 55A7928867; Mon, 15 Apr 2019 07:11:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D21672885F for ; Mon, 15 Apr 2019 07:11:49 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E29DC891B8; Mon, 15 Apr 2019 07:11:23 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from crapouillou.net (outils.crapouillou.net [89.234.176.41]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5427D89182 for ; Sun, 14 Apr 2019 20:08:36 +0000 (UTC) From: Paul Cercueil To: David Airlie , Daniel Vetter , Rob Herring , Mark Rutland , Maarten Lankhorst , Maxime Ripard , Sean Paul Subject: [PATCH v3 2/3] dt-bindings: Add header for the ingenic-drm driver bindings Date: Sun, 14 Apr 2019 22:08:23 +0200 Message-Id: <20190414200824.28348-2-paul@crapouillou.net> In-Reply-To: <20190414200824.28348-1-paul@crapouillou.net> References: <20190414200824.28348-1-paul@crapouillou.net> X-Mailman-Approved-At: Mon, 15 Apr 2019 07:11:20 +0000 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1555272512; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=uZuvgEoW5jSMT5jg+gT9IvbVKxQRj342eWWyd/RLZBU=; b=jNiBwaivKqA9J+nbf03yEcsfF1/HCbMpoF36QR7UpBRn33CUTcf/repCuvWD4PiOY/+nuI BA7HBdf1mmeKyfa6S+PkSngaIY27+F98yhT0nCBTpqYvuS+pSxpdRBdOv+68pJ4ag1pU+l Bq0gnVsR5M8Q72hRsFgnoCr3WPsfMfY= X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paul Cercueil , devicetree@vger.kernel.org, od@zcrc.me, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Add macros that can be used with the ingenic,lcd-mode property in the devicetree node that corresponds to the ingenic-drm driver. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek --- Notes: v2: No change v3: s/_DRM// include/dt-bindings/display/ingenic,drm.h | 28 ++++++++++++++++++++++++++++ 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 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 + * + * 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 + +#define JZ_LCD_SPECIAL_TFT_1 1 +#define JZ_LCD_SPECIAL_TFT_2 2 +#define JZ_LCD_SPECIAL_TFT_3 3 + +#define JZ_LCD_NON_INTERLACED_TV_OUT 4 +#define JZ_LCD_INTERLACED_TV_OUT 6 + +#define JZ_LCD_SINGLE_COLOR_STN 8 +#define JZ_LCD_SINGLE_MONOCHROME_STN 9 +#define JZ_LCD_DUAL_COLOR_STN 10 +#define JZ_LCD_DUAL_MONOCHROME_STN 11 + +#define JZ_LCD_8BIT_SERIAL 12 +#define JZ_LCD_LCM 13 + +#endif /* __INCLUDE_DT_BINDINGS_DISPLAY_INGENIC_DRM_H__ */