kernel: bump 5.4 to 5.4.43
[oweals/openwrt.git] / target / linux / mvebu / patches-5.4 / 551-v5.8-arm64-dts-add-uDPU-i2c-bus-recovery.patch
1 From: Russell King <rmk+kernel@armlinux.org.uk>
2 Bcc: linux@mail.armlinux.org.uk
3 Cc: Vladimir Vid <vladimir.vid@sartura.hr>,Jason Cooper <jason@lakedaemon.net>,Andrew Lunn <andrew@lunn.ch>,Gregory Clement <gregory.clement@bootlin.com>,Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>,Rob Herring <robh+dt@kernel.org>,Mark Rutland <mark.rutland@arm.com>,linux-arm-kernel@lists.infradead.org,devicetree@vger.kernel.org
4 Subject: [PATCH] arm64: dts: add uDPU i2c bus recovery
5 MIME-Version: 1.0
6 Content-Disposition: inline
7 Content-Transfer-Encoding: 8bit
8 Content-Type: text/plain; charset="utf-8"
9
10 Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
11 ---
12  .../boot/dts/marvell/armada-3720-uDPU.dts     | 22 +++++++++++++++++--
13  1 file changed, 20 insertions(+), 2 deletions(-)
14
15 --- a/arch/arm64/boot/dts/marvell/armada-3720-uDPU.dts
16 +++ b/arch/arm64/boot/dts/marvell/armada-3720-uDPU.dts
17 @@ -117,18 +117,36 @@
18         };
19  };
20  
21 +&pinctrl_nb {
22 +       i2c1_recovery_pins: i2c1-recovery-pins {
23 +               groups = "i2c1";
24 +               function = "gpio";
25 +       };
26 +
27 +       i2c2_recovery_pins: i2c2-recovery-pins {
28 +               groups = "i2c2";
29 +               function = "gpio";
30 +       };
31 +};
32 +
33  &i2c0 {
34         status = "okay";
35 -       pinctrl-names = "default";
36 +       pinctrl-names = "default", "recovery";
37         pinctrl-0 = <&i2c1_pins>;
38 +       pinctrl-1 = <&i2c1_recovery_pins>;
39         /delete-property/mrvl,i2c-fast-mode;
40 +       scl-gpios = <&gpionb 0 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
41 +       sda-gpios = <&gpionb 1 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
42  };
43  
44  &i2c1 {
45         status = "okay";
46 -       pinctrl-names = "default";
47 +       pinctrl-names = "default", "recovery";
48         pinctrl-0 = <&i2c2_pins>;
49 +       pinctrl-1 = <&i2c2_recovery_pins>;
50         /delete-property/mrvl,i2c-fast-mode;
51 +       scl-gpios = <&gpionb 2 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
52 +       sda-gpios = <&gpionb 3 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
53  
54         lm75@48 {
55                 status = "okay";