Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Sakari Ailus and committed by
Mauro Carvalho Chehab
6d4e7919 e1a98c16

+4
+4
Documentation/devicetree/bindings/media/video-interfaces.txt
··· 85 85 86 86 - lens-focus: A phandle to the node of the focus lens controller. 87 87 88 + - rotation: The device, typically an image sensor, is not mounted upright, 89 + but a number of degrees counter clockwise. Typical values are 0 and 180 90 + (upside down). 91 + 88 92 89 93 Optional endpoint properties 90 94 ----------------------------