compatible = "dlink,dwr-512-b", "ralink,rt5350-soc";
model = "D-Link DWR-512 B";
+ aliases {
+ led-boot = &led_status;
+ led-failsafe = &led_status;
+ led-running = &led_status;
+ led-upgrade = &led_status;
+ };
+
gpio-keys-polled {
compatible = "gpio-keys-polled";
- #address-cells = <1>;
- #size-cells = <0>;
poll-interval = <20>;
wps {
label = "dwr-512-b:green:sms";
gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
};
- status {
+ led_status: status {
label = "dwr-512-b:green:status";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
modem3g_enable {
gpio-export,name = "modem3g_enable";
gpio-export,output = <1>;
- gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
};
};
};
status = "okay";
mx25l6405d@0 {
- #address-cells = <1>;
- #size-cells = <1>;
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <30000000>;
m25p,fast-read;
- partition@0 {
- label = "u-boot";
- reg = <0x0 0x30000>;
- read-only;
- };
-
- partition@30000 {
- label = "u-boot-env";
- reg = <0x30000 0x20000>;
- read-only;
- };
-
- partition@50000 {
- label = "firmware";
- reg = <0x50000 0x7a0000>;
- };
-
- config: partition@7f0000 {
- label = "config";
- reg = <0x7f0000 0x10000>;
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ label = "jboot";
+ reg = <0x0 0x10000>;
+ read-only;
+ };
+
+ partition@10000 {
+ label = "firmware";
+ reg = <0x10000 0x7e0000>;
+ };
+
+ config: partition@7f0000 {
+ label = "config";
+ reg = <0x7f0000 0x10000>;
+ };
};
};
};