model = "Firefly FireWRT";
memory@0 {
- reg = <0x0 0x10000000>;
+ device_type = "memory";
+ reg = <0x0 0x1c000000>, <0x20000000 0x4000000>;
};
chosen {
m25p80@0 {
#address-cells = <1>;
#size-cells = <1>;
- compatible = "mx25l12805d";
+ compatible = "w25q128";
reg = <0 0>;
linux,modalias = "m25p80";
spi-max-frequency = <10000000>;
partition@50000 {
label = "firmware";
- reg = <0x50000 0x7b0000>;
+ reg = <0x50000 0xfb0000>;
};
-
};
};
};
};
};
+ gpio-keys-polled {
+ compatible = "gpio-keys-polled";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ poll-interval = <20>;
+
+ wps {
+ label = "wps";
+ gpios = <&gpio0 18 1>;
+ linux,code = <0x211>;
+ };
+
+ power {
+ label = "power";
+ gpios = <&gpio0 23 1>;
+ linux,code = <116>;
+ };
+ };
+
+ pinctrl {
+ state_default: pinctrl0 {
+ gpio {
+ ralink,group = "wdt", "rgmii2";
+ ralink,function = "gpio";
+ };
+ };
+ };
};