Files
openwrt-master/target/linux/bcm27xx/patches-6.6/950-1101-ARM-dts-Fix-camera-sync-parameters.patch
domenico c06fb25d1f
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
Initial commit
2025-06-24 14:35:53 +02:00

48 lines
2.0 KiB
Diff

From a59df153f48d2da66a4de8ec4b87c70e0cf3486c Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.com>
Date: Wed, 22 May 2024 14:13:25 +0100
Subject: [PATCH 1101/1135] ARM: dts: Fix camera sync parameters
The camera sync parameter declarations include are invalid in that they
have both embedded string values and following cell values. The
intention here was to use the cell values, but the embedded "0" was
not removed as it should have been.
The implication of this mistake is that inverted sync flags would be
ignored because the 0 value corresponds to GPIO_ACTIVE_HIGH. The
extra cell value would be treated as the start of another override,
but then ignored because the end of the parameter is reached.
These errors should have been picked up by the automated checks, but
the base dts files weren't subjected to the same validation. This has
now been corrected.
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
---
arch/arm/boot/dts/broadcom/bcm270x-rpi.dtsi | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
--- a/arch/arm/boot/dts/broadcom/bcm270x-rpi.dtsi
+++ b/arch/arm/boot/dts/broadcom/bcm270x-rpi.dtsi
@@ -100,16 +100,16 @@
cam1_sync = <&csi1>, "sync-gpios:0=", <&gpio>,
<&csi1>, "sync-gpios:4",
- <&csi1>, "sync-gpios:8=0", <GPIO_ACTIVE_HIGH>;
+ <&csi1>, "sync-gpios:8=", <GPIO_ACTIVE_HIGH>;
cam1_sync_inverted = <&csi1>, "sync-gpios:0=", <&gpio>,
<&csi1>, "sync-gpios:4",
- <&csi1>, "sync-gpios:8=0", <GPIO_ACTIVE_LOW>;
+ <&csi1>, "sync-gpios:8=", <GPIO_ACTIVE_LOW>;
cam0_sync = <&csi0>, "sync-gpios:0=", <&gpio>,
<&csi0>, "sync-gpios:4",
- <&csi0>, "sync-gpios:8=0", <GPIO_ACTIVE_HIGH>;
+ <&csi0>, "sync-gpios:8=", <GPIO_ACTIVE_HIGH>;
cam0_sync_inverted = <&csi0>, "sync-gpios:0=", <&gpio>,
<&csi0>, "sync-gpios:4",
- <&csi0>, "sync-gpios:8=0", <GPIO_ACTIVE_LOW>;
+ <&csi0>, "sync-gpios:8=", <GPIO_ACTIVE_LOW>;
strict_gpiod = <&chosen>, "bootargs=pinctrl_bcm2835.persist_gpio_outputs=n";
};