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: 10833785 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 2D993139A for ; Thu, 28 Feb 2019 22:08:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1DE1F28843 for ; Thu, 28 Feb 2019 22:08:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 11F3B2FA8B; Thu, 28 Feb 2019 22:08:25 +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=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8F3DB28843 for ; Thu, 28 Feb 2019 22:08:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733144AbfB1WIT (ORCPT ); Thu, 28 Feb 2019 17:08:19 -0500 Received: from outils.crapouillou.net ([89.234.176.41]:57386 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725918AbfB1WIT (ORCPT ); Thu, 28 Feb 2019 17:08:19 -0500 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= From: Paul Cercueil To: David Airlie , Daniel Vetter , Rob Herring , Mark Rutland , Maarten Lankhorst , Maxime Ripard , Sean Paul Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Cercueil 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> Sender: linux-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org 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__ */