de2fd156dd5992b0caf78668071b2eb3954082d9
[openwrt/staging/mans0n.git] /
1 From cc7d8104a44cf0ad67081f9ad0efd0e260a2379b Mon Sep 17 00:00:00 2001
2 From: Jacopo Mondi <jacopo@jmondi.org>
3 Date: Sat, 9 May 2020 11:04:44 +0200
4 Subject: [PATCH] media: dt-bindings: video-interfaces: Document
5 'orientation' property
6
7 Add the 'orientation' device property, used to specify the device mounting
8 position. The property is particularly meaningful for mobile devices
9 with a well defined usage orientation.
10
11 Reviewed-by: Rob Herring <robh@kernel.org>
12 Acked-by: Tomasz Figa <tfiga@chromium.org>
13 Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
14 Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
15 Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
16
17 Commit cabc918e5b877ed547e5b6463f5ea6e3ac4edbb3 upstream
18
19 Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
20 ---
21 .../devicetree/bindings/media/video-interfaces.txt | 11 +++++++++++
22 1 file changed, 11 insertions(+)
23
24 --- a/Documentation/devicetree/bindings/media/video-interfaces.txt
25 +++ b/Documentation/devicetree/bindings/media/video-interfaces.txt
26 @@ -89,6 +89,17 @@ Optional properties
27 but a number of degrees counter clockwise. Typical values are 0 and 180
28 (upside down).
29
30 +- orientation: The orientation of a device (typically an image sensor or a flash
31 + LED) describing its mounting position relative to the usage orientation of the
32 + system where the device is installed on.
33 + Possible values are:
34 + 0 - Front. The device is mounted on the front facing side of the system.
35 + For mobile devices such as smartphones, tablets and laptops the front side is
36 + the user facing side.
37 + 1 - Back. The device is mounted on the back side of the system, which is
38 + defined as the opposite side of the front facing one.
39 + 2 - External. The device is not attached directly to the system but is
40 + attached in a way that allows it to move freely.
41
42 Optional endpoint properties
43 ----------------------------