From patchwork Fri Mar 15 17:07:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Cercueil X-Patchwork-Id: 10855911 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 2C0831823 for ; Sat, 16 Mar 2019 15:41:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 138E42A171 for ; Sat, 16 Mar 2019 15:41:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 07A9F2A228; Sat, 16 Mar 2019 15:41:27 +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 BD9342A171 for ; Sat, 16 Mar 2019 15:41:26 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C5AD96E207; Sat, 16 Mar 2019 15:41:09 +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 B7E726E4CA for ; Fri, 15 Mar 2019 17:07:12 +0000 (UTC) From: Paul Cercueil To: David Airlie , Daniel Vetter , Rob Herring , Mark Rutland , Maarten Lankhorst , Maxime Ripard , Sean Paul Subject: [PATCH v2 2/3] dt-bindings: Add header for the ingenic-drm driver bindings Date: Fri, 15 Mar 2019 18:07:00 +0100 Message-Id: <20190315170701.29670-2-paul@crapouillou.net> In-Reply-To: <20190315170701.29670-1-paul@crapouillou.net> References: <20190315170701.29670-1-paul@crapouillou.net> X-Mailman-Approved-At: Sat, 16 Mar 2019 15:41:07 +0000 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1552669630; 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=Ql4psWdk3I1Kq1XoMQL7t24KhCRSk/jY+XQpaupNjnY=; b=SySVrLtLEHRTnOhkPl62vAdPfCAw589XVyt3JBQw086U9wyYQJIVbpwr1VihJWNHPnzXNh 6GhzWcouZ76OwBclRNnvS5b4FaqqjtNkvQ/QWVbdccHKmRg7ai+8oZ5NBFTyBnVswnc+LH E6FbFLWiTa0bKO4Jag9A8oidWzLUI+M= 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-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 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__ */