ramips: unielec-u7621-01: Increase SPI frequency to 50MHz
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3883_trendnet_tew-692gr.dts
index 5f9565ed84cf08d438b3222259a414657c174221..ee2ca91af7ff5d7b4d3a2e94aeb58a1202b5ea00 100644 (file)
@@ -1,5 +1,3 @@
-/dts-v1/;
-
 #include "rt3883.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
                                reg = <0x00040000 0x00010000>;
                                label = "factory";
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       eeprom_factory_0: eeprom@0 {
+                                               reg = <0x0 0x200>;
+                                       };
+
+                                       macaddr_factory_4: macaddr@4 {
+                                               compatible = "mac-base";
+                                               reg = <0x4 0x6>;
+                                               #nvmem-cell-cells = <1>;
+                                       };
+                               };
                        };
 
                        partition@50000 {
                compatible = "gpio-leds";
 
                wps {
-                       label = "tew-692gr:orange:wps";
+                       label = "orange:wps";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                led_wps_green: wps2 {
-                       label = "tew-692gr:green:wps";
+                       label = "green:wps";
                        gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
                };
        };
 
 &ethernet {
        status = "okay";
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4 0>;
+       nvmem-cell-names = "mac-address";
 
        port@0 {
                phy-handle = <&phy0>;
 };
 
 &wmac {
-       status = "okay";
-       ralink,mtd-eeprom = <&factory 0x0>;
        ralink,5ghz = <0>;
-       mtd-mac-address = <&factory 0x4>;
-       mtd-mac-address-increment = <3>;
+       nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_4 3>;
+       nvmem-cell-names = "eeprom", "mac-address";
 };