ramips: cleanup SPI flash device tree properties usage
[openwrt/openwrt.git] / target / linux / ramips / dts / AWM003-EVB.dts
index 35d48867622ceaebe3b49e58cba74790eb33f246..7c23f34c26e604e931866e0e1789583a4ee32aed 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "AWM002-8M.dtsi"
+#include "AWM002-8M.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        compatible = "AWM003", "ralink,rt5350-soc";
                reg = <0x0 0x4000000>;
        };
 
-       palmbus@10000000 {
-               spi@b00 {
-                       m25p80@0 {
-                               compatible = "mx25l6405d";
-                               linux,modalias = "m25p80", "mx25l6405d";
-                       };
-               };
-       };
-
-       ethernet@10100000 {
-               mtd-mac-address = <&factory 0x28>;
-       };
-
-       wmac@10180000 {
-               ralink,mtd-eeprom = <&factory 0>;
-       };
-
        gpio-leds {
                compatible = "gpio-leds";
+
                tx {
-                       label = "awm002-evb:green:tx";
+                       label = "awm003-evb:green:tx";
                        gpios = <&gpio0 15 1>;
                };
+
                rx {
-                       label = "awm002-evb:green:rx";
+                       label = "awm003-evb:green:rx";
                        gpios = <&gpio0 16 1>;
                };
+
                wps {
-                       label = "awm002-evb:green:wps";
+                       label = "awm003-evb:green:wps";
                        gpios = <&gpio0 21 1>;
                };
        };
                #address-cells = <1>;
                #size-cells = <0>;
                poll-interval = <20>;
+
                reset_wps {
                        label = "reset_wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
+
                mode {
                        label = "mode";
                        gpios = <&gpio0 20 1>;
-                       linux,code = <0x32>;
+                       linux,code = <BTN_0>;
                };
        };
 };
+
+&m25p80 {
+       compatible = "jedec,spi-nor";
+};
+
+&ethernet {
+       mtd-mac-address = <&factory 0x28>;
+};
+
+&wmac {
+       ralink,mtd-eeprom = <&factory 0>;
+};