mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
Revert "mediatek: add support for Netgear WAX206"
This reverts commit e55f584896
.
This commit is contained in:
parent
cdae37f8fa
commit
81e04f0c85
@ -1,603 +0,0 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
||||||
/* Copyright (c) 2022, Marcel Ziswiler <marcel@ziswiler.com> */
|
|
||||||
|
|
||||||
/dts-v1/;
|
|
||||||
#include "mt7622.dtsi"
|
|
||||||
#include "mt6380.dtsi"
|
|
||||||
#include <dt-bindings/gpio/gpio.h>
|
|
||||||
#include <dt-bindings/input/input.h>
|
|
||||||
|
|
||||||
/ {
|
|
||||||
model = "Netgear WAX206";
|
|
||||||
compatible = "netgear,wax206", "mediatek,mt7622";
|
|
||||||
|
|
||||||
aliases {
|
|
||||||
ethernet0 = &gmac0;
|
|
||||||
// label-mac-device = &gmac0;
|
|
||||||
// label-mac-device = &wan;
|
|
||||||
led-boot = &led_power;
|
|
||||||
led-failsafe = &led_power;
|
|
||||||
led-running = &led_power;
|
|
||||||
led-upgrade = &led_power;
|
|
||||||
serial0 = &uart0;
|
|
||||||
};
|
|
||||||
|
|
||||||
chosen {
|
|
||||||
stdout-path = "serial0:115200n8";
|
|
||||||
bootargs = "earlycon=uart8250,mmio32,0x11002000 console=ttyS0,115200n8 swiotlb=512";
|
|
||||||
};
|
|
||||||
|
|
||||||
cpus {
|
|
||||||
//&cpu0
|
|
||||||
cpu@0 {
|
|
||||||
proc-supply = <&mt6380_vcpu_reg>;
|
|
||||||
sram-supply = <&mt6380_vm_reg>;
|
|
||||||
};
|
|
||||||
|
|
||||||
//&cpu1
|
|
||||||
cpu@1 {
|
|
||||||
proc-supply = <&mt6380_vcpu_reg>;
|
|
||||||
sram-supply = <&mt6380_vm_reg>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio-keys {
|
|
||||||
compatible = "gpio-keys";
|
|
||||||
|
|
||||||
reset {
|
|
||||||
gpios = <&pio 0 GPIO_ACTIVE_LOW>;
|
|
||||||
label = "reset";
|
|
||||||
linux,code = <KEY_RESTART>;
|
|
||||||
};
|
|
||||||
|
|
||||||
wps {
|
|
||||||
gpios = <&pio 102 GPIO_ACTIVE_LOW>;
|
|
||||||
label = "wps";
|
|
||||||
linux,code = <KEY_WPS_BUTTON>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio-leds {
|
|
||||||
compatible = "gpio-leds";
|
|
||||||
|
|
||||||
led_power: power_red {
|
|
||||||
default-state = "on";
|
|
||||||
gpios = <&pio 3 GPIO_ACTIVE_LOW>;
|
|
||||||
label = "power:red";
|
|
||||||
};
|
|
||||||
|
|
||||||
power_green {
|
|
||||||
default-state = "off";
|
|
||||||
gpios = <&pio 4 GPIO_ACTIVE_LOW>;
|
|
||||||
label = "power:green";
|
|
||||||
};
|
|
||||||
|
|
||||||
inet_green {
|
|
||||||
default-state = "off";
|
|
||||||
gpios = <&pio 20 GPIO_ACTIVE_HIGH>;
|
|
||||||
label = "inet:green";
|
|
||||||
};
|
|
||||||
|
|
||||||
inet_blue {
|
|
||||||
default-state = "off";
|
|
||||||
gpios = <&pio 17 GPIO_ACTIVE_LOW>;
|
|
||||||
label = "inet:blue";
|
|
||||||
};
|
|
||||||
|
|
||||||
wifin_green {
|
|
||||||
default-state = "off";
|
|
||||||
gpios = <&pio 85 GPIO_ACTIVE_LOW>;
|
|
||||||
label = "wifin:green";
|
|
||||||
};
|
|
||||||
|
|
||||||
wifin_blue {
|
|
||||||
default-state = "off";
|
|
||||||
gpios = <&pio 86 GPIO_ACTIVE_LOW>;
|
|
||||||
label = "wifin:blue";
|
|
||||||
};
|
|
||||||
|
|
||||||
wifia_green {
|
|
||||||
default-state = "off";
|
|
||||||
gpios = <&pio 2 GPIO_ACTIVE_HIGH>;
|
|
||||||
label = "wifia:green";
|
|
||||||
};
|
|
||||||
|
|
||||||
wifia_blue {
|
|
||||||
default-state = "off";
|
|
||||||
gpios = <&pio 1 GPIO_ACTIVE_LOW>;
|
|
||||||
label = "wifia:blue";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
memory {
|
|
||||||
reg = <0 0x40000000 0 0x40000000>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
//TBD: disabled in stock?
|
|
||||||
&bch {
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
&btif {
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
&cir {
|
|
||||||
pinctrl-names = "default";
|
|
||||||
pinctrl-0 = <&irrx_pins>;
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
//&efuse
|
|
||||||
|
|
||||||
ð {
|
|
||||||
pinctrl-names = "default";
|
|
||||||
pinctrl-0 = <ð_pins>;
|
|
||||||
status = "okay";
|
|
||||||
|
|
||||||
gmac0: mac@0 {
|
|
||||||
compatible = "mediatek,eth-mac";
|
|
||||||
nvmem-cells = <&macaddr_factory_7fff4>;
|
|
||||||
nvmem-cell-names = "mac-address";
|
|
||||||
// phy-connection-type = "2500base-x";
|
|
||||||
phy-mode = "2500base-x";
|
|
||||||
reg = <0>;
|
|
||||||
|
|
||||||
fixed-link {
|
|
||||||
full-duplex;
|
|
||||||
pause;
|
|
||||||
speed = <2500>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
mdio-bus {
|
|
||||||
#address-cells = <1>;
|
|
||||||
#size-cells = <0>;
|
|
||||||
|
|
||||||
switch@0 {
|
|
||||||
compatible = "mediatek,mt7531";
|
|
||||||
#interrupt-cells = <1>;
|
|
||||||
// #interrupt-cells = <2>;
|
|
||||||
interrupt-controller;
|
|
||||||
interrupt-parent = <&pio>;
|
|
||||||
interrupts = <53 IRQ_TYPE_LEVEL_HIGH>;
|
|
||||||
//TBD: 2nd interrupt 77 IRQ_TYPE_EDGE_FALLING
|
|
||||||
reg = <0>;
|
|
||||||
reset-gpios = <&pio 54 GPIO_ACTIVE_HIGH>;
|
|
||||||
|
|
||||||
ports {
|
|
||||||
#address-cells = <1>;
|
|
||||||
#size-cells = <0>;
|
|
||||||
|
|
||||||
port@1 {
|
|
||||||
label = "lan1";
|
|
||||||
reg = <1>;
|
|
||||||
};
|
|
||||||
|
|
||||||
port@2 {
|
|
||||||
label = "lan2";
|
|
||||||
reg = <2>;
|
|
||||||
};
|
|
||||||
|
|
||||||
port@3 {
|
|
||||||
label = "lan3";
|
|
||||||
reg = <3>;
|
|
||||||
};
|
|
||||||
|
|
||||||
port@4 {
|
|
||||||
label = "lan4";
|
|
||||||
reg = <4>;
|
|
||||||
};
|
|
||||||
|
|
||||||
wan: port@5 {
|
|
||||||
label = "wan";
|
|
||||||
//TBD
|
|
||||||
// managed = "in-band-status";
|
|
||||||
nvmem-cells = <&macaddr_factory_7fffa>;
|
|
||||||
nvmem-cell-names = "mac-address";
|
|
||||||
phy-handle = <&rtl8221b_phy>;
|
|
||||||
phy-mode = "sgmii";
|
|
||||||
// phy-mode = "2500base-x";
|
|
||||||
reg = <5>;
|
|
||||||
};
|
|
||||||
|
|
||||||
port@6 {
|
|
||||||
ethernet = <&gmac0>;
|
|
||||||
label = "cpu";
|
|
||||||
phy-mode = "2500base-x";
|
|
||||||
reg = <6>;
|
|
||||||
|
|
||||||
fixed-link {
|
|
||||||
full-duplex;
|
|
||||||
pause;
|
|
||||||
speed = <2500>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
rtl8221b_phy: ethernet-phy@7 {
|
|
||||||
compatible = "ethernet-phy-id001c.c849";
|
|
||||||
reg = <7>;
|
|
||||||
reset-gpios = <&pio 101 GPIO_ACTIVE_LOW>;
|
|
||||||
interrupts = <52 IRQ_TYPE_LEVEL_HIGH>;
|
|
||||||
reset-assert-us = <100000>;
|
|
||||||
reset-deassert-us = <100000>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
//&hnat
|
|
||||||
|
|
||||||
//TBD: i2c?
|
|
||||||
|
|
||||||
&pcie0 {
|
|
||||||
pinctrl-names = "default";
|
|
||||||
pinctrl-0 = <&pcie0_pins>;
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
&pcie1 {
|
|
||||||
pinctrl-names = "default";
|
|
||||||
pinctrl-0 = <&pcie1_pins>;
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
&pio {
|
|
||||||
eth_pins: eth-pins {
|
|
||||||
mux {
|
|
||||||
function = "eth";
|
|
||||||
groups = "mdc_mdio", "rgmii_via_gmac2";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
irrx_pins: irrx-pins {
|
|
||||||
mux {
|
|
||||||
function = "ir";
|
|
||||||
groups = "ir_1_rx";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
irtx_pins: irtx-pins {
|
|
||||||
mux {
|
|
||||||
function = "ir";
|
|
||||||
groups = "ir_1_tx";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
pcie0_pins: pcie0-pins {
|
|
||||||
mux {
|
|
||||||
function = "pcie";
|
|
||||||
groups = "pcie0_pad_perst",
|
|
||||||
"pcie0_1_waken",
|
|
||||||
"pcie0_1_clkreq";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
pcie1_pins: pcie1-pins {
|
|
||||||
mux {
|
|
||||||
function = "pcie";
|
|
||||||
groups = "pcie1_pad_perst",
|
|
||||||
"pcie1_0_waken",
|
|
||||||
"pcie1_0_clkreq";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
pmic_bus_pins: pmic-bus-pins {
|
|
||||||
mux {
|
|
||||||
function = "pmic";
|
|
||||||
groups = "pmic_bus";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
pwm7_pins: pwm1-2-pins {
|
|
||||||
mux {
|
|
||||||
function = "pwm";
|
|
||||||
groups = "pwm_ch7_2";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
wled_pins: wled-pins {
|
|
||||||
mux {
|
|
||||||
function = "led";
|
|
||||||
groups = "wled";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
/* Serial NAND is shared pin with SPI-NOR */
|
|
||||||
serial_nand_pins: serial-nand-pins {
|
|
||||||
mux {
|
|
||||||
function = "flash";
|
|
||||||
groups = "snfi";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
spic0_pins: spic0-pins {
|
|
||||||
mux {
|
|
||||||
function = "spi";
|
|
||||||
groups = "spic0_0";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
spic1_pins: spic1-pins {
|
|
||||||
mux {
|
|
||||||
function = "spi";
|
|
||||||
groups = "spic1_0";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
uart0_pins: uart0-pins {
|
|
||||||
mux {
|
|
||||||
function = "uart";
|
|
||||||
groups = "uart0_0_tx_rx";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
uart2_pins: uart2-pins {
|
|
||||||
mux {
|
|
||||||
function = "uart";
|
|
||||||
groups = "uart2_1_tx_rx";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
watchdog_pins: watchdog-pins {
|
|
||||||
mux {
|
|
||||||
function = "watchdog";
|
|
||||||
groups = "watchdog";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
&pwm {
|
|
||||||
pinctrl-names = "default";
|
|
||||||
pinctrl-0 = <&pwm7_pins>;
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
&pwrap {
|
|
||||||
pinctrl-names = "default";
|
|
||||||
pinctrl-0 = <&pmic_bus_pins>;
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
&rtc {
|
|
||||||
status = "disabled";
|
|
||||||
};
|
|
||||||
|
|
||||||
&sata {
|
|
||||||
status = "disabled";
|
|
||||||
};
|
|
||||||
|
|
||||||
&sata_phy {
|
|
||||||
status = "disabled";
|
|
||||||
};
|
|
||||||
|
|
||||||
&slot0 {
|
|
||||||
wmac1: mt7915@0,0 {
|
|
||||||
reg = <0x0000 0 0 0 0>;
|
|
||||||
ieee80211-freq-limit = <5000000 6000000>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
&snfi {
|
|
||||||
pinctrl-names = "default";
|
|
||||||
pinctrl-0 = <&serial_nand_pins>;
|
|
||||||
status = "okay";
|
|
||||||
|
|
||||||
snand: flash@0 {
|
|
||||||
compatible = "spi-nand";
|
|
||||||
mediatek,bmt-table-size = <0x1000>;
|
|
||||||
mediatek,bmt-v2;
|
|
||||||
nand-ecc-engine = <&snfi>;
|
|
||||||
reg = <0>;
|
|
||||||
spi-rx-bus-width = <4>;
|
|
||||||
spi-tx-bus-width = <4>;
|
|
||||||
|
|
||||||
partitions {
|
|
||||||
compatible = "fixed-partitions";
|
|
||||||
#address-cells = <1>;
|
|
||||||
#size-cells = <1>;
|
|
||||||
/*
|
|
||||||
[ 1.456820] 0x000000000000-0x000000080000 : "Preloader"
|
|
||||||
[ 1.463323] 0x000000080000-0x0000000c0000 : "ATF"
|
|
||||||
[ 1.468865] 0x0000000c0000-0x000000140000 : "Bootloader"
|
|
||||||
[ 1.475339] 0x000000140000-0x0000001c0000 : "Config"
|
|
||||||
[ 1.481469] 0x0000001c0000-0x0000002c0000 : "Factory"
|
|
||||||
[ 1.488403] 0x0000002c0000-0x0000028c0000 : "ImageA"
|
|
||||||
[ 1.546793] 0x0000002e0000-0x0000028c0000 : "Kernel"
|
|
||||||
[ 1.609321] 2 fit-fw partitions found on MTD device Kernel
|
|
||||||
[ 1.614809] 0x0000002e0000-0x000000580000 : "kernel"
|
|
||||||
[ 1.623890] 0x000000580000-0x0000028c0000 : "rootfs"
|
|
||||||
[ 1.678471] mtd: device 8 (rootfs) set to be root filesystem
|
|
||||||
[ 1.715994] 1 squashfs-split partitions found on MTD device rootfs
|
|
||||||
[ 1.722175] 0x000001c60000-0x0000028c0000 : "rootfs_var"
|
|
||||||
[ 1.745236] 0x0000028c0000-0x000004ec0000 : "Kernel_backup"
|
|
||||||
[ 1.806070] 0x000004ec0000-0x0000056c0000 : "CFG"
|
|
||||||
[ 1.822393] 0x0000056c0000-0x000005ac0000 : "RAE"
|
|
||||||
[ 1.833183] 0x000005ac0000-0x000005bc0000 : "POT"
|
|
||||||
[ 1.843779] 0x000005bc0000-0x000005fc0000 : "Language"
|
|
||||||
[ 1.855067] 0x000005fc0000-0x0000061c0000 : "Traffic"
|
|
||||||
[ 1.863392] 0x0000061c0000-0x0000062c0000 : "Cert"
|
|
||||||
[ 1.870064] 0x0000062c0000-0x0000063c0000 : "NTGRcryptK"
|
|
||||||
[ 1.877258] 0x0000063c0000-0x0000068c0000 : "NTGRcryptD"
|
|
||||||
[ 1.890005] 0x0000068c0000-0x0000069c0000 : "LOG"
|
|
||||||
[ 1.902786] mtdoops: ready 0, 1 (no erase)
|
|
||||||
[ 1.906880] mtdoops: Attached to MTD device 19
|
|
||||||
[ 1.911668] 0x0000069c0000-0x000007000000 : "User_data"
|
|
||||||
*/
|
|
||||||
partition@0 {
|
|
||||||
label = "Preloader";
|
|
||||||
reg = <0x00000 0x0080000>;
|
|
||||||
read-only;
|
|
||||||
};
|
|
||||||
|
|
||||||
partition@80000 {
|
|
||||||
label = "ATF";
|
|
||||||
reg = <0x80000 0x0040000>;
|
|
||||||
read-only;
|
|
||||||
};
|
|
||||||
|
|
||||||
partition@c0000 {
|
|
||||||
label = "Bootloader";
|
|
||||||
reg = <0xc0000 0x0080000>;
|
|
||||||
read-only;
|
|
||||||
};
|
|
||||||
|
|
||||||
partition@140000 {
|
|
||||||
label = "Config";
|
|
||||||
reg = <0x140000 0x0080000>;
|
|
||||||
};
|
|
||||||
|
|
||||||
factory: partition@1c0000 {
|
|
||||||
compatible = "nvmem-cells";
|
|
||||||
label = "Factory";
|
|
||||||
reg = <0x1c0000 0x0100000>;
|
|
||||||
#address-cells = <1>;
|
|
||||||
#size-cells = <1>;
|
|
||||||
read-only;
|
|
||||||
|
|
||||||
macaddr_factory_7fff4: macaddr@7fff4 {
|
|
||||||
reg = <0x7fff4 0x6>;
|
|
||||||
};
|
|
||||||
|
|
||||||
macaddr_factory_7fffa: macaddr@7fffa {
|
|
||||||
reg = <0x7fffa 0x6>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
partition@2c0000 {
|
|
||||||
label = "firmware";
|
|
||||||
reg = <0x2c0000 0x2600000>;
|
|
||||||
|
|
||||||
compatible = "fixed-partitions";
|
|
||||||
#address-cells = <1>;
|
|
||||||
#size-cells = <1>;
|
|
||||||
|
|
||||||
partition@0 {
|
|
||||||
label = "kernel";
|
|
||||||
reg = <0x0 0x600000>;
|
|
||||||
};
|
|
||||||
|
|
||||||
partition@600000 {
|
|
||||||
label = "ubi";
|
|
||||||
reg = <0x600000 0x2000000>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
partition@28c0000 {
|
|
||||||
label = "firmware_backup";
|
|
||||||
reg = <0x28c0000 0x2600000>;
|
|
||||||
read-only;
|
|
||||||
};
|
|
||||||
|
|
||||||
partition@4ec0000 {
|
|
||||||
label = "CFG";
|
|
||||||
reg = <0x4ec0000 0x800000>;
|
|
||||||
read-only;
|
|
||||||
};
|
|
||||||
|
|
||||||
partition@56c0000 {
|
|
||||||
label = "RAE";
|
|
||||||
reg = <0x56c0000 0x400000>;
|
|
||||||
read-only;
|
|
||||||
};
|
|
||||||
|
|
||||||
partition@5ac0000 {
|
|
||||||
label = "POT";
|
|
||||||
reg = <0x5ac0000 0x100000>;
|
|
||||||
read-only;
|
|
||||||
};
|
|
||||||
|
|
||||||
partition@5bc0000 {
|
|
||||||
label = "Language";
|
|
||||||
reg = <0x5bc0000 0x400000>;
|
|
||||||
read-only;
|
|
||||||
};
|
|
||||||
|
|
||||||
partition@5fc0000 {
|
|
||||||
label = "Traffic";
|
|
||||||
reg = <0x5fc0000 0x200000>;
|
|
||||||
read-only;
|
|
||||||
};
|
|
||||||
|
|
||||||
partition@61c0000 {
|
|
||||||
label = "Cert";
|
|
||||||
reg = <0x61c0000 0x100000>;
|
|
||||||
read-only;
|
|
||||||
};
|
|
||||||
|
|
||||||
partition@62c0000 {
|
|
||||||
label = "NTGRcryptK";
|
|
||||||
reg = <0x62c0000 0x100000>;
|
|
||||||
read-only;
|
|
||||||
};
|
|
||||||
|
|
||||||
partition@63c0000 {
|
|
||||||
label = "NTGRcryptD";
|
|
||||||
reg = <0x63c0000 0x500000>;
|
|
||||||
read-only;
|
|
||||||
};
|
|
||||||
|
|
||||||
partition@68c0000 {
|
|
||||||
label = "LOG";
|
|
||||||
reg = <0x68c0000 0x100000>;
|
|
||||||
read-only;
|
|
||||||
};
|
|
||||||
|
|
||||||
partition@69c0000 {
|
|
||||||
label = "User_data";
|
|
||||||
reg = <0x69c0000 0x640000>;
|
|
||||||
read-only;
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
&spi0 {
|
|
||||||
pinctrl-names = "default";
|
|
||||||
pinctrl-0 = <&spic0_pins>;
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
&spi1 {
|
|
||||||
pinctrl-names = "default";
|
|
||||||
pinctrl-0 = <&spic1_pins>;
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
&ssusb {
|
|
||||||
status = "disabled";
|
|
||||||
};
|
|
||||||
|
|
||||||
&u3phy {
|
|
||||||
status = "disabled";
|
|
||||||
};
|
|
||||||
|
|
||||||
&uart0 {
|
|
||||||
pinctrl-names = "default";
|
|
||||||
pinctrl-0 = <&uart0_pins>;
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
&uart2 {
|
|
||||||
pinctrl-names = "default";
|
|
||||||
pinctrl-0 = <&uart2_pins>;
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
&watchdog {
|
|
||||||
pinctrl-names = "default";
|
|
||||||
pinctrl-0 = <&watchdog_pins>;
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
&wmac {
|
|
||||||
mediatek,mtd-eeprom = <&factory 0x0000>;
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
&wmac1 {
|
|
||||||
mediatek,mtd-eeprom = <&factory 0x05000>;
|
|
||||||
};
|
|
@ -228,33 +228,6 @@ define Device/mediatek_mt7622-rfb1-ubi
|
|||||||
endef
|
endef
|
||||||
TARGET_DEVICES += mediatek_mt7622-rfb1-ubi
|
TARGET_DEVICES += mediatek_mt7622-rfb1-ubi
|
||||||
|
|
||||||
define Device/netgear_wax206
|
|
||||||
$(Device/dsa-migration)
|
|
||||||
DEVICE_VENDOR := NETGEAR
|
|
||||||
DEVICE_MODEL := WAX206
|
|
||||||
DEVICE_DTS := mt7622-netgear-wax206
|
|
||||||
DEVICE_DTS_DIR := ../dts
|
|
||||||
NETGEAR_ENC_MODEL := WAX206
|
|
||||||
NETGEAR_ENC_REGION := US
|
|
||||||
DEVICE_PACKAGES := kmod-mt7915e
|
|
||||||
UBINIZE_OPTS := -E 5
|
|
||||||
BLOCKSIZE := 128k
|
|
||||||
PAGESIZE := 2048
|
|
||||||
KERNEL_SIZE := 6144k
|
|
||||||
IMAGE_SIZE := 32768k
|
|
||||||
KERNEL := kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb | \
|
|
||||||
append-squashfs4-fakeroot
|
|
||||||
# recovery can also be used with stock firmware web-ui, hence the padding...
|
|
||||||
KERNEL_INITRAMFS := kernel-bin | lzma | \
|
|
||||||
fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb with-initrd | pad-to 128k
|
|
||||||
KERNEL_INITRAMFS_SUFFIX := -recovery.itb
|
|
||||||
IMAGES += factory.img
|
|
||||||
IMAGE/factory.img := append-kernel | pad-to $$(KERNEL_SIZE) | \
|
|
||||||
append-ubi | check-size | netgear-encrypted-factory
|
|
||||||
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
||||||
endef
|
|
||||||
TARGET_DEVICES += netgear_wax206
|
|
||||||
|
|
||||||
define Device/ruijie_rg-ew3200gx-pro
|
define Device/ruijie_rg-ew3200gx-pro
|
||||||
DEVICE_VENDOR := Ruijie
|
DEVICE_VENDOR := Ruijie
|
||||||
DEVICE_MODEL := RG-EW3200GX PRO
|
DEVICE_MODEL := RG-EW3200GX PRO
|
||||||
|
@ -7,8 +7,7 @@ board_config_update
|
|||||||
|
|
||||||
case $board in
|
case $board in
|
||||||
linksys,e8450|\
|
linksys,e8450|\
|
||||||
linksys,e8450-ubi|\
|
linksys,e8450-ubi)
|
||||||
netgear,wax206)
|
|
||||||
ucidef_set_led_netdev "wan" "WAN" "inet:blue" "wan"
|
ucidef_set_led_netdev "wan" "WAN" "inet:blue" "wan"
|
||||||
;;
|
;;
|
||||||
xiaomi,redmi-router-ax6s)
|
xiaomi,redmi-router-ax6s)
|
||||||
|
@ -14,8 +14,7 @@ mediatek_setup_interfaces()
|
|||||||
linksys,e8450-ubi|\
|
linksys,e8450-ubi|\
|
||||||
mediatek,mt7622-rfb1|\
|
mediatek,mt7622-rfb1|\
|
||||||
mediatek,mt7622-rfb1-ubi|\
|
mediatek,mt7622-rfb1-ubi|\
|
||||||
ruijie,rg-ew3200gx-pro|\
|
ruijie,rg-ew3200gx-pro)
|
||||||
netgear,wax206)
|
|
||||||
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" wan
|
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" wan
|
||||||
;;
|
;;
|
||||||
buffalo,wsr-2533dhp2)
|
buffalo,wsr-2533dhp2)
|
||||||
|
@ -34,7 +34,6 @@ platform_do_upgrade() {
|
|||||||
;;
|
;;
|
||||||
elecom,wrc-x3200gst3|\
|
elecom,wrc-x3200gst3|\
|
||||||
mediatek,mt7622-rfb1-ubi|\
|
mediatek,mt7622-rfb1-ubi|\
|
||||||
netgear,wax206|\
|
|
||||||
totolink,a8000ru|\
|
totolink,a8000ru|\
|
||||||
xiaomi,redmi-router-ax6s)
|
xiaomi,redmi-router-ax6s)
|
||||||
nand_do_upgrade "$1"
|
nand_do_upgrade "$1"
|
||||||
@ -75,9 +74,6 @@ platform_check_image() {
|
|||||||
xiaomi,redmi-router-ax6s)
|
xiaomi,redmi-router-ax6s)
|
||||||
nand_do_platform_check "$board" "$1"
|
nand_do_platform_check "$board" "$1"
|
||||||
;;
|
;;
|
||||||
netgear,wax206)
|
|
||||||
nand_do_platform_check "${board//,/_}" "$1"
|
|
||||||
;;
|
|
||||||
*)
|
*)
|
||||||
[ "$magic" != "d00dfeed" ] && {
|
[ "$magic" != "d00dfeed" ] && {
|
||||||
echo "Invalid image type."
|
echo "Invalid image type."
|
||||||
|
Loading…
Reference in New Issue
Block a user