ramips: add support for SNR-CPE-ME2-SFP
[openwrt/openwrt.git] / target / linux / ramips / dts / rt5350_hootoo_ht-tm02.dts
index dc6fab8c148903780a12acde4c04e462877c1ca2..387e4adfdc170ca99ea41d4e9d12413d06c06ad4 100644 (file)
                compatible = "gpio-leds";
 
                led_wlan: wlan {
-                       label = "ht-tm02:blue:wlan";
+                       label = "blue:wlan";
                        gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
 
                lan {
-                       label = "ht-tm02:green:lan";
+                       label = "green:lan";
                        gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
        };
        };
 };
 
-&gpio0 {
-       status = "okay";
-};
-
 &spi0 {
        status = "okay";
 
@@ -99,7 +95,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
 
-&ehci {
-       status = "okay";
-};
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
 
-&ohci {
-       status = "okay";
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
 };