realtek: add gpio-restart for D-Link DGS-1210-28
authorLuiz Angelo Daros de Luca <luizluca@gmail.com>
Wed, 1 Jun 2022 22:20:22 +0000 (19:20 -0300)
committerSander Vanheule <sander@svanheule.net>
Tue, 7 Jun 2022 15:07:58 +0000 (17:07 +0200)
A GPIO assert is required to reset the system. Otherwise, the system
will hang on reboot.

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
Reviewed-by: Robert Marko <robimarko@gmail.com>
(cherry picked from commit a2817ce96f17db3a5af77837ae5733b47182ae0d)

target/linux/realtek/dts-5.10/rtl8382_d-link_dgs-1210-28.dts

index bf25140e971111f01f2b8113df3d93f7d94a78c9..a73e19e16f05bd5f4e80f4f2363947b1180f3715 100644 (file)
@@ -6,6 +6,12 @@
        compatible = "d-link,dgs-1210-28", "realtek,rtl838x-soc";
        model = "D-Link DGS-1210-28";
 
+       gpio-restart {
+               compatible = "gpio-restart";
+               gpios = <&gpio1 34 GPIO_ACTIVE_LOW>;
+               open-source;
+       };
+
        keys {
                compatible = "gpio-keys-polled";
                poll-interval = <20>;