arm64: dts: add uDPU i2c bus recovery
authorRussell King <rmk+kernel@armlinux.org.uk>
Wed, 6 May 2020 09:40:37 +0000 (10:40 +0100)
committerGregory CLEMENT <gregory.clement@bootlin.com>
Sun, 17 May 2020 16:07:34 +0000 (18:07 +0200)
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
arch/arm64/boot/dts/marvell/armada-3720-uDPU.dts

index 7eb6c17..95d46e8 100644 (file)
        };
 };
 
+&pinctrl_nb {
+       i2c1_recovery_pins: i2c1-recovery-pins {
+               groups = "i2c1";
+               function = "gpio";
+       };
+
+       i2c2_recovery_pins: i2c2-recovery-pins {
+               groups = "i2c2";
+               function = "gpio";
+       };
+};
+
 &i2c0 {
        status = "okay";
-       pinctrl-names = "default";
+       pinctrl-names = "default", "recovery";
        pinctrl-0 = <&i2c1_pins>;
+       pinctrl-1 = <&i2c1_recovery_pins>;
        /delete-property/mrvl,i2c-fast-mode;
+       scl-gpios = <&gpionb 0 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
+       sda-gpios = <&gpionb 1 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
 };
 
 &i2c1 {
        status = "okay";
-       pinctrl-names = "default";
+       pinctrl-names = "default", "recovery";
        pinctrl-0 = <&i2c2_pins>;
+       pinctrl-1 = <&i2c2_recovery_pins>;
        /delete-property/mrvl,i2c-fast-mode;
+       scl-gpios = <&gpionb 2 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
+       sda-gpios = <&gpionb 3 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
 
        lm75@48 {
                status = "okay";