#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
compatible = "unielec,u7621-01", "mediatek,mt7621-soc";
- aliases {
- led-boot = &led_status;
- led-failsafe = &led_status;
- led-running = &led_status;
- led-upgrade = &led_status;
- };
-
gpio-export {
compatible = "gpio-export";
#size-cells = <0>;
linux,code = <KEY_RESTART>;
};
};
-
- leds {
- compatible = "gpio-leds";
-
- led_status: status {
- label = "green:status";
- gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
- };
- };
};
&pcie {
status = "okay";
};
-&pcie0 {
+&pcie1 { // MT7603EN
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
nvmem-cells = <&eeprom_factory_0>;
nvmem-cell-names = "eeprom";
- ieee80211-freq-limit = <2400000 2500000>;
+
+ led {
+ led-active-low;
+ };
};
};
-&pcie1 {
+&pcie2 { // MT7612E
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- mediatek,mtd-eeprom = <&factory 0x8000>;
+ nvmem-cells = <&eeprom_factory_8000>;
+ nvmem-cell-names = "eeprom";
ieee80211-freq-limit = <5000000 6000000>;
-
- led {
- led-sources = <2>;
- };
};
};