// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-/dts-v1/;
#include "mt7628an.dtsi"
compatible = "hilink,hlk-7628n", "mediatek,mt7628an-soc";
model = "HILINK HLK-7628N";
- chosen {
- bootargs = "console=ttyS0,57600";
- };
-
keys {
compatible = "gpio-keys";
reset {
label = "reset";
- gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
};
compatible = "gpio-leds";
wlan {
- label = "hlk-7628n:green:wlan";
- gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
+ label = "green:wlan";
+ gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
};
};
};
-&pinctrl {
- state_default: pinctrl0 {
- gpio {
- ralink,group = "i2c";
- ralink,function = "gpio";
- };
+&state_default {
+ gpio {
+ groups = "i2c";
+ function = "gpio";
};
};
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <10000000>;
+ broken-flash-reset;
partitions {
compatible = "fixed-partitions";
};
};
+ðernet {
+ 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>;
+ };
};