-/dts-v1/;
-
#include "rt3050.dtsi"
#include <dt-bindings/gpio/gpio.h>
&spi0 {
status = "okay";
- m25p80@0 {
+ flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <10000000>;
read-only;
};
- devconf: partition@40000 {
+ partition@40000 {
label = "devconf";
reg = <0x40000 0x10000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_devconf_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_devconf_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+ };
};
partition@50000 {
};
ðernet {
- mtd-mac-address = <&devconf 0x4>;
+ nvmem-cells = <&macaddr_devconf_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&wmac {
- ralink,mtd-eeprom = <&devconf 0x0>;
+ nvmem-cells = <&eeprom_devconf_0>;
+ nvmem-cell-names = "eeprom";
};