ramips: convert MT7628 EEPROM to NVMEM format
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7628an_xiaomi_mi-ra75.dts
index 78653344896a239aa01f5170032afd6221ef4c63..51b99300b31e471caff2103a06b05229137215f0 100644 (file)
                        label = "amber:signal";
                        gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
                };
+               led_signal_red: signal_red {
+                       label = "red:signal";
+                       gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
+               };
        };
 
        keys {
 
 };
 
+&state_default {
+       gpio {
+               groups = "gpio", "refclk", "wdt", "wled_an", "uart1";
+               function = "gpio";
+       };
+};
+
 &partitions {
        partition@60000 {
                label = "overlay";
 };
 
 &wmac {
-       ralink,mtd-eeprom = <&factory 0x0>;
+       nvmem-cells = <&eeprom_factory_0>;
+       nvmem-cell-names = "eeprom";
 };
 
-
 &esw {
        mediatek,portmap = <0x3e>;
        mediatek,portdisable = <0x2a>;
 &ohci {
        status = "disabled";
 };
-
-&factory {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_factory_4: macaddr@4 {
-               reg = <0x4 0x6>;
-       };
-
-       macaddr_factory_28: macaddr@28 {
-               reg = <0x28 0x6>;
-       };
-       macaddr_factory_8004: macaddr@8004 {
-               reg = <0x8004 0x6>;
-       };
-};
-
-