1 From 7a1905f969cfa2e303f5e74efee56dbd0523e5bb Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Tue, 23 Jun 2020 15:41:42 +0100
4 Subject: [PATCH] dt/dtoverlays: Fix up base DT and overlays for
7 The upstreamed Unicam driver uses a dt property to denote how many
8 lanes are supported by the receiver peripheral, independent of
9 the number of lanes that the sensor wants to use. It also doesn't
10 check the remote endpoint config for the number of lanes as that
11 isn't the accepted way of doing things.
13 Update the base DT for the brcm,num-data-lanes property, and the
14 overlays to define the desired number of lanes at both ends of
17 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
19 arch/arm/boot/dts/bcm2711-rpi-cm4.dts | 3 ++-
20 arch/arm/boot/dts/bcm283x-rpi-csi0-2lane.dtsi | 6 +-----
21 arch/arm/boot/dts/bcm283x-rpi-csi1-2lane.dtsi | 6 +-----
22 arch/arm/boot/dts/bcm283x-rpi-csi1-4lane.dtsi | 6 +-----
23 arch/arm/boot/dts/overlays/adv7282m-overlay.dts | 1 +
24 arch/arm/boot/dts/overlays/imx477-overlay.dts | 1 +
25 arch/arm/boot/dts/overlays/irs1125-overlay.dts | 2 ++
26 arch/arm/boot/dts/overlays/ov5647-overlay.dts | 1 +
27 arch/arm/boot/dts/overlays/tc358743-overlay.dts | 16 +++++++++++++++-
28 9 files changed, 25 insertions(+), 17 deletions(-)
30 --- a/arch/arm/boot/dts/bcm2711-rpi-cm4.dts
31 +++ b/arch/arm/boot/dts/bcm2711-rpi-cm4.dts
35 #include "bcm2711-rpi.dtsi"
36 -#include "bcm283x-rpi-csi1-2lane.dtsi"
37 +#include "bcm283x-rpi-csi0-2lane.dtsi"
38 +#include "bcm283x-rpi-csi1-4lane.dtsi"
39 #include "bcm283x-rpi-i2c0mux_0_44.dtsi"
42 --- a/arch/arm/boot/dts/bcm283x-rpi-csi0-2lane.dtsi
43 +++ b/arch/arm/boot/dts/bcm283x-rpi-csi0-2lane.dtsi
45 // SPDX-License-Identifier: GPL-2.0-only
52 + brcm,num-data-lanes = <2>;
54 --- a/arch/arm/boot/dts/bcm283x-rpi-csi1-2lane.dtsi
55 +++ b/arch/arm/boot/dts/bcm283x-rpi-csi1-2lane.dtsi
57 // SPDX-License-Identifier: GPL-2.0-only
64 + brcm,num-data-lanes = <2>;
66 --- a/arch/arm/boot/dts/bcm283x-rpi-csi1-4lane.dtsi
67 +++ b/arch/arm/boot/dts/bcm283x-rpi-csi1-4lane.dtsi
69 // SPDX-License-Identifier: GPL-2.0-only
73 - data-lanes = <1 2 3 4>;
76 + brcm,num-data-lanes = <4>;
78 --- a/arch/arm/boot/dts/overlays/adv7282m-overlay.dts
79 +++ b/arch/arm/boot/dts/overlays/adv7282m-overlay.dts
83 remote-endpoint = <&adv728x_0>;
88 --- a/arch/arm/boot/dts/overlays/imx477-overlay.dts
89 +++ b/arch/arm/boot/dts/overlays/imx477-overlay.dts
93 remote-endpoint = <&imx477_0>;
98 --- a/arch/arm/boot/dts/overlays/irs1125-overlay.dts
99 +++ b/arch/arm/boot/dts/overlays/irs1125-overlay.dts
103 remote-endpoint = <&irs1125_0>;
104 + data-lanes = <1 2>;
105 + clock-noncontinuous;
109 --- a/arch/arm/boot/dts/overlays/ov5647-overlay.dts
110 +++ b/arch/arm/boot/dts/overlays/ov5647-overlay.dts
114 remote-endpoint = <&ov5647_0>;
115 + data-lanes = <1 2>;
119 --- a/arch/arm/boot/dts/overlays/tc358743-overlay.dts
120 +++ b/arch/arm/boot/dts/overlays/tc358743-overlay.dts
126 + target = <&csi1_ep>;
128 + data-lanes = <1 2>;
133 + target = <&csi1_ep>;
135 + data-lanes = <1 2 3 4>;
140 - 4lane = <0>, "-2+3";
141 + 4lane = <0>, "-2+3-7+8";
142 link-frequency = <&tc358743>,"link-frequencies#0";