mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 23:12:32 +00:00
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>
This commit is contained in:
parent
0946ec0f46
commit
9601e6a0e2
@ -1,5 +1,8 @@
|
|||||||
#include "rt5350.dtsi"
|
#include "rt5350.dtsi"
|
||||||
|
|
||||||
|
#include <dt-bindings/gpio/gpio.h>
|
||||||
|
#include <dt-bindings/input/input.h>
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
compatible = "NEXXWT1520", "ralink,rt5350-soc";
|
compatible = "NEXXWT1520", "ralink,rt5350-soc";
|
||||||
|
|
||||||
@ -8,21 +11,24 @@
|
|||||||
reg = <0x0 0x2000000>;
|
reg = <0x0 0x2000000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
chosen {
|
gpio-keys-polled {
|
||||||
bootargs = "console=ttyS1,57600";
|
compatible = "gpio-keys-polled";
|
||||||
};
|
#address-cells = <1>;
|
||||||
};
|
#size-cells = <0>;
|
||||||
|
poll-interval = <20>;
|
||||||
|
|
||||||
&uart {
|
reset {
|
||||||
pinctrl-names = "default";
|
label = "reset";
|
||||||
pinctrl-0 = <&uartf_pins>;
|
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
|
||||||
status = "okay";
|
linux,code = <KEY_RESTART>;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&pinctrl {
|
&pinctrl {
|
||||||
state_default: pinctrl0 {
|
state_default: pinctrl0 {
|
||||||
gpio {
|
gpio {
|
||||||
ralink,group = "jtag";
|
ralink,group = "jtag", "uartf";
|
||||||
ralink,function = "gpio";
|
ralink,function = "gpio";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user