arm-sdk

os build toolkit for various embedded devices
git clone https://git.parazyd.org/arm-sdk
Log | Files | Refs | Submodules | README | LICENSE

0001-PATCHv2-4-8-dt-bindings-panel-common-document-orientation-property.patch (3270B)


      1 From patchwork Thu Feb  8 18:30:31 2018
      2 Content-Type: text/plain; charset="utf-8"
      3 MIME-Version: 1.0
      4 Content-Transfer-Encoding: 7bit
      5 Subject: [PATCHv2,
      6  4/8] dt-bindings: panel: common: document orientation property
      7 From: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
      8 X-Patchwork-Id: 10207749
      9 Message-Id: <20180208183035.8461-5-sebastian.reichel@collabora.co.uk>
     10 To: Sebastian Reichel <sre@kernel.org>,
     11  Tomi Valkeinen <tomi.valkeinen@ti.com>, Tony Lindgren <tony@atomide.com>
     12 Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
     13  Hans de Goede <hdegoede@redhat.com>, Rob Herring <robh+dt@kernel.org>,
     14  Mark Rutland <mark.rutland@arm.com>,
     15  dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
     16  linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org,
     17  kernel@collabora.com, Sebastian Reichel <sebastian.reichel@collabora.co.uk>
     18 Date: Thu,  8 Feb 2018 19:30:31 +0100
     19 
     20 Introduce new "orientation" property for describing in which
     21 orientation a panel has been mounted to the device. This can
     22 be used by the operating system to automatically rotate the
     23 display correctly.
     24 
     25 Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
     26 ---
     27  .../devicetree/bindings/display/panel/panel-common.txt     | 12 ++++++++++++
     28  include/dt-bindings/display/common.h                       | 14 ++++++++++++++
     29  2 files changed, 26 insertions(+)
     30  create mode 100644 include/dt-bindings/display/common.h
     31 
     32 diff --git a/Documentation/devicetree/bindings/display/panel/panel-common.txt b/Documentation/devicetree/bindings/display/panel/panel-common.txt
     33 index 557fa765adcb..c646b8908458 100644
     34 --- a/Documentation/devicetree/bindings/display/panel/panel-common.txt
     35 +++ b/Documentation/devicetree/bindings/display/panel/panel-common.txt
     36 @@ -18,6 +18,18 @@ Descriptive Properties
     37    physical area where images are displayed. These properties are expressed in
     38    millimeters and rounded to the closest unit.
     39  
     40 +- orientation: The orientation property specifies the panel orientation
     41 +  in relation to the device's casing. The following values are possible:
     42 +
     43 +   * 0 = The top side of the panel matches the top side of the device's
     44 +         casing.
     45 +   * 1 = The top side of the panel matches the bottom side of the device's
     46 +         casing. In other words the panel is mounted upside-down.
     47 +   * 2 = The left side of the panel matches the top side of the device's
     48 +         casing.
     49 +   * 3 = The right side of the panel matches the top side of the device's
     50 +         casing.
     51 +
     52  - label: The label property specifies a symbolic name for the panel as a
     53    string suitable for use by humans. It typically contains a name inscribed on
     54    the system (e.g. as an affixed label) or specified in the system's
     55 diff --git a/include/dt-bindings/display/common.h b/include/dt-bindings/display/common.h
     56 new file mode 100644
     57 index 000000000000..a864775445a0
     58 --- /dev/null
     59 +++ b/include/dt-bindings/display/common.h
     60 @@ -0,0 +1,14 @@
     61 +/* SPDX-License-Identifier: GPL-2.0 */
     62 +/*
     63 + * This header provides common constants for displays
     64 + */
     65 +
     66 +#ifndef _DT_BINDINGS_DISPLAY_COMMON_H
     67 +#define _DT_BINDINGS_DISPLAY_COMMON_H
     68 +
     69 +#define PANEL_ORIENTATION_NORMAL 0
     70 +#define PANEL_ORIENTATION_BOTTOM_UP 1
     71 +#define PANEL_ORIENTATION_LEFT_UP 2
     72 +#define PANEL_ORIENTATION_RIGHT_UP 3
     73 +
     74 +#endif