bcm27xx: update patches from RPi foundation
[oweals/openwrt.git] / target / linux / bcm27xx / patches-5.4 / 950-0719-overlays-tc358743-Use-intra-overlay-fragments.patch
1 From adf5f2833517758152cbc9032dd93934a1e16ca1 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Mon, 11 May 2020 11:55:45 +0100
4 Subject: [PATCH] overlays: tc358743: Use intra-overlay fragments
5
6 The tc358743 overlay was written using a workaround to a problem with
7 fragments that target other fragments, but this had the unfortunate
8 side-effect of preventing the overlay from being applied at runtime
9 (the kernel doesn't allow nodes to be overwritten by an overlay, only
10 properties).
11
12 The current firmware and dtoverlay/dtparam utilities include support
13 for these "intra-overlay" fragments, so remove the workaround and do
14 it properly.
15
16 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
17 ---
18  .../boot/dts/overlays/tc358743-overlay.dts    | 20 ++++---------------
19  1 file changed, 4 insertions(+), 16 deletions(-)
20
21 --- a/arch/arm/boot/dts/overlays/tc358743-overlay.dts
22 +++ b/arch/arm/boot/dts/overlays/tc358743-overlay.dts
23 @@ -54,28 +54,16 @@
24         };
25  
26         fragment@2 {
27 -               target = <&i2c_csi_dsi>;
28 +               target = <&tc358743>;
29                 __overlay__ {
30 -                       tc358743@0f {
31 -                               port {
32 -                                       endpoint {
33 -                                               data-lanes = <1 2>;
34 -                                       };
35 -                               };
36 -                       };
37 +                       data-lanes = <1 2>;
38                 };
39         };
40  
41         fragment@3 {
42 -               target = <&i2c_csi_dsi>;
43 +               target = <&tc358743>;
44                 __dormant__ {
45 -                       tc358743@0f {
46 -                               port {
47 -                                       endpoint {
48 -                                               data-lanes = <1 2 3 4>;
49 -                                       };
50 -                               };
51 -                       };
52 +                       data-lanes = <1 2 3 4>;
53                 };
54         };
55