mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 23:12:32 +00:00
48 lines
2.0 KiB
Diff
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";
|
||
|
};
|