From patchwork Thu Feb 8 18:30:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 10208417 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7EF5E60247 for ; Fri, 9 Feb 2018 08:27:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6E394297CB for ; Fri, 9 Feb 2018 08:27:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 62C19297CF; Fri, 9 Feb 2018 08:27:23 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY 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 DBE61297CB for ; Fri, 9 Feb 2018 08:27:22 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EDE596E77D; Fri, 9 Feb 2018 08:26:32 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by gabe.freedesktop.org (Postfix) with ESMTPS id 420146E688 for ; Thu, 8 Feb 2018 18:30:55 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sre) with ESMTPSA id 1329F272779 From: Sebastian Reichel To: Sebastian Reichel , Tomi Valkeinen , Tony Lindgren Subject: [PATCHv2 4/8] dt-bindings: panel: common: document orientation property Date: Thu, 8 Feb 2018 19:30:31 +0100 Message-Id: <20180208183035.8461-5-sebastian.reichel@collabora.co.uk> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180208183035.8461-1-sebastian.reichel@collabora.co.uk> References: <20180208183035.8461-1-sebastian.reichel@collabora.co.uk> X-Mailman-Approved-At: Fri, 09 Feb 2018 08:26:16 +0000 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: Mark Rutland , devicetree@vger.kernel.org, kernel@collabora.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Hans de Goede , Rob Herring , Laurent Pinchart , Sebastian Reichel , linux-omap@vger.kernel.org MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Introduce new "orientation" property for describing in which orientation a panel has been mounted to the device. This can be used by the operating system to automatically rotate the display correctly. Signed-off-by: Sebastian Reichel --- .../devicetree/bindings/display/panel/panel-common.txt | 12 ++++++++++++ include/dt-bindings/display/common.h | 14 ++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 include/dt-bindings/display/common.h diff --git a/Documentation/devicetree/bindings/display/panel/panel-common.txt b/Documentation/devicetree/bindings/display/panel/panel-common.txt index 557fa765adcb..c646b8908458 100644 --- a/Documentation/devicetree/bindings/display/panel/panel-common.txt +++ b/Documentation/devicetree/bindings/display/panel/panel-common.txt @@ -18,6 +18,18 @@ Descriptive Properties physical area where images are displayed. These properties are expressed in millimeters and rounded to the closest unit. +- orientation: The orientation property specifies the panel orientation + in relation to the device's casing. The following values are possible: + + * 0 = The top side of the panel matches the top side of the device's + casing. + * 1 = The top side of the panel matches the bottom side of the device's + casing. In other words the panel is mounted upside-down. + * 2 = The left side of the panel matches the top side of the device's + casing. + * 3 = The right side of the panel matches the top side of the device's + casing. + - label: The label property specifies a symbolic name for the panel as a string suitable for use by humans. It typically contains a name inscribed on the system (e.g. as an affixed label) or specified in the system's diff --git a/include/dt-bindings/display/common.h b/include/dt-bindings/display/common.h new file mode 100644 index 000000000000..a864775445a0 --- /dev/null +++ b/include/dt-bindings/display/common.h @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * This header provides common constants for displays + */ + +#ifndef _DT_BINDINGS_DISPLAY_COMMON_H +#define _DT_BINDINGS_DISPLAY_COMMON_H + +#define PANEL_ORIENTATION_NORMAL 0 +#define PANEL_ORIENTATION_BOTTOM_UP 1 +#define PANEL_ORIENTATION_LEFT_UP 2 +#define PANEL_ORIENTATION_RIGHT_UP 3 + +#endif