aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mediatek/dts
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2022-09-09 20:44:46 +0100
committerDaniel Golle <daniel@makrotopia.org>2022-09-10 19:20:26 +0100
commitf7dbdcfa54adf474880be2e90e772f93fadae3b7 (patch)
treedd27bebd0bf03a2c12312fba784e5b98be8f105d /target/linux/mediatek/dts
parent964b82218057989d1143d04216d4dfe2a101d8dd (diff)
downloadupstream-f7dbdcfa54adf474880be2e90e772f93fadae3b7.tar.gz
upstream-f7dbdcfa54adf474880be2e90e772f93fadae3b7.tar.bz2
upstream-f7dbdcfa54adf474880be2e90e772f93fadae3b7.zip
mediatek: filogic: use WPS button instead of RST on BPi-R3
The GPIO used for the RST button is also used for PCIe-CLKREQ signal. Hence it cannot be used as button signal if PCIe is also used. Wire up WPS button to serve as KEY_RESTART in Linux and "reset" button in U-Boot. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'target/linux/mediatek/dts')
-rw-r--r--target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3.dts12
1 files changed, 12 insertions, 0 deletions
diff --git a/target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3.dts b/target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3.dts
index 2d9b0ac3b1..218fef5cec 100644
--- a/target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3.dts
+++ b/target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3.dts
@@ -63,6 +63,11 @@
keys {
compatible = "gpio-keys";
+/*
+ * RST button is also PCIe-CLKREQ signal, use WPS button as reset
+ * instead as RST button doesn't make sense and cannot be used.
+ *
+ * intended buttons:
factory {
label = "reset";
linux,code = <KEY_RESTART>;
@@ -74,6 +79,13 @@
linux,code = <KEY_WPS_BUTTON>;
gpios = <&pio 10 GPIO_ACTIVE_LOW>;
};
+ * actual setup:
+ */
+ wps {
+ label = "wps";
+ linux,code = <KEY_RESTART>;
+ gpios = <&pio 10 GPIO_ACTIVE_LOW>;
+ };
};
leds {