arm64: dts: qcom: sdm845-db845c: Fix reset-pin of ov8856 node
authorRobert Foss <robert.foss@linaro.org>
Mon, 21 Dec 2020 10:09:55 +0000 (11:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Mar 2021 10:37:24 +0000 (11:37 +0100)
[ Upstream commit d4863ef399a29cae3001b3fedfd2864e651055ba ]

Switch reset pin of ov8856 node from GPIO_ACTIVE_HIGH to GPIO_ACTIVE_LOW,
this issue prevented the ov8856 from probing properly as it did not respon
to I2C messages.

Fixes: d4919a44564b ("arm64: dts: qcom: sdm845-db845c: Add ov8856 & ov7251
camera nodes")

Signed-off-by: Robert Foss <robert.foss@linaro.org>
Link: https://lore.kernel.org/r/20201221100955.148584-1-robert.foss@linaro.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm64/boot/dts/qcom/sdm845-db845c.dts

index c0b9381..c4ac6f5 100644 (file)
                reg = <0x10>;
 
                // CAM0_RST_N
-               reset-gpios = <&tlmm 9 0>;
+               reset-gpios = <&tlmm 9 GPIO_ACTIVE_LOW>;
                pinctrl-names = "default";
                pinctrl-0 = <&cam0_default>;
                gpios = <&tlmm 13 0>,
-                       <&tlmm 9 0>;
+                       <&tlmm 9 GPIO_ACTIVE_LOW>;
 
                clocks = <&clock_camcc CAM_CC_MCLK0_CLK>;
                clock-names = "xvclk";