ramips: rename to GnuBee GB-PC1 and GnuBee GB-PC2
[openwrt/openwrt.git] / target / linux / ramips / dts / rt5350_airlive_air3gii.dts
index 56ae5276b3f19ae773eda1b0bce5d81f722fc541..0082af958dc802e39172811b2adeb34e9e6f537e 100644 (file)
@@ -1,5 +1,3 @@
-/dts-v1/;
-
 #include "rt5350.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
                compatible = "gpio-leds";
 
                wlan {
-                       label = "air3gii:green:wlan";
+                       label = "green:wlan";
                        gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
                };
 
                mobile {
-                       label = "air3gii:green:mobile";
+                       label = "green:mobile";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&ohci_port1>, <&ehci_port1>;
                        linux,default-trigger = "usbport";
        };
 };
 
-&gpio0 {
-       status = "okay";
-};
-
 &spi0 {
        status = "okay";
 
@@ -89,7 +83,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};