ipq806x: remove obsolete Kernel 5.4
[openwrt/staging/mkresin.git] / target / linux / mvebu / patches-5.4 / 023-arm64-dts-add-uDPU-i2c-bus-recovery.patch
1 From 11b2af36cc874027ce701c5784cb957c99c7de3d Mon Sep 17 00:00:00 2001
2 From: Russell King <rmk+kernel@armlinux.org.uk>
3 Date: Wed, 6 May 2020 10:40:37 +0100
4 Subject: [PATCH] arm64: dts: add uDPU i2c bus recovery
5
6 Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
7 Reviewed-by: Andrew Lunn <andrew@lunn.ch>
8 Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
9 ---
10 .../boot/dts/marvell/armada-3720-uDPU.dts | 22 +++++++++++++++++--
11 1 file changed, 20 insertions(+), 2 deletions(-)
12
13 --- a/arch/arm64/boot/dts/marvell/armada-3720-uDPU.dts
14 +++ b/arch/arm64/boot/dts/marvell/armada-3720-uDPU.dts
15 @@ -117,18 +117,36 @@
16 };
17 };
18
19 +&pinctrl_nb {
20 + i2c1_recovery_pins: i2c1-recovery-pins {
21 + groups = "i2c1";
22 + function = "gpio";
23 + };
24 +
25 + i2c2_recovery_pins: i2c2-recovery-pins {
26 + groups = "i2c2";
27 + function = "gpio";
28 + };
29 +};
30 +
31 &i2c0 {
32 status = "okay";
33 - pinctrl-names = "default";
34 + pinctrl-names = "default", "recovery";
35 pinctrl-0 = <&i2c1_pins>;
36 + pinctrl-1 = <&i2c1_recovery_pins>;
37 /delete-property/mrvl,i2c-fast-mode;
38 + scl-gpios = <&gpionb 0 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
39 + sda-gpios = <&gpionb 1 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
40 };
41
42 &i2c1 {
43 status = "okay";
44 - pinctrl-names = "default";
45 + pinctrl-names = "default", "recovery";
46 pinctrl-0 = <&i2c2_pins>;
47 + pinctrl-1 = <&i2c2_recovery_pins>;
48 /delete-property/mrvl,i2c-fast-mode;
49 + scl-gpios = <&gpionb 2 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
50 + sda-gpios = <&gpionb 3 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
51
52 lm75@48 {
53 status = "okay";