From: Luiz Angelo Daros de Luca Date: Wed, 1 Jun 2022 20:20:08 +0000 (-0300) Subject: realtek: add reset button for D-Link DGS-1210-28 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=8121e7dd75d53bc7fa1f16fc360eda03385a9b05;p=openwrt%2Fstaging%2Fnbd.git 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 Reviewed-by: Robert Marko --- 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 = ; + }; + }; + + gpio1: rtl8231-gpio { + compatible = "realtek,rtl8231-gpio"; + #gpio-cells = <2>; + gpio-controller; + indirect-access-bus-id = <0>; + }; }; ðernet0 {