From patchwork Thu Feb 28 22:07:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Cercueil X-Patchwork-Id: 10834653 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 D5E7E1575 for ; Fri, 1 Mar 2019 08:32:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C65C42F533 for ; Fri, 1 Mar 2019 08:32:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C2FC22F716; Fri, 1 Mar 2019 08:32:09 +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 713E02F86D for ; Fri, 1 Mar 2019 08:32:09 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id ECA4D6E29E; Fri, 1 Mar 2019 08:31:30 +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 150BA6E23F for ; Thu, 28 Feb 2019 22:08:19 +0000 (UTC) From: Paul Cercueil To: David Airlie , Daniel Vetter , Rob Herring , Mark Rutland , Maarten Lankhorst , Maxime Ripard , Sean Paul Subject: [PATCH 2/3] dt-bindings: Add header for the ingenic-drm driver bindings Date: Thu, 28 Feb 2019 19:07:55 -0300 Message-Id: <20190228220756.20262-3-paul@crapouillou.net> In-Reply-To: <20190228220756.20262-1-paul@crapouillou.net> References: <20190228220756.20262-1-paul@crapouillou.net> X-Mailman-Approved-At: Fri, 01 Mar 2019 08:31:26 +0000 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1551391697; 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=9bmu3olBDU1SPJkeX/p/57byvzXNqGam6CRS32e7Sbs=; b=TR7BP2mkiY4/MbSCokfAxFP4aHGRPszbnHfxUyxDg0ej+ehlSQ7/OgQWuatAy5ojyLbb8u gqXu/NljGhpY7qFS29Wn0MIWX5Ar572fmv+yKKMSlkQyXdQ33/nCVnQioAgwiGHY7vV9A5 b+Da580JQL3zkv8QDgCjsg+JbIXRmNw= 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, linux-mips@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.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 --- 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..20c5399366c1 --- /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_DRM_LCD_GENERIC_16BIT 0 +#define JZ_DRM_LCD_GENERIC_18BIT 16 + +#define JZ_DRM_LCD_SPECIAL_TFT_1 1 +#define JZ_DRM_LCD_SPECIAL_TFT_2 2 +#define JZ_DRM_LCD_SPECIAL_TFT_3 3 + +#define JZ_DRM_LCD_NON_INTERLACED_TV_OUT 4 +#define JZ_DRM_LCD_INTERLACED_TV_OUT 6 + +#define JZ_DRM_LCD_SINGLE_COLOR_STN 8 +#define JZ_DRM_LCD_SINGLE_MONOCHROME_STN 9 +#define JZ_DRM_LCD_DUAL_COLOR_STN 10 +#define JZ_DRM_LCD_DUAL_MONOCHROME_STN 11 + +#define JZ_LCD_TYPE_8BIT_SERIAL 12 +#define JZ_LCD_TYPE_LCM 13 + +#endif /* __INCLUDE_DT_BINDINGS_DISPLAY_INGENIC_DRM_H__ */