[openwrt/openwrt] realtek: add gpio-restart for D-Link DGS-1210-28

LEDE Commits lede-commits at lists.infradead.org
Tue Jun 7 08:12:56 PDT 2022


svanheule pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/f5a87a0a7b8d5aa83435868eb324601df6c4f4dc

commit f5a87a0a7b8d5aa83435868eb324601df6c4f4dc
Author: Luiz Angelo Daros de Luca <luizluca at gmail.com>
AuthorDate: Wed Jun 1 19:20:22 2022 -0300

    realtek: add gpio-restart for D-Link DGS-1210-28
    
    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 at gmail.com>
    Reviewed-by: Robert Marko <robimarko at gmail.com>
---
 target/linux/realtek/dts-5.10/rtl8382_d-link_dgs-1210-28.dts | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/target/linux/realtek/dts-5.10/rtl8382_d-link_dgs-1210-28.dts b/target/linux/realtek/dts-5.10/rtl8382_d-link_dgs-1210-28.dts
index bf25140e97..a73e19e16f 100644
--- a/target/linux/realtek/dts-5.10/rtl8382_d-link_dgs-1210-28.dts
+++ b/target/linux/realtek/dts-5.10/rtl8382_d-link_dgs-1210-28.dts
@@ -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>;




More information about the lede-commits mailing list