0001-PATCHv2-7-8-ARM-dts-omap4-droid4-Add-LCD-panel-orientation-property.patch (1778B)
1 From patchwork Thu Feb 8 18:30:34 2018 2 Content-Type: text/plain; charset="utf-8" 3 MIME-Version: 1.0 4 Content-Transfer-Encoding: 7bit 5 Subject: [PATCHv2, 6 7/8] ARM: dts: omap4-droid4: Add LCD panel orientation property 7 From: Sebastian Reichel <sebastian.reichel@collabora.co.uk> 8 X-Patchwork-Id: 10207755 9 Message-Id: <20180208183035.8461-8-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:34 +0100 19 20 This adds a LCD panel orientation hint to the Droid 4. If the 21 display is rotated this way the keyboard can be used properly. 22 23 Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk> 24 --- 25 arch/arm/boot/dts/omap4-droid4-xt894.dts | 3 +++ 26 1 file changed, 3 insertions(+) 27 28 diff --git a/arch/arm/boot/dts/omap4-droid4-xt894.dts b/arch/arm/boot/dts/omap4-droid4-xt894.dts 29 index b21084da490b..e11a24397163 100644 30 --- a/arch/arm/boot/dts/omap4-droid4-xt894.dts 31 +++ b/arch/arm/boot/dts/omap4-droid4-xt894.dts 32 @@ -6,6 +6,7 @@ 33 /dts-v1/; 34 35 #include <dt-bindings/input/input.h> 36 +#include <dt-bindings/display/common.h> 37 #include "omap443x.dtsi" 38 #include "motorola-cpcap-mapphone.dtsi" 39 40 @@ -181,6 +182,8 @@ 41 height-mm = <89>; 42 backlight = <&lcd_backlight>; 43 44 + orientation = <PANEL_ORIENTATION_RIGHT_UP>; 45 + 46 panel-timing { 47 clock-frequency = <0>; /* Calculated by dsi */ 48