Skip to content
Snippets Groups Projects
Commit c018e3b2 authored by Martyn Welch's avatar Martyn Welch
Browse files

d/patches: Correct handling of camera powerdown GPIO

parent 66818adb
No related branches found
No related tags found
5 merge requests!236Merge changes from apertis/v2023-updates into apertis/v2023,!234Merge changes to v2024dev1 to v2024dev2,!233Merge kernel updates to apertis/v2023-updates,!232Draft: Merge kernel updates to apertis/v2023-updates,!229Update am625 CSI related patches
From: Martyn Welch <martyn.welch@collabora.com>
Date: Wed, 19 Apr 2023 18:24:56 +0100
Subject: arm64: dts: ti: k3-am625-sk: Correct handling of camera powerdown
gpio
The camera has a GPIO to control powerdown of the module. The driver in
older kernel revisions didn't provide support for a power down GPIO, only
a reset GPIO, which used to work. Proper support has since been added to
the upstream kernel to properly support a power down GPIO and part of
that has been backported as a fix to the stable kernel. As a result it
is necessary to switch to properly declaring the GPIO as powerdown.
Declaring as a reset GPIO now results in:
[ 9.322051] ov5640 4-003c: ov5640_write_reg: error: reg=3008, val=82
[ 9.364810] ov5640 4-003c: ov5640_write_reg: error: reg=3008, val=42
[ 9.373045] ov5640 4-003c: ov5640_write_reg: error: reg=3103, val=11
[ 9.381168] ov5640 4-003c: ov5640_read_reg: error: reg=3108
[ 9.396185] ov5640 4-003c: failed to power on
Signed-off-by: Martyn Welch <martyn.welch@collabora.com>
---
arch/arm64/boot/dts/ti/k3-am625-sk.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/ti/k3-am625-sk.dts b/arch/arm64/boot/dts/ti/k3-am625-sk.dts
index f6af54f..54a6f57 100644
--- a/arch/arm64/boot/dts/ti/k3-am625-sk.dts
+++ b/arch/arm64/boot/dts/ti/k3-am625-sk.dts
@@ -426,7 +426,7 @@ ov5640: camera@3c {
clocks = <&clk_ov5640_fixed>;
clock-names = "xclk";
- reset-gpios = <&exp1 13 GPIO_ACTIVE_LOW>;
+ powerdown-gpios = <&exp1 13 GPIO_ACTIVE_LOW>;
port {
csi2_cam0: endpoint {
......@@ -191,6 +191,7 @@ apertis/am62x-csi/0138-media-dt-bindings-Add-DT-bindings-for-TI-J721E-CSI2R.patc
apertis/am62x-csi/0139-media-dt-bindings-Convert-Cadence-CSI2RX-binding-to-.patch
apertis/am62x-csi/0140-Pull-device-tree-nodes-required-for-camera-use-from-.patch
apertis/am62x-csi/0141-Hack-ov5640-driver-to-use-1-MIPI-data-lane.patch
apertis/am62x-csi/0157-arm64-dts-ti-k3-am625-sk-Correct-handling-of-camera-.patch
# AM625 M4F IPC
apertis/am62x/0149-dt-bindings-remoteproc-k3-m4f-Add-bindings-for-K3-AM.patch
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment