ramips: TP-link archer A6/C6 device tree updates
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_zbtlink_zbt-we1026.dtsi
index d5a6d5389d5283cb314e41141e6a6992d0a73e06..1c7e1782cba79bcaac9d8c42ca09ec16c44ff85a 100644 (file)
@@ -30,7 +30,7 @@
 &spi0 {
        status = "okay";
 
-       flash@0 {
+       flash0: flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <10000000>;
                        };
 
                        factory: partition@40000 {
+                               compatible = "nvmem-cells";
                                label = "factory";
                                reg = <0x40000 0x10000>;
+                               #address-cells = <1>;
+                               #size-cells = <1>;
                                read-only;
+
+                               eeprom_factory_0: eeprom@0 {
+                                       reg = <0x0 0x200>;
+                               };
+
+                               eeprom_factory_8000: eeprom@8000 {
+                                       reg = <0x8000 0x200>;
+                               };
+
+                               macaddr_factory_28: macaddr@28 {
+                                       reg = <0x28 0x6>;
+                               };
                        };
 
                        firmware: partition@50000 {
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &wmac {
-       ralink,mtd-eeprom = <&factory 0x0>;
+       nvmem-cells = <&eeprom_factory_0>;
+       nvmem-cell-names = "eeprom";
 };
 
-&pinctrl {
-       state_default: pinctrl0 {
-               default {
-                       ralink,group = "i2c", "uartf", "spi refclk", "ephy", "wled";
-                       ralink,function = "gpio";
-               };
+&state_default {
+       default {
+               groups = "i2c", "uartf", "spi refclk", "ephy", "wled";
+               function = "gpio";
        };
 };