Skip to content

Commit 84ea288

Browse files
Umang JainHans Verkuil
authored andcommitted
dt-bindings: media: imx335: Add reset-gpios to the DT example
It's easy to get the polarity of GPIOs in the device tree wrong, as shown by a recently fixed bug in the imx335 driver. To lower the chance of future mistakes, especially in new bindings that would take the imx335 binding as a starting point, add the reset-gpios property to the DT example. This showcases the correct polarity of the XCLR signal for Sony sensors in the most common case of the signal not being inverted on the board. Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Umang Jain <umang.jain@ideasonboard.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
1 parent 4a1b669 commit 84ea288

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Documentation/devicetree/bindings/media/i2c/sony,imx335.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ additionalProperties: false
7575

7676
examples:
7777
- |
78+
#include <dt-bindings/gpio/gpio.h>
79+
7880
i2c {
7981
#address-cells = <1>;
8082
#size-cells = <0>;
@@ -92,6 +94,8 @@ examples:
9294
ovdd-supply = <&camera_vddo_1v8>;
9395
dvdd-supply = <&camera_vddd_1v2>;
9496
97+
reset-gpios = <&gpio 50 GPIO_ACTIVE_LOW>;
98+
9599
port {
96100
imx335: endpoint {
97101
remote-endpoint = <&cam>;

0 commit comments

Comments
 (0)