00f8c96088f8e7e9e344dfeeb56d791d7d172120
[openwrt/staging/wigyori.git] /
1 From bf29731068a77344efdf241a7a932ffdd3e8f931 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Jakub=20Van=C4=9Bk?= <linuxtardis@gmail.com>
3 Date: Tue, 28 Dec 2021 15:43:10 +0100
4 Subject: [PATCH] dtoverlays: Enable cam1_clock when using tc358743 or
5 irs1125
6
7 This fixes a regression introduced in 131f1322039284932ccb601a5cffdd9ca5d36d96
8 (see also https://github.com/raspberrypi/linux/issues/4791).
9 The tc358743 driver refused to bind to the device. The irs1125
10 driver is likely behaving similarly.
11
12 The new unified cam1_clk node that represents the fixed on-board
13 oscillator is marked as disabled by default. These overlays didn't
14 expect this and so the clock nodes were stuck in disabled state.
15
16 This commit just adds the required status = "okay" line. Other sensor
17 drivers do this too.
18 ---
19 arch/arm/boot/dts/overlays/irs1125-overlay.dts | 1 +
20 arch/arm/boot/dts/overlays/tc358743-overlay.dts | 1 +
21 2 files changed, 2 insertions(+)
22
23 --- a/arch/arm/boot/dts/overlays/irs1125-overlay.dts
24 +++ b/arch/arm/boot/dts/overlays/irs1125-overlay.dts
25 @@ -75,6 +75,7 @@
26 clk_frag: fragment@5 {
27 target = <&cam1_clk>;
28 __overlay__ {
29 + status = "okay";
30 clock-frequency = <26000000>;
31 };
32 };
33 --- a/arch/arm/boot/dts/overlays/tc358743-overlay.dts
34 +++ b/arch/arm/boot/dts/overlays/tc358743-overlay.dts
35 @@ -78,6 +78,7 @@
36 clk_frag: fragment@6 {
37 target = <&cam1_clk>;
38 __overlay__ {
39 + status = "okay";
40 clock-frequency = <27000000>;
41 };
42 };