aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorINAGAKI Hiroshi <musashino.open@gmail.com>2017-11-26 01:42:50 +0900
committerMathias Kresin <dev@kresin.me>2017-11-27 20:36:46 +0100
commit9601e6a0e2d0dd1b08ffc7d0ea4ef135dee1e0cf (patch)
tree0d768f85bf5f4eca300a13eebbeb302f64f7386c /target/linux
parent0946ec0f46f74fd89382579b86ba15ee9fb40dd1 (diff)
downloadupstream-9601e6a0e2d0dd1b08ffc7d0ea4ef135dee1e0cf.tar.gz
upstream-9601e6a0e2d0dd1b08ffc7d0ea4ef135dee1e0cf.tar.bz2
upstream-9601e6a0e2d0dd1b08ffc7d0ea4ef135dee1e0cf.zip
ramips: add missing reset button for Nexx WT1520
This commit adds missing the GPIO key used as reset button. Nexx WT1520 has a GPIO key for factory reset, but it's not defined in WT1520.dtsi and cannot use it. Drop the UART (full) from the device tree source file, it was never used for this board. Adjust the kernel bootargs accordingly. Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com> [add note about dropped UART (full) to the commit message] Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ramips/dts/WT1520.dtsi24
1 files changed, 15 insertions, 9 deletions
diff --git a/target/linux/ramips/dts/WT1520.dtsi b/target/linux/ramips/dts/WT1520.dtsi
index 4c889d1d1d..0586c22684 100644
--- a/target/linux/ramips/dts/WT1520.dtsi
+++ b/target/linux/ramips/dts/WT1520.dtsi
@@ -1,5 +1,8 @@
#include "rt5350.dtsi"
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "NEXXWT1520", "ralink,rt5350-soc";
@@ -8,21 +11,24 @@
reg = <0x0 0x2000000>;
};
- chosen {
- bootargs = "console=ttyS1,57600";
- };
-};
+ gpio-keys-polled {
+ compatible = "gpio-keys-polled";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ poll-interval = <20>;
-&uart {
- pinctrl-names = "default";
- pinctrl-0 = <&uartf_pins>;
- status = "okay";
+ reset {
+ label = "reset";
+ gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
+ };
+ };
};
&pinctrl {
state_default: pinctrl0 {
gpio {
- ralink,group = "jtag";
+ ralink,group = "jtag", "uartf";
ralink,function = "gpio";
};
};