]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ARM: dts: kswitch-d10: use open drain mode for coma-mode pins
authorMichael Walle <michael@walle.cc>
Mon, 4 Jul 2022 15:08:08 +0000 (17:08 +0200)
committerClaudiu Beznea <claudiu.beznea@microchip.com>
Fri, 8 Jul 2022 08:31:53 +0000 (11:31 +0300)
The driver use the coma-mode pins as open-drain. Flag them in the device
tree accordingly. This avoids the following error:
[   14.114180] gpio-2007 (coma-mode): enforced open drain please flag it properly in DT/ACPI DSDT/board file

Fixes: 52384a26b3c7 ("ARM: dts: kswitch-d10: enable networking")
Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/20220704150808.1104295-1-michael@walle.cc
arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi

index 4cab1b3b3b29a5dd0e1ead930e9d2a1507e4a4e1..725dcf707b315c04208c21ea1639dbe6aeec56b8 100644 (file)
 
        phy4: ethernet-phy@5 {
                reg = <5>;
-               coma-mode-gpios = <&gpio 37 GPIO_ACTIVE_HIGH>;
+               coma-mode-gpios = <&gpio 37 GPIO_OPEN_DRAIN>;
        };
 
        phy5: ethernet-phy@6 {
                reg = <6>;
-               coma-mode-gpios = <&gpio 37 GPIO_ACTIVE_HIGH>;
+               coma-mode-gpios = <&gpio 37 GPIO_OPEN_DRAIN>;
        };
 
        phy6: ethernet-phy@7 {
                reg = <7>;
-               coma-mode-gpios = <&gpio 37 GPIO_ACTIVE_HIGH>;
+               coma-mode-gpios = <&gpio 37 GPIO_OPEN_DRAIN>;
        };
 
        phy7: ethernet-phy@8 {
                reg = <8>;
-               coma-mode-gpios = <&gpio 37 GPIO_ACTIVE_HIGH>;
+               coma-mode-gpios = <&gpio 37 GPIO_OPEN_DRAIN>;
        };
 };