aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/media/video-interfaces.txt
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2018-05-02 16:47:20 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-06-28 08:42:20 -0400
commit6d4e7919d7b5ffc388ec9d8babd72368e6d65d6e (patch)
treeaa909052f8fca18e9724a6a5e19a828b43349c29 /Documentation/devicetree/bindings/media/video-interfaces.txt
parentmedia: media.h: remove __NEED_MEDIA_LEGACY_API (diff)
downloadlinux-dev-6d4e7919d7b5ffc388ec9d8babd72368e6d65d6e.tar.xz
linux-dev-6d4e7919d7b5ffc388ec9d8babd72368e6d65d6e.zip
media: dt-bindings: media: Define "rotation" property for sensors
Sensors are occasionally mounted upside down to systems such as mobile phones or tablets. In order to use such a sensor without having to turn every image upside down, most camera sensors support reversing the readout order by setting both horizontal and vertical flipping. This patch documents the "rotation" property for camera sensors, mirroring what is defined for displays in Documentation/devicetree/bindings/display/panel/panel.txt . Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/media/video-interfaces.txt')
-rw-r--r--Documentation/devicetree/bindings/media/video-interfaces.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/media/video-interfaces.txt b/Documentation/devicetree/bindings/media/video-interfaces.txt
index 258b8dfddf48..52b7c7b57842 100644
--- a/Documentation/devicetree/bindings/media/video-interfaces.txt
+++ b/Documentation/devicetree/bindings/media/video-interfaces.txt
@@ -85,6 +85,10 @@ Optional properties
- lens-focus: A phandle to the node of the focus lens controller.
+- rotation: The device, typically an image sensor, is not mounted upright,
+ but a number of degrees counter clockwise. Typical values are 0 and 180
+ (upside down).
+
Optional endpoint properties
----------------------------