mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-18 21:28:02 +00:00
ramips: add preliminary support for SGE AP-MTKH7-0006 developer board
Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
363ce4329d
commit
b1db6d0539
@ -415,6 +415,7 @@ ramips_setup_interfaces()
|
||||
"0:lan:3" "1:lan:2" "2:lan:1" "3:wan" "6@eth0"
|
||||
;;
|
||||
planex,mzk-dp150n|\
|
||||
sge,ap-mtkh7-0006|\
|
||||
vocore,vocore-8m|\
|
||||
vocore,vocore-16m)
|
||||
ucidef_add_switch "switch0" \
|
||||
|
111
target/linux/ramips/dts/AP-MTKH7-0006.dts
Normal file
111
target/linux/ramips/dts/AP-MTKH7-0006.dts
Normal file
@ -0,0 +1,111 @@
|
||||
/dts-v1/;
|
||||
|
||||
#include "mt7621.dtsi"
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
/ {
|
||||
compatible = "sge,ap-mtkh7-0006", "mediatek,mt7621-soc";
|
||||
model = "SGE AP-MTKH7-0006";
|
||||
|
||||
chosen {
|
||||
bootargs = "console=ttyS0,57600";
|
||||
};
|
||||
|
||||
wdt@18 {
|
||||
status = "okay";
|
||||
compatible = "linux,wdt-gpio";
|
||||
|
||||
always-running;
|
||||
hw_algo = "level";
|
||||
hw_margin_ms = <60000>;
|
||||
gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
|
||||
&wdt {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&spi0 {
|
||||
status = "okay";
|
||||
|
||||
m25p80@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <10000000>;
|
||||
m25p,chunked-io = <32>;
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
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 0x7b0000>;
|
||||
};
|
||||
|
||||
partition@850000 {
|
||||
label = "firmware2";
|
||||
reg = <0x850000 0x7b0000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
ðernet {
|
||||
mtd-mac-address = <&factory 4>;
|
||||
mtd-mac-address-increment = <(-2)>;
|
||||
};
|
||||
|
||||
&pinctrl {
|
||||
state_default: pinctrl0 {
|
||||
gpio {
|
||||
ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci", "wdt";
|
||||
ralink,function = "gpio";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&pcie {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pcie0 {
|
||||
mt76@0,0 {
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
mediatek,mtd-eeprom = <&factory 0x8000>;
|
||||
ieee80211-freq-limit = <5000000 6000000>;
|
||||
};
|
||||
};
|
||||
|
||||
&pcie1 {
|
||||
mt76@0,0 {
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
mediatek,mtd-eeprom = <&factory 0x0000>;
|
||||
};
|
||||
};
|
||||
|
||||
&xhci {
|
||||
status = "disabled";
|
||||
};
|
@ -685,6 +685,17 @@ define Device/xzwifi_creativebox-v1
|
||||
endef
|
||||
TARGET_DEVICES += xzwifi_creativebox-v1
|
||||
|
||||
define Device/ap-mtkh7-0006
|
||||
DTS := AP-MTKH7-0006
|
||||
IMAGE_SIZE := $(ralink_default_fw_size_32M)
|
||||
SUPPORTED_DEVICES := sge,ap-mtkh7-0006
|
||||
DEVICE_TITLE := SGE AP-MTKH7-0006
|
||||
DEVICE_PACKAGES := \
|
||||
kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 \
|
||||
kmod-usb3 kmod-usb-ledtrig-usbport wpad-mini
|
||||
endef
|
||||
TARGET_DEVICES += ap-mtkh7-0006
|
||||
|
||||
define Device/youhua_wr1200js
|
||||
MTK_SOC := mt7621
|
||||
IMAGE_SIZE := 16064k
|
||||
|
@ -91,6 +91,8 @@ CONFIG_GPIOLIB=y
|
||||
CONFIG_GPIO_MT7621=y
|
||||
# CONFIG_GPIO_RALINK is not set
|
||||
CONFIG_GPIO_SYSFS=y
|
||||
CONFIG_GPIO_WATCHDOG=y
|
||||
CONFIG_GPIO_WATCHDOG_ARCH_INITCALL=y
|
||||
# CONFIG_GRO_CELLS is not set
|
||||
CONFIG_HANDLE_DOMAIN_IRQ=y
|
||||
CONFIG_HARDWARE_WATCHPOINTS=y
|
||||
|
Loading…
Reference in New Issue
Block a user