-/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>;
};
};
config: partition@7f0000 {
label = "config";
reg = <0x7f0000 0x10000>;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_config_e07e: macaddr@e07e {
+ reg = <0xe07e 0x6>;
+ };
+
+ eeprom_config_e08a: eeprom@e08a {
+ reg = <0xe08a 0x200>;
+ };
+ };
};
};
};
spidev@0 {
#address-cells = <1>;
#size-cells = <1>;
- compatible = "siliconlabs,si3210";
+ compatible = "silabs,si3210";
reg = <0>;
spi-max-frequency = <1000000>;
};
ð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 = <&eeprom_config_e08a>, <&macaddr_config_e07e>;
+ nvmem-cell-names = "eeprom", "mac-address";
};