ramips: add support for D-Link DRA-1360
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_aigale_ai-br100.dts
index 24a43f7ad295c57dffed0f3baf61588316e3d8af..1142746c7afea5ae64997c9d404f2b36542c4f7e 100644 (file)
@@ -1,5 +1,3 @@
-/dts-v1/;
-
 #include "mt7620a.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
                compatible = "gpio-leds";
 
                wan {
-                       label = "ai-br100:blue:wan";
+                       label = "blue:wan";
                        gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
                };
 
                led_wlan: wlan {
-                       label = "ai-br100:blue:wlan";
+                       label = "blue:wlan";
                        gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
        };
@@ -54,7 +52,7 @@
 
        flash@0 {
                compatible = "jedec,spi-nor";
-               reg = <0 0>;
+               reg = <0>;
                spi-max-frequency = <10000000>;
 
                partitions {
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
+
        mediatek,portmap = "llllw";
 };
 
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};