brcm63xx: rename target to bcm63xx
[openwrt/staging/jow.git] / target / linux / brcm2708 / patches-4.19 / 950-0815-overlays-Fix-mcp23017-s-addr-parameter.patch
1 From 11ef396f6e72b22469e1c8aebf5fd50488a9431d Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Tue, 4 Feb 2020 15:22:55 +0000
4 Subject: [PATCH] overlays: Fix mcp23017's addr parameter
5
6 The addr parameter of the mcp23017 overlay was broken by the addition
7 of the noints parameter; splitting the mcp node in two without also
8 modifying the second half from the addr parameter would cause the two
9 halves to separate. Change the implementation strategy to patch
10 fragment 2 (as was originally proposed). This will prevent the
11 overlay from being applied at runtime until the "dtoverlay" command
12 is improved, but the overlay already has this restriction due to
13 fragment 3 so this isn't a step backwards.
14
15 See: https://github.com/raspberrypi/linux/issues/3449
16
17 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
18 ---
19 arch/arm/boot/dts/overlays/mcp23017-overlay.dts | 16 +++++++---------
20 1 file changed, 7 insertions(+), 9 deletions(-)
21
22 --- a/arch/arm/boot/dts/overlays/mcp23017-overlay.dts
23 +++ b/arch/arm/boot/dts/overlays/mcp23017-overlay.dts
24 @@ -48,15 +48,13 @@
25 };
26
27 fragment@4 {
28 - target = <&i2c1>;
29 - __overlay__ {
30 - mcp23017_irq: mcp@20 {
31 - #interrupt-cells=<2>;
32 - interrupt-parent = <&gpio>;
33 - interrupts = <4 2>;
34 - interrupt-controller;
35 - microchip,irq-mirror;
36 - };
37 + target = <&mcp23017>;
38 + mcp23017_irq: __overlay__ {
39 + #interrupt-cells=<2>;
40 + interrupt-parent = <&gpio>;
41 + interrupts = <4 2>;
42 + interrupt-controller;
43 + microchip,irq-mirror;
44 };
45 };
46