[openwrt/openwrt] realtek: add reset button for D-Link DGS-1210-28

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


svanheule pushed a commit to openwrt/openwrt.git, branch openwrt-22.03:
https://git.openwrt.org/e2ca1664795d46677077f51f2a593bfe5b69e082

commit e2ca1664795d46677077f51f2a593bfe5b69e082
Author: Luiz Angelo Daros de Luca <luizluca at gmail.com>
AuthorDate: Wed Jun 1 17:20:08 2022 -0300

    realtek: add reset button for D-Link DGS-1210-28
    
    Tested in a DGS-1210-28 F3, both triggering failsafe and reboot.
    
    Signed-off-by: Luiz Angelo Daros de Luca <luizluca at gmail.com>
    Reviewed-by: Robert Marko <robimarko at gmail.com>
    (cherry picked from commit b85f59b726442621efb95153ff60b8767723feca)
---
 .../realtek/dts-5.10/rtl8382_d-link_dgs-1210-28.dts    | 18 ++++++++++++++++++
 1 file changed, 18 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 edd4fb140f..bf25140e97 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
@@ -5,6 +5,24 @@
 / {
 	compatible = "d-link,dgs-1210-28", "realtek,rtl838x-soc";
 	model = "D-Link DGS-1210-28";
+
+	keys {
+		compatible = "gpio-keys-polled";
+		poll-interval = <20>;
+
+		reset {
+			label = "reset";
+			gpios = <&gpio1 33 GPIO_ACTIVE_LOW>;
+			linux,code = <KEY_RESTART>;
+		};
+	};
+
+	gpio1: rtl8231-gpio {
+		compatible = "realtek,rtl8231-gpio";
+		#gpio-cells = <2>;
+		gpio-controller;
+		indirect-access-bus-id = <0>;
+	};
 };
 
 &ethernet0 {




More information about the lede-commits mailing list