All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
To: Sebastian Reichel <sre@kernel.org>,
	Tomi Valkeinen <tomi.valkeinen@ti.com>,
	Tony Lindgren <tony@atomide.com>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	Hans de Goede <hdegoede@redhat.com>,
	Rob Herring <robh+dt@kernel.org>,
	Mark Rutland <mark.rutland@arm.com>,
	dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
	linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org,
	kernel@collabora.com,
	Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Subject: [PATCHv2 4/8] dt-bindings: panel: common: document orientation property
Date: Thu,  8 Feb 2018 19:30:31 +0100	[thread overview]
Message-ID: <20180208183035.8461-5-sebastian.reichel@collabora.co.uk> (raw)
In-Reply-To: <20180208183035.8461-1-sebastian.reichel@collabora.co.uk>

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 <sebastian.reichel@collabora.co.uk>
---
 .../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
-- 
2.15.1

  parent reply	other threads:[~2018-02-08 18:30 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-08 18:30 [PATCHv2 0/8] omapdrm: DSI command mode panel support Sebastian Reichel
2018-02-08 18:30 ` Sebastian Reichel
2018-02-08 18:30 ` [PATCHv2 1/8] drm/omap: add framedone interrupt support Sebastian Reichel
2018-02-08 18:30   ` Sebastian Reichel
2018-03-20 14:28   ` Tony Lindgren
2018-02-08 18:30 ` [PATCHv2 2/8] drm/omap: add manual update detection helper Sebastian Reichel
2018-02-08 18:30   ` Sebastian Reichel
2018-03-20 14:28   ` Tony Lindgren
2018-02-08 18:30 ` [PATCHv2 3/8] drm/omap: add support for manually updated displays Sebastian Reichel
2018-02-08 18:30   ` Sebastian Reichel
2018-03-20 14:29   ` Tony Lindgren
2018-02-08 18:30 ` Sebastian Reichel [this message]
2018-02-18 23:24   ` [PATCHv2 4/8] dt-bindings: panel: common: document orientation property Rob Herring
2018-02-18 23:24     ` Rob Herring
2018-02-19 11:06     ` Sebastian Reichel
2018-02-19 11:06       ` Sebastian Reichel
2018-02-20 19:09       ` Rob Herring
2018-02-20 19:09         ` Rob Herring
2018-02-08 18:30 ` [PATCHv2 5/8] drm/omap: add support for orientation hints from display drivers Sebastian Reichel
2018-02-08 18:30 ` [PATCHv2 6/8] drm/omap: panel-dsi-cm: add orientation support Sebastian Reichel
2018-02-08 18:30 ` [PATCHv2 7/8] ARM: dts: omap4-droid4: Add LCD panel orientation property Sebastian Reichel
2018-02-08 18:30 ` [PATCHv2 8/8] drm/omap: plane: update fifo size on ovl setup Sebastian Reichel
2018-02-08 18:30   ` Sebastian Reichel
2018-02-08 23:13 ` [PATCHv2 0/8] omapdrm: DSI command mode panel support Tony Lindgren
2018-03-20 14:31 ` Tony Lindgren

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180208183035.8461-5-sebastian.reichel@collabora.co.uk \
    --to=sebastian.reichel@collabora.co.uk \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=hdegoede@redhat.com \
    --cc=kernel@collabora.com \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=robh+dt@kernel.org \
    --cc=sre@kernel.org \
    --cc=tomi.valkeinen@ti.com \
    --cc=tony@atomide.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.