ath79: ar: convert to mac-base
[openwrt/staging/hauke.git] / target / linux / ath79 / dts / ar7242_meraki_mr12.dts
index 125919d4f19599eac39c59921125e71841bebc0b..adea2778eac82c77bf287faee004cabcff3f7005 100644 (file)
                led-upgrade = &led_power_orange;
        };
 
-       extosc: ref {
-               compatible = "fixed-clock";
-               #clock-cells = <0>;
-               clock-output-names = "ref";
-               clock-frequency = <40000000>;
-       };
-
        leds {
                compatible = "gpio-leds";
 
                compatible = "pci168c,002a";
                reg = <0x0000 0 0 0 0>;
                qca,no-eeprom;
-               mtd-mac-address = <&config 0x66>;
-               mtd-mac-address-increment = <1>;
+               nvmem-cells = <&macaddr_config_66 1>;
+               nvmem-cell-names = "mac-address";
        };
 };
 
-&pll {
-       clocks = <&extosc>;
-};
-
-&uart {
-       status = "okay";
-};
-
 &mdio0 {
        status = "okay";
 
 &eth0 {
        status = "okay";
 
-       mtd-mac-address = <&config 0x66>;
+       nvmem-cells = <&macaddr_config_66 0>;
+       nvmem-cell-names = "mac-address";
 
        pll-data = <0x02000000 0x00000101 0x00001313>;
 
 &eth1 {
        status = "okay";
 
-       mtd-mac-address = <&config 0x66>;
+       nvmem-cells = <&macaddr_config_66 0>;
+       nvmem-cell-names = "mac-address";
 };
 
 &spi {
                                label = "config";
                                reg = <0x80000 0x20000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       macaddr_config_66: macaddr@66 {
+                                               compatible = "mac-base";
+                                               reg = <0x66 0x6>;
+                                               #nvmem-cell-cells = <1>;
+                                       };
+                               };
                        };
 
                        partition@a0000 {