From 506e55bee8dfc8ab43eee06d9e785eb058898c42 Mon Sep 17 00:00:00 2001 From: coolsnowwolf Date: Thu, 27 Dec 2018 21:53:13 +0800 Subject: [PATCH] ramips: update dts from upstream --- .../ramips/base-files/etc/board.d/01_leds | 21 +- .../ramips/base-files/etc/board.d/02_network | 18 +- target/linux/ramips/base-files/etc/diag.sh | 45 --- .../etc/hotplug.d/firmware/10-rt2x00-eeprom | 1 + target/linux/ramips/base-files/lib/ramips.sh | 6 - .../ramips/base-files/lib/upgrade/platform.sh | 332 +----------------- target/linux/ramips/dts/3G-6200N.dts | 1 + target/linux/ramips/dts/3G-6200NL.dts | 1 + target/linux/ramips/dts/3G150B.dts | 1 + target/linux/ramips/dts/3G300M.dts | 1 + target/linux/ramips/dts/A5-V11.dts | 1 + target/linux/ramips/dts/AC1200RM.dts | 1 + target/linux/ramips/dts/AI-BR100.dts | 1 + target/linux/ramips/dts/AIR3GII.dts | 1 + target/linux/ramips/dts/ALL0239-3G.dts | 130 ------- target/linux/ramips/dts/ALL0256N-4M.dts | 1 + target/linux/ramips/dts/ALL0256N-8M.dts | 1 + target/linux/ramips/dts/ALL5002.dts | 1 + target/linux/ramips/dts/ALL5003.dts | 1 + target/linux/ramips/dts/AP-MT7621A-V60.dts | 1 + target/linux/ramips/dts/AR725W.dts | 1 + target/linux/ramips/dts/ASL26555-16M.dts | 1 + target/linux/ramips/dts/ASL26555-8M.dts | 1 + target/linux/ramips/dts/ATP-52B.dts | 1 + target/linux/ramips/dts/AWAPN2403.dts | 1 + target/linux/ramips/dts/AWM002-EVB-4M.dts | 1 + target/linux/ramips/dts/AWM002-EVB-8M.dts | 1 + target/linux/ramips/dts/AWUSFREE1.dts | 1 + target/linux/ramips/dts/ArcherC2-v1.dts | 1 + target/linux/ramips/dts/ArcherC20i.dts | 1 + target/linux/ramips/dts/ArcherC20v1.dts | 1 + target/linux/ramips/dts/ArcherC50.dts | 1 + target/linux/ramips/dts/ArcherMR200.dts | 1 + target/linux/ramips/dts/BC2.dts | 1 + target/linux/ramips/dts/BDCOM-WAP2100-SK.dts | 15 + target/linux/ramips/dts/BOCCO.dts | 1 + target/linux/ramips/dts/BR-6475ND.dts | 1 + target/linux/ramips/dts/BR-6478AC-V2.dts | 1 + target/linux/ramips/dts/BROADWAY.dts | 1 + target/linux/ramips/dts/C108.dts | 1 + target/linux/ramips/dts/CARAMBOLA.dts | 1 + target/linux/ramips/dts/CF-WR800N.dts | 1 + target/linux/ramips/dts/CS-QR10.dts | 5 +- target/linux/ramips/dts/CY-SWR1100.dts | 1 + target/linux/ramips/dts/D105.dts | 1 + target/linux/ramips/dts/D240.dts | 1 + target/linux/ramips/dts/DAP-1350.dts | 1 + target/linux/ramips/dts/DB-WRT01.dts | 5 +- target/linux/ramips/dts/DCH-M225.dts | 2 +- target/linux/ramips/dts/DCS-930.dts | 1 + target/linux/ramips/dts/DCS-930L-B1.dts | 1 + target/linux/ramips/dts/DIR-300-B1.dts | 1 + target/linux/ramips/dts/DIR-300-B7.dts | 1 + target/linux/ramips/dts/DIR-320-B1.dts | 1 + target/linux/ramips/dts/DIR-600-B1.dts | 1 + target/linux/ramips/dts/DIR-610-A1.dts | 1 + target/linux/ramips/dts/DIR-615-D.dts | 2 +- target/linux/ramips/dts/DIR-615-H1.dts | 2 +- target/linux/ramips/dts/DIR-620-A1.dts | 1 + target/linux/ramips/dts/DIR-620-D1.dts | 1 + target/linux/ramips/dts/DIR-645.dts | 1 + target/linux/ramips/dts/DIR-810L.dts | 1 + target/linux/ramips/dts/DIR-860L-B1.dts | 1 + target/linux/ramips/dts/DUZUN-DM06.dts | 1 + target/linux/ramips/dts/DWR-116-A1.dts | 3 +- target/linux/ramips/dts/DWR-118-A1.dts | 189 ++++++++++ target/linux/ramips/dts/DWR-118-A2.dts | 1 + target/linux/ramips/dts/DWR-512-B.dts | 5 +- target/linux/ramips/dts/DWR-921-C1.dts | 3 +- target/linux/ramips/dts/E1700.dts | 1 + target/linux/ramips/dts/ESR-9753.dts | 1 + target/linux/ramips/dts/EW1200.dts | 1 + target/linux/ramips/dts/EX2700.dts | 1 + target/linux/ramips/dts/EX3700.dts | 2 +- target/linux/ramips/dts/F5D8235_V1.dts | 1 + target/linux/ramips/dts/F5D8235_V2.dts | 1 + target/linux/ramips/dts/F7C027.dts | 1 + target/linux/ramips/dts/FIREWRT.dts | 1 + target/linux/ramips/dts/FONERA20N.dts | 1 + target/linux/ramips/dts/FREESTATION5.dts | 1 + target/linux/ramips/dts/GB-PC1.dts | 1 + target/linux/ramips/dts/GB-PC2.dts | 1 + target/linux/ramips/dts/GL-MT300A.dts | 1 + target/linux/ramips/dts/GL-MT300N-V2.dts | 1 + target/linux/ramips/dts/GL-MT300N.dts | 1 + target/linux/ramips/dts/GL-MT750.dts | 1 + target/linux/ramips/dts/HC5661A.dts | 5 +- target/linux/ramips/dts/HC5761.dts | 20 ++ target/linux/ramips/dts/HC5861.dts | 20 ++ target/linux/ramips/dts/HC5861B.dts | 1 + target/linux/ramips/dts/HC5X61.dtsi | 18 +- target/linux/ramips/dts/HG255D.dts | 1 + target/linux/ramips/dts/HLKRM04.dts | 1 + target/linux/ramips/dts/HPM.dts | 1 + target/linux/ramips/dts/HT-TM02.dts | 1 + target/linux/ramips/dts/HW550-3G.dts | 1 + target/linux/ramips/dts/IP2202.dts | 1 + target/linux/ramips/dts/JHR-N805R.dts | 1 + target/linux/ramips/dts/JHR-N825R.dts | 1 + target/linux/ramips/dts/JHR-N926R.dts | 1 + target/linux/ramips/dts/K2G.dts | 1 + target/linux/ramips/dts/K2P.dts | 1 + target/linux/ramips/dts/LINKIT7688.dts | 1 + target/linux/ramips/dts/LR-25G001.dts | 1 + target/linux/ramips/dts/M2M.dts | 1 + target/linux/ramips/dts/M3.dts | 1 + target/linux/ramips/dts/M4-4M.dts | 1 + target/linux/ramips/dts/M4-8M.dts | 1 + target/linux/ramips/dts/MAC1200RV2.dts | 1 + target/linux/ramips/dts/MINIEMBPLUG.dts | 1 + target/linux/ramips/dts/MINIEMBWIFI.dts | 1 + target/linux/ramips/dts/MIWIFI-MINI.dts | 3 +- target/linux/ramips/dts/MIWIFI-NANO.dts | 1 + target/linux/ramips/dts/MLW221.dts | 1 + target/linux/ramips/dts/MLWG2.dts | 1 + target/linux/ramips/dts/MOFI3500-3GN.dts | 1 + target/linux/ramips/dts/MPRA1.dts | 1 + target/linux/ramips/dts/MPRA2.dts | 1 + target/linux/ramips/dts/MR-102N.dts | 1 + target/linux/ramips/dts/MT7620a.dts | 1 + target/linux/ramips/dts/MT7620a_MT7530.dts | 1 + target/linux/ramips/dts/MT7620a_MT7610e.dts | 1 + target/linux/ramips/dts/MT7620a_V22SG.dts | 1 + target/linux/ramips/dts/MT7628.dts | 1 + target/linux/ramips/dts/MZK-750DHP.dts | 1 + target/linux/ramips/dts/MZK-DP150N.dts | 1 + target/linux/ramips/dts/MZK-EX300NP.dts | 1 + target/linux/ramips/dts/MZK-EX750NP.dts | 1 + target/linux/ramips/dts/MZK-W300NH2.dts | 1 + target/linux/ramips/dts/MZK-WDPR.dts | 1 + target/linux/ramips/dts/MicroWRT.dts | 5 +- target/linux/ramips/dts/NA930.dts | 1 + target/linux/ramips/dts/NBG-419N.dts | 1 + target/linux/ramips/dts/NBG-419N2.dts | 1 + target/linux/ramips/dts/NCS601W.dts | 1 + target/linux/ramips/dts/NIXCORE-16M.dts | 1 + target/linux/ramips/dts/NIXCORE-8M.dts | 1 + target/linux/ramips/dts/NW718.dts | 1 + target/linux/ramips/dts/Newifi-D1.dts | 3 +- target/linux/ramips/dts/Newifi-D2.dts | 1 + target/linux/ramips/dts/OMEGA2.dtsi | 1 + target/linux/ramips/dts/OY-0001.dts | 5 +- target/linux/ramips/dts/PBR-D1.dts | 2 +- target/linux/ramips/dts/PBR-M1.dts | 1 + target/linux/ramips/dts/PSG1208.dts | 1 + target/linux/ramips/dts/PSG1218.dtsi | 1 + target/linux/ramips/dts/PSG1218A.dts | 2 - target/linux/ramips/dts/PSG1218B.dts | 2 - target/linux/ramips/dts/PSR-680W.dts | 1 + target/linux/ramips/dts/PWH2004.dts | 1 + target/linux/ramips/dts/PX-4885-4M.dts | 1 + target/linux/ramips/dts/PX-4885-8M.dts | 1 + target/linux/ramips/dts/R6120.dts | 1 + target/linux/ramips/dts/R6350.dts | 156 ++++++++ target/linux/ramips/dts/RB750Gr3.dts | 1 + target/linux/ramips/dts/RBM11G.dts | 1 + target/linux/ramips/dts/RBM33G.dts | 1 + target/linux/ramips/dts/RE350.dts | 1 + target/linux/ramips/dts/RE6500.dts | 1 + target/linux/ramips/dts/RP-N53.dts | 1 + target/linux/ramips/dts/RT-AC51U.dts | 1 + target/linux/ramips/dts/RT-G32-B1.dts | 1 + target/linux/ramips/dts/RT-N10-PLUS.dts | 1 + target/linux/ramips/dts/RT-N12-PLUS.dts | 1 + target/linux/ramips/dts/RT-N13U.dts | 1 + target/linux/ramips/dts/RT-N14U.dts | 1 + target/linux/ramips/dts/RT-N15.dts | 1 + target/linux/ramips/dts/RT-N56U.dts | 1 + .../linux/ramips/dts/RT5350F-OLINUXINO.dtsi | 1 + target/linux/ramips/dts/RUT5XX.dts | 1 + target/linux/ramips/dts/SAP-G3200U3.dts | 1 + target/linux/ramips/dts/SK-WB8.dts | 1 + target/linux/ramips/dts/SL-R7205.dts | 1 + target/linux/ramips/dts/TEW-638APB-V2.dts | 1 + target/linux/ramips/dts/TEW-691GR.dts | 1 + target/linux/ramips/dts/TEW-692GR.dts | 1 + target/linux/ramips/dts/TEW-714TRU.dts | 1 + target/linux/ramips/dts/TINY-AC.dts | 9 + target/linux/ramips/dts/TL-MR3020V3.dts | 1 + target/linux/ramips/dts/TL-WR840NV5.dts | 3 +- target/linux/ramips/dts/TPLINK-8M.dtsi | 1 + target/linux/ramips/dts/Timecloud.dts | 1 + target/linux/ramips/dts/U25AWF-H1.dts | 1 + target/linux/ramips/dts/U35WF.dts | 1 + target/linux/ramips/dts/U7621-06-256M-16M.dts | 1 + target/linux/ramips/dts/U7628-01-128M-16M.dts | 1 + target/linux/ramips/dts/UBNT-ER-e50.dtsi | 2 +- target/linux/ramips/dts/UR-326N4G.dts | 1 + target/linux/ramips/dts/UR-336UN.dts | 1 + target/linux/ramips/dts/V11STFE.dts | 1 + target/linux/ramips/dts/V22RW-2X2.dts | 1 + target/linux/ramips/dts/VAR11N-300.dts | 1 + target/linux/ramips/dts/VOCORE-16M.dts | 1 + target/linux/ramips/dts/VOCORE-8M.dts | 1 + target/linux/ramips/dts/VOCORE2.dts | 1 + target/linux/ramips/dts/VOCORE2LITE.dts | 1 + target/linux/ramips/dts/VR500.dts | 1 + target/linux/ramips/dts/W06.dts | 1 + target/linux/ramips/dts/W150M.dts | 1 + target/linux/ramips/dts/W2914NSV2.dtsi | 1 + target/linux/ramips/dts/W306R_V20.dts | 1 + target/linux/ramips/dts/W502U.dts | 1 + target/linux/ramips/dts/WCR150GN.dts | 1 + target/linux/ramips/dts/WD03.dts | 1 + target/linux/ramips/dts/WE1026-5G-16M.dts | 1 + target/linux/ramips/dts/WF-2881.dts | 1 + target/linux/ramips/dts/WHR-1166D.dts | 1 + target/linux/ramips/dts/WHR-300HP2.dts | 1 + target/linux/ramips/dts/WHR-600D.dts | 1 + target/linux/ramips/dts/WHR-G300N.dts | 1 + target/linux/ramips/dts/WIDORA-NEO-16M.dts | 1 + target/linux/ramips/dts/WIDORA-NEO-32M.dts | 1 + target/linux/ramips/dts/WITI.dtsi | 1 + target/linux/ramips/dts/WIZARD8800.dts | 1 + target/linux/ramips/dts/WIZFI630A.dts | 1 + target/linux/ramips/dts/WL-330N.dts | 1 + target/linux/ramips/dts/WL-330N3G.dts | 1 + target/linux/ramips/dts/WL-341V3.dts | 128 ------- target/linux/ramips/dts/WL-351.dts | 1 + target/linux/ramips/dts/WL-WN575A3.dts | 1 + target/linux/ramips/dts/WLI-TX4-AG300N.dts | 1 + target/linux/ramips/dts/WLR-6000.dts | 1 + target/linux/ramips/dts/WMDR-143N.dts | 1 + target/linux/ramips/dts/WMR-300.dts | 1 + target/linux/ramips/dts/WN-AX1167GR.dts | 1 + target/linux/ramips/dts/WN-GX300GR.dts | 1 + target/linux/ramips/dts/WN3000RPV3.dts | 1 + target/linux/ramips/dts/WNCE2001.dts | 1 + target/linux/ramips/dts/WNDR3700V5.dts | 1 + target/linux/ramips/dts/WR1200JS.dts | 1 + target/linux/ramips/dts/WR1201.dts | 159 +++++++++ target/linux/ramips/dts/WR512-3GN-4M.dts | 1 + target/linux/ramips/dts/WR512-3GN-8M.dts | 1 + target/linux/ramips/dts/WR6202.dts | 1 + target/linux/ramips/dts/WRC-1167GHBK2-S.dts | 1 + target/linux/ramips/dts/WRH-300CR.dts | 1 + target/linux/ramips/dts/WRTNODE.dts | 1 + target/linux/ramips/dts/WRTNODE2.dtsi | 1 + target/linux/ramips/dts/WSR-1166.dts | 1 + target/linux/ramips/dts/WSR-600.dts | 1 + target/linux/ramips/dts/WT1520-4M.dts | 1 + target/linux/ramips/dts/WT1520-8M.dts | 1 + target/linux/ramips/dts/WT3020-4M.dts | 1 + target/linux/ramips/dts/WT3020-8M.dts | 1 + target/linux/ramips/dts/WZR-AGL300NH.dts | 1 + target/linux/ramips/dts/X5.dts | 1 + target/linux/ramips/dts/X8.dts | 1 + target/linux/ramips/dts/XDXRN502J.dts | 1 + target/linux/ramips/dts/Y1.dtsi | 1 + target/linux/ramips/dts/YOUKU-YK1.dts | 1 + target/linux/ramips/dts/ZBT-APE522II.dts | 1 + target/linux/ramips/dts/ZBT-CPE102.dts | 1 + target/linux/ramips/dts/ZBT-WA05.dts | 1 + target/linux/ramips/dts/ZBT-WE1226.dts | 1 + target/linux/ramips/dts/ZBT-WE1326.dts | 1 + target/linux/ramips/dts/ZBT-WE2026.dts | 1 + target/linux/ramips/dts/ZBT-WE3526.dts | 1 + target/linux/ramips/dts/ZBT-WE826-16M.dts | 1 + target/linux/ramips/dts/ZBT-WE826-32M.dts | 1 + target/linux/ramips/dts/ZBT-WG2626.dts | 1 + target/linux/ramips/dts/ZBT-WG3526.dtsi | 1 + target/linux/ramips/dts/ZBT-WR8305RT.dts | 1 + target/linux/ramips/dts/ZL5900V2.dts | 1 + target/linux/ramips/dts/ZTE-Q7.dts | 1 + target/linux/ramips/dts/elecom_wrc-gst.dtsi | 1 + target/linux/ramips/dts/ki_rb.dts | 1 + target/linux/ramips/dts/kn.dts | 1 + target/linux/ramips/dts/kn_rc.dts | 1 + target/linux/ramips/dts/kn_rf.dts | 1 + target/linux/ramips/dts/kng_rc.dts | 1 + target/linux/ramips/dts/mt7620a.dtsi | 8 +- target/linux/ramips/dts/mt7620n.dtsi | 8 +- target/linux/ramips/dts/mt7621.dtsi | 8 +- target/linux/ramips/dts/mt7628an.dtsi | 8 +- target/linux/ramips/dts/rt2880.dtsi | 8 +- target/linux/ramips/dts/rt3050.dtsi | 8 +- target/linux/ramips/dts/rt3352.dtsi | 8 +- target/linux/ramips/dts/rt3883.dtsi | 8 +- target/linux/ramips/dts/rt5350.dtsi | 8 +- target/linux/ramips/image/Makefile | 142 +------- target/linux/ramips/image/mt7620.mk | 97 +++-- target/linux/ramips/image/mt7621.mk | 67 ++-- target/linux/ramips/image/mt76x8.mk | 13 +- target/linux/ramips/image/rt305x-legacy.mk | 76 ---- target/linux/ramips/image/rt305x.mk | 16 + target/linux/ramips/mt7620/target.mk | 2 +- target/linux/ramips/mt7621/config-4.14 | 1 - target/linux/ramips/mt76x8/target.mk | 2 +- .../patches-4.14/999-fix-m25p-shutdown.patch | 34 -- 289 files changed, 1041 insertions(+), 1044 deletions(-) delete mode 100644 target/linux/ramips/base-files/etc/diag.sh delete mode 100644 target/linux/ramips/dts/ALL0239-3G.dts create mode 100644 target/linux/ramips/dts/DWR-118-A1.dts create mode 100644 target/linux/ramips/dts/R6350.dts delete mode 100644 target/linux/ramips/dts/WL-341V3.dts create mode 100644 target/linux/ramips/dts/WR1201.dts delete mode 100644 target/linux/ramips/image/rt305x-legacy.mk delete mode 100644 target/linux/ramips/patches-4.14/999-fix-m25p-shutdown.patch diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds index 4330254c8..400183acc 100755 --- a/target/linux/ramips/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/base-files/etc/board.d/01_leds @@ -114,6 +114,11 @@ dlink,dwr-116-a1|\ mzk-ex300np) set_wifi_led "$boardname:green:wifi" ;; +dlink,dwr-118-a1) + ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1f" + ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x20" + set_wifi_led "$boardname:green:wlan2g" "wlan1" + ;; dlink,dwr-118-a2) ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x0e" ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01" @@ -162,15 +167,11 @@ hc5661a) ucidef_set_led_netdev "internet" "internet" "$boardname:blue:internet" "eth0.2" set_wifi_led "$boardname:blue:wlan2g" ;; -hc5761) - ucidef_set_led_netdev "internet" "internet" "$boardname:blue:internet" "eth0.2" - set_wifi_led "$boardname:blue:wlan2g" - ucidef_set_led_netdev "wifi5g" "wifi5g" "$boardname:blue:wlan5g" "rai0" - ;; +hc5761|\ hc5861) ucidef_set_led_netdev "internet" "internet" "$boardname:blue:internet" "eth0.2" - set_wifi_led "$boardname:blue:wlan2g" - ucidef_set_led_netdev "wifi5g" "wifi5g" "$boardname:blue:wlan5g" "rai0" + ucidef_set_led_netdev "wifi5g" "wifi5g" "$boardname:blue:wlan5g" "wlan0" + ucidef_set_led_netdev "wifi2g" "wifi2g" "$boardname:blue:wlan2g" "wlan1" ;; hg255d) set_wifi_led "$boardname:green:wlan" @@ -236,6 +237,9 @@ mr200) ucidef_set_led_netdev "wan" "wan" "$boardname:white:wan" "usb0" set_wifi_led "$boardname:white:wlan" ;; +mtc,wr1201) + ucidef_set_led_switch "eth_link" "LAN link" "$boardname:green:eth_link" "switch0" "0x0f" + ;; mzk-ex750np) set_wifi_led "$boardname:red:wifi" ;; @@ -262,7 +266,8 @@ px-4885-4M|\ px-4885-8M) set_wifi_led "px-4885:orange:wifi" ;; -r6220) +r6220|\ +netgear,r6350) ucidef_set_led_netdev "wan" "wan" "$boardname:green:wan" eth0.2 set_wifi_led "$boardname:green:wifi" ;; diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network index 0d8855c32..4cf615974 100755 --- a/target/linux/ramips/base-files/etc/board.d/02_network +++ b/target/linux/ramips/base-files/etc/board.d/02_network @@ -102,6 +102,7 @@ ramips_setup_interfaces() miwifi-nano|\ mt7621|\ mt7628|\ + mtc,wr1201|\ mzk-750dhp|\ mzk-w300nh2|\ netgear,r6120|\ @@ -112,6 +113,7 @@ ramips_setup_interfaces() psg1208|\ psg1218a|\ r6220|\ + netgear,r6350|\ rt-n12p|\ sap-g3200u3|\ sk-wb8|\ @@ -161,6 +163,10 @@ ramips_setup_interfaces() wrh-300cr) ucidef_set_interface_lan "eth0" ;; + dlink,dwr-118-a1) + ucidef_add_switch "switch0" \ + "1:lan:2" "2:lan:3" "3:lan:1" "4:lan:0" "5:wan" "6@eth0" + ;; dlink,dwr-118-a2) ucidef_add_switch "switch0" \ "1:lan:2" "2:lan:1" "3:lan:3" "4:lan" "0:wan" "6@eth0" @@ -299,7 +305,8 @@ ramips_setup_interfaces() ucidef_add_switch "switch1" \ "1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "6@eth0" ;; - hc5*61|\ + hc5661|\ + hc5861|\ y1s) ucidef_add_switch "switch0" \ "1:lan" "2:lan" "3:lan" "4:lan" "5:lan" "0:wan" "6@eth0" @@ -322,6 +329,10 @@ ramips_setup_interfaces() "0:lan" "1:lan" "2:lan" "3:lan" "6t@eth0" ucidef_set_interface_wan "usb0" ;; + hc5761) + ucidef_add_switch "switch0" \ + "1:lan" "4:lan" "0:wan" "6@eth0" + ;; mzk-dp150n|\ vocore-8M|\ vocore-16M) @@ -432,7 +443,6 @@ ramips_setup_macs() wmdr-143n) lan_mac=$(cat /sys/class/net/eth0/address) ;; - all0239-3g|\ carambola|\ freestation5|\ w502u|\ @@ -474,6 +484,7 @@ ramips_setup_macs() wan_mac=$(mtd_get_mac_ascii factory wanmac) ;; dlink,dwr-116-a1|\ + dlink,dwr-118-a1|\ dlink,dwr-118-a2|\ dlink,dwr-921-c1|\ lava,lr-25g001) @@ -551,7 +562,8 @@ ramips_setup_macs() lan_mac=$(mtd_get_mac_binary factory 40) wan_mac=$(mtd_get_mac_binary factory 46) ;; - r6220) + r6220|\ + netgear,r6350) wan_mac=$(mtd_get_mac_binary factory 4) lan_mac=$(macaddr_add "$wan_mac" 1) ;; diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh deleted file mode 100644 index 3ea7ac1a1..000000000 --- a/target/linux/ramips/base-files/etc/diag.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/sh - -. /lib/functions/leds.sh - -boot="$(get_dt_led boot)" -failsafe="$(get_dt_led failsafe)" -running="$(get_dt_led running)" -upgrade="$(get_dt_led upgrade)" - -set_state() { - status_led="$boot" - - case "$1" in - preinit) - status_led_blink_preinit - ;; - failsafe) - status_led_off - [ -n "$running" ] && { - status_led="$running" - status_led_off - } - status_led="$failsafe" - status_led_blink_failsafe - ;; - preinit_regular) - status_led_blink_preinit_regular - ;; - upgrade) - [ -n "$running" ] && { - status_led="$running" - status_led_off - } - status_led="$upgrade" - status_led_blink_preinit_regular - ;; - done) - status_led_off - [ -n "$running" ] && { - status_led="$running" - status_led_on - } - ;; - esac -} diff --git a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom index aee446d15..1d9de2d50 100644 --- a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom +++ b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom @@ -55,6 +55,7 @@ case "$FIRMWARE" in "soc_wmac.eeprom") case $board in dlink,dwr-116-a1|\ + dlink,dwr-118-a1|\ dlink,dwr-118-a2|\ dlink,dwr-921-c1|\ lava,lr-25g001) diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh index 307ab35c3..ca71ef3b8 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -34,9 +34,6 @@ ramips_board_detect() { *"Air3GII") name="air3gii" ;; - *"ALL0239-3G") - name="all0239-3g" - ;; *"ALL0256N (4M)") name="all0256n-4M" ;; @@ -586,9 +583,6 @@ ramips_board_detect() { *"WL-330N3G") name="wl-330n3g" ;; - *"WL-341 v3") - name="wl-341v3" - ;; *"WL-351 v1 002") name="wl-351" ;; diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index e28f06665..97fbaefea 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -3,337 +3,10 @@ # PART_NAME=firmware +REQUIRE_IMAGE_METADATA=1 platform_check_image() { - local board=$(board_name) - local magic="$(get_magic_long "$1")" - - [ "$#" -gt 1 ] && return 1 - - case "$board" in - 3g150b|\ - 3g300m|\ - a5-v11|\ - ai-br100|\ - air3gii|\ - alfa-network,ac1200rm|\ - alfa-network,awusfree1|\ - all0239-3g|\ - all0256n-4M|\ - all0256n-8M|\ - all5002|\ - all5003|\ - mediatek,ap-mt7621a-v60|\ - ar725w|\ - asl26555-8M|\ - asl26555-16M|\ - awapn2403|\ - awm002-evb-4M|\ - awm002-evb-8M|\ - bc2|\ - bdcom,wap2100-sk|\ - bocco|\ - broadway|\ - c108|\ - carambola|\ - cf-wr800n|\ - cs-qr10|\ - d105|\ - d240|\ - dap-1350|\ - db-wrt01|\ - dcs-930|\ - dcs-930l-b1|\ - dir-300-b1|\ - dir-300-b7|\ - dir-320-b1|\ - dir-600-b1|\ - dir-615-d|\ - dir-615-h1|\ - dir-620-a1|\ - dir-620-d1|\ - dir-810l|\ - duzun-dm06|\ - e1700|\ - elecom,wrc-1167ghbk2-s|\ - elecom,wrc-2533gst|\ - elecom,wrc-1900gst|\ - esr-9753|\ - ew1200|\ - ex2700|\ - ex3700|\ - f7c027|\ - firewrt|\ - fonera20n|\ - freestation5|\ - gnubee,gb-pc1|\ - gnubee,gb-pc2|\ - gl-mt300a|\ - gl-mt300n|\ - gl-mt750|\ - gl-mt300n-v2|\ - hc5*61|\ - hc5661a|\ - hg255d|\ - hiwifi,hc5861b|\ - hlk-rm04|\ - hpm|\ - ht-tm02|\ - hw550-3g|\ - iodata,wn-ax1167gr|\ - iodata,wn-gx300gr|\ - ip2202|\ - jhr-n805r|\ - jhr-n825r|\ - jhr-n926r|\ - k2p|\ - kimax,u35wf|\ - kn|\ - kn_rc|\ - kn_rf|\ - kng_rc|\ - linkits7688|\ - m2m|\ - m3|\ - m4-4M|\ - m4-8M|\ - mac1200rv2|\ - microwrt|\ - miniembplug|\ - miniembwifi|\ - miwifi-mini|\ - miwifi-nano|\ - mlw221|\ - mlwg2|\ - mofi3500-3gn|\ - mpr-a1|\ - mpr-a2|\ - mr-102n|\ - mt7628|\ - mzk-750dhp|\ - mzk-dp150n|\ - mzk-ex300np|\ - mzk-ex750np|\ - mzk-w300nh2|\ - mzk-wdpr|\ - nbg-419n|\ - nbg-419n2|\ - newifi-d1|\ - d-team,newifi-d2|\ - nixcore-x1-8M|\ - nixcore-x1-16M|\ - nw718|\ - omega2|\ - omega2p|\ - oy-0001|\ - pbr-d1|\ - pbr-m1|\ - phicomm,k2g|\ - psg1208|\ - psg1218a|\ - psg1218b|\ - psr-680w|\ - px-4885-4M|\ - px-4885-8M|\ - netgear,r6120|\ - rb750gr3|\ - re6500|\ - rp-n53|\ - rt5350f-olinuxino|\ - rt5350f-olinuxino-evb|\ - rt-ac51u|\ - rt-g32-b1|\ - rt-n10-plus|\ - rt-n12p|\ - rt-n13u|\ - rt-n14u|\ - rt-n15|\ - rt-n56u|\ - rut5xx|\ - sap-g3200u3|\ - sk-wb8|\ - skylab,skw92a|\ - sl-r7205|\ - tama,w06|\ - tew-638apb-v2|\ - tew-691gr|\ - tew-692gr|\ - tew-714tru|\ - timecloud|\ - tiny-ac|\ - u25awf-h1|\ - unielec,u7621-06-256m-16m|\ - unielec,u7621-06-512m-64m|\ - u7628-01-128M-16M|\ - ur-326n4g|\ - ur-336un|\ - v22rw-2x2|\ - vonets,var11n-300|\ - vocore-8M|\ - vocore-16M|\ - vocore2|\ - vocore2lite|\ - vr500|\ - w150m|\ - w2914nsv2|\ - w306r-v20|\ - w502u|\ - ravpower,wd03|\ - wavlink,wl-wn570ha1|\ - wf-2881|\ - whr-1166d|\ - whr-300hp2|\ - whr-600d|\ - whr-g300n|\ - widora,neo-16m|\ - widora,neo-32m|\ - mqmaker,witi-256m|\ - mqmaker,witi-512m|\ - we1026-5g-16m|\ - wizfi630a|\ - wl-330n|\ - wl-330n3g|\ - wl-341v3|\ - wl-351|\ - wl-wn575a3|\ - wli-tx4-ag300n|\ - wlr-6000|\ - wmdr-143n|\ - wmr-300|\ - wn3000rpv3|\ - wnce2001|\ - wndr3700v5|\ - wr512-3gn-4M|\ - wr512-3gn-8M|\ - wr6202|\ - wrh-300cr|\ - wrtnode|\ - wrtnode2r |\ - wrtnode2p |\ - wsr-600|\ - wt1520-4M|\ - wt1520-8M|\ - wt3020-4M|\ - wt3020-8M|\ - wzr-agl300nh|\ - x5|\ - x8|\ - y1|\ - y1s|\ - youhua,wr1200js|\ - zbt-ape522ii|\ - zbt-cpe102|\ - zbt-wa05|\ - zbtlink,zbt-we1226|\ - zbt-we1326|\ - zbt-we2026|\ - zbtlink,zbt-we3526|\ - zbt-we826-16M|\ - zbt-we826-32M|\ - zbt-wg2626|\ - zbt-wg3526-16M|\ - zbt-wg3526-32M|\ - zbt-wr8305rt|\ - zorlik,zl5900v2|\ - zte-q7|\ - zyxel,keenetic-extra-ii|\ - youku-yk1) - [ "$magic" != "27051956" ] && { - echo "Invalid image type." - return 1 - } - return 0 - ;; - 3g-6200n|\ - 3g-6200nl|\ - br-6475nd|\ - edimax,br-6478ac-v2) - [ "$magic" != "43535953" ] && { - echo "Invalid image type." - return 1 - } - return 0 - ;; - - ar670w) - [ "$magic" != "6d000080" ] && { - echo "Invalid image type." - return 1 - } - return 0 - ;; - c20i|\ - c50|\ - mr200|\ - tplink,c2-v1|\ - tplink,c20-v1|\ - tplink,c20-v4|\ - tplink,c50-v3|\ - tplink,tl-mr3020-v3|\ - tplink,tl-mr3420-v5|\ - tplink,tl-wa801nd-v5|\ - tplink,tl-wr842n-v5|\ - tplink,tl-wr902ac-v3|\ - tl-wr840n-v4|\ - tl-wr840n-v5|\ - tl-wr841n-v13) - [ "$magic" != "03000000" ] && { - echo "Invalid image type." - return 1 - } - return 0 - ;; - cy-swr1100|\ - dch-m225|\ - dir-610-a1|\ - dir-645|\ - dir-860l-b1) - [ "$magic" != "5ea3a417" ] && { - echo "Invalid image type." - return 1 - } - return 0 - ;; - dlink,dwr-116-a1|\ - dlink,dwr-118-a2|\ - dlink,dwr-921-c1|\ - dwr-512-b|\ - lava,lr-25g001) - [ "$magic" != "0404242b" ] && { - echo "Invalid image type." - return 1 - } - return 0 - ;; - hc5962|\ - mir3g|\ - r6220|\ - ubnt-erx|\ - ubnt-erx-sfp) - nand_do_platform_check "$board" "$1" - return $?; - ;; - mikrotik,rbm11g|\ - mikrotik,rbm33g|\ - re350-v1) - [ "$magic" != "01000000" ] && { - echo "Invalid image type." - return 1 - } - return 0 - ;; - wcr-1166ds|\ - wsr-1166) - [ "$magic" != "48445230" ] && { - echo "Invalid image type." - return 1 - } - return 0 - ;; - esac - - echo "Sysupgrade is not yet supported on $board." - return 1 + return 0 } platform_pre_upgrade() { @@ -365,6 +38,7 @@ platform_do_upgrade() { hc5962|\ mir3g|\ r6220|\ + netgear,r6350|\ ubnt-erx|\ ubnt-erx-sfp) nand_do_upgrade "$ARGV" diff --git a/target/linux/ramips/dts/3G-6200N.dts b/target/linux/ramips/dts/3G-6200N.dts index 0f9d4a358..d5b935e76 100644 --- a/target/linux/ramips/dts/3G-6200N.dts +++ b/target/linux/ramips/dts/3G-6200N.dts @@ -52,6 +52,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x390000>; }; diff --git a/target/linux/ramips/dts/3G-6200NL.dts b/target/linux/ramips/dts/3G-6200NL.dts index 78d7d6fc9..dfc5574f0 100644 --- a/target/linux/ramips/dts/3G-6200NL.dts +++ b/target/linux/ramips/dts/3G-6200NL.dts @@ -52,6 +52,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x390000>; }; diff --git a/target/linux/ramips/dts/3G150B.dts b/target/linux/ramips/dts/3G150B.dts index 37362f102..2e3253232 100644 --- a/target/linux/ramips/dts/3G150B.dts +++ b/target/linux/ramips/dts/3G150B.dts @@ -87,6 +87,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/3G300M.dts b/target/linux/ramips/dts/3G300M.dts index e98790855..788eba41a 100644 --- a/target/linux/ramips/dts/3G300M.dts +++ b/target/linux/ramips/dts/3G300M.dts @@ -102,6 +102,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/A5-V11.dts b/target/linux/ramips/dts/A5-V11.dts index c26be6dc8..8949a3ffe 100644 --- a/target/linux/ramips/dts/A5-V11.dts +++ b/target/linux/ramips/dts/A5-V11.dts @@ -91,6 +91,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/AC1200RM.dts b/target/linux/ramips/dts/AC1200RM.dts index 013554168..29f54be0f 100644 --- a/target/linux/ramips/dts/AC1200RM.dts +++ b/target/linux/ramips/dts/AC1200RM.dts @@ -170,6 +170,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xfb0000>; }; diff --git a/target/linux/ramips/dts/AI-BR100.dts b/target/linux/ramips/dts/AI-BR100.dts index 866ac5ed2..b23ee9b52 100644 --- a/target/linux/ramips/dts/AI-BR100.dts +++ b/target/linux/ramips/dts/AI-BR100.dts @@ -82,6 +82,7 @@ }; partition@40000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x40000 0x7c0000>; }; diff --git a/target/linux/ramips/dts/AIR3GII.dts b/target/linux/ramips/dts/AIR3GII.dts index eb7cd0f1c..0a9dd544f 100644 --- a/target/linux/ramips/dts/AIR3GII.dts +++ b/target/linux/ramips/dts/AIR3GII.dts @@ -73,6 +73,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/ALL0239-3G.dts b/target/linux/ramips/dts/ALL0239-3G.dts deleted file mode 100644 index 3c6d86536..000000000 --- a/target/linux/ramips/dts/ALL0239-3G.dts +++ /dev/null @@ -1,130 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "allnet,all0239-3g", "ralink,rt3052-soc"; - model = "Allnet ALL0239-3G"; - - aliases { - led-boot = &led_status; - led-failsafe = &led_status; - led-running = &led_status; - led-upgrade = &led_status; - }; - - - cfi@1f000000 { - compatible = "cfi-flash"; - reg = <0x1f000000 0x800000>; - bank-width = <2>; - device-width = <2>; - - 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>; - }; - }; - }; - - gpio-leds { - compatible = "gpio-leds"; - - usb { - label = "all0239-3g:green:usb"; - gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; - trigger-sources = <&otg_port1>; - linux,default-trigger = "usbport"; - }; - - 3g { - label = "all0239-3g:green:3g"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - }; - - led_status: status { - label = "all0239-3g:green:status"; - gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; - }; - - wps { - label = "all0239-3g:green:wps"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - }; - }; - - gpio-keys-polled { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - connect { - label = "connect"; - gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - wps { - label = "wps"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x28>; -}; - -&esw { - status = "okay"; - mediatek,portmap = <0x3e>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&otg { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/ALL0256N-4M.dts b/target/linux/ramips/dts/ALL0256N-4M.dts index 62a3f116c..60421a422 100644 --- a/target/linux/ramips/dts/ALL0256N-4M.dts +++ b/target/linux/ramips/dts/ALL0256N-4M.dts @@ -39,6 +39,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3c8000>; }; diff --git a/target/linux/ramips/dts/ALL0256N-8M.dts b/target/linux/ramips/dts/ALL0256N-8M.dts index b0d5e195e..3832d1a7d 100644 --- a/target/linux/ramips/dts/ALL0256N-8M.dts +++ b/target/linux/ramips/dts/ALL0256N-8M.dts @@ -39,6 +39,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/ALL5002.dts b/target/linux/ramips/dts/ALL5002.dts index acd5f0923..616f7424a 100644 --- a/target/linux/ramips/dts/ALL5002.dts +++ b/target/linux/ramips/dts/ALL5002.dts @@ -81,6 +81,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x1fb0000>; }; diff --git a/target/linux/ramips/dts/ALL5003.dts b/target/linux/ramips/dts/ALL5003.dts index 303bc4068..050ff886e 100644 --- a/target/linux/ramips/dts/ALL5003.dts +++ b/target/linux/ramips/dts/ALL5003.dts @@ -81,6 +81,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x1fb0000>; }; diff --git a/target/linux/ramips/dts/AP-MT7621A-V60.dts b/target/linux/ramips/dts/AP-MT7621A-V60.dts index 0a4322fec..bd29e0b3f 100644 --- a/target/linux/ramips/dts/AP-MT7621A-V60.dts +++ b/target/linux/ramips/dts/AP-MT7621A-V60.dts @@ -111,6 +111,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/AR725W.dts b/target/linux/ramips/dts/AR725W.dts index 6f801b88a..b143f4523 100644 --- a/target/linux/ramips/dts/AR725W.dts +++ b/target/linux/ramips/dts/AR725W.dts @@ -44,6 +44,7 @@ }; partition@50000 { + compatible = "denx,uimage"; reg = <0x50000 0x3B0000>; label = "firmware"; }; diff --git a/target/linux/ramips/dts/ASL26555-16M.dts b/target/linux/ramips/dts/ASL26555-16M.dts index 15352c2f2..fce92ff0f 100644 --- a/target/linux/ramips/dts/ASL26555-16M.dts +++ b/target/linux/ramips/dts/ASL26555-16M.dts @@ -39,6 +39,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xf80000>; }; diff --git a/target/linux/ramips/dts/ASL26555-8M.dts b/target/linux/ramips/dts/ASL26555-8M.dts index 0eb6a01c1..8411990be 100644 --- a/target/linux/ramips/dts/ASL26555-8M.dts +++ b/target/linux/ramips/dts/ASL26555-8M.dts @@ -39,6 +39,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x790000>; }; diff --git a/target/linux/ramips/dts/ATP-52B.dts b/target/linux/ramips/dts/ATP-52B.dts index ffe3d009a..9fec757cf 100644 --- a/target/linux/ramips/dts/ATP-52B.dts +++ b/target/linux/ramips/dts/ATP-52B.dts @@ -44,6 +44,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7a0000>; }; diff --git a/target/linux/ramips/dts/AWAPN2403.dts b/target/linux/ramips/dts/AWAPN2403.dts index 9a4de93a2..4d089437c 100644 --- a/target/linux/ramips/dts/AWAPN2403.dts +++ b/target/linux/ramips/dts/AWAPN2403.dts @@ -70,6 +70,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/AWM002-EVB-4M.dts b/target/linux/ramips/dts/AWM002-EVB-4M.dts index 91ef26372..c8045a0f9 100644 --- a/target/linux/ramips/dts/AWM002-EVB-4M.dts +++ b/target/linux/ramips/dts/AWM002-EVB-4M.dts @@ -39,6 +39,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/AWM002-EVB-8M.dts b/target/linux/ramips/dts/AWM002-EVB-8M.dts index ef982c345..d7e9bd834 100644 --- a/target/linux/ramips/dts/AWM002-EVB-8M.dts +++ b/target/linux/ramips/dts/AWM002-EVB-8M.dts @@ -39,6 +39,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/AWUSFREE1.dts b/target/linux/ramips/dts/AWUSFREE1.dts index 45d8e32f7..3edafb333 100644 --- a/target/linux/ramips/dts/AWUSFREE1.dts +++ b/target/linux/ramips/dts/AWUSFREE1.dts @@ -160,6 +160,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/ArcherC2-v1.dts b/target/linux/ramips/dts/ArcherC2-v1.dts index 462daf371..42f75dd75 100644 --- a/target/linux/ramips/dts/ArcherC2-v1.dts +++ b/target/linux/ramips/dts/ArcherC2-v1.dts @@ -104,6 +104,7 @@ }; partition@20000 { + compatible = "tplink,firmware"; label = "firmware"; reg = <0x20000 0x7a0000>; }; diff --git a/target/linux/ramips/dts/ArcherC20i.dts b/target/linux/ramips/dts/ArcherC20i.dts index a4b694125..a4cd3bc56 100644 --- a/target/linux/ramips/dts/ArcherC20i.dts +++ b/target/linux/ramips/dts/ArcherC20i.dts @@ -87,6 +87,7 @@ }; partition@20000 { + compatible = "tplink,firmware"; label = "firmware"; reg = <0x20000 0x7a0000>; }; diff --git a/target/linux/ramips/dts/ArcherC20v1.dts b/target/linux/ramips/dts/ArcherC20v1.dts index 90fa2a26e..31a5b830e 100644 --- a/target/linux/ramips/dts/ArcherC20v1.dts +++ b/target/linux/ramips/dts/ArcherC20v1.dts @@ -117,6 +117,7 @@ }; partition@20000 { + compatible = "tplink,firmware"; label = "firmware"; reg = <0x20000 0x7a0000>; }; diff --git a/target/linux/ramips/dts/ArcherC50.dts b/target/linux/ramips/dts/ArcherC50.dts index 0524bfc5b..1d8bb233b 100644 --- a/target/linux/ramips/dts/ArcherC50.dts +++ b/target/linux/ramips/dts/ArcherC50.dts @@ -116,6 +116,7 @@ }; partition@20000 { + compatible = "tplink,firmware"; label = "firmware"; reg = <0x20000 0x7a0000>; }; diff --git a/target/linux/ramips/dts/ArcherMR200.dts b/target/linux/ramips/dts/ArcherMR200.dts index 1df35e6f3..99f3be2e0 100644 --- a/target/linux/ramips/dts/ArcherMR200.dts +++ b/target/linux/ramips/dts/ArcherMR200.dts @@ -134,6 +134,7 @@ }; partition@20000 { + compatible = "tplink,firmware"; label = "firmware"; reg = <0x20000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/BC2.dts b/target/linux/ramips/dts/BC2.dts index 1143497b6..5b9cec3f4 100644 --- a/target/linux/ramips/dts/BC2.dts +++ b/target/linux/ramips/dts/BC2.dts @@ -39,6 +39,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/BDCOM-WAP2100-SK.dts b/target/linux/ramips/dts/BDCOM-WAP2100-SK.dts index 62a87c844..745037de0 100644 --- a/target/linux/ramips/dts/BDCOM-WAP2100-SK.dts +++ b/target/linux/ramips/dts/BDCOM-WAP2100-SK.dts @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT /dts-v1/; #include "mt7620a.dtsi" @@ -66,6 +67,7 @@ spi-max-frequency = <10000000>; partitions { + compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; @@ -88,6 +90,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xf70000>; }; @@ -128,6 +131,18 @@ ralink,mtd-eeprom = <&factory 0>; }; +&pcie { + status = "okay"; +}; + +&pcie0 { + wifi@0,0 { + reg = <0x0000 0 0 0 0>; + mediatek,mtd-eeprom = <&factory 0x8000>; + ieee80211-freq-limit = <5000000 6000000>; + }; +}; + &pinctrl { state_default: pinctrl0 { default { diff --git a/target/linux/ramips/dts/BOCCO.dts b/target/linux/ramips/dts/BOCCO.dts index 8f78f2dac..e4c056116 100644 --- a/target/linux/ramips/dts/BOCCO.dts +++ b/target/linux/ramips/dts/BOCCO.dts @@ -124,6 +124,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/BR-6475ND.dts b/target/linux/ramips/dts/BR-6475ND.dts index cf1d2ff95..ebb1475de 100644 --- a/target/linux/ramips/dts/BR-6475ND.dts +++ b/target/linux/ramips/dts/BR-6475ND.dts @@ -88,6 +88,7 @@ }; partition@70000 { + compatible = "denx,uimage"; reg = <0x00070000 0x00790000>; label = "firmware"; }; diff --git a/target/linux/ramips/dts/BR-6478AC-V2.dts b/target/linux/ramips/dts/BR-6478AC-V2.dts index 03a853d9f..d4304df32 100644 --- a/target/linux/ramips/dts/BR-6478AC-V2.dts +++ b/target/linux/ramips/dts/BR-6478AC-V2.dts @@ -122,6 +122,7 @@ }; partition@70000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x00070000 0x00790000>; }; diff --git a/target/linux/ramips/dts/BROADWAY.dts b/target/linux/ramips/dts/BROADWAY.dts index b3382cd16..3d4d6ef5f 100644 --- a/target/linux/ramips/dts/BROADWAY.dts +++ b/target/linux/ramips/dts/BROADWAY.dts @@ -39,6 +39,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x790000>; }; diff --git a/target/linux/ramips/dts/C108.dts b/target/linux/ramips/dts/C108.dts index c4fa62d8a..d79e54a79 100644 --- a/target/linux/ramips/dts/C108.dts +++ b/target/linux/ramips/dts/C108.dts @@ -145,6 +145,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xfb0000>; }; diff --git a/target/linux/ramips/dts/CARAMBOLA.dts b/target/linux/ramips/dts/CARAMBOLA.dts index 4a59c11ae..aaaea8fd4 100644 --- a/target/linux/ramips/dts/CARAMBOLA.dts +++ b/target/linux/ramips/dts/CARAMBOLA.dts @@ -43,6 +43,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/CF-WR800N.dts b/target/linux/ramips/dts/CF-WR800N.dts index d3d104af8..0161075ba 100644 --- a/target/linux/ramips/dts/CF-WR800N.dts +++ b/target/linux/ramips/dts/CF-WR800N.dts @@ -99,6 +99,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/CS-QR10.dts b/target/linux/ramips/dts/CS-QR10.dts index fc4803fbf..f58e70f53 100644 --- a/target/linux/ramips/dts/CS-QR10.dts +++ b/target/linux/ramips/dts/CS-QR10.dts @@ -101,6 +101,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; @@ -155,7 +156,3 @@ &wmac { ralink,mtd-eeprom = <&factory 0>; }; - -&pcie { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/CY-SWR1100.dts b/target/linux/ramips/dts/CY-SWR1100.dts index 2d948b032..f1c04bf6a 100644 --- a/target/linux/ramips/dts/CY-SWR1100.dts +++ b/target/linux/ramips/dts/CY-SWR1100.dts @@ -54,6 +54,7 @@ }; partition@50000 { + compatible = "seama"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/D105.dts b/target/linux/ramips/dts/D105.dts index 80746c0f6..5ba479cd2 100644 --- a/target/linux/ramips/dts/D105.dts +++ b/target/linux/ramips/dts/D105.dts @@ -46,6 +46,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/D240.dts b/target/linux/ramips/dts/D240.dts index 576f3caf3..ade2dd16f 100644 --- a/target/linux/ramips/dts/D240.dts +++ b/target/linux/ramips/dts/D240.dts @@ -147,6 +147,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xfb0000>; }; diff --git a/target/linux/ramips/dts/DAP-1350.dts b/target/linux/ramips/dts/DAP-1350.dts index 0359437bd..c84d5b94d 100644 --- a/target/linux/ramips/dts/DAP-1350.dts +++ b/target/linux/ramips/dts/DAP-1350.dts @@ -56,6 +56,7 @@ }; partition@b0000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0xb0000 0x750000>; }; diff --git a/target/linux/ramips/dts/DB-WRT01.dts b/target/linux/ramips/dts/DB-WRT01.dts index 0c7e3b9f5..27dce66e1 100644 --- a/target/linux/ramips/dts/DB-WRT01.dts +++ b/target/linux/ramips/dts/DB-WRT01.dts @@ -73,6 +73,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; @@ -103,7 +104,3 @@ &wmac { ralink,mtd-eeprom = <&factory 0>; }; - -&pcie { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/DCH-M225.dts b/target/linux/ramips/dts/DCH-M225.dts index 93a285e88..e8f71ae16 100644 --- a/target/linux/ramips/dts/DCH-M225.dts +++ b/target/linux/ramips/dts/DCH-M225.dts @@ -45,7 +45,6 @@ status { label = "dch-m225:red:status"; gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; - default-state = "off"; }; }; @@ -151,6 +150,7 @@ }; partition@150000 { + compatible = "seama"; label = "firmware"; reg = <0x150000 0x6b0000>; }; diff --git a/target/linux/ramips/dts/DCS-930.dts b/target/linux/ramips/dts/DCS-930.dts index 949eea64e..4f49fc3a8 100644 --- a/target/linux/ramips/dts/DCS-930.dts +++ b/target/linux/ramips/dts/DCS-930.dts @@ -46,6 +46,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/DCS-930L-B1.dts b/target/linux/ramips/dts/DCS-930L-B1.dts index 9c4941c6c..6ac80e4d6 100644 --- a/target/linux/ramips/dts/DCS-930L-B1.dts +++ b/target/linux/ramips/dts/DCS-930L-B1.dts @@ -80,6 +80,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/DIR-300-B1.dts b/target/linux/ramips/dts/DIR-300-B1.dts index f64e781ee..1f0ed7d82 100644 --- a/target/linux/ramips/dts/DIR-300-B1.dts +++ b/target/linux/ramips/dts/DIR-300-B1.dts @@ -46,6 +46,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/DIR-300-B7.dts b/target/linux/ramips/dts/DIR-300-B7.dts index 6f9a8fabb..3fa57ac34 100644 --- a/target/linux/ramips/dts/DIR-300-B7.dts +++ b/target/linux/ramips/dts/DIR-300-B7.dts @@ -80,6 +80,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/DIR-320-B1.dts b/target/linux/ramips/dts/DIR-320-B1.dts index 3b1f17509..68f0108ae 100644 --- a/target/linux/ramips/dts/DIR-320-B1.dts +++ b/target/linux/ramips/dts/DIR-320-B1.dts @@ -102,6 +102,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/DIR-600-B1.dts b/target/linux/ramips/dts/DIR-600-B1.dts index 9e9dc668f..246ee81ef 100644 --- a/target/linux/ramips/dts/DIR-600-B1.dts +++ b/target/linux/ramips/dts/DIR-600-B1.dts @@ -46,6 +46,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/DIR-610-A1.dts b/target/linux/ramips/dts/DIR-610-A1.dts index 9af52123e..ea58d41af 100644 --- a/target/linux/ramips/dts/DIR-610-A1.dts +++ b/target/linux/ramips/dts/DIR-610-A1.dts @@ -80,6 +80,7 @@ }; partition@50000 { + compatible = "seama"; label = "firmware"; reg = <0x50000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/DIR-615-D.dts b/target/linux/ramips/dts/DIR-615-D.dts index ba4933175..fbced8d13 100644 --- a/target/linux/ramips/dts/DIR-615-D.dts +++ b/target/linux/ramips/dts/DIR-615-D.dts @@ -46,6 +46,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3b0000>; }; @@ -75,7 +76,6 @@ status { label = "dir-615-d:amber:status"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; - default-state = "off"; }; led_status_green: status2 { diff --git a/target/linux/ramips/dts/DIR-615-H1.dts b/target/linux/ramips/dts/DIR-615-H1.dts index 6d8f6a2be..c81978b7d 100644 --- a/target/linux/ramips/dts/DIR-615-H1.dts +++ b/target/linux/ramips/dts/DIR-615-H1.dts @@ -22,7 +22,6 @@ status { label = "dir-615-h1:amber:status"; gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; - default-state = "off"; }; led_status_green: status2 { @@ -97,6 +96,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/DIR-620-A1.dts b/target/linux/ramips/dts/DIR-620-A1.dts index d42dfa81a..94f1bd6f9 100644 --- a/target/linux/ramips/dts/DIR-620-A1.dts +++ b/target/linux/ramips/dts/DIR-620-A1.dts @@ -46,6 +46,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/DIR-620-D1.dts b/target/linux/ramips/dts/DIR-620-D1.dts index 5358a0510..ea14b54d9 100644 --- a/target/linux/ramips/dts/DIR-620-D1.dts +++ b/target/linux/ramips/dts/DIR-620-D1.dts @@ -74,6 +74,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/DIR-645.dts b/target/linux/ramips/dts/DIR-645.dts index 74cdacd25..ce4ed42cf 100644 --- a/target/linux/ramips/dts/DIR-645.dts +++ b/target/linux/ramips/dts/DIR-645.dts @@ -113,6 +113,7 @@ }; partition@50000 { + compatible = "seama"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/DIR-810L.dts b/target/linux/ramips/dts/DIR-810L.dts index c6d437820..feecf789b 100644 --- a/target/linux/ramips/dts/DIR-810L.dts +++ b/target/linux/ramips/dts/DIR-810L.dts @@ -109,6 +109,7 @@ }; partition@170000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x170000 0x690000>; }; diff --git a/target/linux/ramips/dts/DIR-860L-B1.dts b/target/linux/ramips/dts/DIR-860L-B1.dts index 0f4f2ed8f..a37d68ff3 100644 --- a/target/linux/ramips/dts/DIR-860L-B1.dts +++ b/target/linux/ramips/dts/DIR-860L-B1.dts @@ -112,6 +112,7 @@ }; partition@50000 { + compatible = "seama"; label = "firmware"; reg = <0x50000 0xfb0000>; }; diff --git a/target/linux/ramips/dts/DUZUN-DM06.dts b/target/linux/ramips/dts/DUZUN-DM06.dts index a90ed7d34..ff9d6398a 100644 --- a/target/linux/ramips/dts/DUZUN-DM06.dts +++ b/target/linux/ramips/dts/DUZUN-DM06.dts @@ -137,6 +137,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/DWR-116-A1.dts b/target/linux/ramips/dts/DWR-116-A1.dts index 0ee990de6..793f9a120 100644 --- a/target/linux/ramips/dts/DWR-116-A1.dts +++ b/target/linux/ramips/dts/DWR-116-A1.dts @@ -59,7 +59,7 @@ &spi0 { status = "okay"; - m25p80@0 { + flash@0 { compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <50000000>; @@ -76,6 +76,7 @@ }; partition@10000 { + compatible = "amit,jimage"; label = "firmware"; reg = <0x10000 0x7e0000>; }; diff --git a/target/linux/ramips/dts/DWR-118-A1.dts b/target/linux/ramips/dts/DWR-118-A1.dts new file mode 100644 index 000000000..ab88553a0 --- /dev/null +++ b/target/linux/ramips/dts/DWR-118-A1.dts @@ -0,0 +1,189 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/dts-v1/; + +#include "mt7620a.dtsi" + +#include +#include + +/ { + compatible = "dlink,dwr-118-a1", "ralink,mt7620a-soc"; + model = "D-Link DWR-118 A1"; + + aliases { + led-boot = &led_internet; + led-failsafe = &led_internet; + led-upgrade = &led_internet; + }; + + gpio-keys-polled { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + wps { + label = "wps"; + gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + reset { + label = "reset"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + gpio-leds { + compatible = "gpio-leds"; + + wan { + label = "dwr-118-a1:green:wan"; + gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; + }; + + led_internet: internet { + label = "dwr-118-a1:green:internet"; + gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; + }; + + lan { + label = "dwr-118-a1:green:lan"; + gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; + }; + + wlan2g { + label = "dwr-118-a1:green:wlan2g"; + gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; + }; + + usb { + label = "dwr-118-a1:green:usb"; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + trigger-sources = <&ohci_port1>, <&ehci_port1>; + linux,default-trigger = "usbport"; + }; + }; + + gpio_export { + compatible = "gpio-export"; + #size-cells = <0>; + + usb { + gpio-export,name = "usb"; + gpio-export,output = <0>; + gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&gpio1 { + status = "okay"; +}; + +&gpio2 { + status = "okay"; +}; + +&gpio3 { + status = "okay"; +}; + +&spi0 { + status = "okay"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <80000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "jboot"; + reg = <0x0 0x10000>; + read-only; + }; + + partition@10000 { + compatible = "amit,jimage"; + label = "firmware"; + reg = <0x10000 0xfe0000>; + }; + + config: partition@ff0000 { + label = "config"; + reg = <0xff0000 0x10000>; + read-only; + }; + }; + }; +}; + +&ehci { + status = "okay"; +}; + +&ohci { + status = "okay"; +}; + +&pinctrl { + state_default: pinctrl0 { + default { + ralink,group = "ephy", "uartf", "spi refclk", "wled"; + ralink,function = "gpio"; + }; + }; +}; + +&pcie { + status = "okay"; +}; + +&pcie0 { + wifi@0,0 { + reg = <0x0000 0 0 0 0>; + mtd-mac-address = <&config 0xe496>; + mtd-mac-address-increment = <(2)>; + mediatek,mtd-eeprom = <&config 0xe083>; + }; +}; + +ðernet { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>; + + port@4 { + status = "okay"; + phy-handle = <&phy4>; + phy-mode = "rgmii"; + }; + + port@5 { + status = "okay"; + phy-handle = <&phy5>; + phy-mode = "rgmii"; + }; + + mdio-bus { + status = "okay"; + + phy4: ethernet-phy@4 { + reg = <4>; + phy-mode = "rgmii-rxid"; + }; + + phy5: ethernet-phy@5 { + reg = <5>; + phy-mode = "rgmii-rxid"; + }; + }; +}; + +&gsw { + mediatek,port4 = "gmac"; +}; diff --git a/target/linux/ramips/dts/DWR-118-A2.dts b/target/linux/ramips/dts/DWR-118-A2.dts index d53073e25..25c3c1232 100644 --- a/target/linux/ramips/dts/DWR-118-A2.dts +++ b/target/linux/ramips/dts/DWR-118-A2.dts @@ -106,6 +106,7 @@ }; partition@10000 { + compatible = "amit,jimage"; label = "firmware"; reg = <0x10000 0xfe0000>; }; diff --git a/target/linux/ramips/dts/DWR-512-B.dts b/target/linux/ramips/dts/DWR-512-B.dts index 04fa08f0a..d865ced70 100644 --- a/target/linux/ramips/dts/DWR-512-B.dts +++ b/target/linux/ramips/dts/DWR-512-B.dts @@ -81,7 +81,7 @@ &spi0 { status = "okay"; - mx25l6405d@0 { + flash@0 { compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <30000000>; @@ -99,6 +99,7 @@ }; partition@10000 { + compatible = "amit,jimage"; label = "firmware"; reg = <0x10000 0x7e0000>; }; @@ -114,7 +115,7 @@ &spi1 { status = "okay"; - spidev@1 { + spidev@0 { #address-cells = <1>; #size-cells = <1>; compatible = "siliconlabs,si3210"; diff --git a/target/linux/ramips/dts/DWR-921-C1.dts b/target/linux/ramips/dts/DWR-921-C1.dts index c4a337382..42687d4f0 100644 --- a/target/linux/ramips/dts/DWR-921-C1.dts +++ b/target/linux/ramips/dts/DWR-921-C1.dts @@ -97,7 +97,7 @@ &spi0 { status = "okay"; - m25p80@0 { + flash@0 { compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <10000000>; @@ -114,6 +114,7 @@ }; partition@10000 { + compatible = "amit,jimage"; label = "firmware"; reg = <0x10000 0xfe0000>; }; diff --git a/target/linux/ramips/dts/E1700.dts b/target/linux/ramips/dts/E1700.dts index bdaa4d7fa..4560e3986 100644 --- a/target/linux/ramips/dts/E1700.dts +++ b/target/linux/ramips/dts/E1700.dts @@ -90,6 +90,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/ESR-9753.dts b/target/linux/ramips/dts/ESR-9753.dts index a41bcf5c8..0680d0dcf 100644 --- a/target/linux/ramips/dts/ESR-9753.dts +++ b/target/linux/ramips/dts/ESR-9753.dts @@ -46,6 +46,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/EW1200.dts b/target/linux/ramips/dts/EW1200.dts index b95e2aadd..6fe6a123a 100644 --- a/target/linux/ramips/dts/EW1200.dts +++ b/target/linux/ramips/dts/EW1200.dts @@ -96,6 +96,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xfb0000>; }; diff --git a/target/linux/ramips/dts/EX2700.dts b/target/linux/ramips/dts/EX2700.dts index 658543e0f..66a46d703 100644 --- a/target/linux/ramips/dts/EX2700.dts +++ b/target/linux/ramips/dts/EX2700.dts @@ -122,6 +122,7 @@ }; partition@40000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x40000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/EX3700.dts b/target/linux/ramips/dts/EX3700.dts index 392b4968a..0232ab441 100644 --- a/target/linux/ramips/dts/EX3700.dts +++ b/target/linux/ramips/dts/EX3700.dts @@ -34,7 +34,6 @@ power_a { label = "ex3700:amber:power"; gpios = <&gpio2 28 GPIO_ACTIVE_LOW>; - default-state = "off"; }; router_g { @@ -121,6 +120,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x790000>; }; diff --git a/target/linux/ramips/dts/F5D8235_V1.dts b/target/linux/ramips/dts/F5D8235_V1.dts index a8c991049..29e8f7db7 100644 --- a/target/linux/ramips/dts/F5D8235_V1.dts +++ b/target/linux/ramips/dts/F5D8235_V1.dts @@ -46,6 +46,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/F5D8235_V2.dts b/target/linux/ramips/dts/F5D8235_V2.dts index 1a86557ca..3a0a148ef 100644 --- a/target/linux/ramips/dts/F5D8235_V2.dts +++ b/target/linux/ramips/dts/F5D8235_V2.dts @@ -34,6 +34,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x790000>; }; diff --git a/target/linux/ramips/dts/F7C027.dts b/target/linux/ramips/dts/F7C027.dts index 03587f2ff..aab35ce3d 100644 --- a/target/linux/ramips/dts/F7C027.dts +++ b/target/linux/ramips/dts/F7C027.dts @@ -96,6 +96,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x770000>; }; diff --git a/target/linux/ramips/dts/FIREWRT.dts b/target/linux/ramips/dts/FIREWRT.dts index cb853031b..82b511cdb 100644 --- a/target/linux/ramips/dts/FIREWRT.dts +++ b/target/linux/ramips/dts/FIREWRT.dts @@ -89,6 +89,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xfb0000>; }; diff --git a/target/linux/ramips/dts/FONERA20N.dts b/target/linux/ramips/dts/FONERA20N.dts index 45949a841..2c8629be3 100644 --- a/target/linux/ramips/dts/FONERA20N.dts +++ b/target/linux/ramips/dts/FONERA20N.dts @@ -46,6 +46,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/FREESTATION5.dts b/target/linux/ramips/dts/FREESTATION5.dts index b518a4121..2f9d80ecc 100644 --- a/target/linux/ramips/dts/FREESTATION5.dts +++ b/target/linux/ramips/dts/FREESTATION5.dts @@ -43,6 +43,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/GB-PC1.dts b/target/linux/ramips/dts/GB-PC1.dts index 6f92f9a53..007879a7b 100644 --- a/target/linux/ramips/dts/GB-PC1.dts +++ b/target/linux/ramips/dts/GB-PC1.dts @@ -98,6 +98,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x1fb0000>; }; diff --git a/target/linux/ramips/dts/GB-PC2.dts b/target/linux/ramips/dts/GB-PC2.dts index 2c90975b8..b07613b7a 100644 --- a/target/linux/ramips/dts/GB-PC2.dts +++ b/target/linux/ramips/dts/GB-PC2.dts @@ -108,6 +108,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x1fb0000>; }; diff --git a/target/linux/ramips/dts/GL-MT300A.dts b/target/linux/ramips/dts/GL-MT300A.dts index d83bb3955..ad23ece7e 100644 --- a/target/linux/ramips/dts/GL-MT300A.dts +++ b/target/linux/ramips/dts/GL-MT300A.dts @@ -107,6 +107,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xf80000>; }; diff --git a/target/linux/ramips/dts/GL-MT300N-V2.dts b/target/linux/ramips/dts/GL-MT300N-V2.dts index ba5a595b1..23669600a 100644 --- a/target/linux/ramips/dts/GL-MT300N-V2.dts +++ b/target/linux/ramips/dts/GL-MT300N-V2.dts @@ -131,6 +131,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xfb0000>; }; diff --git a/target/linux/ramips/dts/GL-MT300N.dts b/target/linux/ramips/dts/GL-MT300N.dts index 644cfed28..9d9d6274f 100644 --- a/target/linux/ramips/dts/GL-MT300N.dts +++ b/target/linux/ramips/dts/GL-MT300N.dts @@ -102,6 +102,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xf80000>; }; diff --git a/target/linux/ramips/dts/GL-MT750.dts b/target/linux/ramips/dts/GL-MT750.dts index 7786620cc..8e2a968e4 100644 --- a/target/linux/ramips/dts/GL-MT750.dts +++ b/target/linux/ramips/dts/GL-MT750.dts @@ -102,6 +102,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xf80000>; }; diff --git a/target/linux/ramips/dts/HC5661A.dts b/target/linux/ramips/dts/HC5661A.dts index a6eaade06..6dfac5061 100644 --- a/target/linux/ramips/dts/HC5661A.dts +++ b/target/linux/ramips/dts/HC5661A.dts @@ -63,10 +63,6 @@ }; }; -&sdhci { - status = "okay"; -}; - &spi0 { status = "okay"; @@ -101,6 +97,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xf70000>; }; diff --git a/target/linux/ramips/dts/HC5761.dts b/target/linux/ramips/dts/HC5761.dts index 31a5aa760..31ed99ad0 100644 --- a/target/linux/ramips/dts/HC5761.dts +++ b/target/linux/ramips/dts/HC5761.dts @@ -37,3 +37,23 @@ }; }; }; + +&ehci { + status = "okay"; +}; + +&ohci { + status = "okay"; +}; + +&pcie { + status = "okay"; +}; + +&pcie0 { + mt76@0,0 { + reg = <0x0000 0 0 0 0>; + mediatek,mtd-eeprom = <&factory 0x8000>; + ieee80211-freq-limit = <5000000 6000000>; + }; +}; diff --git a/target/linux/ramips/dts/HC5861.dts b/target/linux/ramips/dts/HC5861.dts index 371f8db21..519996486 100644 --- a/target/linux/ramips/dts/HC5861.dts +++ b/target/linux/ramips/dts/HC5861.dts @@ -60,6 +60,14 @@ }; }; +&ehci { + status = "okay"; +}; + +&ohci { + status = "okay"; +}; + ðernet { status = "okay"; mtd-mac-address = <&factory 0x4>; @@ -97,3 +105,15 @@ &gsw { mediatek,port4 = "gmac"; }; + +&pcie { + status = "okay"; +}; + +&pcie0 { + mt76@0,0 { + reg = <0x0000 0 0 0 0>; + mediatek,mtd-eeprom = <&factory 0x8000>; + ieee80211-freq-limit = <5000000 6000000>; + }; +}; diff --git a/target/linux/ramips/dts/HC5861B.dts b/target/linux/ramips/dts/HC5861B.dts index ba9ab1c06..ef2d70613 100644 --- a/target/linux/ramips/dts/HC5861B.dts +++ b/target/linux/ramips/dts/HC5861B.dts @@ -92,6 +92,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xf70000>; }; diff --git a/target/linux/ramips/dts/HC5X61.dtsi b/target/linux/ramips/dts/HC5X61.dtsi index 674ce23cb..8da05adee 100644 --- a/target/linux/ramips/dts/HC5X61.dtsi +++ b/target/linux/ramips/dts/HC5X61.dtsi @@ -67,6 +67,7 @@ partition@0 { label = "u-boot"; reg = <0x0 0x30000>; + read-only; }; partition@30000 { @@ -78,9 +79,11 @@ factory: partition@40000 { label = "factory"; reg = <0x40000 0x10000>; + read-only; }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xf80000>; }; @@ -88,29 +91,24 @@ partition@fd0000 { label = "hwf_config"; reg = <0xfd0000 0x10000>; + read-only; }; bdinfo: partition@fe0000 { label = "bdinfo"; reg = <0xfe0000 0x10000>; + read-only; }; partition@ff0000 { label = "backup"; reg = <0xff0000 0x10000>; + read-only; }; }; }; }; -&ehci { - status = "okay"; -}; - -&ohci { - status = "okay"; -}; - ðernet { pinctrl-names = "default"; pinctrl-0 = <&ephy_pins>; @@ -128,10 +126,6 @@ pinctrl-0 = <&pa_pins>; }; -&pcie { - status = "okay"; -}; - &pinctrl { state_default: pinctrl0 { gpio { diff --git a/target/linux/ramips/dts/HG255D.dts b/target/linux/ramips/dts/HG255D.dts index 56fb9492b..961fd8f91 100644 --- a/target/linux/ramips/dts/HG255D.dts +++ b/target/linux/ramips/dts/HG255D.dts @@ -46,6 +46,7 @@ }; partition@80000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x80000 0xf60000>; }; diff --git a/target/linux/ramips/dts/HLKRM04.dts b/target/linux/ramips/dts/HLKRM04.dts index 52621aa41..efbd51776 100644 --- a/target/linux/ramips/dts/HLKRM04.dts +++ b/target/linux/ramips/dts/HLKRM04.dts @@ -89,6 +89,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/HPM.dts b/target/linux/ramips/dts/HPM.dts index 77a3f3bae..d27eff8b8 100644 --- a/target/linux/ramips/dts/HPM.dts +++ b/target/linux/ramips/dts/HPM.dts @@ -118,6 +118,7 @@ }; partition@50000 { + compatible = "denx,uimage"; reg = <0x00050000 0x00fb0000>; label = "firmware"; }; diff --git a/target/linux/ramips/dts/HT-TM02.dts b/target/linux/ramips/dts/HT-TM02.dts index 9eeeb934e..d6954fe65 100644 --- a/target/linux/ramips/dts/HT-TM02.dts +++ b/target/linux/ramips/dts/HT-TM02.dts @@ -85,6 +85,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/HW550-3G.dts b/target/linux/ramips/dts/HW550-3G.dts index 501d0828d..fa5c4d72a 100644 --- a/target/linux/ramips/dts/HW550-3G.dts +++ b/target/linux/ramips/dts/HW550-3G.dts @@ -46,6 +46,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/IP2202.dts b/target/linux/ramips/dts/IP2202.dts index 7275dfa1f..c9c04dc34 100644 --- a/target/linux/ramips/dts/IP2202.dts +++ b/target/linux/ramips/dts/IP2202.dts @@ -46,6 +46,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/JHR-N805R.dts b/target/linux/ramips/dts/JHR-N805R.dts index f637543c8..f633bb26e 100644 --- a/target/linux/ramips/dts/JHR-N805R.dts +++ b/target/linux/ramips/dts/JHR-N805R.dts @@ -78,6 +78,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/JHR-N825R.dts b/target/linux/ramips/dts/JHR-N825R.dts index 6338f5306..12c5c90f2 100644 --- a/target/linux/ramips/dts/JHR-N825R.dts +++ b/target/linux/ramips/dts/JHR-N825R.dts @@ -46,6 +46,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/JHR-N926R.dts b/target/linux/ramips/dts/JHR-N926R.dts index c9da0138c..5990c0652 100644 --- a/target/linux/ramips/dts/JHR-N926R.dts +++ b/target/linux/ramips/dts/JHR-N926R.dts @@ -46,6 +46,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/K2G.dts b/target/linux/ramips/dts/K2G.dts index f8ccad10b..96714944f 100644 --- a/target/linux/ramips/dts/K2G.dts +++ b/target/linux/ramips/dts/K2G.dts @@ -86,6 +86,7 @@ }; partition@a0000 { + compatible = "denx,uimage"; reg = <0xa0000 0x760000>; label = "firmware"; }; diff --git a/target/linux/ramips/dts/K2P.dts b/target/linux/ramips/dts/K2P.dts index 397fc29b6..56d207c2d 100644 --- a/target/linux/ramips/dts/K2P.dts +++ b/target/linux/ramips/dts/K2P.dts @@ -95,6 +95,7 @@ }; partition@a0000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0xa0000 0xf60000>; }; diff --git a/target/linux/ramips/dts/LINKIT7688.dts b/target/linux/ramips/dts/LINKIT7688.dts index 5313e9b52..23a59aef5 100644 --- a/target/linux/ramips/dts/LINKIT7688.dts +++ b/target/linux/ramips/dts/LINKIT7688.dts @@ -129,6 +129,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x1fb0000>; }; diff --git a/target/linux/ramips/dts/LR-25G001.dts b/target/linux/ramips/dts/LR-25G001.dts index 37fe52354..2584457df 100644 --- a/target/linux/ramips/dts/LR-25G001.dts +++ b/target/linux/ramips/dts/LR-25G001.dts @@ -88,6 +88,7 @@ }; partition@10000 { + compatible = "amit,jimage"; label = "firmware"; reg = <0x10000 0xfe0000>; }; diff --git a/target/linux/ramips/dts/M2M.dts b/target/linux/ramips/dts/M2M.dts index 5507cee75..6c251af34 100644 --- a/target/linux/ramips/dts/M2M.dts +++ b/target/linux/ramips/dts/M2M.dts @@ -84,6 +84,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/M3.dts b/target/linux/ramips/dts/M3.dts index 1a4385b2b..bfc1f9057 100644 --- a/target/linux/ramips/dts/M3.dts +++ b/target/linux/ramips/dts/M3.dts @@ -76,6 +76,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/M4-4M.dts b/target/linux/ramips/dts/M4-4M.dts index 7db48ebfc..53a58b3d4 100644 --- a/target/linux/ramips/dts/M4-4M.dts +++ b/target/linux/ramips/dts/M4-4M.dts @@ -39,6 +39,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/M4-8M.dts b/target/linux/ramips/dts/M4-8M.dts index 9429eeadf..b947a36d0 100644 --- a/target/linux/ramips/dts/M4-8M.dts +++ b/target/linux/ramips/dts/M4-8M.dts @@ -39,6 +39,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/MAC1200RV2.dts b/target/linux/ramips/dts/MAC1200RV2.dts index 73cba5293..a260e7188 100644 --- a/target/linux/ramips/dts/MAC1200RV2.dts +++ b/target/linux/ramips/dts/MAC1200RV2.dts @@ -76,6 +76,7 @@ }; partition@40000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x40000 0x7c0000>; }; diff --git a/target/linux/ramips/dts/MINIEMBPLUG.dts b/target/linux/ramips/dts/MINIEMBPLUG.dts index 00d057d29..ccdea8000 100644 --- a/target/linux/ramips/dts/MINIEMBPLUG.dts +++ b/target/linux/ramips/dts/MINIEMBPLUG.dts @@ -100,6 +100,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/MINIEMBWIFI.dts b/target/linux/ramips/dts/MINIEMBWIFI.dts index e8b26c68f..641b9004f 100644 --- a/target/linux/ramips/dts/MINIEMBWIFI.dts +++ b/target/linux/ramips/dts/MINIEMBWIFI.dts @@ -71,6 +71,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/MIWIFI-MINI.dts b/target/linux/ramips/dts/MIWIFI-MINI.dts index a6c20f3fc..e9f9c9663 100644 --- a/target/linux/ramips/dts/MIWIFI-MINI.dts +++ b/target/linux/ramips/dts/MIWIFI-MINI.dts @@ -32,13 +32,11 @@ yellow { label = "miwifi-mini:yellow:status"; gpios = <&gpio1 2 GPIO_ACTIVE_LOW>; - default-state = "off"; }; red { label = "miwifi-mini:red:status"; gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; - default-state = "off"; }; }; @@ -97,6 +95,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xf80000>; }; diff --git a/target/linux/ramips/dts/MIWIFI-NANO.dts b/target/linux/ramips/dts/MIWIFI-NANO.dts index 7517d2191..6aa300a7a 100644 --- a/target/linux/ramips/dts/MIWIFI-NANO.dts +++ b/target/linux/ramips/dts/MIWIFI-NANO.dts @@ -105,6 +105,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xfb0000>; }; diff --git a/target/linux/ramips/dts/MLW221.dts b/target/linux/ramips/dts/MLW221.dts index 94c12026c..e7b57f58c 100644 --- a/target/linux/ramips/dts/MLW221.dts +++ b/target/linux/ramips/dts/MLW221.dts @@ -92,6 +92,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xf60000>; }; diff --git a/target/linux/ramips/dts/MLWG2.dts b/target/linux/ramips/dts/MLWG2.dts index 243c7a538..83c1a89db 100644 --- a/target/linux/ramips/dts/MLWG2.dts +++ b/target/linux/ramips/dts/MLWG2.dts @@ -92,6 +92,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xf60000>; }; diff --git a/target/linux/ramips/dts/MOFI3500-3GN.dts b/target/linux/ramips/dts/MOFI3500-3GN.dts index 042be7ebd..24c9eb700 100644 --- a/target/linux/ramips/dts/MOFI3500-3GN.dts +++ b/target/linux/ramips/dts/MOFI3500-3GN.dts @@ -46,6 +46,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/MPRA1.dts b/target/linux/ramips/dts/MPRA1.dts index 7584b85fb..cb6b49ef2 100644 --- a/target/linux/ramips/dts/MPRA1.dts +++ b/target/linux/ramips/dts/MPRA1.dts @@ -91,6 +91,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/MPRA2.dts b/target/linux/ramips/dts/MPRA2.dts index e6b427621..22c0456d0 100644 --- a/target/linux/ramips/dts/MPRA2.dts +++ b/target/linux/ramips/dts/MPRA2.dts @@ -91,6 +91,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/MR-102N.dts b/target/linux/ramips/dts/MR-102N.dts index 824728007..c431ff143 100644 --- a/target/linux/ramips/dts/MR-102N.dts +++ b/target/linux/ramips/dts/MR-102N.dts @@ -46,6 +46,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x790000>; }; diff --git a/target/linux/ramips/dts/MT7620a.dts b/target/linux/ramips/dts/MT7620a.dts index bb7b60405..be96fa9de 100644 --- a/target/linux/ramips/dts/MT7620a.dts +++ b/target/linux/ramips/dts/MT7620a.dts @@ -59,6 +59,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/MT7620a_MT7530.dts b/target/linux/ramips/dts/MT7620a_MT7530.dts index 706ba72d1..3fc19d907 100644 --- a/target/linux/ramips/dts/MT7620a_MT7530.dts +++ b/target/linux/ramips/dts/MT7620a_MT7530.dts @@ -39,6 +39,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/MT7620a_MT7610e.dts b/target/linux/ramips/dts/MT7620a_MT7610e.dts index 6bbddad58..972b48af0 100644 --- a/target/linux/ramips/dts/MT7620a_MT7610e.dts +++ b/target/linux/ramips/dts/MT7620a_MT7610e.dts @@ -63,6 +63,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/MT7620a_V22SG.dts b/target/linux/ramips/dts/MT7620a_V22SG.dts index 8020ab30d..4a88445f8 100644 --- a/target/linux/ramips/dts/MT7620a_V22SG.dts +++ b/target/linux/ramips/dts/MT7620a_V22SG.dts @@ -53,6 +53,7 @@ }; partition@80000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x80000 0x7f80000>; }; diff --git a/target/linux/ramips/dts/MT7628.dts b/target/linux/ramips/dts/MT7628.dts index d32c62af5..313c63475 100644 --- a/target/linux/ramips/dts/MT7628.dts +++ b/target/linux/ramips/dts/MT7628.dts @@ -58,6 +58,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/MZK-750DHP.dts b/target/linux/ramips/dts/MZK-750DHP.dts index e982d51e3..f4376d705 100644 --- a/target/linux/ramips/dts/MZK-750DHP.dts +++ b/target/linux/ramips/dts/MZK-750DHP.dts @@ -93,6 +93,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/MZK-DP150N.dts b/target/linux/ramips/dts/MZK-DP150N.dts index c80074e05..ea3fc8aeb 100644 --- a/target/linux/ramips/dts/MZK-DP150N.dts +++ b/target/linux/ramips/dts/MZK-DP150N.dts @@ -73,6 +73,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/MZK-EX300NP.dts b/target/linux/ramips/dts/MZK-EX300NP.dts index 04e1678bd..49046fdd0 100644 --- a/target/linux/ramips/dts/MZK-EX300NP.dts +++ b/target/linux/ramips/dts/MZK-EX300NP.dts @@ -108,6 +108,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x730000>; }; diff --git a/target/linux/ramips/dts/MZK-EX750NP.dts b/target/linux/ramips/dts/MZK-EX750NP.dts index 1ec79c65e..08e34723f 100644 --- a/target/linux/ramips/dts/MZK-EX750NP.dts +++ b/target/linux/ramips/dts/MZK-EX750NP.dts @@ -113,6 +113,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x730000>; }; diff --git a/target/linux/ramips/dts/MZK-W300NH2.dts b/target/linux/ramips/dts/MZK-W300NH2.dts index 5a7447290..a001598ed 100644 --- a/target/linux/ramips/dts/MZK-W300NH2.dts +++ b/target/linux/ramips/dts/MZK-W300NH2.dts @@ -52,6 +52,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x390000>; }; diff --git a/target/linux/ramips/dts/MZK-WDPR.dts b/target/linux/ramips/dts/MZK-WDPR.dts index b0461092b..17591268b 100644 --- a/target/linux/ramips/dts/MZK-WDPR.dts +++ b/target/linux/ramips/dts/MZK-WDPR.dts @@ -49,6 +49,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x680000>; }; diff --git a/target/linux/ramips/dts/MicroWRT.dts b/target/linux/ramips/dts/MicroWRT.dts index d1a72d99d..051ff8a0a 100644 --- a/target/linux/ramips/dts/MicroWRT.dts +++ b/target/linux/ramips/dts/MicroWRT.dts @@ -71,6 +71,7 @@ }; partition@40000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x40000 0xfc0000>; }; @@ -86,10 +87,6 @@ status = "okay"; }; -&pcie { - status = "okay"; -}; - ðernet { pinctrl-names = "default"; pinctrl-0 = <&ephy_pins>; diff --git a/target/linux/ramips/dts/NA930.dts b/target/linux/ramips/dts/NA930.dts index 9b734a850..43fea5670 100644 --- a/target/linux/ramips/dts/NA930.dts +++ b/target/linux/ramips/dts/NA930.dts @@ -47,6 +47,7 @@ }; partition@640000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x640000 0x1400000>; }; diff --git a/target/linux/ramips/dts/NBG-419N.dts b/target/linux/ramips/dts/NBG-419N.dts index 9f5d4df11..2f9c48c48 100644 --- a/target/linux/ramips/dts/NBG-419N.dts +++ b/target/linux/ramips/dts/NBG-419N.dts @@ -46,6 +46,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/NBG-419N2.dts b/target/linux/ramips/dts/NBG-419N2.dts index 19c268d83..58361faa1 100644 --- a/target/linux/ramips/dts/NBG-419N2.dts +++ b/target/linux/ramips/dts/NBG-419N2.dts @@ -48,6 +48,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/NCS601W.dts b/target/linux/ramips/dts/NCS601W.dts index cd1a7a534..ff6ccd224 100644 --- a/target/linux/ramips/dts/NCS601W.dts +++ b/target/linux/ramips/dts/NCS601W.dts @@ -39,6 +39,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/NIXCORE-16M.dts b/target/linux/ramips/dts/NIXCORE-16M.dts index 236ae94b9..328217787 100644 --- a/target/linux/ramips/dts/NIXCORE-16M.dts +++ b/target/linux/ramips/dts/NIXCORE-16M.dts @@ -39,6 +39,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xfb0000>; }; diff --git a/target/linux/ramips/dts/NIXCORE-8M.dts b/target/linux/ramips/dts/NIXCORE-8M.dts index 972fde6b0..f32bcf3f4 100644 --- a/target/linux/ramips/dts/NIXCORE-8M.dts +++ b/target/linux/ramips/dts/NIXCORE-8M.dts @@ -39,6 +39,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/NW718.dts b/target/linux/ramips/dts/NW718.dts index 56a27f5f1..6db2e23c8 100644 --- a/target/linux/ramips/dts/NW718.dts +++ b/target/linux/ramips/dts/NW718.dts @@ -87,6 +87,7 @@ }; partition@60000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x60000 0x3a0000>; }; diff --git a/target/linux/ramips/dts/Newifi-D1.dts b/target/linux/ramips/dts/Newifi-D1.dts index eed5c14a9..37383fd3d 100644 --- a/target/linux/ramips/dts/Newifi-D1.dts +++ b/target/linux/ramips/dts/Newifi-D1.dts @@ -31,13 +31,11 @@ status-red { label = "newifi-d1:red:status"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - default-state = "off"; }; status-green { label = "newifi-d1:green:status"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; - default-state = "off"; }; led_blue: status-blue { @@ -113,6 +111,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x1fb0000>; }; diff --git a/target/linux/ramips/dts/Newifi-D2.dts b/target/linux/ramips/dts/Newifi-D2.dts index c217f2fc9..447701296 100644 --- a/target/linux/ramips/dts/Newifi-D2.dts +++ b/target/linux/ramips/dts/Newifi-D2.dts @@ -128,6 +128,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x1fb0000>; }; diff --git a/target/linux/ramips/dts/OMEGA2.dtsi b/target/linux/ramips/dts/OMEGA2.dtsi index 373cd44d0..adde7fcdd 100644 --- a/target/linux/ramips/dts/OMEGA2.dtsi +++ b/target/linux/ramips/dts/OMEGA2.dtsi @@ -135,6 +135,7 @@ }; firmware: partition@50000 { + compatible = "denx,uimage"; label = "firmware"; }; }; diff --git a/target/linux/ramips/dts/OY-0001.dts b/target/linux/ramips/dts/OY-0001.dts index e05a34c40..cc656d413 100644 --- a/target/linux/ramips/dts/OY-0001.dts +++ b/target/linux/ramips/dts/OY-0001.dts @@ -86,6 +86,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xfb0000>; }; @@ -127,7 +128,3 @@ &ohci { status = "okay"; }; - -&pcie { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/PBR-D1.dts b/target/linux/ramips/dts/PBR-D1.dts index 14a2c4e82..5fe72bbc3 100644 --- a/target/linux/ramips/dts/PBR-D1.dts +++ b/target/linux/ramips/dts/PBR-D1.dts @@ -37,7 +37,6 @@ gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; - default-state = "off"; }; led_power: power { @@ -131,6 +130,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x0fb0000>; }; diff --git a/target/linux/ramips/dts/PBR-M1.dts b/target/linux/ramips/dts/PBR-M1.dts index 2ff8940c4..8a915f3c7 100644 --- a/target/linux/ramips/dts/PBR-M1.dts +++ b/target/linux/ramips/dts/PBR-M1.dts @@ -144,6 +144,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xfb0000>; }; diff --git a/target/linux/ramips/dts/PSG1208.dts b/target/linux/ramips/dts/PSG1208.dts index 4a3291705..de8d11abe 100644 --- a/target/linux/ramips/dts/PSG1208.dts +++ b/target/linux/ramips/dts/PSG1208.dts @@ -82,6 +82,7 @@ }; partition@40000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/PSG1218.dtsi b/target/linux/ramips/dts/PSG1218.dtsi index 4209c2d2b..23f1dd753 100644 --- a/target/linux/ramips/dts/PSG1218.dtsi +++ b/target/linux/ramips/dts/PSG1218.dtsi @@ -54,6 +54,7 @@ }; partition@40000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/PSG1218A.dts b/target/linux/ramips/dts/PSG1218A.dts index 57c032f38..767070dbb 100644 --- a/target/linux/ramips/dts/PSG1218A.dts +++ b/target/linux/ramips/dts/PSG1218A.dts @@ -24,13 +24,11 @@ yellow { label = "psg1218a:yellow:status"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - default-state = "off"; }; red { label = "psg1218a:red:status"; gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; - default-state = "off"; }; }; }; diff --git a/target/linux/ramips/dts/PSG1218B.dts b/target/linux/ramips/dts/PSG1218B.dts index 8b6b8c037..8f735a7d9 100644 --- a/target/linux/ramips/dts/PSG1218B.dts +++ b/target/linux/ramips/dts/PSG1218B.dts @@ -24,13 +24,11 @@ yellow { label = "psg1218b:yellow:status"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - default-state = "off"; }; red { label = "psg1218b:red:status"; gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; - default-state = "off"; }; }; }; diff --git a/target/linux/ramips/dts/PSR-680W.dts b/target/linux/ramips/dts/PSR-680W.dts index 29b16fc44..cdda066a2 100644 --- a/target/linux/ramips/dts/PSR-680W.dts +++ b/target/linux/ramips/dts/PSR-680W.dts @@ -50,6 +50,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/PWH2004.dts b/target/linux/ramips/dts/PWH2004.dts index c544fb0b3..885589a2e 100644 --- a/target/linux/ramips/dts/PWH2004.dts +++ b/target/linux/ramips/dts/PWH2004.dts @@ -46,6 +46,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/PX-4885-4M.dts b/target/linux/ramips/dts/PX-4885-4M.dts index c1da0a4e3..ee2068f8f 100644 --- a/target/linux/ramips/dts/PX-4885-4M.dts +++ b/target/linux/ramips/dts/PX-4885-4M.dts @@ -39,6 +39,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/PX-4885-8M.dts b/target/linux/ramips/dts/PX-4885-8M.dts index 4aa4d8927..a52ba2eda 100644 --- a/target/linux/ramips/dts/PX-4885-8M.dts +++ b/target/linux/ramips/dts/PX-4885-8M.dts @@ -39,6 +39,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/R6120.dts b/target/linux/ramips/dts/R6120.dts index 16236924f..052933b76 100644 --- a/target/linux/ramips/dts/R6120.dts +++ b/target/linux/ramips/dts/R6120.dts @@ -110,6 +110,7 @@ }; partition@90000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x90000 0xf60000>; }; diff --git a/target/linux/ramips/dts/R6350.dts b/target/linux/ramips/dts/R6350.dts new file mode 100644 index 000000000..cdf9a72c8 --- /dev/null +++ b/target/linux/ramips/dts/R6350.dts @@ -0,0 +1,156 @@ +/dts-v1/; + +#include "mt7621.dtsi" + +#include +#include + +/ { + compatible = "netgear,r6350", "mediatek,mt7621-soc"; + model = "Netgear R6350"; + + aliases { + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x8000000>; + }; + + chosen { + bootargs = "console=ttyS0,57600"; + }; + + gpio-leds { + compatible = "gpio-leds"; + + led_power: power { + label = "r6350:green:power"; + gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; + }; + + usb { + label = "r6350:green:usb"; + gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; + trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>; + linux,default-trigger = "usbport"; + }; + + internet { + label = "r6350:green:wan"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + }; + + wifi { + label = "r6350:green:wifi"; + gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; + }; + }; + + gpio-keys-polled { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + wps { + label = "wps"; + gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + reset { + label = "reset"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + gpio_export { + compatible = "gpio-export"; + #size-cells = <0>; + + usbpower { + gpio-export,name = "usbpower"; + gpio-export,output = <1>; + gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>; + }; + }; +}; + +&nand { + status = "okay"; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x100000>; + read-only; + }; + + partition@100000 { + label = "SC PART_MAP"; + reg = <0x100000 0x100000>; + read-only; + }; + + partition@200000 { + label = "kernel"; + reg = <0x200000 0x400000>; + }; + + partition@600000 { + label = "ubi"; + reg = <0x600000 0x2800000>; + }; + + partition@2e00000 { + label = "reserved0"; + reg = <0x2e00000 0x1800000>; + read-only; + }; + + factory: partition@4600000 { + label = "factory"; + reg = <0x4600000 0x200000>; + read-only; + }; + + partition@4800000 { + label = "reserved1"; + reg = <0x4800000 0x3800000>; + read-only; + }; + }; +}; + +&pcie { + status = "okay"; +}; + +&pcie1 { + wifi@0,0 { + reg = <0x0 0 0 0 0>; + mediatek,mtd-eeprom = <&factory 0x0>; + ieee80211-freq-limit = <2400000 2500000>; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "uart3", "uart2", "jtag", "wdt"; + ralink,function = "gpio"; + }; + }; +}; diff --git a/target/linux/ramips/dts/RB750Gr3.dts b/target/linux/ramips/dts/RB750Gr3.dts index 8cdba4ce6..6b18cce78 100644 --- a/target/linux/ramips/dts/RB750Gr3.dts +++ b/target/linux/ramips/dts/RB750Gr3.dts @@ -107,6 +107,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xfb0000>; }; diff --git a/target/linux/ramips/dts/RBM11G.dts b/target/linux/ramips/dts/RBM11G.dts index 1288465c3..4c0131649 100644 --- a/target/linux/ramips/dts/RBM11G.dts +++ b/target/linux/ramips/dts/RBM11G.dts @@ -136,6 +136,7 @@ }; partition@40000 { + compatible = "mikrotik,minor"; label = "firmware"; reg = <0x040000 0xFC0000>; }; diff --git a/target/linux/ramips/dts/RBM33G.dts b/target/linux/ramips/dts/RBM33G.dts index beaa9d269..08c5ab1f3 100644 --- a/target/linux/ramips/dts/RBM33G.dts +++ b/target/linux/ramips/dts/RBM33G.dts @@ -161,6 +161,7 @@ // Region <0x0 0x40000> seems reserved by OEM partition@40000 { + compatible = "mikrotik,minor"; label = "firmware"; reg = <0x040000 0xFC0000>; }; diff --git a/target/linux/ramips/dts/RE350.dts b/target/linux/ramips/dts/RE350.dts index 15fb08ecb..38218b6c9 100644 --- a/target/linux/ramips/dts/RE350.dts +++ b/target/linux/ramips/dts/RE350.dts @@ -115,6 +115,7 @@ }; partition@20000 { + compatible = "tplink,firmware"; label = "firmware"; reg = <0x20000 0x5e0000>; }; diff --git a/target/linux/ramips/dts/RE6500.dts b/target/linux/ramips/dts/RE6500.dts index bd32fd2d8..830dfe25a 100644 --- a/target/linux/ramips/dts/RE6500.dts +++ b/target/linux/ramips/dts/RE6500.dts @@ -90,6 +90,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/RP-N53.dts b/target/linux/ramips/dts/RP-N53.dts index d46d853ae..d73e7d184 100644 --- a/target/linux/ramips/dts/RP-N53.dts +++ b/target/linux/ramips/dts/RP-N53.dts @@ -129,6 +129,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/RT-AC51U.dts b/target/linux/ramips/dts/RT-AC51U.dts index 683f17bb7..b54e5b847 100644 --- a/target/linux/ramips/dts/RT-AC51U.dts +++ b/target/linux/ramips/dts/RT-AC51U.dts @@ -98,6 +98,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xfb0000>; }; diff --git a/target/linux/ramips/dts/RT-G32-B1.dts b/target/linux/ramips/dts/RT-G32-B1.dts index dde60ad54..581941c84 100644 --- a/target/linux/ramips/dts/RT-G32-B1.dts +++ b/target/linux/ramips/dts/RT-G32-B1.dts @@ -59,6 +59,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/RT-N10-PLUS.dts b/target/linux/ramips/dts/RT-N10-PLUS.dts index 2ecb31d6f..eaf32ece1 100644 --- a/target/linux/ramips/dts/RT-N10-PLUS.dts +++ b/target/linux/ramips/dts/RT-N10-PLUS.dts @@ -46,6 +46,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/RT-N12-PLUS.dts b/target/linux/ramips/dts/RT-N12-PLUS.dts index 3c33107d5..401e403cf 100644 --- a/target/linux/ramips/dts/RT-N12-PLUS.dts +++ b/target/linux/ramips/dts/RT-N12-PLUS.dts @@ -100,6 +100,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xfb0000>; }; diff --git a/target/linux/ramips/dts/RT-N13U.dts b/target/linux/ramips/dts/RT-N13U.dts index 65f0960e7..f4a8720a0 100644 --- a/target/linux/ramips/dts/RT-N13U.dts +++ b/target/linux/ramips/dts/RT-N13U.dts @@ -46,6 +46,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/RT-N14U.dts b/target/linux/ramips/dts/RT-N14U.dts index a3b0d79e4..10ae9c047 100644 --- a/target/linux/ramips/dts/RT-N14U.dts +++ b/target/linux/ramips/dts/RT-N14U.dts @@ -105,6 +105,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xfb0000>; }; diff --git a/target/linux/ramips/dts/RT-N15.dts b/target/linux/ramips/dts/RT-N15.dts index 414f6edd9..3cc929d51 100644 --- a/target/linux/ramips/dts/RT-N15.dts +++ b/target/linux/ramips/dts/RT-N15.dts @@ -48,6 +48,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/RT-N56U.dts b/target/linux/ramips/dts/RT-N56U.dts index a79967912..39f6488ac 100644 --- a/target/linux/ramips/dts/RT-N56U.dts +++ b/target/linux/ramips/dts/RT-N56U.dts @@ -45,6 +45,7 @@ }; partition@50000 { + compatible = "denx,uimage"; reg = <0x00050000 0x007b0000>; label = "firmware"; }; diff --git a/target/linux/ramips/dts/RT5350F-OLINUXINO.dtsi b/target/linux/ramips/dts/RT5350F-OLINUXINO.dtsi index 81cb81fb2..88b412c8d 100644 --- a/target/linux/ramips/dts/RT5350F-OLINUXINO.dtsi +++ b/target/linux/ramips/dts/RT5350F-OLINUXINO.dtsi @@ -42,6 +42,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/RUT5XX.dts b/target/linux/ramips/dts/RUT5XX.dts index 4816324cf..a7654c60b 100644 --- a/target/linux/ramips/dts/RUT5XX.dts +++ b/target/linux/ramips/dts/RUT5XX.dts @@ -69,6 +69,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xfb0000>; }; diff --git a/target/linux/ramips/dts/SAP-G3200U3.dts b/target/linux/ramips/dts/SAP-G3200U3.dts index 353bae597..1b2078990 100644 --- a/target/linux/ramips/dts/SAP-G3200U3.dts +++ b/target/linux/ramips/dts/SAP-G3200U3.dts @@ -86,6 +86,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/SK-WB8.dts b/target/linux/ramips/dts/SK-WB8.dts index 571ff3efe..8f85c704c 100644 --- a/target/linux/ramips/dts/SK-WB8.dts +++ b/target/linux/ramips/dts/SK-WB8.dts @@ -88,6 +88,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xfb0000>; }; diff --git a/target/linux/ramips/dts/SL-R7205.dts b/target/linux/ramips/dts/SL-R7205.dts index 9d205131c..7c3d53aea 100644 --- a/target/linux/ramips/dts/SL-R7205.dts +++ b/target/linux/ramips/dts/SL-R7205.dts @@ -46,6 +46,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/TEW-638APB-V2.dts b/target/linux/ramips/dts/TEW-638APB-V2.dts index b58cfc44e..bacdb0b1f 100644 --- a/target/linux/ramips/dts/TEW-638APB-V2.dts +++ b/target/linux/ramips/dts/TEW-638APB-V2.dts @@ -46,6 +46,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/TEW-691GR.dts b/target/linux/ramips/dts/TEW-691GR.dts index 219a10805..8fee29b83 100644 --- a/target/linux/ramips/dts/TEW-691GR.dts +++ b/target/linux/ramips/dts/TEW-691GR.dts @@ -45,6 +45,7 @@ }; partition@50000 { + compatible = "denx,uimage"; reg = <0x00050000 0x007b0000>; label = "firmware"; }; diff --git a/target/linux/ramips/dts/TEW-692GR.dts b/target/linux/ramips/dts/TEW-692GR.dts index fac85f7fc..37b841c1d 100644 --- a/target/linux/ramips/dts/TEW-692GR.dts +++ b/target/linux/ramips/dts/TEW-692GR.dts @@ -45,6 +45,7 @@ }; partition@50000 { + compatible = "denx,uimage"; reg = <0x00050000 0x007b0000>; label = "firmware"; }; diff --git a/target/linux/ramips/dts/TEW-714TRU.dts b/target/linux/ramips/dts/TEW-714TRU.dts index b9cb5ba77..4969aee4b 100644 --- a/target/linux/ramips/dts/TEW-714TRU.dts +++ b/target/linux/ramips/dts/TEW-714TRU.dts @@ -90,6 +90,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/TINY-AC.dts b/target/linux/ramips/dts/TINY-AC.dts index e81f0cbdb..d5a232124 100644 --- a/target/linux/ramips/dts/TINY-AC.dts +++ b/target/linux/ramips/dts/TINY-AC.dts @@ -96,6 +96,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; @@ -160,3 +161,11 @@ }; }; }; + +&pcie0 { + mt76@0,0 { + reg = <0x0000 0 0 0 0>; + mediatek,mtd-eeprom = <&factory 0x8000>; + ieee80211-freq-limit = <5000000 6000000>; + }; +}; diff --git a/target/linux/ramips/dts/TL-MR3020V3.dts b/target/linux/ramips/dts/TL-MR3020V3.dts index a3285def9..aa9bcaf81 100644 --- a/target/linux/ramips/dts/TL-MR3020V3.dts +++ b/target/linux/ramips/dts/TL-MR3020V3.dts @@ -102,6 +102,7 @@ }; partition@20000 { + compatible = "tplink,firmware"; label = "firmware"; reg = <0x20000 0x7a0000>; }; diff --git a/target/linux/ramips/dts/TL-WR840NV5.dts b/target/linux/ramips/dts/TL-WR840NV5.dts index fc3d0aa32..2d9b7e5c5 100644 --- a/target/linux/ramips/dts/TL-WR840NV5.dts +++ b/target/linux/ramips/dts/TL-WR840NV5.dts @@ -72,6 +72,7 @@ }; partition@20000 { + compatible = "tplink,firmware"; label = "firmware"; reg = <0x20000 0x3d0000>; }; @@ -96,7 +97,7 @@ &wmac { status = "okay"; mtd-mac-address = <&factory 0xf100>; - mediatek,mtd-eeprom = <&factory 0x10000>; + mediatek,mtd-eeprom = <&factory 0x0>; }; ðernet { diff --git a/target/linux/ramips/dts/TPLINK-8M.dtsi b/target/linux/ramips/dts/TPLINK-8M.dtsi index 8c663822b..017f5acd6 100644 --- a/target/linux/ramips/dts/TPLINK-8M.dtsi +++ b/target/linux/ramips/dts/TPLINK-8M.dtsi @@ -32,6 +32,7 @@ }; partition@20000 { + compatible = "tplink,firmware"; label = "firmware"; reg = <0x20000 0x7a0000>; }; diff --git a/target/linux/ramips/dts/Timecloud.dts b/target/linux/ramips/dts/Timecloud.dts index a6274a0c5..188aef226 100644 --- a/target/linux/ramips/dts/Timecloud.dts +++ b/target/linux/ramips/dts/Timecloud.dts @@ -94,6 +94,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xfb0000>; }; diff --git a/target/linux/ramips/dts/U25AWF-H1.dts b/target/linux/ramips/dts/U25AWF-H1.dts index 6a6c81d83..d4caa8a90 100644 --- a/target/linux/ramips/dts/U25AWF-H1.dts +++ b/target/linux/ramips/dts/U25AWF-H1.dts @@ -82,6 +82,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xfb0000>; }; diff --git a/target/linux/ramips/dts/U35WF.dts b/target/linux/ramips/dts/U35WF.dts index baa15ce38..854c9683f 100644 --- a/target/linux/ramips/dts/U35WF.dts +++ b/target/linux/ramips/dts/U35WF.dts @@ -82,6 +82,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xfb0000>; }; diff --git a/target/linux/ramips/dts/U7621-06-256M-16M.dts b/target/linux/ramips/dts/U7621-06-256M-16M.dts index facd8c0a6..ae66bd365 100644 --- a/target/linux/ramips/dts/U7621-06-256M-16M.dts +++ b/target/linux/ramips/dts/U7621-06-256M-16M.dts @@ -82,6 +82,7 @@ }; firmware: partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xfb0000>; }; diff --git a/target/linux/ramips/dts/U7628-01-128M-16M.dts b/target/linux/ramips/dts/U7628-01-128M-16M.dts index c238e024e..7b27bfb19 100644 --- a/target/linux/ramips/dts/U7628-01-128M-16M.dts +++ b/target/linux/ramips/dts/U7628-01-128M-16M.dts @@ -79,6 +79,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xfb0000>; }; diff --git a/target/linux/ramips/dts/UBNT-ER-e50.dtsi b/target/linux/ramips/dts/UBNT-ER-e50.dtsi index 2a983d08f..b3949a39f 100644 --- a/target/linux/ramips/dts/UBNT-ER-e50.dtsi +++ b/target/linux/ramips/dts/UBNT-ER-e50.dtsi @@ -91,7 +91,7 @@ */ status = "disabled"; - m25p80@0 { + m25p80@1 { compatible = "jedec,spi-nor"; reg = <1>; spi-max-frequency = <10000000>; diff --git a/target/linux/ramips/dts/UR-326N4G.dts b/target/linux/ramips/dts/UR-326N4G.dts index 921f427ea..88cf96427 100644 --- a/target/linux/ramips/dts/UR-326N4G.dts +++ b/target/linux/ramips/dts/UR-326N4G.dts @@ -46,6 +46,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/UR-336UN.dts b/target/linux/ramips/dts/UR-336UN.dts index 6de90b3b1..2ee1a8b87 100644 --- a/target/linux/ramips/dts/UR-336UN.dts +++ b/target/linux/ramips/dts/UR-336UN.dts @@ -46,6 +46,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/V11STFE.dts b/target/linux/ramips/dts/V11STFE.dts index e0cf114bf..a8a569a8c 100644 --- a/target/linux/ramips/dts/V11STFE.dts +++ b/target/linux/ramips/dts/V11STFE.dts @@ -45,6 +45,7 @@ }; partition@50000 { + compatible = "denx,uimage"; reg = <0x00050000 0x003b0000>; label = "firmware"; }; diff --git a/target/linux/ramips/dts/V22RW-2X2.dts b/target/linux/ramips/dts/V22RW-2X2.dts index ca3d51265..df0fad3b2 100644 --- a/target/linux/ramips/dts/V22RW-2X2.dts +++ b/target/linux/ramips/dts/V22RW-2X2.dts @@ -46,6 +46,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/VAR11N-300.dts b/target/linux/ramips/dts/VAR11N-300.dts index 5eb8b8c95..1b9323130 100644 --- a/target/linux/ramips/dts/VAR11N-300.dts +++ b/target/linux/ramips/dts/VAR11N-300.dts @@ -73,6 +73,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/VOCORE-16M.dts b/target/linux/ramips/dts/VOCORE-16M.dts index 0a8ddab0f..30781b53b 100644 --- a/target/linux/ramips/dts/VOCORE-16M.dts +++ b/target/linux/ramips/dts/VOCORE-16M.dts @@ -39,6 +39,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xfb0000>; }; diff --git a/target/linux/ramips/dts/VOCORE-8M.dts b/target/linux/ramips/dts/VOCORE-8M.dts index affecb84a..ec301965c 100644 --- a/target/linux/ramips/dts/VOCORE-8M.dts +++ b/target/linux/ramips/dts/VOCORE-8M.dts @@ -39,6 +39,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/VOCORE2.dts b/target/linux/ramips/dts/VOCORE2.dts index 2744f8045..8ecfd7737 100644 --- a/target/linux/ramips/dts/VOCORE2.dts +++ b/target/linux/ramips/dts/VOCORE2.dts @@ -58,6 +58,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xfb0000>; }; diff --git a/target/linux/ramips/dts/VOCORE2LITE.dts b/target/linux/ramips/dts/VOCORE2LITE.dts index fbe4ed3f7..a09fa773f 100644 --- a/target/linux/ramips/dts/VOCORE2LITE.dts +++ b/target/linux/ramips/dts/VOCORE2LITE.dts @@ -58,6 +58,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/VR500.dts b/target/linux/ramips/dts/VR500.dts index d3ef2cae7..3538ef793 100644 --- a/target/linux/ramips/dts/VR500.dts +++ b/target/linux/ramips/dts/VR500.dts @@ -79,6 +79,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3fb0000>; }; diff --git a/target/linux/ramips/dts/W06.dts b/target/linux/ramips/dts/W06.dts index f609ae72d..8c3bbe405 100644 --- a/target/linux/ramips/dts/W06.dts +++ b/target/linux/ramips/dts/W06.dts @@ -99,6 +99,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xeb0000>; }; diff --git a/target/linux/ramips/dts/W150M.dts b/target/linux/ramips/dts/W150M.dts index 3d419b085..77e835558 100644 --- a/target/linux/ramips/dts/W150M.dts +++ b/target/linux/ramips/dts/W150M.dts @@ -46,6 +46,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3c8000>; }; diff --git a/target/linux/ramips/dts/W2914NSV2.dtsi b/target/linux/ramips/dts/W2914NSV2.dtsi index f960bc26a..332473375 100644 --- a/target/linux/ramips/dts/W2914NSV2.dtsi +++ b/target/linux/ramips/dts/W2914NSV2.dtsi @@ -65,6 +65,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xfb0000>; }; diff --git a/target/linux/ramips/dts/W306R_V20.dts b/target/linux/ramips/dts/W306R_V20.dts index 7e4d650a0..2e1fd77c6 100644 --- a/target/linux/ramips/dts/W306R_V20.dts +++ b/target/linux/ramips/dts/W306R_V20.dts @@ -46,6 +46,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/W502U.dts b/target/linux/ramips/dts/W502U.dts index 389a467d8..0de66af84 100644 --- a/target/linux/ramips/dts/W502U.dts +++ b/target/linux/ramips/dts/W502U.dts @@ -50,6 +50,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/WCR150GN.dts b/target/linux/ramips/dts/WCR150GN.dts index 3f8783fe5..90298bf82 100644 --- a/target/linux/ramips/dts/WCR150GN.dts +++ b/target/linux/ramips/dts/WCR150GN.dts @@ -46,6 +46,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/WD03.dts b/target/linux/ramips/dts/WD03.dts index 13e9bb332..c685aeaf6 100644 --- a/target/linux/ramips/dts/WD03.dts +++ b/target/linux/ramips/dts/WD03.dts @@ -84,6 +84,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/WE1026-5G-16M.dts b/target/linux/ramips/dts/WE1026-5G-16M.dts index 631d02854..8954006ec 100644 --- a/target/linux/ramips/dts/WE1026-5G-16M.dts +++ b/target/linux/ramips/dts/WE1026-5G-16M.dts @@ -72,6 +72,7 @@ }; firmware: partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xfb0000>; }; diff --git a/target/linux/ramips/dts/WF-2881.dts b/target/linux/ramips/dts/WF-2881.dts index 5d1781fcf..aeff06b42 100644 --- a/target/linux/ramips/dts/WF-2881.dts +++ b/target/linux/ramips/dts/WF-2881.dts @@ -86,6 +86,7 @@ }; partition@140000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x140000 0x7E40000>; }; diff --git a/target/linux/ramips/dts/WHR-1166D.dts b/target/linux/ramips/dts/WHR-1166D.dts index c51aef13c..ddfa768b9 100644 --- a/target/linux/ramips/dts/WHR-1166D.dts +++ b/target/linux/ramips/dts/WHR-1166D.dts @@ -123,6 +123,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xfb0000>; }; diff --git a/target/linux/ramips/dts/WHR-300HP2.dts b/target/linux/ramips/dts/WHR-300HP2.dts index 33f0bc664..efcd65d63 100644 --- a/target/linux/ramips/dts/WHR-300HP2.dts +++ b/target/linux/ramips/dts/WHR-300HP2.dts @@ -123,6 +123,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/WHR-600D.dts b/target/linux/ramips/dts/WHR-600D.dts index 80b88393c..c96bd6828 100644 --- a/target/linux/ramips/dts/WHR-600D.dts +++ b/target/linux/ramips/dts/WHR-600D.dts @@ -123,6 +123,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/WHR-G300N.dts b/target/linux/ramips/dts/WHR-G300N.dts index 86e0972ff..f9756065c 100644 --- a/target/linux/ramips/dts/WHR-G300N.dts +++ b/target/linux/ramips/dts/WHR-G300N.dts @@ -46,6 +46,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3a0000>; }; diff --git a/target/linux/ramips/dts/WIDORA-NEO-16M.dts b/target/linux/ramips/dts/WIDORA-NEO-16M.dts index 3672ca68d..1c1049094 100644 --- a/target/linux/ramips/dts/WIDORA-NEO-16M.dts +++ b/target/linux/ramips/dts/WIDORA-NEO-16M.dts @@ -42,6 +42,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x0fb0000>; }; diff --git a/target/linux/ramips/dts/WIDORA-NEO-32M.dts b/target/linux/ramips/dts/WIDORA-NEO-32M.dts index c4d9c7f26..a9d0b6fc6 100644 --- a/target/linux/ramips/dts/WIDORA-NEO-32M.dts +++ b/target/linux/ramips/dts/WIDORA-NEO-32M.dts @@ -42,6 +42,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x1fb0000>; }; diff --git a/target/linux/ramips/dts/WITI.dtsi b/target/linux/ramips/dts/WITI.dtsi index abc28e649..9e1e62fc3 100644 --- a/target/linux/ramips/dts/WITI.dtsi +++ b/target/linux/ramips/dts/WITI.dtsi @@ -72,6 +72,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xfb0000>; }; diff --git a/target/linux/ramips/dts/WIZARD8800.dts b/target/linux/ramips/dts/WIZARD8800.dts index 1e99359e3..af105b5af 100644 --- a/target/linux/ramips/dts/WIZARD8800.dts +++ b/target/linux/ramips/dts/WIZARD8800.dts @@ -47,6 +47,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/WIZFI630A.dts b/target/linux/ramips/dts/WIZFI630A.dts index cfd9fb1e3..45c080be6 100644 --- a/target/linux/ramips/dts/WIZFI630A.dts +++ b/target/linux/ramips/dts/WIZFI630A.dts @@ -113,6 +113,7 @@ }; partition@50000 { + compatible = "denx,uimage"; #size-cells = <1>; label = "firmware"; reg = <0x50000 0xfb0000>; diff --git a/target/linux/ramips/dts/WL-330N.dts b/target/linux/ramips/dts/WL-330N.dts index dd4067b04..e747d6097 100644 --- a/target/linux/ramips/dts/WL-330N.dts +++ b/target/linux/ramips/dts/WL-330N.dts @@ -80,6 +80,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/WL-330N3G.dts b/target/linux/ramips/dts/WL-330N3G.dts index 62eeeefc0..c562d9510 100644 --- a/target/linux/ramips/dts/WL-330N3G.dts +++ b/target/linux/ramips/dts/WL-330N3G.dts @@ -85,6 +85,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/WL-341V3.dts b/target/linux/ramips/dts/WL-341V3.dts deleted file mode 100644 index 1cd1079c7..000000000 --- a/target/linux/ramips/dts/WL-341V3.dts +++ /dev/null @@ -1,128 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "sitecom,wl-341-v3", "ralink,rt3052-soc"; - model = "Sitecom WL-341 v3"; - - cfi@1f000000 { - compatible = "cfi-flash"; - reg = <0x1f000000 0x800000>; - bank-width = <2>; - device-width = <2>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "u-boot"; - reg = <0x0 0x20000>; - read-only; - }; - - boardnvram: partition@20000 { - label = "board-nvram"; - reg = <0x20000 0x10000>; - read-only; - }; - - partition@30000 { - label = "u-boot-env"; - reg = <0x30000 0x10000>; - read-only; - }; - - partition@40000 { - label = "firmware"; - reg = <0x40000 0x3b0000>; - }; - }; - }; - - gpio-leds { - compatible = "gpio-leds"; - - first { - label = "wl-341v3:amber:first"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - - first2 { - label = "wl-341v3:blue:first"; - gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; - }; - - third { - label = "wl-341v3:amber:third"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - }; - - third2 { - label = "wl-341v3:blue:third"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - }; - - fourth { - label = "wl-341v3:blue:fourth"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - }; - - fifth { - label = "wl-341v3:amber:fifth"; - gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; - }; - - fifth2 { - label = "wl-341v3:blue:fifth"; - gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; - }; - }; - - gpio-keys-polled { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - wps { - label = "wps"; - gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&boardnvram 0xffa0>; -}; - -&esw { - mediatek,portmap = <0x3e>; -}; - -&wmac { - ralink,mtd-eeprom = <&boardnvram 0xfd70>; -}; - -&otg { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/WL-351.dts b/target/linux/ramips/dts/WL-351.dts index b6bf41127..aefb4c74a 100644 --- a/target/linux/ramips/dts/WL-351.dts +++ b/target/linux/ramips/dts/WL-351.dts @@ -46,6 +46,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/WL-WN575A3.dts b/target/linux/ramips/dts/WL-WN575A3.dts index 3e51e99cd..deeb7bbfb 100644 --- a/target/linux/ramips/dts/WL-WN575A3.dts +++ b/target/linux/ramips/dts/WL-WN575A3.dts @@ -113,6 +113,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/WLI-TX4-AG300N.dts b/target/linux/ramips/dts/WLI-TX4-AG300N.dts index 8d09773c1..4a55a9212 100644 --- a/target/linux/ramips/dts/WLI-TX4-AG300N.dts +++ b/target/linux/ramips/dts/WLI-TX4-AG300N.dts @@ -48,6 +48,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/WLR-6000.dts b/target/linux/ramips/dts/WLR-6000.dts index c9cce008f..2eeb4748b 100644 --- a/target/linux/ramips/dts/WLR-6000.dts +++ b/target/linux/ramips/dts/WLR-6000.dts @@ -131,6 +131,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x713000>; }; diff --git a/target/linux/ramips/dts/WMDR-143N.dts b/target/linux/ramips/dts/WMDR-143N.dts index a758137d0..66711420a 100644 --- a/target/linux/ramips/dts/WMDR-143N.dts +++ b/target/linux/ramips/dts/WMDR-143N.dts @@ -39,6 +39,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/WMR-300.dts b/target/linux/ramips/dts/WMR-300.dts index e865bb9c6..3b4551107 100644 --- a/target/linux/ramips/dts/WMR-300.dts +++ b/target/linux/ramips/dts/WMR-300.dts @@ -89,6 +89,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/WN-AX1167GR.dts b/target/linux/ramips/dts/WN-AX1167GR.dts index f9aa5c2cf..5163af167 100644 --- a/target/linux/ramips/dts/WN-AX1167GR.dts +++ b/target/linux/ramips/dts/WN-AX1167GR.dts @@ -110,6 +110,7 @@ }; partition@60000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x60000 0xf30000>; }; diff --git a/target/linux/ramips/dts/WN-GX300GR.dts b/target/linux/ramips/dts/WN-GX300GR.dts index c2d5ce0cf..2fcfc9621 100644 --- a/target/linux/ramips/dts/WN-GX300GR.dts +++ b/target/linux/ramips/dts/WN-GX300GR.dts @@ -110,6 +110,7 @@ }; partition@60000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x60000 0x770000>; }; diff --git a/target/linux/ramips/dts/WN3000RPV3.dts b/target/linux/ramips/dts/WN3000RPV3.dts index 3dba92833..b22ce02d4 100644 --- a/target/linux/ramips/dts/WN3000RPV3.dts +++ b/target/linux/ramips/dts/WN3000RPV3.dts @@ -120,6 +120,7 @@ }; partition@40000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x40000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/WNCE2001.dts b/target/linux/ramips/dts/WNCE2001.dts index 46b0e5d02..0a578205e 100644 --- a/target/linux/ramips/dts/WNCE2001.dts +++ b/target/linux/ramips/dts/WNCE2001.dts @@ -123,6 +123,7 @@ }; partition@b0000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0xb0000 0x350000>; }; diff --git a/target/linux/ramips/dts/WNDR3700V5.dts b/target/linux/ramips/dts/WNDR3700V5.dts index 0f8af050e..92e7944f0 100644 --- a/target/linux/ramips/dts/WNDR3700V5.dts +++ b/target/linux/ramips/dts/WNDR3700V5.dts @@ -107,6 +107,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xee0000>; }; diff --git a/target/linux/ramips/dts/WR1200JS.dts b/target/linux/ramips/dts/WR1200JS.dts index e1f3247aa..950a516a0 100644 --- a/target/linux/ramips/dts/WR1200JS.dts +++ b/target/linux/ramips/dts/WR1200JS.dts @@ -101,6 +101,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xfb0000>; }; diff --git a/target/linux/ramips/dts/WR1201.dts b/target/linux/ramips/dts/WR1201.dts new file mode 100644 index 000000000..be2071749 --- /dev/null +++ b/target/linux/ramips/dts/WR1201.dts @@ -0,0 +1,159 @@ +/dts-v1/; + +#include "mt7621.dtsi" + +#include +#include + +/ { + compatible = "mtc,wr1201", "mediatek,mt7621-soc"; + model = "MTC Wireless Router WR1201"; + + aliases { + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x8000000>; + }; + + chosen { + bootargs = "console=ttyS0,57600"; + }; + + gpio-leds { + compatible = "gpio-leds"; + + led_power: power { + label = "wr1201:green:power"; + gpios = <&gpio0 24 GPIO_ACTIVE_LOW>; + }; + + usb { + label = "wr1201:green:usb"; + gpios = <&gpio0 22 GPIO_ACTIVE_LOW>; + trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>; + linux,default-trigger = "usbport"; + }; + + eth_link { + label = "wr1201:green:eth_link"; + gpios = <&gpio0 26 GPIO_ACTIVE_LOW>; + }; + + wps { + label = "wr1201:green:wps"; + gpios = <&gpio0 23 GPIO_ACTIVE_LOW>; + }; + }; + + gpio-keys-polled { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 25 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&spi0 { + status = "okay"; + + flash@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 = "Bootloader"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "Config"; + reg = <0x30000 0x10000>; + read-only; + }; + + factory: partition@40000 { + label = "Factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x50000 0xfa0000>; + }; + + partition@ff0000 { + label = "Second_Config"; + reg = <0xff0000 0x10000>; + read-only; + }; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&sdhci { + status = "okay"; +}; + +&pcie { + status = "okay"; +}; + +&pcie0 { + wifi@0,0 { + reg = <0x0000 0 0 0 0>; + mediatek,mtd-eeprom = <&factory 0x8000>; + ieee80211-freq-limit = <5000000 6000000>; + + led { + led-sources = <2>; + led-active-low; + }; + }; +}; + +&pcie1 { + wifi@0,0 { + reg = <0x0000 0 0 0 0>; + mediatek,mtd-eeprom = <&factory 0x0000>; + ieee80211-freq-limit = <2400000 2500000>; + + led { + led-sources = <2>; + led-active-low; + }; + }; +}; + + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "rgmii2"; + ralink,function = "gpio"; + }; + }; +}; diff --git a/target/linux/ramips/dts/WR512-3GN-4M.dts b/target/linux/ramips/dts/WR512-3GN-4M.dts index ba3834982..beba80550 100644 --- a/target/linux/ramips/dts/WR512-3GN-4M.dts +++ b/target/linux/ramips/dts/WR512-3GN-4M.dts @@ -36,6 +36,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3c8000>; }; diff --git a/target/linux/ramips/dts/WR512-3GN-8M.dts b/target/linux/ramips/dts/WR512-3GN-8M.dts index 77d625f9f..118c69a34 100644 --- a/target/linux/ramips/dts/WR512-3GN-8M.dts +++ b/target/linux/ramips/dts/WR512-3GN-8M.dts @@ -36,6 +36,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/WR6202.dts b/target/linux/ramips/dts/WR6202.dts index 915f63842..b1030f5ae 100644 --- a/target/linux/ramips/dts/WR6202.dts +++ b/target/linux/ramips/dts/WR6202.dts @@ -74,6 +74,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/WRC-1167GHBK2-S.dts b/target/linux/ramips/dts/WRC-1167GHBK2-S.dts index 93ec0ce8e..4f0427050 100644 --- a/target/linux/ramips/dts/WRC-1167GHBK2-S.dts +++ b/target/linux/ramips/dts/WRC-1167GHBK2-S.dts @@ -114,6 +114,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xf20000>; }; diff --git a/target/linux/ramips/dts/WRH-300CR.dts b/target/linux/ramips/dts/WRH-300CR.dts index c8e1d794e..828200b68 100644 --- a/target/linux/ramips/dts/WRH-300CR.dts +++ b/target/linux/ramips/dts/WRH-300CR.dts @@ -102,6 +102,7 @@ }; partition@210000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x210000 0xdf0000>; }; diff --git a/target/linux/ramips/dts/WRTNODE.dts b/target/linux/ramips/dts/WRTNODE.dts index 93b26c2a2..e4cc3c587 100644 --- a/target/linux/ramips/dts/WRTNODE.dts +++ b/target/linux/ramips/dts/WRTNODE.dts @@ -69,6 +69,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xfb0000>; }; diff --git a/target/linux/ramips/dts/WRTNODE2.dtsi b/target/linux/ramips/dts/WRTNODE2.dtsi index b5746ca48..6758d271f 100644 --- a/target/linux/ramips/dts/WRTNODE2.dtsi +++ b/target/linux/ramips/dts/WRTNODE2.dtsi @@ -55,6 +55,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x1fb0000>; }; diff --git a/target/linux/ramips/dts/WSR-1166.dts b/target/linux/ramips/dts/WSR-1166.dts index 3ab2e600d..bb0574535 100644 --- a/target/linux/ramips/dts/WSR-1166.dts +++ b/target/linux/ramips/dts/WSR-1166.dts @@ -152,6 +152,7 @@ }; partition@50000 { + compatible = "openwrt,trx"; label = "firmware"; reg = <0x50000 0xf90000>; }; diff --git a/target/linux/ramips/dts/WSR-600.dts b/target/linux/ramips/dts/WSR-600.dts index ca71819ed..7eb75b964 100644 --- a/target/linux/ramips/dts/WSR-600.dts +++ b/target/linux/ramips/dts/WSR-600.dts @@ -152,6 +152,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xfb0000>; }; diff --git a/target/linux/ramips/dts/WT1520-4M.dts b/target/linux/ramips/dts/WT1520-4M.dts index f9c8414ec..1f54efe42 100644 --- a/target/linux/ramips/dts/WT1520-4M.dts +++ b/target/linux/ramips/dts/WT1520-4M.dts @@ -39,6 +39,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/WT1520-8M.dts b/target/linux/ramips/dts/WT1520-8M.dts index fec5ec204..e238826aa 100644 --- a/target/linux/ramips/dts/WT1520-8M.dts +++ b/target/linux/ramips/dts/WT1520-8M.dts @@ -39,6 +39,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/WT3020-4M.dts b/target/linux/ramips/dts/WT3020-4M.dts index 88c76b49e..4bdc3bd6b 100644 --- a/target/linux/ramips/dts/WT3020-4M.dts +++ b/target/linux/ramips/dts/WT3020-4M.dts @@ -39,6 +39,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/WT3020-8M.dts b/target/linux/ramips/dts/WT3020-8M.dts index 7e75ad3a5..be429f0c2 100644 --- a/target/linux/ramips/dts/WT3020-8M.dts +++ b/target/linux/ramips/dts/WT3020-8M.dts @@ -47,6 +47,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/WZR-AGL300NH.dts b/target/linux/ramips/dts/WZR-AGL300NH.dts index fba465784..ba42d2591 100644 --- a/target/linux/ramips/dts/WZR-AGL300NH.dts +++ b/target/linux/ramips/dts/WZR-AGL300NH.dts @@ -48,6 +48,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/X5.dts b/target/linux/ramips/dts/X5.dts index 06d25bee7..2cb53facb 100644 --- a/target/linux/ramips/dts/X5.dts +++ b/target/linux/ramips/dts/X5.dts @@ -108,6 +108,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/X8.dts b/target/linux/ramips/dts/X8.dts index a6467862c..8edf4f703 100644 --- a/target/linux/ramips/dts/X8.dts +++ b/target/linux/ramips/dts/X8.dts @@ -69,6 +69,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/XDXRN502J.dts b/target/linux/ramips/dts/XDXRN502J.dts index 34f9b7ecc..7b33fcb3d 100644 --- a/target/linux/ramips/dts/XDXRN502J.dts +++ b/target/linux/ramips/dts/XDXRN502J.dts @@ -46,6 +46,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/Y1.dtsi b/target/linux/ramips/dts/Y1.dtsi index 560695ecb..9d171adbe 100644 --- a/target/linux/ramips/dts/Y1.dtsi +++ b/target/linux/ramips/dts/Y1.dtsi @@ -66,6 +66,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xfb0000>; }; diff --git a/target/linux/ramips/dts/YOUKU-YK1.dts b/target/linux/ramips/dts/YOUKU-YK1.dts index 0716b24ea..82540fb8d 100644 --- a/target/linux/ramips/dts/YOUKU-YK1.dts +++ b/target/linux/ramips/dts/YOUKU-YK1.dts @@ -97,6 +97,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x1fb0000>; }; diff --git a/target/linux/ramips/dts/ZBT-APE522II.dts b/target/linux/ramips/dts/ZBT-APE522II.dts index 79d76334e..231c1fd12 100644 --- a/target/linux/ramips/dts/ZBT-APE522II.dts +++ b/target/linux/ramips/dts/ZBT-APE522II.dts @@ -101,6 +101,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xf80000>; }; diff --git a/target/linux/ramips/dts/ZBT-CPE102.dts b/target/linux/ramips/dts/ZBT-CPE102.dts index 4da8644a9..fce33e075 100644 --- a/target/linux/ramips/dts/ZBT-CPE102.dts +++ b/target/linux/ramips/dts/ZBT-CPE102.dts @@ -94,6 +94,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x760000>; }; diff --git a/target/linux/ramips/dts/ZBT-WA05.dts b/target/linux/ramips/dts/ZBT-WA05.dts index e05ca55fc..417989468 100644 --- a/target/linux/ramips/dts/ZBT-WA05.dts +++ b/target/linux/ramips/dts/ZBT-WA05.dts @@ -97,6 +97,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x760000>; }; diff --git a/target/linux/ramips/dts/ZBT-WE1226.dts b/target/linux/ramips/dts/ZBT-WE1226.dts index 92d8e71fc..1a1a986eb 100644 --- a/target/linux/ramips/dts/ZBT-WE1226.dts +++ b/target/linux/ramips/dts/ZBT-WE1226.dts @@ -102,6 +102,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/ZBT-WE1326.dts b/target/linux/ramips/dts/ZBT-WE1326.dts index 09e7ba33b..8b1311480 100644 --- a/target/linux/ramips/dts/ZBT-WE1326.dts +++ b/target/linux/ramips/dts/ZBT-WE1326.dts @@ -72,6 +72,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xfb0000>; }; diff --git a/target/linux/ramips/dts/ZBT-WE2026.dts b/target/linux/ramips/dts/ZBT-WE2026.dts index 4a29ef6fa..30ed4f785 100644 --- a/target/linux/ramips/dts/ZBT-WE2026.dts +++ b/target/linux/ramips/dts/ZBT-WE2026.dts @@ -86,6 +86,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x760000>; }; diff --git a/target/linux/ramips/dts/ZBT-WE3526.dts b/target/linux/ramips/dts/ZBT-WE3526.dts index a5f8ce258..ed86249bc 100644 --- a/target/linux/ramips/dts/ZBT-WE3526.dts +++ b/target/linux/ramips/dts/ZBT-WE3526.dts @@ -73,6 +73,7 @@ }; firmware: partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xfb0000>; }; diff --git a/target/linux/ramips/dts/ZBT-WE826-16M.dts b/target/linux/ramips/dts/ZBT-WE826-16M.dts index c39425be2..c33a11ecb 100644 --- a/target/linux/ramips/dts/ZBT-WE826-16M.dts +++ b/target/linux/ramips/dts/ZBT-WE826-16M.dts @@ -39,6 +39,7 @@ }; firmware: partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xfb0000>; }; diff --git a/target/linux/ramips/dts/ZBT-WE826-32M.dts b/target/linux/ramips/dts/ZBT-WE826-32M.dts index 827af3769..9c8f3708d 100644 --- a/target/linux/ramips/dts/ZBT-WE826-32M.dts +++ b/target/linux/ramips/dts/ZBT-WE826-32M.dts @@ -39,6 +39,7 @@ }; firmware: partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x1fb0000>; }; diff --git a/target/linux/ramips/dts/ZBT-WG2626.dts b/target/linux/ramips/dts/ZBT-WG2626.dts index 4da8ae7d5..938a14455 100644 --- a/target/linux/ramips/dts/ZBT-WG2626.dts +++ b/target/linux/ramips/dts/ZBT-WG2626.dts @@ -89,6 +89,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xfb0000>; }; diff --git a/target/linux/ramips/dts/ZBT-WG3526.dtsi b/target/linux/ramips/dts/ZBT-WG3526.dtsi index 2a73b8de8..afe99e867 100644 --- a/target/linux/ramips/dts/ZBT-WG3526.dtsi +++ b/target/linux/ramips/dts/ZBT-WG3526.dtsi @@ -86,6 +86,7 @@ }; firmware: partition@50000 { + compatible = "denx,uimage"; label = "firmware"; }; }; diff --git a/target/linux/ramips/dts/ZBT-WR8305RT.dts b/target/linux/ramips/dts/ZBT-WR8305RT.dts index c9a3676ed..eafe778cf 100644 --- a/target/linux/ramips/dts/ZBT-WR8305RT.dts +++ b/target/linux/ramips/dts/ZBT-WR8305RT.dts @@ -89,6 +89,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/ZL5900V2.dts b/target/linux/ramips/dts/ZL5900V2.dts index 3f85af00a..026a524b3 100644 --- a/target/linux/ramips/dts/ZL5900V2.dts +++ b/target/linux/ramips/dts/ZL5900V2.dts @@ -74,6 +74,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/ZTE-Q7.dts b/target/linux/ramips/dts/ZTE-Q7.dts index 3d28d76a1..51f912244 100644 --- a/target/linux/ramips/dts/ZTE-Q7.dts +++ b/target/linux/ramips/dts/ZTE-Q7.dts @@ -82,6 +82,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/elecom_wrc-gst.dtsi b/target/linux/ramips/dts/elecom_wrc-gst.dtsi index 92f033c2c..628f0c088 100644 --- a/target/linux/ramips/dts/elecom_wrc-gst.dtsi +++ b/target/linux/ramips/dts/elecom_wrc-gst.dtsi @@ -129,6 +129,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xb00000>; }; diff --git a/target/linux/ramips/dts/ki_rb.dts b/target/linux/ramips/dts/ki_rb.dts index 5e47a5540..818b4f8a0 100644 --- a/target/linux/ramips/dts/ki_rb.dts +++ b/target/linux/ramips/dts/ki_rb.dts @@ -120,6 +120,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xe90000>; }; diff --git a/target/linux/ramips/dts/kn.dts b/target/linux/ramips/dts/kn.dts index 8f00e0edb..3619aae60 100644 --- a/target/linux/ramips/dts/kn.dts +++ b/target/linux/ramips/dts/kn.dts @@ -46,6 +46,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x3b0000>; }; diff --git a/target/linux/ramips/dts/kn_rc.dts b/target/linux/ramips/dts/kn_rc.dts index cdb6f032c..90f740c13 100644 --- a/target/linux/ramips/dts/kn_rc.dts +++ b/target/linux/ramips/dts/kn_rc.dts @@ -117,6 +117,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/kn_rf.dts b/target/linux/ramips/dts/kn_rf.dts index 0f40d990a..aaa98e8bc 100644 --- a/target/linux/ramips/dts/kn_rf.dts +++ b/target/linux/ramips/dts/kn_rf.dts @@ -117,6 +117,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/kng_rc.dts b/target/linux/ramips/dts/kng_rc.dts index 0655f3734..e8b152226 100644 --- a/target/linux/ramips/dts/kng_rc.dts +++ b/target/linux/ramips/dts/kng_rc.dts @@ -121,6 +121,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0xfb0000>; }; diff --git a/target/linux/ramips/dts/mt7620a.dtsi b/target/linux/ramips/dts/mt7620a.dtsi index 2d6ec4937..150c0e14c 100644 --- a/target/linux/ramips/dts/mt7620a.dtsi +++ b/target/linux/ramips/dts/mt7620a.dtsi @@ -334,8 +334,8 @@ }; }; - spi_pins: spi { - spi { + spi_pins: spi_pins { + spi_pins { ralink,group = "spi"; ralink,function = "spi"; }; @@ -348,8 +348,8 @@ }; }; - i2c_pins: i2c { - i2c { + i2c_pins: i2c_pins { + i2c_pins { ralink,group = "i2c"; ralink,function = "i2c"; }; diff --git a/target/linux/ramips/dts/mt7620n.dtsi b/target/linux/ramips/dts/mt7620n.dtsi index 7fa15a6ce..54370a0c7 100644 --- a/target/linux/ramips/dts/mt7620n.dtsi +++ b/target/linux/ramips/dts/mt7620n.dtsi @@ -255,8 +255,8 @@ }; }; - spi_pins: spi { - spi { + spi_pins: spi_pins { + spi_pins { ralink,group = "spi"; ralink,function = "spi"; }; @@ -269,8 +269,8 @@ }; }; - i2c_pins: i2c { - i2c { + i2c_pins: i2c_pins { + i2c_pins { ralink,group = "i2c"; ralink,function = "i2c"; }; diff --git a/target/linux/ramips/dts/mt7621.dtsi b/target/linux/ramips/dts/mt7621.dtsi index 3c610e49d..be4d8eeff 100644 --- a/target/linux/ramips/dts/mt7621.dtsi +++ b/target/linux/ramips/dts/mt7621.dtsi @@ -239,15 +239,15 @@ state_default: pinctrl0 { }; - i2c_pins: i2c { - i2c { + i2c_pins: i2c_pins { + i2c_pins { ralink,group = "i2c"; ralink,function = "i2c"; }; }; - spi_pins: spi { - spi { + spi_pins: spi_pins { + spi_pins { ralink,group = "spi"; ralink,function = "spi"; }; diff --git a/target/linux/ramips/dts/mt7628an.dtsi b/target/linux/ramips/dts/mt7628an.dtsi index b8a8bb910..91f715c24 100644 --- a/target/linux/ramips/dts/mt7628an.dtsi +++ b/target/linux/ramips/dts/mt7628an.dtsi @@ -281,8 +281,8 @@ state_default: pinctrl0 { }; - spi_pins: spi { - spi { + spi_pins: spi_pins { + spi_pins { ralink,group = "spi"; ralink,function = "spi"; }; @@ -295,8 +295,8 @@ }; }; - i2c_pins: i2c { - i2c { + i2c_pins: i2c_pins { + i2c_pins { ralink,group = "i2c"; ralink,function = "i2c"; }; diff --git a/target/linux/ramips/dts/rt2880.dtsi b/target/linux/ramips/dts/rt2880.dtsi index c163657ed..762fe49e7 100644 --- a/target/linux/ramips/dts/rt2880.dtsi +++ b/target/linux/ramips/dts/rt2880.dtsi @@ -158,15 +158,15 @@ }; }; - i2c_pins: i2c { - i2c { + i2c_pins: i2c_pins { + i2c_pins { ralink,group = "i2c"; ralink,function = "i2c"; }; }; - spi_pins: spi { - spi { + spi_pins: spi_pins { + spi_pins { ralink,group = "spi"; ralink,function = "spi"; }; diff --git a/target/linux/ramips/dts/rt3050.dtsi b/target/linux/ramips/dts/rt3050.dtsi index 40b1b2126..84ddb061e 100644 --- a/target/linux/ramips/dts/rt3050.dtsi +++ b/target/linux/ramips/dts/rt3050.dtsi @@ -250,15 +250,15 @@ }; }; - i2c_pins: i2c { - i2c { + i2c_pins: i2c_pins { + i2c_pins { ralink,group = "i2c"; ralink,function = "i2c"; }; }; - spi_pins: spi { - spi { + spi_pins: spi_pins { + spi_pins { ralink,group = "spi"; ralink,function = "spi"; }; diff --git a/target/linux/ramips/dts/rt3352.dtsi b/target/linux/ramips/dts/rt3352.dtsi index 547de2cb4..548a6bb84 100644 --- a/target/linux/ramips/dts/rt3352.dtsi +++ b/target/linux/ramips/dts/rt3352.dtsi @@ -259,8 +259,8 @@ state_default: pinctrl0 { }; - i2c_pins: i2c { - i2c { + i2c_pins: i2c_pins { + i2c_pins { ralink,group = "i2c"; ralink,function = "i2c"; }; @@ -280,8 +280,8 @@ }; }; - spi_pins: spi { - spi { + spi_pins: spi_pins { + spi_pins { ralink,group = "spi"; ralink,function = "spi"; }; diff --git a/target/linux/ramips/dts/rt3883.dtsi b/target/linux/ramips/dts/rt3883.dtsi index 599b3723e..fffac1691 100644 --- a/target/linux/ramips/dts/rt3883.dtsi +++ b/target/linux/ramips/dts/rt3883.dtsi @@ -279,15 +279,15 @@ state_default: pinctrl0 { }; - i2c_pins: i2c { - i2c { + i2c_pins: i2c_pins { + i2c_pins { ralink,group = "i2c"; ralink,function = "i2c"; }; }; - spi_pins: spi { - spi { + spi_pins: spi_pins { + spi_pins { ralink,group = "spi"; ralink,function = "spi"; }; diff --git a/target/linux/ramips/dts/rt5350.dtsi b/target/linux/ramips/dts/rt5350.dtsi index 1cc35f12a..10ccc52cd 100644 --- a/target/linux/ramips/dts/rt5350.dtsi +++ b/target/linux/ramips/dts/rt5350.dtsi @@ -273,15 +273,15 @@ state_default: pinctrl0 { }; - i2c_pins: i2c { - i2c { + i2c_pins: i2c_pins { + i2c_pins { ralink,group = "i2c"; ralink,function = "i2c"; }; }; - spi_pins: spi { - spi { + spi_pins: spi_pins { + spi_pins { ralink,group = "spi"; ralink,function = "spi"; }; diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile index 9cf64361a..5718558e9 100644 --- a/target/linux/ramips/image/Makefile +++ b/target/linux/ramips/image/Makefile @@ -7,21 +7,6 @@ include $(TOPDIR)/rules.mk include $(INCLUDE_DIR)/image.mk -define imgname -$(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1) -endef - -define sysupname -$(call imgname,$(1),$(2))-sysupgrade.bin -endef - -VMLINUX:=$(IMG_PREFIX)-vmlinux -UIMAGE:=$(IMG_PREFIX)-uImage - -define Image/Build/Initramfs - $(call Image/Build/Profile/$(PROFILE),initramfs) -endef - DEVICE_VARS += DTS IMAGE_SIZE NETGEAR_BOARD_ID NETGEAR_HW_ID DEVICE_VARS += BUFFALO_TAG_PLATFORM BUFFALO_TAG_VERSION BUFFALO_TAG_MINOR @@ -74,24 +59,16 @@ define Build/loader-kernel endef define Build/relocate-kernel + rm -rf $@.relocate + $(CP) ../../generic/image/relocate $@.relocate + $(MAKE) -C $@.relocate KERNEL_ADDR=$(KERNEL_LOADADDR) CROSS_COMPILE=$(TARGET_CROSS) ( \ - dd if=$(KDIR)/loader.bin bs=32 conv=sync && \ + dd if=$@.relocate/loader.bin bs=32 conv=sync && \ perl -e '@s = stat("$@"); print pack("V", @s[7])' && \ cat $@ \ ) > $@.new mv $@.new $@ -endef - -define MkCombineduImage - $(call PatchKernelLzma,$(2),$(3)) - if [ `stat -c%s "$(KDIR)/vmlinux-$(2).bin.lzma"` -gt `expr $(4) - 64` ]; then \ - echo "Warning: $(KDIR)/vmlinux-$(2).bin.lzma is too big" >&2; \ - else if [ `stat -c%s "$(KDIR)/root.$(1)"` -gt $(5) ]; then \ - echo "Warning: $(KDIR)/root.$(1) is too big" >&2; \ - else \ - ( dd if=$(KDIR)/vmlinux-$(2).bin.lzma bs=`expr $(4) - 64` conv=sync ; dd if=$(KDIR)/root.$(1) ) > $(KDIR)/vmlinux-$(2).bin.lzma.combined ; \ - fi ; fi - $(call MkImage,lzma,$(KDIR)/vmlinux-$(2).bin.lzma.combined,$(call sysupname,$(1),$(2)),$(6)) + rm -rf $@.relocate endef define Build/umedia-header @@ -146,93 +123,17 @@ define Build/zyimage $(STAGING_DIR_HOST)/bin/zyimage $(1) $@ endef -# -# The real magic happens inside these templates -# -# $(1), compression method -# $(2), filename of image data -# $(3), output filename -define MkImage - $(eval imagename=$(if $(4),$(4),MIPS $(VERSION_DIST) Linux-$(LINUX_VERSION))) - -mkimage -A mips -O linux -T kernel -C $(1) -a $(loadaddr-y) -e $(loadaddr-y) \ - -n "$(imagename)" \ - -d $(2) $(3) -endef - -define CompressLzma - $(STAGING_DIR_HOST)/bin/lzma e $(1) -lc1 -lp2 -pb2 $(2) -endef - -define MkImageSysupgrade/squashfs - $(eval output_name=$(IMG_PREFIX)-$(2)-$(1)-$(if $(4),$(4),sysupgrade).bin) - cat $(KDIR)/vmlinux-$(2).uImage $(KDIR)/root.$(1) > $(KDIR)/$(output_name) - $(call prepare_generic_squashfs,$(KDIR)/$(output_name)) - if [ `stat -c%s "$(KDIR)/$(output_name)"` -gt $(3) ]; then \ - echo "Warning: $(KDIR)/$(output_name) is too big" >&2; \ - else \ - $(CP) $(KDIR)/$(output_name) $(BIN_DIR)/$(output_name); \ - fi -endef - -# $(1), lowercase board name like "mt7620a_v22sg" -# $(2), DTS filename without .dts extension -# $(3), optional filename suffix, e.g. "-initramfs" -define PatchKernelLzmaDtb - cp $(KDIR)/vmlinux$(3) $(KDIR)/vmlinux-$(1)$(3) - $(call Image/BuildDTB,../dts/$(2).dts,$(KDIR)/$(2).dtb) - $(STAGING_DIR_HOST)/bin/patch-dtb $(KDIR)/vmlinux-$(1)$(3) $(KDIR)/$(2).dtb - $(call CompressLzma,$(KDIR)/vmlinux-$(1)$(3),$(KDIR)/vmlinux-$(1)$(3).bin.lzma) -endef - -# $(1), lowercase board name -# $(2), DTS filename without .dts extension -# $(3), ih_name field of uImage header -# $(4), optional filename suffix, e.g. "-initramfs" -define MkImageLzmaDtb - $(call PatchKernelLzmaDtb,$(1),$(2),$(4)) - $(call MkImage,lzma,$(KDIR)/vmlinux-$(1)$(4).bin.lzma,$(KDIR)/vmlinux-$(1)$(4).uImage,$(3)) -endef - -# $(1), Rootfs type, e.g. squashfs -# $(2), lowercase board name -# $(3), DTS filename without .dts extension -# $(4), maximum size of sysupgrade image -# $(5), uImage header's ih_name field -define BuildFirmware/OF - $(call MkImageLzmaDtb,$(2),$(3),$(5)) - $(call MkImageSysupgrade/$(1),$(1),$(2),$(4),$(6)) -endef - -# $(1), squashfs/initramfs -# $(2), lowercase board name -# $(3), DTS filename without .dts extension -# $(4), ih_name field of uImage header -define BuildFirmware/OF/initramfs - $(call MkImageLzmaDtb,$(2),$(3),$(4),-initramfs) - $(CP) $(KDIR)/vmlinux-$(2)-initramfs.uImage $(call imgname,$(1),$(2))-uImage.bin -endef - -# Build images for default ralink layout for 4MB flash -# kernel + roots = 0x3b0000 -# $(1) = squashfs/initramfs -# $(2) = lowercase board name -# $(3) = dts file ralink_default_fw_size_4M=3866624 -BuildFirmware/Default4M/squashfs=$(call BuildFirmware/OF,$(1),$(2),$(3),$(ralink_default_fw_size_4M),$(4)) -BuildFirmware/Default4M/initramfs=$(call BuildFirmware/OF/initramfs,$(1),$(2),$(3),$(4)) - ralink_default_fw_size_8M=8060928 ralink_default_fw_size_16M=16121856 ralink_default_fw_size_32M=33226752 - ifeq ($(SUBTARGET),rt288x) include rt288x.mk endif ifeq ($(SUBTARGET),rt305x) include rt305x.mk -include rt305x-legacy.mk endif ifeq ($(SUBTARGET),rt3883) @@ -251,37 +152,4 @@ ifeq ($(SUBTARGET),mt76x8) include mt76x8.mk endif -ifdef LEGACY_DEVICES -# -# Generic Targets - only needed for legacy image building code -# -define Image/BuildKernel - cp $(KDIR)/vmlinux.elf $(BIN_DIR)/$(VMLINUX).elf - cp $(KDIR)/vmlinux $(BIN_DIR)/$(VMLINUX).bin - $(call CompressLzma,$(KDIR)/vmlinux,$(KDIR)/vmlinux.bin.lzma) - $(call MkImage,lzma,$(KDIR)/vmlinux.bin.lzma,$(KDIR)/uImage.lzma) - cp $(KDIR)/uImage.lzma $(BIN_DIR)/$(UIMAGE).bin -endef - -define Image/BuildKernel/Initramfs - cp $(KDIR)/vmlinux-initramfs.elf $(BIN_DIR)/$(VMLINUX)-initramfs.elf - cp $(KDIR)/vmlinux-initramfs $(BIN_DIR)/$(VMLINUX)-initramfs.bin - $(call CompressLzma,$(KDIR)/vmlinux-initramfs,$(KDIR)/vmlinux-initramfs.bin.lzma) - $(call MkImage,lzma,$(KDIR)/vmlinux-initramfs.bin.lzma,$(KDIR)/uImage-initramfs.lzma) - cp $(KDIR)/uImage-initramfs.lzma $(BIN_DIR)/$(UIMAGE)-initramfs.bin - $(call Image/Build/Initramfs) -endef - -define Image/Build - $(call Image/Build/$(1)) - dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/$(IMG_PREFIX)-root.$(1) bs=128k conv=sync -endef - -define Image/Build/Profile - $(if $(CONFIG_TARGET_ROOTFS_INITRAMFS),$(call Image/Build/Profile/$(1),initramfs)) - $(call Image/Build/Profile/$(1),$(2)) -endef - -endif - $(eval $(call BuildImage)) diff --git a/target/linux/ramips/image/mt7620.mk b/target/linux/ramips/image/mt7620.mk index a7aeaf130..2f733b2ed 100644 --- a/target/linux/ramips/image/mt7620.mk +++ b/target/linux/ramips/image/mt7620.mk @@ -28,7 +28,7 @@ define Device/alfa-network_ac1200rm DTS := AC1200RM IMAGE_SIZE := 16064k DEVICE_TITLE := ALFA Network AC1200RM - DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci uboot-envtools + DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci uboot-envtools endef TARGET_DEVICES += alfa-network_ac1200rm @@ -51,6 +51,7 @@ define Device/ArcherC20i IMAGES += factory.bin DEVICE_PACKAGES := kmod-mt76x0e DEVICE_TITLE := TP-Link ArcherC20i + DEVICE_PACKAGES := kmod-mt76x0e kmod-usb2 kmod-usb-ohci endef TARGET_DEVICES += ArcherC20i @@ -65,6 +66,7 @@ define Device/ArcherC50v1 IMAGE/factory-us.bin := tplink-v2-image -e -w 0 IMAGE/factory-eu.bin := tplink-v2-image -e -w 2 DEVICE_TITLE := TP-Link ArcherC50v1 + DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci endef TARGET_DEVICES += ArcherC50v1 @@ -75,7 +77,7 @@ define Device/ArcherMR200 TPLINK_FLASHLAYOUT := 8MLmtk TPLINK_HWID := 0xd7500001 TPLINK_HWREV := 0x4a - DEVICE_PACKAGES := kmod-usb2 kmod-usb-net kmod-usb-net-rndis kmod-usb-serial kmod-usb-serial-option adb-enablemodem + DEVICE_PACKAGES := kmod-mt76x0e kmod-usb2 kmod-usb-net kmod-usb-net-rndis kmod-usb-serial kmod-usb-serial-option adb-enablemodem DEVICE_TITLE := TP-Link ArcherMR200 endef TARGET_DEVICES += ArcherMR200 @@ -84,7 +86,7 @@ define Device/bdcom_wap2100-sk DTS := BDCOM-WAP2100-SK IMAGE_SIZE := 15808k DEVICE_TITLE := BDCOM WAP2100-SK (ZTE ZXECS EBG3130) - DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76 kmod-sdhci-mt7620 kmod-usb-ledtrig-usbport + DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76x2 kmod-mt76x0e kmod-sdhci-mt7620 kmod-usb-ledtrig-usbport endef TARGET_DEVICES += bdcom_wap2100-sk @@ -122,7 +124,7 @@ define Device/d240 DTS := D240 IMAGE_SIZE := $(ralink_default_fw_size_16M) DEVICE_TITLE := Sanlinking Technologies D240 - DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76-core kmod-mt76x2 kmod-sdhci-mt7620 + DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci kmod-sdhci-mt7620 endef TARGET_DEVICES += d240 @@ -148,7 +150,7 @@ define Device/dch-m225 seama-seal -m "signature=wapn22_dlink.2013gui_dap1320b" | \ check-size $$$$(IMAGE_SIZE) DEVICE_TITLE := D-Link DCH-M225 - DEVICE_PACKAGES := kmod-mt76 kmod-sound-core kmod-sound-mt7620 kmod-i2c-ralink + DEVICE_PACKAGES := kmod-sound-core kmod-sound-mt7620 kmod-i2c-ralink endef TARGET_DEVICES += dch-m225 @@ -163,7 +165,7 @@ TARGET_DEVICES += dir-810l define Device/dlink_dwr-116-a1 DTS := DWR-116-A1 DEVICE_TITLE := D-Link DWR-116 A1/A2 - DEVICE_PACKAGES := kmod-usb2 jboot-tools + DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci jboot-tools DLINK_ROM_ID := DLK6E3803001 DLINK_FAMILY_MEMBER := 0x6E38 DLINK_FIRMWARE_SIZE := 0x7E0000 @@ -174,10 +176,24 @@ define Device/dlink_dwr-116-a1 endef TARGET_DEVICES += dlink_dwr-116-a1 +define Device/dlink_dwr-118-a1 + DTS := DWR-118-A1 + DEVICE_TITLE := D-Link DWR-118 A1 + DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci jboot-tools kmod-mt76x0e + DLINK_ROM_ID := DLK6E3811001 + DLINK_FAMILY_MEMBER := 0x6E38 + DLINK_FIRMWARE_SIZE := 0xFE0000 + KERNEL := $(KERNEL_DTB) + IMAGES += factory.bin + IMAGE/sysupgrade.bin := mkdlinkfw | pad-rootfs | append-metadata + IMAGE/factory.bin := mkdlinkfw | pad-rootfs | mkdlinkfw-factory +endef +TARGET_DEVICES += dlink_dwr-118-a1 + define Device/dlink_dwr-118-a2 DTS := DWR-118-A2 DEVICE_TITLE := D-Link DWR-118 A2 - DEVICE_PACKAGES := kmod-usb2 jboot-tools kmod-mt76 + DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci jboot-tools DLINK_ROM_ID := DLK6E3814001 DLINK_FAMILY_MEMBER := 0x6E38 DLINK_FIRMWARE_SIZE := 0xFE0000 @@ -231,7 +247,6 @@ define Device/ex2700 KERNEL := $(KERNEL_DTB) | uImage lzma | pad-offset 64k 64 | append-uImage-fakehdr filesystem IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ netgear-dni - DEVICE_PACKAGES := -kmod-mt76 -kmod-mt7603 -kmod-mt76x2 -kmod-mt76-core DEVICE_TITLE := Netgear EX2700 endef TARGET_DEVICES += ex2700 @@ -243,7 +258,7 @@ define Device/ex3700-ex3800 IMAGE_SIZE := 7744k IMAGES += factory.chk IMAGE/factory.chk := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | netgear-chk - DEVICE_PACKAGES := -kmod-mt76 kmod-mt76x2 + DEVICE_PACKAGES := kmod-mt76x2 DEVICE_TITLE := Netgear EX3700/EX3800 SUPPORTED_DEVICES := ex3700 endef @@ -253,7 +268,7 @@ define Device/gl-mt300a DTS := GL-MT300A IMAGE_SIZE := $(ralink_default_fw_size_16M) DEVICE_TITLE := GL-Inet GL-MT300A - DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76 + DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci endef TARGET_DEVICES += gl-mt300a @@ -261,6 +276,7 @@ define Device/u25awf-h1 DTS := U25AWF-H1 IMAGE_SIZE := 16064k DEVICE_TITLE := Kimax U25AWF-H1 + DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci endef TARGET_DEVICES += u25awf-h1 @@ -268,7 +284,7 @@ define Device/gl-mt300n DTS := GL-MT300N IMAGE_SIZE := $(ralink_default_fw_size_16M) DEVICE_TITLE := GL-Inet GL-MT300N - DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76 + DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci endef TARGET_DEVICES += gl-mt300n @@ -276,31 +292,31 @@ define Device/gl-mt750 DTS := GL-MT750 IMAGE_SIZE := $(ralink_default_fw_size_16M) DEVICE_TITLE := GL-Inet GL-MT750 - DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76 + DEVICE_PACKAGES := kmod-mt76x0e kmod-usb2 kmod-usb-ohci endef TARGET_DEVICES += gl-mt750 define Device/hc5661 DTS := HC5661 - IMAGE_SIZE := $(ralink_default_fw_size_16M) + IMAGE_SIZE := 15872k DEVICE_TITLE := HiWiFi HC5661 - DEVICE_PACKAGES := kmod-usb2 kmod-sdhci-mt7620 kmod-usb-ledtrig-usbport + DEVICE_PACKAGES := kmod-sdhci-mt7620 endef TARGET_DEVICES += hc5661 define Device/hc5761 DTS := HC5761 - IMAGE_SIZE := $(ralink_default_fw_size_16M) + IMAGE_SIZE := 15872k DEVICE_TITLE := HiWiFi HC5761 - DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-sdhci-mt7620 kmod-usb-ledtrig-usbport + DEVICE_PACKAGES := kmod-mt76x0e kmod-usb2 kmod-usb-ohci kmod-sdhci-mt7620 kmod-usb-ledtrig-usbport endef TARGET_DEVICES += hc5761 define Device/hc5861 DTS := HC5861 - IMAGE_SIZE := $(ralink_default_fw_size_16M) + IMAGE_SIZE := 15872k DEVICE_TITLE := HiWiFi HC5861 - DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-sdhci-mt7620 kmod-usb-ledtrig-usbport + DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci kmod-sdhci-mt7620 kmod-usb-ledtrig-usbport endef TARGET_DEVICES += hc5861 @@ -308,6 +324,7 @@ define Device/kimax_u35wf DTS := U35WF IMAGE_SIZE := 16064k DEVICE_TITLE := Kimax U35WF + DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci endef TARGET_DEVICES += kimax_u35wf @@ -349,6 +366,7 @@ define Device/microwrt DTS := MicroWRT IMAGE_SIZE := 16128k DEVICE_TITLE := Microduino MicroWRT + DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci endef TARGET_DEVICES += microwrt @@ -362,8 +380,7 @@ define Device/lava_lr-25g001 IMAGES += factory.bin IMAGE/sysupgrade.bin := mkdlinkfw | pad-rootfs | append-metadata IMAGE/factory.bin := mkdlinkfw | pad-rootfs | mkdlinkfw-factory - DEVICE_PACKAGES := jboot-tools kmod-usb2 kmod-mt76 kmod-mt76x0-common \ - kmod-mt76x0e + DEVICE_PACKAGES := jboot-tools kmod-usb2 kmod-usb-ohci kmod-mt76x0e endef TARGET_DEVICES += lava_lr-25g001 @@ -371,7 +388,7 @@ define Device/miwifi-mini DTS := MIWIFI-MINI IMAGE_SIZE := $(ralink_default_fw_size_16M) DEVICE_TITLE := Xiaomi MiWiFi Mini - DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci + DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci endef TARGET_DEVICES += miwifi-mini @@ -379,6 +396,7 @@ define Device/mlw221 DTS := MLW221 IMAGE_SIZE := $(ralink_default_fw_size_16M) DEVICE_TITLE := Kingston MLW221 + DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci endef TARGET_DEVICES += mlw221 @@ -386,6 +404,7 @@ define Device/mlwg2 DTS := MLWG2 IMAGE_SIZE := $(ralink_default_fw_size_16M) DEVICE_TITLE := Kingston MLWG2 + DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci endef TARGET_DEVICES += mlwg2 @@ -419,7 +438,7 @@ TARGET_DEVICES += mt7620a_v22sg define Device/mzk-750dhp DTS := MZK-750DHP DEVICE_TITLE := Planex MZK-750DHP - DEVICE_PACKAGES := kmod-mt76 + DEVICE_PACKAGES := kmod-mt76x0e endef TARGET_DEVICES += mzk-750dhp @@ -432,7 +451,7 @@ TARGET_DEVICES += mzk-ex300np define Device/mzk-ex750np DTS := MZK-EX750NP DEVICE_TITLE := Planex MZK-EX750NP - DEVICE_PACKAGES := kmod-mt76 + DEVICE_PACKAGES := kmod-mt76x2 endef TARGET_DEVICES += mzk-ex750np @@ -440,6 +459,7 @@ define Device/na930 DTS := NA930 IMAGE_SIZE := 20m DEVICE_TITLE := Sercomm NA930 + DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci endef TARGET_DEVICES += na930 @@ -447,13 +467,14 @@ define Device/oy-0001 DTS := OY-0001 IMAGE_SIZE := $(ralink_default_fw_size_16M) DEVICE_TITLE := Oh Yeah OY-0001 + DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci endef TARGET_DEVICES += oy-0001 define Device/psg1208 DTS := PSG1208 DEVICE_TITLE := Phicomm PSG1208 - DEVICE_PACKAGES := kmod-mt76 + DEVICE_PACKAGES := kmod-mt76x2 endef TARGET_DEVICES += psg1208 @@ -496,6 +517,7 @@ TARGET_DEVICES += rt-n12p define Device/rt-n14u DTS := RT-N14U DEVICE_TITLE := Asus RT-N14u + DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci endef TARGET_DEVICES += rt-n14u @@ -503,14 +525,14 @@ define Device/rt-ac51u DTS := RT-AC51U IMAGE_SIZE := $(ralink_default_fw_size_16M) DEVICE_TITLE := Asus RT-AC51U - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ehci kmod-usb-ledtrig-usbport + DEVICE_PACKAGES := kmod-mt76x0e kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport endef TARGET_DEVICES += rt-ac51u define Device/tiny-ac DTS := TINY-AC DEVICE_TITLE := Dovado Tiny AC - DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci + DEVICE_PACKAGES := kmod-mt76x0e kmod-usb2 kmod-usb-ohci endef TARGET_DEVICES += tiny-ac @@ -522,7 +544,7 @@ define Device/edimax_br-6478ac-v2 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | \ edimax-header -s CSYS -m RN68 -f 0x70000 -S 0x01100000 | pad-rootfs | \ append-metadata | check-size $$$$(IMAGE_SIZE) - DEVICE_PACKAGES := kmod-mt76 kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport + DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport endef TARGET_DEVICES += edimax_br-6478ac-v2 @@ -534,7 +556,7 @@ define Device/tplink_c2-v1 TPLINK_HWREV := 50 IMAGES += factory.bin DEVICE_TITLE := TP-Link Archer C2 v1 - DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport kmod-switch-rtl8366-smi kmod-switch-rtl8367b + DEVICE_PACKAGES := kmod-mt76x0e kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport kmod-switch-rtl8366-smi kmod-switch-rtl8367b endef TARGET_DEVICES += tplink_c2-v1 @@ -547,7 +569,7 @@ define Device/tplink_c20-v1 TPLINK_HWREVADD := 0x1 IMAGES += factory.bin DEVICE_TITLE := TP-Link ArcherC20 v1 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport + DEVICE_PACKAGES := kmod-mt76x0e kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport endef TARGET_DEVICES += tplink_c20-v1 @@ -563,7 +585,7 @@ define Device/ravpower_wd03 DTS := WD03 IMAGE_SIZE := $(ralink_default_fw_size_8M) DEVICE_TITLE := Ravpower WD03 - DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76 kmod-usb-ehci + DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci endef TARGET_DEVICES += ravpower_wd03 @@ -571,6 +593,7 @@ define Device/whr-1166d DTS := WHR-1166D IMAGE_SIZE := 15040k DEVICE_TITLE := Buffalo WHR-1166D + DEVICE_PACKAGES := kmod-mt76x2 endef TARGET_DEVICES += whr-1166d @@ -622,6 +645,7 @@ define Device/wrtnode DTS := WRTNODE IMAGE_SIZE := $(ralink_default_fw_size_16M) DEVICE_TITLE := WRTNode + DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci endef TARGET_DEVICES += wrtnode @@ -652,6 +676,7 @@ define Device/y1 DTS := Y1 IMAGE_SIZE := $(ralink_default_fw_size_16M) DEVICE_TITLE := Lenovo Y1 + DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci endef TARGET_DEVICES += y1 @@ -659,6 +684,7 @@ define Device/y1s DTS := Y1S IMAGE_SIZE := $(ralink_default_fw_size_16M) DEVICE_TITLE := Lenovo Y1S + DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci endef TARGET_DEVICES += y1s @@ -675,14 +701,14 @@ define Device/we1026-5g-16m IMAGE_SIZE := 16777216 SUPPORTED_DEVICES += we1026-5g-16m DEVICE_TITLE := Zbtlink ZBT-WE1026-5G (16M) - DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76 kmod-sdhci-mt7620 + DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci kmod-sdhci-mt7620 endef TARGET_DEVICES += we1026-5g-16m define Device/zbt-ape522ii DTS := ZBT-APE522II DEVICE_TITLE := Zbtlink ZBT-APE522II - DEVICE_PACKAGES := kmod-mt76 + DEVICE_PACKAGES := kmod-mt76x2 endef TARGET_DEVICES += zbt-ape522ii @@ -696,6 +722,7 @@ TARGET_DEVICES += zbt-cpe102 define Device/zbt-wa05 DTS := ZBT-WA05 DEVICE_TITLE := Zbtlink ZBT-WA05 + DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci endef TARGET_DEVICES += zbt-wa05 @@ -710,7 +737,7 @@ define Device/zbt-we826-16M IMAGE_SIZE := $(ralink_default_fw_size_16M) SUPPORTED_DEVICES += zbt-we826 DEVICE_TITLE := Zbtlink ZBT-WE826 (16M) - DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76 kmod-sdhci-mt7620 + DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci kmod-sdhci-mt7620 endef TARGET_DEVICES += zbt-we826-16M @@ -718,18 +745,20 @@ define Device/zbt-we826-32M DTS := ZBT-WE826-32M IMAGE_SIZE := $(ralink_default_fw_size_32M) DEVICE_TITLE := Zbtlink ZBT-WE826 (32M) - DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76 kmod-sdhci-mt7620 + DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci kmod-sdhci-mt7620 endef TARGET_DEVICES += zbt-we826-32M define Device/zbt-wr8305rt DTS := ZBT-WR8305RT DEVICE_TITLE := Zbtlink ZBT-WR8305RT + DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci endef TARGET_DEVICES += zbt-wr8305rt define Device/zte-q7 DTS := ZTE-Q7 DEVICE_TITLE := ZTE Q7 + DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci endef TARGET_DEVICES += zte-q7 diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk index 47ff85f24..d4c9a100e 100644 --- a/target/linux/ramips/image/mt7621.mk +++ b/target/linux/ramips/image/mt7621.mk @@ -47,6 +47,19 @@ define Build/iodata-factory fi endef +# The OEM webinterface expects an kernel with initramfs which has the uImage +# header field ih_name. +# We don't wan't to set the header name field for the kernel include in the +# sysupgrade image as well, as this image shouldn't be accepted by the OEM +# webinterface. It will soft-brick the board. +define Build/wr1201-factory-header + mkimage -A $(LINUX_KARCH) \ + -O linux -T kernel \ + -C lzma -a $(KERNEL_LOADADDR) -e $(if $(KERNEL_ENTRY),$(KERNEL_ENTRY),$(KERNEL_LOADADDR)) \ + -n 'WR1201_8_128' -d $@ $@.new + mv $@.new $@ +endef + define Build/ubnt-erx-factory-image if [ -e $(KDIR)/tmp/$(KERNEL_INITRAMFS_IMAGE) -a "$$(stat -c%s $@)" -lt "$(KERNEL_SIZE)" ]; then \ echo '21001:6' > $(1).compat; \ @@ -217,13 +230,12 @@ define Device/mir3g BLOCKSIZE := 128k PAGESIZE := 2048 KERNEL_SIZE := 4096k - KERNEL := $(KERNEL_DTB) | uImage lzma IMAGE_SIZE := 32768k UBINIZE_OPTS := -E 5 - IMAGES := sysupgrade.tar kernel1.bin rootfs0.bin + IMAGES += kernel1.bin rootfs0.bin IMAGE/kernel1.bin := append-kernel IMAGE/rootfs0.bin := append-ubi | check-size $$$$(IMAGE_SIZE) - IMAGE/sysupgrade.tar := sysupgrade-tar | append-metadata + IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata DEVICE_TITLE := Xiaomi Mi Router 3G SUPPORTED_DEVICES += R3G DEVICE_PACKAGES := \ @@ -273,11 +285,10 @@ define Device/r6220 BLOCKSIZE := 128k PAGESIZE := 2048 KERNEL_SIZE := 4096k - KERNEL := $(KERNEL_DTB) | uImage lzma IMAGE_SIZE := 28672k UBINIZE_OPTS := -E 5 - IMAGES := sysupgrade.tar kernel.bin rootfs.bin - IMAGE/sysupgrade.tar := sysupgrade-tar | append-metadata + IMAGES += kernel.bin rootfs.bin + IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata IMAGE/kernel.bin := append-kernel IMAGE/rootfs.bin := append-ubi | check-size $$$$(IMAGE_SIZE) DEVICE_TITLE := Netgear R6220 @@ -286,6 +297,23 @@ define Device/r6220 endef TARGET_DEVICES += r6220 +define Device/netgear_r6350 + DTS := R6350 + BLOCKSIZE := 128k + PAGESIZE := 2048 + KERNEL_SIZE := 4096k + IMAGE_SIZE := 40960k + UBINIZE_OPTS := -E 5 + IMAGES += kernel.bin rootfs.bin + IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata + IMAGE/kernel.bin := append-kernel + IMAGE/rootfs.bin := append-ubi | check-size $$$$(IMAGE_SIZE) + DEVICE_TITLE := Netgear R6350 + DEVICE_PACKAGES := \ + kmod-mt7603 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic +endef +TARGET_DEVICES += netgear_r6350 + define Device/rb750gr3 DTS := RB750Gr3 IMAGE_SIZE := $(ralink_default_fw_size_16M) @@ -300,7 +328,7 @@ define Device/MikroTik DEVICE_PACKAGES := kmod-usb3 LOADER_TYPE := elf PLATFORM := mt7621 - KERNEL := kernel-bin | patch-dtb | lzma | loader-kernel + KERNEL := $(KERNEL_DTB) | loader-kernel IMAGE/sysupgrade.bin := append-kernel | kernel2minor -s 1024 | pad-to $$$$(BLOCKSIZE) | \ append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE) endef @@ -319,6 +347,16 @@ define Device/mikrotik_rbm11g endef TARGET_DEVICES += mikrotik_rbm11g +define Device/mtc_wr1201 + DTS := WR1201 + IMAGE_SIZE := 16000k + DEVICE_TITLE := MTC Wireless Router WR1201 + KERNEL_INITRAMFS := $(KERNEL_DTB) | wr1201-factory-header + DEVICE_PACKAGES := kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3 \ + kmod-usb-ledtrig-usbport wpad-basic +endef +TARGET_DEVICES += mtc_wr1201 + define Device/re350-v1 DTS := RE350 DEVICE_TITLE := TP-LINK RE350 v1 @@ -329,7 +367,7 @@ define Device/re350-v1 TPLINK_HEADER_VERSION := 1 IMAGE_SIZE := 6016k KERNEL := $(KERNEL_DTB) | tplink-v1-header -e -O - IMAGES := sysupgrade.bin factory.bin + IMAGES += factory.bin IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade | append-metadata | check-size $$$$(IMAGE_SIZE) IMAGE/factory.bin := append-rootfs | tplink-safeloader factory endef @@ -370,10 +408,8 @@ define Device/ubnt-erx DTS := UBNT-ERX FILESYSTEMS := squashfs KERNEL_SIZE := 3145728 - KERNEL := $(KERNEL_DTB) | uImage lzma - IMAGES := sysupgrade.tar KERNEL_INITRAMFS := $$(KERNEL) | ubnt-erx-factory-image $(KDIR)/tmp/$$(KERNEL_INITRAMFS_PREFIX)-factory.tar - IMAGE/sysupgrade.tar := sysupgrade-tar | append-metadata + IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata DEVICE_TITLE := Ubiquiti EdgeRouter X endef TARGET_DEVICES += ubnt-erx @@ -539,12 +575,3 @@ define Device/zbt-wg3526-32M kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic endef TARGET_DEVICES += zbt-wg3526-32M - -# FIXME: is this still needed? -define Image/Prepare -#define Build/Compile - rm -rf $(KDIR)/relocate - $(CP) ../../generic/image/relocate $(KDIR) - $(MAKE) -C $(KDIR)/relocate KERNEL_ADDR=$(KERNEL_LOADADDR) CROSS_COMPILE=$(TARGET_CROSS) - $(CP) $(KDIR)/relocate/loader.bin $(KDIR)/loader.bin -endef diff --git a/target/linux/ramips/image/mt76x8.mk b/target/linux/ramips/image/mt76x8.mk index af5b0f6d6..3a2d8e3a5 100644 --- a/target/linux/ramips/image/mt76x8.mk +++ b/target/linux/ramips/image/mt76x8.mk @@ -65,7 +65,6 @@ define Device/hc5661a DTS := HC5661A IMAGE_SIZE := $(ralink_default_fw_size_16M) DEVICE_TITLE := HiWiFi HC5661A - DEVICE_PACKAGES := kmod-sdhci-mt7620 endef TARGET_DEVICES += hc5661a @@ -73,6 +72,7 @@ define Device/hiwifi_hc5861b DTS := HC5861B IMAGE_SIZE := 15808k DEVICE_TITLE := HiWiFi HC5861B + DEVICE_PACKAGES := kmod-mt76x2 endef TARGET_DEVICES += hiwifi_hc5861b @@ -89,6 +89,7 @@ define Device/mac1200r-v2 DTS := MAC1200RV2 DEVICE_TITLE := Mercury MAC1200R v2.0 SUPPORTED_DEVICES := mac1200rv2 + DEVICE_PACKAGES := kmod-mt76x2 endef TARGET_DEVICES += mac1200r-v2 @@ -114,7 +115,7 @@ define Device/netgear_r6120 BLOCKSIZE := 64k IMAGE_SIZE := $(ralink_default_fw_size_16M) DEVICE_TITLE := Netgear AC1200 R6120 - DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci + DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci SERCOMM_KERNEL_OFFSET := 0x90000 SERCOMM_HWID := CGQ SERCOMM_HWVER := A001 @@ -223,6 +224,7 @@ define Device/tplink_c20-v4 TPLINK_HWREV := 0x1 TPLINK_HWREVADD := 0x4 TPLINK_HVERSION := 3 + DEVICE_PACKAGES := kmod-mt76x0e endef TARGET_DEVICES += tplink_c20-v4 @@ -236,6 +238,7 @@ define Device/tplink_c50-v3 TPLINK_HWREV := 0x79 TPLINK_HWREVADD := 0x1 TPLINK_HVERSION := 3 + DEVICE_PACKAGES := kmod-mt76x2 endef TARGET_DEVICES += tplink_c50-v3 @@ -342,6 +345,7 @@ define Device/wcr-1166ds buffalo-tag-dhp WCR-1166DS JP JP | buffalo-enc-tag -l | \ buffalo-dhp-image DEVICE_TITLE := Buffalo WCR-1166DS + DEVICE_PACKAGES := kmod-mt76x2 endef TARGET_DEVICES += wcr-1166ds @@ -349,6 +353,7 @@ define Device/wl-wn575a3 DTS := WL-WN575A3 IMAGE_SIZE := $(ralink_default_fw_size_8M) DEVICE_TITLE := Wavlink WL-WN575A3 + DEVICE_PACKAGES := kmod-mt76x2 endef TARGET_DEVICES += wl-wn575a3 @@ -397,9 +402,9 @@ define Device/zyxel_keenetic-extra-ii IMAGE_SIZE := 14912k BLOCKSIZE := 64k DEVICE_TITLE := ZyXEL Keenetic Extra II - DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport + DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport IMAGES += factory.bin - IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | pad-to $$$$(BLOCKSIZE) | \ + IMAGE/factory.bin := $$(sysupgrade_bin) | pad-to $$$$(BLOCKSIZE) | \ check-size $$$$(IMAGE_SIZE) | zyimage -d 6162 -v "ZyXEL Keenetic Extra II" endef TARGET_DEVICES += zyxel_keenetic-extra-ii diff --git a/target/linux/ramips/image/rt305x-legacy.mk b/target/linux/ramips/image/rt305x-legacy.mk deleted file mode 100644 index 5116dfcd8..000000000 --- a/target/linux/ramips/image/rt305x-legacy.mk +++ /dev/null @@ -1,76 +0,0 @@ -# -# RT305X Profiles -# -define BuildFirmware/DCS930/squashfs - $(call BuildFirmware/Default4M/squashfs,squashfs,$(2),$(3)) - dd if=$(KDIR)/vmlinux-$(2).bin.lzma of=$(KDIR)/image.$(2).combined bs=1048512 count=1 conv=sync - cat $(KDIR)/root.squashfs >> $(KDIR)/image.$(2).combined - $(call MkImage,lzma,$(KDIR)/image.$(2).combined,$(KDIR)/image.$(2)) - $(call prepare_generic_squashfs,$(KDIR)/image.$(2)) - if [ `stat -c%s "$(KDIR)/image.$(2)"` -gt $(ralink_default_fw_size_4M) ]; then \ - echo "Warning: $(KDIR)/image.$(2) is too big" >&2; \ - else \ - dd if=$(KDIR)/image.$(2) of=$(KDIR)/dcs.tmp bs=64K count=5 conv=sync ;\ - cat $(KDIR)/image.$(2) >> $(KDIR)/dcs.tmp ; \ - dd if=$(KDIR)/dcs.tmp of=$(call imgname,$(1),$(2))-factory.bin bs=4096k count=1 conv=sync ;\ - $(STAGING_DIR_HOST)/bin/mkdcs932 $(call imgname,$(1),$(2))-factory.bin ; \ - fi -endef -BuildFirmware/DCS930/initramfs=$(call BuildFirmware/OF/initramfs,$(1),$(2),$(3)) - -kernel_size_wl341v3=917504 -rootfs_size_wl341v3=2949120 -define BuildFirmware/WL-341V3/squashfs - $(call BuildFirmware/Default4M/$(1),$(1),wl-341v3,WL-341V3) - # This code looks broken and really needs to be converted to C - if [ -e "$(call sysupname,$(1),$(2))" ]; then \ - ( \ - dd if=/dev/zero bs=195936 count=1; \ - echo "1.01"; \ - dd if=/dev/zero bs=581 count=1; \ - echo -n -e "\x73\x45\x72\x43\x6F\x4D\x6D\x00\x01\x00\x00\x59\x4E\x37\x95\x58\x10\x00\x20\x00\x28\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x11\x03\x00\x00\x80\x00\x00\x00\x00\x03\x00\x00\x10\x12\x00\x00\x00\x10\x73\x45\x72\x43\x6F\x4D\x6D"; \ - dd if=/dev/zero bs=65552 count=1; \ - dd if=$(KDIR)/vmlinux-$(2).uImage bs=$(kernel_size_wl341v3) conv=sync; \ - dd if=$(KDIR)/root.$(1) bs=64k conv=sync; \ - dd if=/dev/zero bs=`expr 4194304 - 262144 - 16 - $(kernel_size_wl341v3) - \( \( \( \`stat -c%s $(KDIR)/root.$(1)\` / 65536 \) + 1 \) \* 65536 \)` count=1; \ - echo -n -e "\x11\x03\x80\x00\x10\x12\x90\xF7\x65\x52\x63\x4F\x6D\x4D\x00\x00"; \ - ) > $(call imgname,$(1),$(2))-factory.bin; \ - fi -endef -BuildFirmware/WL-341V3/initramfs=$(call BuildFirmware/OF/initramfs,$(1),wl-341v3,WL-341V3) - -define BuildFirmware/UIMAGE_8M - $(call MkCombineduImage,$(1),$(2),$(call mkcmdline,$(3),$(4),$(5)) $(call mkmtd/$(6),$(mtdlayout_8M)),$(kernel_size_8M),$(rootfs_size_8M),$(7)) -endef -define Image/Build/Profile/ALL02393G - $(call Image/Build/Template/$(image_type)/$(1),UIMAGE_8M,all0239-3g,ALL0239-3G,ttyS1,57600,phys) -endef - -Image/Build/Profile/DCS930=$(call BuildFirmware/DCS930/$(1),$(1),dcs-930,DCS-930) -Image/Build/Profile/DCS930LB1=$(call BuildFirmware/DCS930/$(1),$(1),dcs-930l-b1,DCS-930L-B1) -Image/Build/Profile/WL-341V3=$(call BuildFirmware/WL-341V3/$(1),$(1)) - -define LegacyDevice/ALL02393G - DEVICE_TITLE := Allnet ALL0239-3G - DEVICE_PACKAGES := kmod-usb-core kmod-usb-dwc2 kmod-usb-ledtrig-usbport -endef -LEGACY_DEVICES += ALL02393G - - -define LegacyDevice/DCS930 - DEVICE_TITLE := D-Link DCS-930 - DEVICE_PACKAGES := kmod-video-core kmod-video-uvc kmod-sound-core kmod-usb-audio kmod-usb-core kmod-usb-dwc2 -endef -LEGACY_DEVICES += DCS930 - - -define LegacyDevice/DCS930LB1 - DEVICE_TITLE := D-Link DCS-930L B1 - DEVICE_PACKAGES := kmod-video-core kmod-video-uvc kmod-sound-core kmod-usb-audio kmod-usb-core kmod-usb-ohci kmod-usb2 -endef -LEGACY_DEVICES += DCS930LB1 - -define LegacyDevice/WL-341V3 - DEVICE_TITLE := Sitecom WL-341 v3 -endef -LEGACY_DEVICES += WL-341V3 diff --git a/target/linux/ramips/image/rt305x.mk b/target/linux/ramips/image/rt305x.mk index cc743c609..5f514290d 100644 --- a/target/linux/ramips/image/rt305x.mk +++ b/target/linux/ramips/image/rt305x.mk @@ -210,6 +210,22 @@ define Device/dap-1350 endef TARGET_DEVICES += dap-1350 +define Device/dcs-930 + DTS := DCS-930 + IMAGE_SIZE := $(ralink_default_fw_size_4M) + DEVICE_TITLE := D-Link DCS-930 + DEVICE_PACKAGES := kmod-video-core kmod-video-uvc kmod-sound-core kmod-usb-audio kmod-usb-core kmod-usb-dwc2 +endef +TARGET_DEVICES += dcs-930 + +define Device/dcs-930l-b1 + DTS := DCS-930L-B1 + IMAGE_SIZE := $(ralink_default_fw_size_4M) + DEVICE_TITLE := D-Link DCS-930L B1 + DEVICE_PACKAGES := kmod-video-core kmod-video-uvc kmod-sound-core kmod-usb-audio kmod-usb-core kmod-usb-ohci kmod-usb2 +endef +TARGET_DEVICES += dcs-930l-b1 + define Device/dir-300-b1 DTS := DIR-300-B1 IMAGE_SIZE := $(ralink_default_fw_size_4M) diff --git a/target/linux/ramips/mt7620/target.mk b/target/linux/ramips/mt7620/target.mk index b58cdcbc1..544254604 100644 --- a/target/linux/ramips/mt7620/target.mk +++ b/target/linux/ramips/mt7620/target.mk @@ -7,7 +7,7 @@ BOARDNAME:=MT7620 based boards FEATURES+=usb CPU_TYPE:=24kc -DEFAULT_PACKAGES += kmod-rt2800-pci kmod-rt2800-soc kmod-mt76 wpad-basic +DEFAULT_PACKAGES += kmod-rt2800-pci kmod-rt2800-soc wpad-basic define Target/Description Build firmware images for Ralink MT7620 based boards. diff --git a/target/linux/ramips/mt7621/config-4.14 b/target/linux/ramips/mt7621/config-4.14 index 13fb48f5c..b279c6987 100644 --- a/target/linux/ramips/mt7621/config-4.14 +++ b/target/linux/ramips/mt7621/config-4.14 @@ -187,7 +187,6 @@ CONFIG_MTD_NAND=y CONFIG_MTD_NAND_ECC=y CONFIG_MTD_PHYSMAP=y CONFIG_MTD_SPI_NOR=y -CONFIG_MTD_SPLIT_FIRMWARE=y CONFIG_MTD_SPLIT_MINOR_FW=y CONFIG_MTD_SPLIT_SEAMA_FW=y CONFIG_MTD_SPLIT_TPLINK_FW=y diff --git a/target/linux/ramips/mt76x8/target.mk b/target/linux/ramips/mt76x8/target.mk index ef2f87886..4fc448915 100644 --- a/target/linux/ramips/mt76x8/target.mk +++ b/target/linux/ramips/mt76x8/target.mk @@ -7,7 +7,7 @@ BOARDNAME:=MT76x8 based boards FEATURES+=usb CPU_TYPE:=24kc -DEFAULT_PACKAGES += kmod-mt76 wpad-basic +DEFAULT_PACKAGES += kmod-mt7603 wpad-basic define Target/Description Build firmware images for Ralink MT76x8 based boards. diff --git a/target/linux/ramips/patches-4.14/999-fix-m25p-shutdown.patch b/target/linux/ramips/patches-4.14/999-fix-m25p-shutdown.patch deleted file mode 100644 index 0b825d61e..000000000 --- a/target/linux/ramips/patches-4.14/999-fix-m25p-shutdown.patch +++ /dev/null @@ -1,34 +0,0 @@ -diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c -index 24e1ea3..b1ff69a 100644 ---- a/drivers/mtd/devices/m25p80.c -+++ b/drivers/mtd/devices/m25p80.c -@@ -313,6 +313,21 @@ static int m25p_remove(struct spi_device *spi) - return mtd_device_unregister(&flash->spi_nor.mtd); - } - -+static void m25p_shutdown(struct spi_device *spi) -+{ -+ struct m25p *flash = spi_get_drvdata(spi); -+ -+ if ((&flash->spi_nor)->addr_width > 3) { -+ printk(KERN_INFO "m25p80: exit 4-byte address mode\n"); -+ flash->command[0] = SPINOR_OP_EX4B; // exit 4-byte address mode: 0xe9 -+ spi_write(flash->spi, flash->command, 1); -+ flash->command[0] = 0x66; // enable reset -+ spi_write(flash->spi, flash->command, 1); -+ flash->command[0] = 0x99; // reset -+ spi_write(flash->spi, flash->command, 1); -+ } -+} -+ - /* - * Do NOT add to this array without reading the following: - * -@@ -387,6 +402,7 @@ static struct spi_driver m25p80_driver = { - .id_table = m25p_ids, - .probe = m25p_probe, - .remove = m25p_remove, -+ .shutdown = m25p_shutdown, - - /* REVISIT: many of these chips have deep power-down modes, which - * should clearly be entered on suspend() to minimize power use.