[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250718-fpf-media-dt-flip-v1-1-75b3a938b4be@pengutronix.de>
Date: Wed, 23 Jul 2025 10:58:29 +0200
From: Fabian Pfitzner <f.pfitzner@...gutronix.de>
To: Mauro Carvalho Chehab <mchehab@...nel.org>,
Rob Herring <robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, Jacopo Mondi <jacopo@...ndi.org>,
Sakari Ailus <sakari.ailus@...ux.intel.com>
Cc: linux-media@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, entwicklung@...gutronix.de,
Fabian Pfitzner <f.pfitzner@...gutronix.de>
Subject: [PATCH 1/2] media: dt-bindings: add flip properties
There are cameras containing a mirror on their optical path e. g. when
mounted upside down.
Introduce two options to change the device's flip property via device tree.
As there is already support for the panel-common driver [1], add it for cameras as well.
[1] commit 3c0ecd83eee9 ("dt-bindings: display: panel: Move flip properties to panel-common")
Signed-off-by: Fabian Pfitzner <f.pfitzner@...gutronix.de>
---
.../devicetree/bindings/media/video-interface-devices.yaml | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/Documentation/devicetree/bindings/media/video-interface-devices.yaml b/Documentation/devicetree/bindings/media/video-interface-devices.yaml
index cf7712ad297c0..36d766992b271 100644
--- a/Documentation/devicetree/bindings/media/video-interface-devices.yaml
+++ b/Documentation/devicetree/bindings/media/video-interface-devices.yaml
@@ -383,6 +383,14 @@ properties:
| |
+--------------------+
+ flip-horizontal:
+ description: boolean to flip image horizontally
+ type: boolean
+
+ flip-vertical:
+ description: boolean to flip image vertically
+ type: boolean
+
orientation:
description:
The orientation of a device (typically an image sensor or a flash LED)
--
2.39.5
Powered by blists - more mailing lists