forked from coolsnowwolf/lede
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bot] AutoMerging: merge all upstream's changes:
* https://github.com/coolsnowwolf/lede: meson: auto-repartition for EMMC (coolsnowwolf#11679) x86/64: set CONFIG_NVME_HWMON=y x86: increase default swiotlb size to 64MB x86: set CONFIG_X86_AMD_PLATFORM_DEVICE linux-firmware: intel: add firmware for AX101 uboot-mediatek: Fix ubi command in commands mediatek: add support for GL.iNet GL-MT2500
- Loading branch information
Showing
22 changed files
with
252 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,151 @@ | ||
// SPDX-License-Identifier: (GPL-2.0 OR MIT) | ||
|
||
/dts-v1/; | ||
#include "mt7981.dtsi" | ||
|
||
/ { | ||
model = "GL.iNet GL-MT2500"; | ||
compatible = "glinet,gl-mt2500", "mediatek,mt7981"; | ||
|
||
aliases { | ||
label-mac-device = &gmac0; | ||
led-boot = &led_sys_white; | ||
led-failsafe = &led_sys_blue; | ||
led-running = &led_sys_white; | ||
led-upgrade = &led_sys_blue; | ||
serial0 = &uart0; | ||
}; | ||
|
||
chosen { | ||
stdout-path = "serial0:115200n8"; | ||
bootargs-append = " root=PARTLABEL=rootfs rootwait"; | ||
}; | ||
|
||
gpio-keys { | ||
compatible = "gpio-keys"; | ||
|
||
reset { | ||
label = "reset"; | ||
linux,code = <KEY_RESTART>; | ||
gpios = <&pio 1 GPIO_ACTIVE_LOW>; | ||
}; | ||
}; | ||
|
||
leds { | ||
compatible = "gpio-leds"; | ||
|
||
led-vpn { | ||
label = "white:vpn"; | ||
gpios = <&pio 31 GPIO_ACTIVE_LOW>; | ||
}; | ||
|
||
led_sys_white: led-system-white { | ||
label = "white:system"; | ||
gpios = <&pio 30 GPIO_ACTIVE_LOW>; | ||
}; | ||
|
||
led_sys_blue: led-system-blue { | ||
label = "blue:system"; | ||
gpios = <&pio 29 GPIO_ACTIVE_LOW>; | ||
}; | ||
}; | ||
|
||
usb_vbus: regulstor-usb { | ||
compatible = "regulator-fixed"; | ||
|
||
regulator-name = "usb-vbus"; | ||
regulator-min-microvolt = <5000000>; | ||
regulator-max-microvolt = <5000000>; | ||
|
||
gpio = <&pio 12 GPIO_ACTIVE_HIGH>; | ||
enable-active-high; | ||
regulator-boot-on; | ||
}; | ||
|
||
reg_3p3v: regulator-3p3v { | ||
compatible = "regulator-fixed"; | ||
regulator-name = "fixed-3.3V"; | ||
regulator-min-microvolt = <3300000>; | ||
regulator-max-microvolt = <3300000>; | ||
regulator-boot-on; | ||
regulator-always-on; | ||
}; | ||
}; | ||
|
||
&pio { | ||
mmc0_pins_default: mmc0-pins-default { | ||
mux { | ||
function = "flash"; | ||
groups = "emmc_45"; | ||
}; | ||
}; | ||
mmc0_pins_uhs: mmc0-pins-uhs { | ||
mux { | ||
function = "flash"; | ||
groups = "emmc_45"; | ||
}; | ||
}; | ||
}; | ||
|
||
&uart0 { | ||
status = "okay"; | ||
}; | ||
|
||
&watchdog { | ||
status = "okay"; | ||
}; | ||
|
||
ð { | ||
status = "okay"; | ||
|
||
pinctrl-names = "default"; | ||
pinctrl-0 = <&mdio_pins>; | ||
|
||
gmac0: mac@0 { | ||
compatible = "mediatek,eth-mac"; | ||
reg = <0>; | ||
|
||
phy-mode = "2500base-x"; | ||
phy-handle = <&phy5>; | ||
}; | ||
|
||
gmac1: mac@1 { | ||
compatible = "mediatek,eth-mac"; | ||
reg = <1>; | ||
phy-mode = "gmii"; | ||
phy-handle = <&int_gbe_phy>; | ||
}; | ||
}; | ||
|
||
&mdio_bus { | ||
reset-gpios = <&pio 14 GPIO_ACTIVE_LOW>; | ||
reset-delay-us = <600>; | ||
reset-post-delay-us = <20000>; | ||
|
||
phy5: ethernet-phy@5 { | ||
reg = <5>; | ||
compatible = "ethernet-phy-ieee802.3-c45"; | ||
}; | ||
}; | ||
|
||
&usb_phy { | ||
status = "okay"; | ||
}; | ||
|
||
&xhci { | ||
status = "okay"; | ||
vbus-supply = <&usb_vbus>; | ||
}; | ||
|
||
&mmc0 { | ||
status = "okay"; | ||
|
||
pinctrl-names = "default", "state_uhs"; | ||
pinctrl-0 = <&mmc0_pins_default>; | ||
pinctrl-1 = <&mmc0_pins_uhs>; | ||
bus-width = <8>; | ||
max-frequency = <52000000>; | ||
vmmc-supply = <®_3p3v>; | ||
cap-mmc-highspeed; | ||
non-removable; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Put your custom commands here that should be executed once | ||
# the system init finished. By default this file does nothing. | ||
|
||
bash /root/resize.sh | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
parted /dev/mmcblk1 resizepart 2 100% | ||
losetup /dev/loop0 /dev/mmcblk1p2 | ||
resize2fs -f /dev/loop0 | ||
echo "# Put your custom commands here that should be executed once | ||
# the system init finished. By default this file does nothing. | ||
exit 0">/etc/rc.local | ||
rm -rf /root/resize.sh && reboot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.