ramips: improve Xiaomi mi-mini indications
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_hilink_hlk-7628n.dts
index ae085255b3cff6185ba3c8b7b38e686a642c7594..b7c3af796d5aa8442d39e03dbda8097f1380b69c 100644 (file)
@@ -1,5 +1,4 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-/dts-v1/;
 
 #include "mt7628an.dtsi"
 
@@ -10,10 +9,6 @@
        compatible = "hilink,hlk-7628n", "mediatek,mt7628an-soc";
        model = "HILINK HLK-7628N";
 
-       chosen {
-               bootargs = "console=ttyS0,57600";
-       };
-
        keys {
                compatible = "gpio-keys";
 
@@ -28,7 +23,7 @@
                compatible = "gpio-leds";
 
                wlan {
-                       label = "hlk-7628n:green:wlan";
+                       label = "green:wlan";
                        gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
                };
        };
@@ -52,6 +47,7 @@
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <10000000>;
+               broken-flash-reset;
 
                partitions {
                        compatible = "fixed-partitions";
        };
 };
 
+&ethernet {
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
+};
+
 &wmac {
        status = "okay";
+
+       mediatek,mtd-eeprom = <&factory 0x0>;
+};
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
 };