aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/realtek/dts-5.10
diff options
context:
space:
mode:
authorLuiz Angelo Daros de Luca <luizluca@gmail.com>2022-06-01 17:20:08 -0300
committerSander Vanheule <sander@svanheule.net>2022-06-07 17:11:28 +0200
commit8121e7dd75d53bc7fa1f16fc360eda03385a9b05 (patch)
tree125ee9d268aec86fb8a1d8e2af2e6bafb14ccf21 /target/linux/realtek/dts-5.10
parent5c1b1918abf853c95976daf7fea58fb1355eae6d (diff)
downloadupstream-8121e7dd75d53bc7fa1f16fc360eda03385a9b05.tar.gz
upstream-8121e7dd75d53bc7fa1f16fc360eda03385a9b05.tar.bz2
upstream-8121e7dd75d53bc7fa1f16fc360eda03385a9b05.zip
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@gmail.com> Reviewed-by: Robert Marko <robimarko@gmail.com>
Diffstat (limited to 'target/linux/realtek/dts-5.10')
-rw-r--r--target/linux/realtek/dts-5.10/rtl8382_d-link_dgs-1210-28.dts18
1 files changed, 18 insertions, 0 deletions
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 {