-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
188 additions
and
2 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
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,150 @@ | ||
/dts-v1/; | ||
|
||
/include/ "mt7628an.dtsi" | ||
|
||
/ { | ||
compatible = "gl-inet,gl-mt300n-v2", "mediatek,mt7628an-soc"; | ||
model = "GL-MT300N-V2"; | ||
|
||
chosen { | ||
bootargs = "console=ttyS0,115200"; | ||
}; | ||
|
||
memory@0 { | ||
device_type = "memory"; | ||
reg = <0x0 0x8000000>; | ||
}; | ||
|
||
palmbus@10000000 { | ||
spi@b00 { | ||
status = "okay"; | ||
|
||
m25p80@0 { | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
compatible = "en25q64"; | ||
reg = <0 0>; | ||
linux,modalias = "m25p80", "en25q64"; | ||
spi-max-frequency = <10000000>; | ||
m25p,chunked-io = <32>; | ||
|
||
partition@0 { | ||
label = "u-boot"; | ||
reg = <0x0 0x30000>; | ||
read-only; | ||
}; | ||
|
||
partition@30000 { | ||
label = "u-boot-env"; | ||
reg = <0x30000 0x10000>; | ||
read-only; | ||
}; | ||
|
||
factory: partition@40000 { | ||
label = "factory"; | ||
reg = <0x40000 0x10000>; | ||
read-only; | ||
}; | ||
|
||
partition@50000 { | ||
label = "firmware"; | ||
reg = <0x50000 0xfb0000>; | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
||
ethernet@10100000 { | ||
status = "okay"; | ||
mtd-mac-address = <&factory 0x4>; | ||
}; | ||
|
||
esw@10110000 { | ||
status = "okay"; | ||
ralink,portmap = "llllw"; | ||
}; | ||
|
||
|
||
sdhc@10130000 { | ||
status = "okay"; | ||
}; | ||
|
||
wmac@10180000 { | ||
status = "okay"; | ||
ralink,mtd-eeprom = <&factory 0x4>; | ||
}; | ||
|
||
ehci@101c0000 { | ||
status = "okay"; | ||
}; | ||
|
||
ohci@101c1000 { | ||
status = "okay"; | ||
}; | ||
|
||
pinctrl { | ||
state_default: pinctrl0 { | ||
gpio { | ||
ralink,group = "wdt", "gpio", "wled_an", "p0led_an", "p1led_an", "i2c", "i2s", "uart1"; | ||
ralink,function = "gpio"; | ||
}; | ||
}; | ||
}; | ||
|
||
gpio-leds { | ||
compatible = "gpio-leds"; | ||
|
||
power { | ||
label = "gl-mt300n-v2:power"; | ||
default-state = "on"; | ||
gpios = <&gpio1 10 1>; | ||
}; | ||
|
||
wan { | ||
label = "gl-mt300n-v2:wan"; | ||
gpios = <&gpio1 11 1>; | ||
}; | ||
|
||
wlan { | ||
label = "gl-mt300n-v2:wlan"; | ||
gpios = <&gpio1 12 1>; | ||
}; | ||
}; | ||
|
||
gpio-keys { | ||
compatible = "gpio-keys-polled"; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
poll-interval = <20>; | ||
|
||
reset { | ||
label = "reset"; | ||
gpios = <&gpio1 6 1>; | ||
linux,code = <0x198>; | ||
}; | ||
|
||
BTN_0 { | ||
label = "BTN_0"; | ||
gpios = <&gpio0 0 1>; | ||
linux,code = <0x100>; | ||
}; | ||
|
||
BTN_1 { | ||
label = "BTN_1"; | ||
gpios = <&gpio0 3 1>; | ||
linux,code = <0x101>; | ||
}; | ||
}; | ||
|
||
gpio_export { | ||
compatible = "gpio-export"; | ||
#size-cells = <0>; | ||
|
||
usbpow { | ||
gpio-export,name = "usbpow"; | ||
gpio-export,output = <1>; | ||
gpios = <&gpio0 11 1>; | ||
}; | ||
}; | ||
|
||
}; |
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,18 @@ | ||
# | ||
# Copyright (C) 2015 OpenWrt.org | ||
# | ||
# This is free software, licensed under the GNU General Public License v2. | ||
# See /LICENSE for more information. | ||
# | ||
|
||
define Profile/GL-MT300N-V2 | ||
NAME:=GL-iNet GL-MT300N-V2 | ||
PACKAGES:=\ | ||
kmod-usb-core kmod-usb2 kmod-usb-ohci \ | ||
kmod-ledtrig-usbdev | ||
endef | ||
|
||
define Profile/GL-MT300N-V2/Description | ||
Support for GL-iNet GL-MT300N-V2 routers | ||
endef | ||
$(eval $(call Profile,GL-MT300N-V2)) |