aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/realtek/dts-5.10/rtl8382_d-link_dgs-1210-10p.dts
diff options
context:
space:
mode:
authorINAGAKI Hiroshi <musashino.open@gmail.com>2021-05-08 17:51:29 +0900
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2021-09-26 00:32:18 +0200
commit61a3d0075b151f6742862e123fdff1897d876176 (patch)
treee41e2ec3fc1500a17ec2c5100d806835d714d45f /target/linux/realtek/dts-5.10/rtl8382_d-link_dgs-1210-10p.dts
parent2e676c05dccc7d5c5cf4ab118f479471be52194a (diff)
downloadupstream-61a3d0075b151f6742862e123fdff1897d876176.tar.gz
upstream-61a3d0075b151f6742862e123fdff1897d876176.tar.bz2
upstream-61a3d0075b151f6742862e123fdff1897d876176.zip
realtek: update GPIO bindings in the dts files in dts-5.10
this patch includes the following changes: - adjust mapping for the new driver - GPIO 24 -> GPIO 0 - GPIO 47 -> GPIO 0 (+ disabling system LED) - disable pins in the invalid range (out of the range 0-31 of the new driver) - are these pins on the external RTL8231 (&gpio1)? - GPIO 67 (-> GPIO 3 on &gpio1?) - GPIO 94 (-> GPIO 30 on &gpio1?) - drop "indirect-access-bus-id" property from gpio0 node in device dts files Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Diffstat (limited to 'target/linux/realtek/dts-5.10/rtl8382_d-link_dgs-1210-10p.dts')
-rw-r--r--target/linux/realtek/dts-5.10/rtl8382_d-link_dgs-1210-10p.dts15
1 files changed, 7 insertions, 8 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 e2f5e7a4c0..f347660283 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
@@ -26,12 +26,14 @@
};
leds {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinmux_disable_sys_led>;
compatible = "gpio-leds";
led_power: power {
- // GPIO 24 seems to provide power to the leds
+ // GPIO 0 seems to provide power to the leds
label = "green:power";
- gpios = <&gpio0 47 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
};
};
@@ -39,19 +41,16 @@
compatible = "gpio-keys-polled";
poll-interval = <20>;
- mode {
+ /* is this pin 30 on the external RTL8231 (&gpio1)? */
+ /*mode {
label = "reset";
gpios = <&gpio0 94 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
- };
+ };*/
};
};
-&gpio0 {
- indirect-access-bus-id = <0>;
-};
-
&spi0 {
status = "okay";
flash@0 {