-/dts-v1/;
-
#include "rt5350.dtsi"
#include <dt-bindings/gpio/gpio.h>
compatible = "gpio-leds";
sms {
- label = "dwr-512-b:green:sms";
+ label = "green:sms";
gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
};
led_status: status {
- label = "dwr-512-b:green:status";
+ label = "green:status";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
2g {
- label = "dwr-512-b:green:2g";
+ label = "green:2g";
gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
};
3g {
- label = "dwr-512-b:green:3g";
+ label = "green:3g";
gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
};
sstrengthr {
- label = "dwr-512-b:red:sigstrength";
+ label = "red:sigstrength";
gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
};
sstrengthg {
- label = "dwr-512-b:green:sigstrength";
+ label = "green:sigstrength";
gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
};
};
};
ðernet {
- mtd-mac-address = <&config 0xe07e>;
+ nvmem-cells = <&macaddr_config_e07e>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
ralink,mtd-eeprom = <&config 0xe08a>;
ralink,led-polarity = <1>;
- mtd-mac-address = <&config 0xe07e>;
+ nvmem-cells = <&macaddr_config_e07e>;
+ nvmem-cell-names = "mac-address";
+};
+
+&config {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_config_e07e: macaddr@e07e {
+ reg = <0xe07e 0x6>;
+ };
};