ARM: dts: lan966x: Add gpio-restart
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Tue, 19 Jul 2022 20:11:56 +0000 (22:11 +0200)
committerClaudiu Beznea <claudiu.beznea@microchip.com>
Fri, 22 Jul 2022 09:11:02 +0000 (12:11 +0300)
The pcb8291 can be rebooted by toggling the GPIO 56. Therefore enable
this in DT.

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/20220719201158.1696168-2-horatiu.vultur@microchip.com
arch/arm/boot/dts/lan966x-pcb8291.dts

index d56d205..02fbf73 100644 (file)
        aliases {
                serial0 = &usart3;
        };
+
+       gpio-restart {
+               compatible = "gpio-restart";
+               gpios = <&gpio 56 GPIO_ACTIVE_LOW>;
+               priority = <200>;
+       };
 };
 
 &gpio {