[openwrt/openwrt] realtek: Switch DGS-1210-10P DTS to gpio.dtsi
LEDE Commits
lede-commits at lists.infradead.org
Sat Feb 22 03:57:45 PST 2025
svanheule pushed a commit to openwrt/openwrt.git, branch openwrt-24.10:
https://git.openwrt.org/94e629a3a9d3cf46d8efee23ad88c101d4611add
commit 94e629a3a9d3cf46d8efee23ad88c101d4611add
Author: Sander Vanheule <sander at svanheule.net>
AuthorDate: Sun Jan 12 17:53:34 2025 +0100
realtek: Switch DGS-1210-10P DTS to gpio.dtsi
The DTS file for the DGS-1210-10P is slightly different from the other
DGS-1210 devices, in that it didn't specify a gpio-restart node when it
was added. The gpio-restart has been found to work on the DGS-1210-10P
as well, so switch it over to the common definitions.
This converts the last device from the product family to the common
definition for the (external) GPIOs.
Tested-by: Michel Thill <jmthill at gmail.com>
Signed-off-by: Sander Vanheule <sander at svanheule.net>
(cherry picked from commit 7c0d1c1eb10a7040af6478742dd053f40b24a467)
---
.../realtek/dts/rtl8382_d-link_dgs-1210-10p.dts | 29 ++++++----------------
1 file changed, 7 insertions(+), 22 deletions(-)
diff --git a/target/linux/realtek/dts/rtl8382_d-link_dgs-1210-10p.dts b/target/linux/realtek/dts/rtl8382_d-link_dgs-1210-10p.dts
index 1aef88afd4..9365f94a50 100644
--- a/target/linux/realtek/dts/rtl8382_d-link_dgs-1210-10p.dts
+++ b/target/linux/realtek/dts/rtl8382_d-link_dgs-1210-10p.dts
@@ -2,6 +2,7 @@
#include "rtl838x.dtsi"
#include "rtl83xx_d-link_dgs-1210_common.dtsi"
+#include "rtl83xx_d-link_dgs-1210_gpio.dtsi"
/ {
compatible = "d-link,dgs-1210-10p", "realtek,rtl838x-soc";
@@ -43,23 +44,6 @@
tx-disable-gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>;
};
- keys {
- compatible = "gpio-keys-polled";
- poll-interval = <20>;
-
- mode {
- label = "mode";
- gpios = <&gpio1 30 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_LIGHTS_TOGGLE>;
- };
-
- reset {
- label = "reset";
- gpios = <&gpio1 33 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_RESTART>;
- };
- };
-
leds {
link_act {
label = "green:link_act";
@@ -76,12 +60,13 @@
gpios = <&gpio1 27 GPIO_ACTIVE_LOW>;
};
};
+};
- gpio1: rtl8231-gpio {
- compatible = "realtek,rtl8231-gpio";
- #gpio-cells = <2>;
- gpio-controller;
- indirect-access-bus-id = <0>;
+&keys {
+ mode {
+ label = "mode";
+ gpios = <&gpio1 30 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_LIGHTS_TOGGLE>;
};
};
More information about the lede-commits
mailing list