#include "rt5350.dtsi"
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
/ {
- compatible = "NEXXWT1520", "ralink,rt5350-soc";
- model = "Nexx WT1520";
+ compatible = "nexx,wt1520", "ralink,rt5350-soc";
memory@0 {
device_type = "memory";
reg = <0x0 0x2000000>;
};
- chosen {
- bootargs = "console=ttyS1,57600";
- };
+ gpio-keys-polled {
+ compatible = "gpio-keys-polled";
+ poll-interval = <20>;
- palmbus@10000000 {
- uart@500 {
- 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,function = "gpio";
- };
+&pinctrl {
+ state_default: pinctrl0 {
+ gpio {
+ ralink,group = "jtag", "uartf";
+ ralink,function = "gpio";
};
};
+};
- ethernet@10100000 {
- mtd-mac-address = <&factory 0x4>;
- };
+ðernet {
+ mtd-mac-address = <&factory 0x4>;
+};
- wmac@10180000 {
- ralink,mtd-eeprom = <&factory 0>;
- };
+&wmac {
+ ralink,mtd-eeprom = <&factory 0>;
+};
- ehci@101c0000 {
- status = "okay";
- };
+&ehci {
+ status = "okay";
+};
- ohci@101c1000 {
- status = "okay";
- };
+&ohci {
+ status = "okay";
};