aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorJan-Niklas Burfeind <git@aiyionpri.me>2022-12-02 14:55:16 +0100
committerDavid Bauer <mail@david-bauer.net>2022-12-09 00:19:23 +0100
commit03ab5a60da6c5f992fceda2c23a3f462e94e61b5 (patch)
treec454b106411099ca5557ffd50410f56070a19698 /target
parent63fde4607cd0db01d76131c78cef25acd5ec1f08 (diff)
downloadupstream-03ab5a60da6c5f992fceda2c23a3f462e94e61b5.tar.gz
upstream-03ab5a60da6c5f992fceda2c23a3f462e94e61b5.tar.bz2
upstream-03ab5a60da6c5f992fceda2c23a3f462e94e61b5.zip
realtek: update GPIO bindings for DGS-1210-10P
add three missing LEDs - PoE-Max - Link/Act - PoE add two missing buttons - mode - reset The last was dropped in commit 61a3d0075b15 ("realtek: update GPIO bindings in the dts files in dts-5.10") Signed-off-by: Jan-Niklas Burfeind <git@aiyionpri.me> (cherry picked from commit dbc93d280c9d05733e7b45a76ec1a05b77c376a5)
Diffstat (limited to 'target')
-rw-r--r--target/linux/realtek/dts-5.10/rtl8382_d-link_dgs-1210-10p.dts30
1 files changed, 26 insertions, 4 deletions
diff --git a/target/linux/realtek/dts-5.10/rtl8382_d-link_dgs-1210-10p.dts b/target/linux/realtek/dts-5.10/rtl8382_d-link_dgs-1210-10p.dts
index 3321887c9a..856da29182 100644
--- a/target/linux/realtek/dts-5.10/rtl8382_d-link_dgs-1210-10p.dts
+++ b/target/linux/realtek/dts-5.10/rtl8382_d-link_dgs-1210-10p.dts
@@ -37,12 +37,34 @@
compatible = "gpio-keys-polled";
poll-interval = <20>;
- /* is this pin 30 on the external RTL8231 (&gpio1)? */
- /*mode {
+ mode {
+ label = "mode";
+ gpios = <&gpio1 30 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_LIGHTS_TOGGLE>;
+ };
+
+ reset {
label = "reset";
- gpios = <&gpio0 94 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio1 33 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
- };*/
+ };
+ };
+
+ leds {
+ link_act {
+ label = "green:link_act";
+ gpios = <&gpio1 28 GPIO_ACTIVE_LOW>;
+ };
+
+ poe {
+ label = "green:poe";
+ gpios = <&gpio1 29 GPIO_ACTIVE_LOW>;
+ };
+
+ poe_max {
+ label = "yellow:poe_max";
+ gpios = <&gpio1 27 GPIO_ACTIVE_LOW>;
+ };
};
gpio1: rtl8231-gpio {