From bf55ff68c7ee84b9380003a5957c0bf6d2e5fea9 Mon Sep 17 00:00:00 2001 From: AmadeusGhost <42570690+AmadeusGhost@users.noreply.github.com> Date: Wed, 5 Feb 2020 23:47:50 +0800 Subject: [PATCH] ramips: sync from openwrt v19.07 (#2938) This commit sync ramips from openwrt master, and revert use caldata.sh so that wireless for some devices can works. --- .../lib/preinit/07_set_preinit_iface_ramips | 67 +++- .../ramips/dts/mt7620a_aigale_ai-br100.dts | 10 +- .../dts/mt7620a_alfa-network_ac1200rm.dts | 10 +- .../dts/mt7620a_alfa-network_r36m-e4g.dts | 10 +- .../dts/mt7620a_alfa-network_tube-e4g.dts | 10 +- .../linux/ramips/dts/mt7620a_asus_rp-n53.dts | 10 +- .../ramips/dts/mt7620a_asus_rt-ac51u.dts | 10 +- .../ramips/dts/mt7620a_bdcom_wap2100-sk.dts | 10 +- .../ramips/dts/mt7620a_buffalo_whr-1166d.dts | 10 +- .../ramips/dts/mt7620a_buffalo_whr-300hp2.dts | 10 +- .../ramips/dts/mt7620a_buffalo_whr-600d.dts | 10 +- .../ramips/dts/mt7620a_dlink_dch-m225.dts | 18 +- .../ramips/dts/mt7620a_dlink_dir-510l.dts | 10 +- .../ramips/dts/mt7620a_dlink_dir-810l.dts | 10 +- .../ramips/dts/mt7620a_dlink_dwr-118-a1.dts | 10 +- .../ramips/dts/mt7620a_dlink_dwr-118-a2.dts | 10 +- .../ramips/dts/mt7620a_dovado_tiny-ac.dts | 10 +- .../dts/mt7620a_edimax_br-6478ac-v2.dts | 10 +- .../ramips/dts/mt7620a_edimax_ew-7478apc.dts | 10 +- .../ramips/dts/mt7620a_edimax_ew-747x.dtsi | 15 +- .../ramips/dts/mt7620a_engenius_esr600.dts | 13 +- .../ramips/dts/mt7620a_glinet_gl-mt300a.dts | 10 +- .../ramips/dts/mt7620a_glinet_gl-mt300n.dts | 10 +- .../ramips/dts/mt7620a_glinet_gl-mt750.dts | 10 +- .../dts/mt7620a_head-weblink_hdrm200.dts | 12 +- .../ramips/dts/mt7620a_hiwifi_hc5661.dts | 6 +- .../ramips/dts/mt7620a_hiwifi_hc5761.dts | 2 + .../ramips/dts/mt7620a_hiwifi_hc5861.dts | 2 + .../ramips/dts/mt7620a_hiwifi_hc5x61.dtsi | 10 +- target/linux/ramips/dts/mt7620a_hnet_c108.dts | 10 +- .../ramips/dts/mt7620a_iodata_wn-ac1167gr.dts | 10 +- .../ramips/dts/mt7620a_iodata_wn-ac733gr3.dts | 10 +- target/linux/ramips/dts/mt7620a_iptime.dtsi | 86 +++++ .../ramips/dts/mt7620a_iptime_a104ns.dts | 59 +++ .../ramips/dts/mt7620a_kimax_u25awf-h1.dts | 10 +- .../ramips/dts/mt7620a_lava_lr-25g001.dts | 10 +- .../ramips/dts/mt7620a_lenovo_newifi-y1.dtsi | 10 +- .../ramips/dts/mt7620a_linksys_e1700.dts | 10 +- .../dts/mt7620a_microduino_microwrt.dts | 10 +- .../mt7620a_netgear_ex2700_wn3000rp-v3.dtsi | 10 +- .../dts/mt7620a_netgear_ex3700_ex6130.dtsi | 10 +- .../ramips/dts/mt7620a_netgear_ex6130.dts | 1 + .../ramips/dts/mt7620a_ohyeah_oy-0001.dts | 10 +- .../linux/ramips/dts/mt7620a_phicomm_k2g.dts | 10 +- .../ramips/dts/mt7620a_phicomm_psg1208.dts | 10 +- .../ramips/dts/mt7620a_phicomm_psg1218a.dts | 10 +- .../ramips/dts/mt7620a_phicomm_psg1218b.dts | 10 +- .../ramips/dts/mt7620a_planex_cs-qr10.dts | 18 +- .../ramips/dts/mt7620a_planex_db-wrt01.dts | 10 +- .../ramips/dts/mt7620a_planex_mzk-750dhp.dts | 10 +- .../ramips/dts/mt7620a_planex_mzk-ex300np.dts | 10 +- .../ramips/dts/mt7620a_planex_mzk-ex750np.dts | 10 +- .../ramips/dts/mt7620a_ralink_mt7620a-evb.dts | 10 +- .../dts/mt7620a_ralink_mt7620a-mt7530-evb.dts | 10 +- .../dts/mt7620a_ralink_mt7620a-v22sg-evb.dts | 10 +- .../ramips/dts/mt7620a_sanlinking_d240.dts | 36 +- .../ramips/dts/mt7620a_sercomm_na930.dts | 18 +- .../dts/mt7620a_tplink_archer-c2-v1.dts | 19 +- .../dts/mt7620a_tplink_archer-c20-v1.dts | 12 +- .../ramips/dts/mt7620a_tplink_archer-c20i.dts | 26 +- .../dts/mt7620a_tplink_archer-c50-v1.dts | 12 +- .../dts/mt7620a_tplink_archer-mr200.dts | 16 +- .../ramips/dts/mt7620a_tplink_re200-v1.dts | 158 ++++++++ .../ramips/dts/mt7620a_xiaomi_miwifi-mini.dts | 10 +- target/linux/ramips/dts/mt7620a_youku_yk1.dts | 10 +- .../linux/ramips/dts/mt7620a_yukai_bocco.dts | 10 +- .../dts/mt7620a_zbtlink_zbt-ape522ii.dts | 10 +- .../dts/mt7620a_zbtlink_zbt-we1026.dtsi | 10 +- .../dts/mt7620a_zbtlink_zbt-we826-e.dts | 10 +- .../ramips/dts/mt7620a_zbtlink_zbt-we826.dtsi | 10 +- target/linux/ramips/dts/mt7620a_zte_q7.dts | 10 +- .../dts/mt7620a_zyxel_keenetic-viva.dts | 10 +- .../linux/ramips/dts/mt7620n_asus_rt-n12p.dts | 10 +- .../linux/ramips/dts/mt7620n_asus_rt-n14u.dts | 10 +- .../ramips/dts/mt7620n_buffalo_wmr-300.dts | 10 +- .../ramips/dts/mt7620n_comfast_cf-wr800n.dts | 10 +- .../ramips/dts/mt7620n_dlink_dwr-116-a1.dts | 10 +- .../ramips/dts/mt7620n_dlink_dwr-921-c1.dts | 10 +- .../ramips/dts/mt7620n_dlink_dwr-922-e2.dts | 10 +- .../ramips/dts/mt7620n_elecom_wrh-300cr.dts | 10 +- .../linux/ramips/dts/mt7620n_kimax_u35wf.dts | 10 +- .../ramips/dts/mt7620n_kingston_mlw221.dts | 10 +- .../ramips/dts/mt7620n_kingston_mlwg2.dts | 10 +- .../linux/ramips/dts/mt7620n_nexx_wt3020.dtsi | 10 +- .../ramips/dts/mt7620n_ravpower_wd03.dts | 12 +- .../ramips/dts/mt7620n_vonets_var11n-300.dts | 10 +- .../ramips/dts/mt7620n_wrtnode_wrtnode.dts | 10 +- .../ramips/dts/mt7620n_zbtlink_zbt-cpe102.dts | 10 +- .../ramips/dts/mt7620n_zbtlink_zbt-wa05.dts | 10 +- .../ramips/dts/mt7620n_zbtlink_zbt-we2026.dts | 10 +- .../dts/mt7620n_zbtlink_zbt-wr8305rt.dts | 10 +- .../dts/mt7620n_zyxel_keenetic-omni-ii.dts | 10 +- .../dts/mt7620n_zyxel_keenetic-omni.dts | 10 +- target/linux/ramips/dts/mt7621_adslr_g7.dts | 10 +- .../ramips/dts/mt7621_afoundry_ew1200.dts | 10 +- .../dts/mt7621_alfa-network_quad-e4g.dts | 10 +- .../ramips/dts/mt7621_asiarf_ap7621.dtsi | 10 +- .../linux/ramips/dts/mt7621_asus_rt-ac57u.dts | 10 +- .../ramips/dts/mt7621_asus_rt-acx5p.dtsi | 10 +- .../ramips/dts/mt7621_buffalo_wsr-1166dhp.dts | 10 +- .../ramips/dts/mt7621_buffalo_wsr-600dhp.dts | 10 +- .../ramips/dts/mt7621_d-team_newifi-d2.dts | 10 +- .../linux/ramips/dts/mt7621_d-team_pbr-m1.dts | 10 +- .../ramips/dts/mt7621_dlink_dir-860l-b1.dts | 10 +- .../linux/ramips/dts/mt7621_edimax_ra21s.dts | 40 ++ .../linux/ramips/dts/mt7621_edimax_rg21s.dts | 117 +----- .../linux/ramips/dts/mt7621_edimax_rx21s.dtsi | 115 ++++++ .../dts/mt7621_elecom_wrc-1167ghbk2-s.dts | 10 +- .../ramips/dts/mt7621_elecom_wrc-gst.dtsi | 10 +- .../ramips/dts/mt7621_firefly_firewrt.dts | 10 +- .../ramips/dts/mt7621_gehua_ghl-r-001.dts | 10 +- .../linux/ramips/dts/mt7621_gnubee_gb-pc1.dts | 10 +- .../linux/ramips/dts/mt7621_gnubee_gb-pc2.dts | 10 +- .../linux/ramips/dts/mt7621_hiwifi_hc5962.dts | 17 +- .../ramips/dts/mt7621_iodata_wn-ax1167gr.dts | 10 +- .../ramips/dts/mt7621_iodata_wn-gx300gr.dts | 10 +- .../ramips/dts/mt7621_iodata_wnpr2600g.dts | 10 +- .../linux/ramips/dts/mt7621_iptime_a8004t.dts | 134 +++++++ .../ramips/dts/mt7621_lenovo_newifi-d1.dts | 10 +- .../ramips/dts/mt7621_linksys_re6500.dts | 10 +- .../dts/mt7621_mediatek_ap-mt7621a-v60.dts | 13 +- .../dts/mt7621_mediatek_mt7621-eval-board.dts | 10 +- .../ramips/dts/mt7621_mikrotik_rb750gr3.dts | 12 +- .../ramips/dts/mt7621_mikrotik_rbm11g.dts | 10 +- .../ramips/dts/mt7621_mikrotik_rbm33g.dts | 10 +- .../linux/ramips/dts/mt7621_mqmaker_witi.dts | 10 +- target/linux/ramips/dts/mt7621_mtc_wr1201.dts | 10 +- .../ramips/dts/mt7621_netgear_ex6150.dts | 10 +- .../dts/mt7621_netgear_sercomm_ayx.dtsi | 10 +- .../dts/mt7621_netgear_sercomm_chj.dtsi | 10 +- .../linux/ramips/dts/mt7621_netis_wf-2881.dts | 10 +- .../linux/ramips/dts/mt7621_phicomm_k2p.dts | 10 +- .../linux/ramips/dts/mt7621_planex_vr500.dts | 10 +- .../dts/mt7621_samknows_whitebox-v8.dts | 10 +- .../dts/mt7621_storylink_sap-g3200u3.dts | 10 +- .../dts/mt7621_telco-electronics_x1.dts | 10 +- .../ramips/dts/mt7621_thunder_timecloud.dts | 10 +- .../ramips/dts/mt7621_totolink_a7000r.dts | 10 +- .../ramips/dts/mt7621_tplink_re350-v1.dts | 10 +- .../ramips/dts/mt7621_tplink_re650-v1.dts | 10 +- .../dts/mt7621_ubiquiti_edgerouterx.dtsi | 10 +- .../ramips/dts/mt7621_unielec_u7621-06.dtsi | 10 +- .../linux/ramips/dts/mt7621_wevo_11acnas.dts | 2 +- .../ramips/dts/mt7621_wevo_w2914ns-v2.dts | 1 + .../ramips/dts/mt7621_wevo_w2914ns-v2.dtsi | 18 +- .../ramips/dts/mt7621_xiaomi_mir3g-v2.dts | 12 +- .../linux/ramips/dts/mt7621_xiaomi_mir3g.dts | 10 +- .../linux/ramips/dts/mt7621_xiaomi_mir3p.dts | 10 +- .../linux/ramips/dts/mt7621_xiaoyu_xy-c5.dts | 12 +- .../dts/mt7621_xzwifi_creativebox-v1.dts | 10 +- .../ramips/dts/mt7621_youhua_wr1200js.dts | 10 +- .../linux/ramips/dts/mt7621_youku_yk-l2.dts | 10 +- .../ramips/dts/mt7621_zbtlink_zbt-we1326.dts | 10 +- .../ramips/dts/mt7621_zbtlink_zbt-we3526.dts | 10 +- .../ramips/dts/mt7621_zbtlink_zbt-wg2626.dts | 10 +- .../ramips/dts/mt7621_zbtlink_zbt-wg3526.dtsi | 10 +- .../linux/ramips/dts/mt7621_zio_freezio.dts | 20 + .../dts/mt7628an_alfa-network_awusfree1.dts | 26 +- .../dts/mt7628an_buffalo_wcr-1166ds.dts | 10 +- .../linux/ramips/dts/mt7628an_cudy_wr1000.dts | 18 +- .../ramips/dts/mt7628an_d-team_pbr-d1.dts | 42 +-- .../linux/ramips/dts/mt7628an_duzun_dm06.dts | 10 +- .../dts/mt7628an_glinet_gl-mt300n-v2.dts | 10 +- .../dts/mt7628an_glinet_microuter-n300.dts | 21 ++ .../ramips/dts/mt7628an_glinet_vixmini.dts | 101 +---- .../mt7628an_glinet_vixmini_microuter.dtsi | 104 ++++++ .../ramips/dts/mt7628an_hilink_hlk-7628n.dts | 10 +- .../ramips/dts/mt7628an_hiwifi_hc5661a.dts | 10 +- .../ramips/dts/mt7628an_hiwifi_hc5761a.dts | 10 +- .../ramips/dts/mt7628an_hiwifi_hc5861b.dts | 10 +- target/linux/ramips/dts/mt7628an_iptime.dtsi | 10 +- .../ramips/dts/mt7628an_iptime_a604m.dts | 10 +- .../mt7628an_mediatek_linkit-smart-7688.dts | 62 ++-- .../mt7628an_mediatek_mt7628an-eval-board.dts | 10 +- .../dts/mt7628an_mercury_mac1200r-v2.dts | 5 +- .../ramips/dts/mt7628an_netgear_r6120.dts | 14 +- .../ramips/dts/mt7628an_onion_omega2.dtsi | 82 ++-- .../dts/mt7628an_rakwireless_rak633.dts | 11 +- .../ramips/dts/mt7628an_skylab_skw92a.dts | 10 +- target/linux/ramips/dts/mt7628an_tama_w06.dts | 10 +- .../ramips/dts/mt7628an_totolink_lr1200.dts | 11 +- .../dts/mt7628an_tplink_8m-split-uboot.dtsi | 5 +- .../linux/ramips/dts/mt7628an_tplink_8m.dtsi | 1 - .../dts/mt7628an_tplink_archer-c20-v4.dts | 16 +- .../dts/mt7628an_tplink_archer-c20-v5.dts | 98 +++++ .../dts/mt7628an_tplink_archer-c50-v3.dts | 16 +- .../dts/mt7628an_tplink_archer-c50-v4.dts | 12 +- .../ramips/dts/mt7628an_tplink_re200-v2.dts | 70 ++++ .../ramips/dts/mt7628an_tplink_re200.dtsi | 98 +++++ .../ramips/dts/mt7628an_tplink_re305-v1.dts | 150 ++++++++ .../dts/mt7628an_tplink_tl-mr3020-v3.dts | 11 +- .../dts/mt7628an_tplink_tl-mr3420-v5.dts | 14 +- .../dts/mt7628an_tplink_tl-wa801nd-v5.dts | 29 +- .../dts/mt7628an_tplink_tl-wr802n-v4.dts | 11 +- .../dts/mt7628an_tplink_tl-wr840n-v4.dts | 14 +- .../dts/mt7628an_tplink_tl-wr840n-v5.dts | 15 +- .../dts/mt7628an_tplink_tl-wr841n-v13.dts | 14 +- .../dts/mt7628an_tplink_tl-wr841n-v14.dts | 15 +- .../dts/mt7628an_tplink_tl-wr842n-v5.dts | 14 +- .../dts/mt7628an_tplink_tl-wr902ac-v3.dts | 10 +- .../ramips/dts/mt7628an_unielec_u7628-01.dtsi | 10 +- .../ramips/dts/mt7628an_vocore_vocore2.dtsi | 11 +- .../dts/mt7628an_wavlink_wl-wn570ha1.dts | 15 +- .../dts/mt7628an_wavlink_wl-wn575a3.dts | 15 +- .../linux/ramips/dts/mt7628an_widora_neo.dtsi | 66 ++-- .../ramips/dts/mt7628an_wiznet_wizfi630s.dts | 42 +-- .../ramips/dts/mt7628an_wrtnode_wrtnode2.dtsi | 5 +- .../ramips/dts/mt7628an_wrtnode_wrtnode2p.dts | 10 +- .../ramips/dts/mt7628an_wrtnode_wrtnode2r.dts | 12 +- .../ramips/dts/mt7628an_xiaomi_mir4a-100m.dts | 10 +- .../dts/mt7628an_xiaomi_miwifi-nano.dts | 35 +- .../dts/mt7628an_zbtlink_zbt-we1226.dts | 16 +- .../dts/mt7628an_zyxel_keenetic-extra-ii.dts | 15 +- .../ramips/dts/rt2880_airlink101_ar670w.dts | 10 +- .../ramips/dts/rt2880_airlink101_ar725w.dts | 10 +- .../linux/ramips/dts/rt2880_asus_rt-n15.dts | 10 +- .../ramips/dts/rt2880_belkin_f5d8235-v1.dts | 10 +- .../dts/rt2880_buffalo_wzr-agl300nh.dts | 10 +- .../ramips/dts/rt2880_dlink_dap-1522-a1.dts | 10 +- .../ramips/dts/rt3050_8devices_carambola.dts | 10 +- .../ramips/dts/rt3050_allnet_all0256n.dtsi | 10 +- .../dts/rt3050_alphanetworks_asl26555.dtsi | 10 +- .../dts/rt3050_arcwireless_freestation5.dts | 10 +- .../ramips/dts/rt3050_asus_rt-g32-b1.dts | 10 +- .../linux/ramips/dts/rt3050_asus_wl-330n.dts | 10 +- .../ramips/dts/rt3050_asus_wl-330n3g.dts | 10 +- .../linux/ramips/dts/rt3050_dlink_dcs-930.dts | 10 +- .../ramips/dts/rt3050_dlink_dir-300-b1.dts | 10 +- .../ramips/dts/rt3050_dlink_dir-600-b1.dts | 10 +- .../ramips/dts/rt3050_dlink_dir-615-d.dts | 10 +- .../ramips/dts/rt3050_dlink_dir-620-a1.dts | 10 +- .../ramips/dts/rt3050_edimax_3g-6200n.dts | 10 +- .../ramips/dts/rt3050_edimax_3g-6200nl.dts | 10 +- .../linux/ramips/dts/rt3050_huawei_d105.dts | 10 +- .../linux/ramips/dts/rt3050_jcg_jhr-n805r.dts | 10 +- .../linux/ramips/dts/rt3050_netcore_nw718.dts | 10 +- .../ramips/dts/rt3050_sparklan_wcr-150gn.dts | 10 +- .../ramips/dts/rt3050_teltonika_rut5xx.dts | 10 +- .../linux/ramips/dts/rt3050_tenda_w150m.dts | 10 +- .../dts/rt3050_trendnet_tew-638apb-v2.dts | 10 +- .../linux/ramips/dts/rt3052_accton_wr6202.dts | 10 +- .../ramips/dts/rt3052_alfa-network_w502u.dts | 10 +- .../linux/ramips/dts/rt3052_argus_atp-52b.dts | 10 +- .../ramips/dts/rt3052_asiarf_awapn2403.dts | 10 +- .../linux/ramips/dts/rt3052_asus_rt-n13u.dts | 10 +- .../ramips/dts/rt3052_aximcom_mr-102n.dts | 11 +- .../ramips/dts/rt3052_aztech_hw550-3g.dts | 10 +- .../ramips/dts/rt3052_belkin_f5d8235-v2.dts | 10 +- .../ramips/dts/rt3052_buffalo_whr-g300n.dts | 10 +- .../ramips/dts/rt3052_dlink_dap-1350.dts | 10 +- .../ramips/dts/rt3052_engenius_esr-9753.dts | 10 +- .../ramips/dts/rt3052_fon_fonera-20n.dts | 10 +- .../ramips/dts/rt3052_hauppauge_broadway.dts | 10 +- .../linux/ramips/dts/rt3052_huawei_hg255d.dts | 10 +- .../linux/ramips/dts/rt3052_jcg_jhr-n825r.dts | 10 +- .../linux/ramips/dts/rt3052_jcg_jhr-n926r.dts | 10 +- .../dts/rt3052_mofinetwork_mofi3500-3gn.dts | 10 +- .../ramips/dts/rt3052_netgear_wnce2001.dts | 10 +- .../linux/ramips/dts/rt3052_nexaira_bc2.dts | 10 +- .../ramips/dts/rt3052_omnima_miniembwifi.dts | 10 +- .../ramips/dts/rt3052_petatel_psr-680w.dts | 10 +- .../ramips/dts/rt3052_planex_mzk-w300nh2.dts | 10 +- .../ramips/dts/rt3052_planex_mzk-wdpr.dts | 10 +- .../linux/ramips/dts/rt3052_poray_ip2202.dts | 10 +- .../ramips/dts/rt3052_prolink_pwh2004.dts | 10 +- .../ramips/dts/rt3052_ralink_v22rw-2x2.dts | 10 +- .../ramips/dts/rt3052_sitecom_wl-351.dts | 10 +- .../ramips/dts/rt3052_skyline_sl-r7205.dts | 10 +- .../linux/ramips/dts/rt3052_tenda_3g300m.dts | 10 +- .../ramips/dts/rt3052_tenda_w306r-v2.dts | 10 +- .../dts/rt3052_unbranded_wr512-3gn.dtsi | 10 +- .../dts/rt3052_unbranded_xdx-rn502j.dts | 10 +- .../ramips/dts/rt3052_upvel_ur-326n4g.dts | 10 +- .../ramips/dts/rt3052_upvel_ur-336un.dts | 10 +- .../ramips/dts/rt3052_zyxel_keenetic.dts | 10 +- .../ramips/dts/rt3052_zyxel_nbg-419n.dts | 10 +- .../ramips/dts/rt3352_allnet_all5002.dts | 10 +- .../ramips/dts/rt3352_dlink_dir-615-h1.dts | 10 +- .../ramips/dts/rt3352_dlink_dir-620-d1.dts | 10 +- .../ramips/dts/rt3352_zyxel_nbg-419n-v2.dts | 10 +- .../linux/ramips/dts/rt3662_asus_rt-n56u.dts | 10 +- .../linux/ramips/dts/rt3662_dlink_dir-645.dts | 10 +- .../ramips/dts/rt3662_edimax_br-6475nd.dts | 10 +- target/linux/ramips/dts/rt3662_omnima_hpm.dts | 10 +- .../ramips/dts/rt3662_samsung_cy-swr1100.dts | 10 +- .../ramips/dts/rt3883_belkin_f9k110x.dtsi | 10 +- .../ramips/dts/rt3883_sitecom_wlr-6000.dts | 10 +- .../ramips/dts/rt3883_trendnet_tew-691gr.dts | 10 +- .../ramips/dts/rt3883_trendnet_tew-692gr.dts | 10 +- .../ramips/dts/rt5350_7links_px-4885.dtsi | 10 +- .../ramips/dts/rt5350_airlive_air3gii.dts | 10 +- .../ramips/dts/rt5350_allnet_all5003.dts | 10 +- .../ramips/dts/rt5350_asiarf_awm002-evb.dtsi | 10 +- .../linux/ramips/dts/rt5350_belkin_f7c027.dts | 10 +- .../ramips/dts/rt5350_dlink_dcs-930l-b1.dts | 10 +- .../ramips/dts/rt5350_dlink_dir-300-b7.dts | 10 +- .../ramips/dts/rt5350_dlink_dir-320-b1.dts | 10 +- .../ramips/dts/rt5350_dlink_dir-610-a1.dts | 10 +- .../ramips/dts/rt5350_dlink_dwr-512-b.dts | 10 +- .../ramips/dts/rt5350_easyacc_wizard-8800.dts | 10 +- .../linux/ramips/dts/rt5350_hame_mpr-a1.dts | 10 +- .../linux/ramips/dts/rt5350_hame_mpr-a2.dts | 10 +- .../ramips/dts/rt5350_hilink_hlk-rm04.dts | 18 +- .../ramips/dts/rt5350_hootoo_ht-tm02.dts | 10 +- .../ramips/dts/rt5350_intenso_memory2move.dts | 10 +- .../linux/ramips/dts/rt5350_nexx_wt1520.dtsi | 10 +- .../linux/ramips/dts/rt5350_nixcore_x1.dtsi | 10 +- .../dts/rt5350_olimex_rt5350f-olinuxino.dtsi | 18 +- .../ramips/dts/rt5350_omnima_miniembplug.dts | 10 +- .../ramips/dts/rt5350_planex_mzk-dp150n.dts | 10 +- target/linux/ramips/dts/rt5350_poray_m3.dts | 10 +- target/linux/ramips/dts/rt5350_poray_m4.dtsi | 10 +- target/linux/ramips/dts/rt5350_poray_x5.dts | 10 +- target/linux/ramips/dts/rt5350_poray_x8.dts | 10 +- .../linux/ramips/dts/rt5350_tenda_3g150b.dts | 10 +- .../ramips/dts/rt5350_trendnet_tew-714tru.dts | 10 +- .../ramips/dts/rt5350_unbranded_a5-v11.dts | 10 +- .../ramips/dts/rt5350_vocore_vocore.dtsi | 10 +- .../ramips/dts/rt5350_wansview_ncs601w.dts | 10 +- .../ramips/dts/rt5350_wiznet_wizfi630a.dts | 10 +- .../ramips/dts/rt5350_zorlik_zl5900v2.dts | 11 +- .../dts/rt5350_zyxel_keenetic-start.dts | 10 +- .../net/ethernet/mediatek/esw_rt3050.c | 4 + target/linux/ramips/image/Makefile | 4 +- target/linux/ramips/image/common-tp-link.mk | 44 +++ target/linux/ramips/image/mt7620.mk | 351 ++++++++++-------- target/linux/ramips/image/mt7621.mk | 292 +++++++-------- target/linux/ramips/image/mt76x8.mk | 203 +++++----- target/linux/ramips/image/rt288x.mk | 18 +- target/linux/ramips/image/rt305x.mk | 341 +++++++++-------- target/linux/ramips/image/rt3883.mk | 22 +- .../mt7620/base-files/etc/board.d/01_leds | 18 +- .../mt7620/base-files/etc/board.d/02_network | 8 + .../etc/hotplug.d/firmware/10-rt2x00-eeprom | 48 ++- .../mt7621/base-files/etc/board.d/02_network | 31 +- .../base-files/etc/init.d/set-irq-affinity | 0 .../mt76x8/base-files/etc/board.d/01_leds | 16 +- .../mt76x8/base-files/etc/board.d/02_network | 19 +- .../mt76x8/base-files/lib/upgrade/platform.sh | 3 +- .../rt3883/base-files/etc/board.d/01_leds | 2 +- 340 files changed, 3448 insertions(+), 2927 deletions(-) create mode 100644 target/linux/ramips/dts/mt7620a_iptime.dtsi create mode 100644 target/linux/ramips/dts/mt7620a_iptime_a104ns.dts create mode 100644 target/linux/ramips/dts/mt7620a_tplink_re200-v1.dts create mode 100644 target/linux/ramips/dts/mt7621_edimax_ra21s.dts create mode 100644 target/linux/ramips/dts/mt7621_edimax_rx21s.dtsi create mode 100644 target/linux/ramips/dts/mt7621_iptime_a8004t.dts create mode 100644 target/linux/ramips/dts/mt7621_zio_freezio.dts create mode 100644 target/linux/ramips/dts/mt7628an_glinet_microuter-n300.dts create mode 100644 target/linux/ramips/dts/mt7628an_glinet_vixmini_microuter.dtsi create mode 100644 target/linux/ramips/dts/mt7628an_tplink_archer-c20-v5.dts create mode 100644 target/linux/ramips/dts/mt7628an_tplink_re200-v2.dts create mode 100644 target/linux/ramips/dts/mt7628an_tplink_re200.dtsi create mode 100644 target/linux/ramips/dts/mt7628an_tplink_re305-v1.dts create mode 100644 target/linux/ramips/image/common-tp-link.mk rename target/linux/ramips/{ => mt7621}/base-files/etc/init.d/set-irq-affinity (100%) diff --git a/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips b/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips index 003a4dda7..68c1285eb 100644 --- a/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips +++ b/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips @@ -3,27 +3,54 @@ # Copyright (C) 2013 OpenWrt.org # -ramips_set_preinit_iface() { - RT3X5X=$(grep -E "(RT3.5|RT5350|MT7628|MT7688|MT7620|MT7621)" /proc/cpuinfo) +. /lib/functions.sh - if [ -n "${RT3X5X}" ]; then - # The ethernet switch driver enables VLAN by default, but - # failsafe uses eth0, making the device unreachable: - # https://dev.openwrt.org/ticket/18768 - case "${RT3X5X}" in - *MT7620*) - ralink_switchdev=mt7620 - ;; - *MT7621*) - ralink_switchdev=mt7530 - ;; - *) - ralink_switchdev=rt305x - ;; - esac - swconfig dev $ralink_switchdev set reset 1 - swconfig dev $ralink_switchdev set enable_vlan 0 - swconfig dev $ralink_switchdev set apply 1 +ramips_switchdev_from_soc() { + # The ethernet switch driver enables VLAN by default, but + # failsafe uses eth0, making the device unreachable: + # https://dev.openwrt.org/ticket/18768 + + local switchdev + local RT3X5X=$(grep -E "(RT3.5|RT5350|MT7628|MT7688|MT7620|MT7621)" /proc/cpuinfo) + + [ -n "$RT3X5X" ] || return 1 + + case "$RT3X5X" in + *MT7620*) + switchdev=mt7620 + ;; + *MT7621*) + switchdev=mt7530 + ;; + *) + switchdev=rt305x + ;; + esac + + echo "$switchdev" +} + +ramips_switchdev_from_board() { + # For these devices, external ethernet switch should be used + # instead of the SoC internal switch. + + local switchdev + local board=$(board_name) + + case "$board" in + esac + + echo "$switchdev" +} + +ramips_set_preinit_iface() { + local switchdev=$(ramips_switchdev_from_board) + [ -n "$switchdev" ] || switchdev=$(ramips_switchdev_from_soc) + + if [ -n "$switchdev" ]; then + swconfig dev $switchdev set reset 1 + swconfig dev $switchdev set enable_vlan 0 + swconfig dev $switchdev set apply 1 fi ifname=eth0 diff --git a/target/linux/ramips/dts/mt7620a_aigale_ai-br100.dts b/target/linux/ramips/dts/mt7620a_aigale_ai-br100.dts index 019fdf92c..2ffe8431e 100644 --- a/target/linux/ramips/dts/mt7620a_aigale_ai-br100.dts +++ b/target/linux/ramips/dts/mt7620a_aigale_ai-br100.dts @@ -97,12 +97,10 @@ status = "okay"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "ephy", "wled", "nd_sd"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "ephy", "wled", "nd_sd"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_alfa-network_ac1200rm.dts b/target/linux/ramips/dts/mt7620a_alfa-network_ac1200rm.dts index 0be685844..fa03d1481 100644 --- a/target/linux/ramips/dts/mt7620a_alfa-network_ac1200rm.dts +++ b/target/linux/ramips/dts/mt7620a_alfa-network_ac1200rm.dts @@ -123,12 +123,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "nd_sd", "spi refclk", "wled"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "nd_sd", "spi refclk", "wled"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_alfa-network_r36m-e4g.dts b/target/linux/ramips/dts/mt7620a_alfa-network_r36m-e4g.dts index ce839f72f..4ba57dda4 100644 --- a/target/linux/ramips/dts/mt7620a_alfa-network_r36m-e4g.dts +++ b/target/linux/ramips/dts/mt7620a_alfa-network_r36m-e4g.dts @@ -154,12 +154,10 @@ status = "okay"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "ephy", "pcie", "rgmii1", "wled"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "ephy", "pcie", "rgmii1", "wled"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_alfa-network_tube-e4g.dts b/target/linux/ramips/dts/mt7620a_alfa-network_tube-e4g.dts index b02b1629b..4953c4c90 100644 --- a/target/linux/ramips/dts/mt7620a_alfa-network_tube-e4g.dts +++ b/target/linux/ramips/dts/mt7620a_alfa-network_tube-e4g.dts @@ -131,12 +131,10 @@ status = "disabled"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "ephy", "nd_sd", "pcie", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "ephy", "nd_sd", "pcie", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_asus_rp-n53.dts b/target/linux/ramips/dts/mt7620a_asus_rp-n53.dts index c9c440fe8..4f9299306 100644 --- a/target/linux/ramips/dts/mt7620a_asus_rp-n53.dts +++ b/target/linux/ramips/dts/mt7620a_asus_rp-n53.dts @@ -148,12 +148,10 @@ ralink,mtd-eeprom = <&factory 0>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "mdio", "rgmii1"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "mdio", "rgmii1"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_asus_rt-ac51u.dts b/target/linux/ramips/dts/mt7620a_asus_rt-ac51u.dts index 6efba7489..4acab8c03 100644 --- a/target/linux/ramips/dts/mt7620a_asus_rt-ac51u.dts +++ b/target/linux/ramips/dts/mt7620a_asus_rt-ac51u.dts @@ -125,12 +125,10 @@ ralink,mtd-eeprom = <&factory 0>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "wled", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "wled", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_bdcom_wap2100-sk.dts b/target/linux/ramips/dts/mt7620a_bdcom_wap2100-sk.dts index 898deee7e..e77f39843 100644 --- a/target/linux/ramips/dts/mt7620a_bdcom_wap2100-sk.dts +++ b/target/linux/ramips/dts/mt7620a_bdcom_wap2100-sk.dts @@ -142,11 +142,9 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - default { - ralink,group = "spi refclk", "uartf", "wled"; - ralink,function = "gpio"; - }; +&state_default { + default { + ralink,group = "spi refclk", "uartf", "wled"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_buffalo_whr-1166d.dts b/target/linux/ramips/dts/mt7620a_buffalo_whr-1166d.dts index 64fbeb0fe..aed4ce169 100644 --- a/target/linux/ramips/dts/mt7620a_buffalo_whr-1166d.dts +++ b/target/linux/ramips/dts/mt7620a_buffalo_whr-1166d.dts @@ -130,12 +130,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "uartf", "wled", "nd_sd"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "uartf", "wled", "nd_sd"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_buffalo_whr-300hp2.dts b/target/linux/ramips/dts/mt7620a_buffalo_whr-300hp2.dts index 8bdf87501..eeb4ee67d 100644 --- a/target/linux/ramips/dts/mt7620a_buffalo_whr-300hp2.dts +++ b/target/linux/ramips/dts/mt7620a_buffalo_whr-300hp2.dts @@ -130,12 +130,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_buffalo_whr-600d.dts b/target/linux/ramips/dts/mt7620a_buffalo_whr-600d.dts index a99910db8..0800e3d78 100644 --- a/target/linux/ramips/dts/mt7620a_buffalo_whr-600d.dts +++ b/target/linux/ramips/dts/mt7620a_buffalo_whr-600d.dts @@ -130,12 +130,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_dlink_dch-m225.dts b/target/linux/ramips/dts/mt7620a_dlink_dch-m225.dts index b08edfadf..27056a668 100644 --- a/target/linux/ramips/dts/mt7620a_dlink_dch-m225.dts +++ b/target/linux/ramips/dts/mt7620a_dlink_dch-m225.dts @@ -161,17 +161,15 @@ status = "okay"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "wdt", "rgmii1"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "wdt", "rgmii1"; + ralink,function = "gpio"; + }; - gpio_i2s { - ralink,group = "uartf"; - ralink,function = "gpio i2s"; - }; + gpio_i2s { + ralink,group = "uartf"; + ralink,function = "gpio i2s"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_dlink_dir-510l.dts b/target/linux/ramips/dts/mt7620a_dlink_dir-510l.dts index 56c0f8f89..8a79d9a45 100644 --- a/target/linux/ramips/dts/mt7620a_dlink_dir-510l.dts +++ b/target/linux/ramips/dts/mt7620a_dlink_dir-510l.dts @@ -129,11 +129,9 @@ mediatek,port4 = "ephy"; }; -&pinctrl { - state_default: pinctrl0 { - default { - ralink,group = "i2c", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + default { + ralink,group = "i2c", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_dlink_dir-810l.dts b/target/linux/ramips/dts/mt7620a_dlink_dir-810l.dts index 9232d4929..da8d2238a 100644 --- a/target/linux/ramips/dts/mt7620a_dlink_dir-810l.dts +++ b/target/linux/ramips/dts/mt7620a_dlink_dir-810l.dts @@ -117,12 +117,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "mdio", "rgmii1", "i2c", "wled", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "mdio", "rgmii1", "i2c", "wled", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_dlink_dwr-118-a1.dts b/target/linux/ramips/dts/mt7620a_dlink_dwr-118-a1.dts index 44ca66369..a69b17d73 100644 --- a/target/linux/ramips/dts/mt7620a_dlink_dwr-118-a1.dts +++ b/target/linux/ramips/dts/mt7620a_dlink_dwr-118-a1.dts @@ -129,12 +129,10 @@ status = "okay"; }; -&pinctrl { - state_default: pinctrl0 { - default { - ralink,group = "ephy", "uartf", "spi refclk", "wled"; - ralink,function = "gpio"; - }; +&state_default { + default { + ralink,group = "ephy", "uartf", "spi refclk", "wled"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_dlink_dwr-118-a2.dts b/target/linux/ramips/dts/mt7620a_dlink_dwr-118-a2.dts index 449f4ff4b..5134e9e1c 100644 --- a/target/linux/ramips/dts/mt7620a_dlink_dwr-118-a2.dts +++ b/target/linux/ramips/dts/mt7620a_dlink_dwr-118-a2.dts @@ -127,12 +127,10 @@ status = "okay"; }; -&pinctrl { - state_default: pinctrl0 { - default { - ralink,group = "ephy", "uartf", "spi refclk", "wled"; - ralink,function = "gpio"; - }; +&state_default { + default { + ralink,group = "ephy", "uartf", "spi refclk", "wled"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_dovado_tiny-ac.dts b/target/linux/ramips/dts/mt7620a_dovado_tiny-ac.dts index d0229e471..88bd514d5 100644 --- a/target/linux/ramips/dts/mt7620a_dovado_tiny-ac.dts +++ b/target/linux/ramips/dts/mt7620a_dovado_tiny-ac.dts @@ -152,12 +152,10 @@ status = "okay"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "uartf", "nd_sd", "wled"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "uartf", "nd_sd", "wled"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_edimax_br-6478ac-v2.dts b/target/linux/ramips/dts/mt7620a_edimax_br-6478ac-v2.dts index 43698d9fd..d34bc1b22 100644 --- a/target/linux/ramips/dts/mt7620a_edimax_br-6478ac-v2.dts +++ b/target/linux/ramips/dts/mt7620a_edimax_br-6478ac-v2.dts @@ -130,12 +130,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "uartf", "nd_sd"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "uartf", "nd_sd"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_edimax_ew-7478apc.dts b/target/linux/ramips/dts/mt7620a_edimax_ew-7478apc.dts index da5b428fa..e2765b187 100644 --- a/target/linux/ramips/dts/mt7620a_edimax_ew-7478apc.dts +++ b/target/linux/ramips/dts/mt7620a_edimax_ew-7478apc.dts @@ -115,12 +115,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "uartf", "nd_sd"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "uartf", "nd_sd"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_edimax_ew-747x.dtsi b/target/linux/ramips/dts/mt7620a_edimax_ew-747x.dtsi index 52c0ac092..1202ac1b6 100644 --- a/target/linux/ramips/dts/mt7620a_edimax_ew-747x.dtsi +++ b/target/linux/ramips/dts/mt7620a_edimax_ew-747x.dtsi @@ -98,14 +98,14 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "uartf", "nd_sd", "rgmii2"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "uartf", "nd_sd", "rgmii2"; + ralink,function = "gpio"; }; +}; +&pinctrl { phy_reset_pins: phy-reset { gpio { ralink,group = "spi refclk"; @@ -115,14 +115,13 @@ }; ðernet { - status = "okay"; + mtd-mac-address = <&factory 0x4>; pinctrl-names = "default"; pinctrl-0 = <&rgmii1_pins &mdio_pins &phy_reset_pins>; - mediatek,portmap = "l"; mediatek,mdio-mode = <1>; phy-reset-gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; diff --git a/target/linux/ramips/dts/mt7620a_engenius_esr600.dts b/target/linux/ramips/dts/mt7620a_engenius_esr600.dts index 65d71b99a..3213132c4 100644 --- a/target/linux/ramips/dts/mt7620a_engenius_esr600.dts +++ b/target/linux/ramips/dts/mt7620a_engenius_esr600.dts @@ -165,15 +165,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", /* gpio0: 1-2 */ - "uartf", /* gpio0: 7-14 */ - "nd_sd", /* gpio2: 45-59 */ - "wled"; /* gpio3: 72 */ - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "uartf", "nd_sd", "wled"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_glinet_gl-mt300a.dts b/target/linux/ramips/dts/mt7620a_glinet_gl-mt300a.dts index 6b2e2d115..d66861c9a 100644 --- a/target/linux/ramips/dts/mt7620a_glinet_gl-mt300a.dts +++ b/target/linux/ramips/dts/mt7620a_glinet_gl-mt300a.dts @@ -145,11 +145,9 @@ ralink,mtd-eeprom = <&factory 0>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "wled","ephy","uartf","i2c"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "wled","ephy","uartf","i2c"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_glinet_gl-mt300n.dts b/target/linux/ramips/dts/mt7620a_glinet_gl-mt300n.dts index 1c2b296a9..633253fad 100644 --- a/target/linux/ramips/dts/mt7620a_glinet_gl-mt300n.dts +++ b/target/linux/ramips/dts/mt7620a_glinet_gl-mt300n.dts @@ -136,11 +136,9 @@ ralink,mtd-eeprom = <&factory 0>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "wled","ephy","i2c"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "wled","ephy","i2c"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_glinet_gl-mt750.dts b/target/linux/ramips/dts/mt7620a_glinet_gl-mt750.dts index 08451d8a8..e6b30449e 100644 --- a/target/linux/ramips/dts/mt7620a_glinet_gl-mt750.dts +++ b/target/linux/ramips/dts/mt7620a_glinet_gl-mt750.dts @@ -151,11 +151,9 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "wled","ephy","uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "wled","ephy","uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_head-weblink_hdrm200.dts b/target/linux/ramips/dts/mt7620a_head-weblink_hdrm200.dts index 8d58d12f0..6395aa37f 100644 --- a/target/linux/ramips/dts/mt7620a_head-weblink_hdrm200.dts +++ b/target/linux/ramips/dts/mt7620a_head-weblink_hdrm200.dts @@ -159,13 +159,11 @@ ralink,mtd-eeprom = <&factory 0>; }; -&pinctrl { - state_default: pinctrl0 { - default { - ralink,group = "i2c", "uartf", "pa", "spi refclk", - "wled"; - ralink,function = "gpio"; - }; +&state_default { + default { + ralink,group = "i2c", "uartf", "pa", "spi refclk", + "wled"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_hiwifi_hc5661.dts b/target/linux/ramips/dts/mt7620a_hiwifi_hc5661.dts index 185e045de..452541137 100644 --- a/target/linux/ramips/dts/mt7620a_hiwifi_hc5661.dts +++ b/target/linux/ramips/dts/mt7620a_hiwifi_hc5661.dts @@ -29,11 +29,7 @@ wlan2g { label = "hc5661:blue:wlan2g"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; - }; - - wlan5g { - label = "hc5661:blue:wlan5g"; - gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy0tpt"; }; }; }; diff --git a/target/linux/ramips/dts/mt7620a_hiwifi_hc5761.dts b/target/linux/ramips/dts/mt7620a_hiwifi_hc5761.dts index 265f7d9bb..33ef8dd2a 100644 --- a/target/linux/ramips/dts/mt7620a_hiwifi_hc5761.dts +++ b/target/linux/ramips/dts/mt7620a_hiwifi_hc5761.dts @@ -29,11 +29,13 @@ wlan2g { label = "hc5761:blue:wlan2g"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy1tpt"; }; wlan5g { label = "hc5761:blue:wlan5g"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy0tpt"; }; }; }; diff --git a/target/linux/ramips/dts/mt7620a_hiwifi_hc5861.dts b/target/linux/ramips/dts/mt7620a_hiwifi_hc5861.dts index 73f1a4079..83a3a67ed 100644 --- a/target/linux/ramips/dts/mt7620a_hiwifi_hc5861.dts +++ b/target/linux/ramips/dts/mt7620a_hiwifi_hc5861.dts @@ -24,6 +24,7 @@ wlan2g { label = "hc5861:blue:wlan2g"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy1tpt"; }; internet { @@ -34,6 +35,7 @@ wlan5g { label = "hc5861:blue:wlan5g"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy0tpt"; }; turbo { diff --git a/target/linux/ramips/dts/mt7620a_hiwifi_hc5x61.dtsi b/target/linux/ramips/dts/mt7620a_hiwifi_hc5x61.dtsi index a7e3bd199..4f4fc4a72 100644 --- a/target/linux/ramips/dts/mt7620a_hiwifi_hc5x61.dtsi +++ b/target/linux/ramips/dts/mt7620a_hiwifi_hc5x61.dtsi @@ -125,11 +125,9 @@ pinctrl-0 = <&pa_pins>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "uartf", "wled"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "uartf", "wled"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_hnet_c108.dts b/target/linux/ramips/dts/mt7620a_hnet_c108.dts index c122b6dfd..49fa6b2c8 100644 --- a/target/linux/ramips/dts/mt7620a_hnet_c108.dts +++ b/target/linux/ramips/dts/mt7620a_hnet_c108.dts @@ -172,12 +172,10 @@ ralink,mtd-eeprom = <&factory 0>; }; -&pinctrl { - state_default: pinctrl0 { - default { - ralink,group = "i2c", "uartf", "spi refclk", "ephy"; - ralink,function = "gpio"; - }; +&state_default { + default { + ralink,group = "i2c", "uartf", "spi refclk", "ephy"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_iodata_wn-ac1167gr.dts b/target/linux/ramips/dts/mt7620a_iodata_wn-ac1167gr.dts index 5da91071d..200df6000 100644 --- a/target/linux/ramips/dts/mt7620a_iodata_wn-ac1167gr.dts +++ b/target/linux/ramips/dts/mt7620a_iodata_wn-ac1167gr.dts @@ -184,12 +184,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_iodata_wn-ac733gr3.dts b/target/linux/ramips/dts/mt7620a_iodata_wn-ac733gr3.dts index 12e6e12f0..062ef93ed 100644 --- a/target/linux/ramips/dts/mt7620a_iodata_wn-ac733gr3.dts +++ b/target/linux/ramips/dts/mt7620a_iodata_wn-ac733gr3.dts @@ -165,12 +165,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "uartf", "mdio"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "uartf", "mdio"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_iptime.dtsi b/target/linux/ramips/dts/mt7620a_iptime.dtsi new file mode 100644 index 000000000..5a6fdacb5 --- /dev/null +++ b/target/linux/ramips/dts/mt7620a_iptime.dtsi @@ -0,0 +1,86 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT + +#include "mt7620a.dtsi" + +#include +#include + +/ { + aliases { + label-mac-device = ðernet; + }; +}; + +&gpio1 { + status = "okay"; +}; + +&spi0 { + status = "okay"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <40000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + uboot: partition@0 { + label = "u-boot"; + reg = <0x0 0x20000>; + read-only; + }; + + partition@20000 { + label = "config"; + reg = <0x20000 0x10000>; + read-only; + }; + + firmware: partition@30000 { + compatible = "denx,uimage"; + label = "firmware"; + }; + }; + }; +}; + +ðernet { + mtd-mac-address = <&uboot 0x1fc20>; +}; + +&ehci { + status = "okay"; +}; + +&ohci { + status = "okay"; +}; + +&pcie { + status = "okay"; +}; + +&pcie0 { + wifi@0,0 { + compatible = "mediatek,mt76"; + reg = <0x0000 0 0 0 0>; + mediatek,mtd-eeprom = <&uboot 0x1f800>; + ieee80211-freq-limit = <5000000 6000000>; + + led { + led-sources = <0>; + led-active-low; + }; + }; +}; + +&wmac { + pinctrl-names = "default"; + pinctrl-0 = <&wled_pins>; + + ralink,mtd-eeprom = <&uboot 0x1f400>; +}; diff --git a/target/linux/ramips/dts/mt7620a_iptime_a104ns.dts b/target/linux/ramips/dts/mt7620a_iptime_a104ns.dts new file mode 100644 index 000000000..14b507100 --- /dev/null +++ b/target/linux/ramips/dts/mt7620a_iptime_a104ns.dts @@ -0,0 +1,59 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/dts-v1/; + +#include "mt7620a_iptime.dtsi" + +/ { + compatible = "iptime,a104ns", "ralink,mt7620a-soc"; + model = "ipTIME A104ns"; + + aliases { + led-boot = &led_cpu; + led-failsafe = &led_cpu; + led-running = &led_cpu; + led-upgrade = &led_cpu; + }; + + leds { + compatible = "gpio-leds"; + + usb { + label = "a104ns:blue:usb"; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + trigger-sources = <&ohci_port1>, <&ehci_port1>; + linux,default-trigger = "usbport"; + }; + + led_cpu: cpu { + label = "a104ns:blue:cpu"; + gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys"; + + wps { + label = "wps"; + gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + reset { + label = "reset"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&firmware { + reg = <0x30000 0x7d0000>; +}; + +&state_default { + gpio { + ralink,group = "uartf", "spi refclk"; + ralink,function = "gpio"; + }; +}; diff --git a/target/linux/ramips/dts/mt7620a_kimax_u25awf-h1.dts b/target/linux/ramips/dts/mt7620a_kimax_u25awf-h1.dts index e1aeb4fa8..ef4dc233e 100644 --- a/target/linux/ramips/dts/mt7620a_kimax_u25awf-h1.dts +++ b/target/linux/ramips/dts/mt7620a_kimax_u25awf-h1.dts @@ -105,11 +105,9 @@ ralink,mtd-eeprom = <&factory 0>; }; -&pinctrl { - state_default: pinctrl0 { - default { - ralink,group = "uartf", "ephy", "wled"; - ralink,function = "gpio"; - }; +&state_default { + default { + ralink,group = "uartf", "ephy", "wled"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_lava_lr-25g001.dts b/target/linux/ramips/dts/mt7620a_lava_lr-25g001.dts index 3130365b9..e400ebcff 100644 --- a/target/linux/ramips/dts/mt7620a_lava_lr-25g001.dts +++ b/target/linux/ramips/dts/mt7620a_lava_lr-25g001.dts @@ -170,11 +170,9 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "uartf", "i2c"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "uartf", "i2c"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dtsi b/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dtsi index a5262ffca..29832ac42 100644 --- a/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dtsi +++ b/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dtsi @@ -99,11 +99,9 @@ pinctrl-0 = <&pa_pins>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "uartf", "wled", "nd_sd"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "uartf", "wled", "nd_sd"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_linksys_e1700.dts b/target/linux/ramips/dts/mt7620a_linksys_e1700.dts index 256b30630..799d660d3 100644 --- a/target/linux/ramips/dts/mt7620a_linksys_e1700.dts +++ b/target/linux/ramips/dts/mt7620a_linksys_e1700.dts @@ -97,12 +97,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_microduino_microwrt.dts b/target/linux/ramips/dts/mt7620a_microduino_microwrt.dts index 76ab099a1..57f408a64 100644 --- a/target/linux/ramips/dts/mt7620a_microduino_microwrt.dts +++ b/target/linux/ramips/dts/mt7620a_microduino_microwrt.dts @@ -97,11 +97,9 @@ ralink,mtd-eeprom = <&factory 0>; }; -&pinctrl { - state_default: pinctrl0 { - default { - ralink,group = "wled", "i2c", "wdt", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + default { + ralink,group = "wled", "i2c", "wdt", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_netgear_ex2700_wn3000rp-v3.dtsi b/target/linux/ramips/dts/mt7620a_netgear_ex2700_wn3000rp-v3.dtsi index 000c7535d..819914716 100755 --- a/target/linux/ramips/dts/mt7620a_netgear_ex2700_wn3000rp-v3.dtsi +++ b/target/linux/ramips/dts/mt7620a_netgear_ex2700_wn3000rp-v3.dtsi @@ -54,11 +54,9 @@ mtd-mac-address = <&art 0x6>; }; -&pinctrl { - state_default: pinctrl0 { - default { - ralink,group = "i2c", "uartf", "spi refclk"; - ralink,function = "gpio"; - }; +&state_default { + default { + ralink,group = "i2c", "uartf", "spi refclk"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_netgear_ex3700_ex6130.dtsi b/target/linux/ramips/dts/mt7620a_netgear_ex3700_ex6130.dtsi index d8d74ffc3..ec9b6c587 100644 --- a/target/linux/ramips/dts/mt7620a_netgear_ex3700_ex6130.dtsi +++ b/target/linux/ramips/dts/mt7620a_netgear_ex3700_ex6130.dtsi @@ -105,11 +105,9 @@ ralink,mtd-eeprom = <&factory 0x0>; }; -&pinctrl { - state_default: pinctrl0 { - default { - ralink,group = "i2c", "rgmii2", "spi refclk"; - ralink,function = "gpio"; - }; +&state_default { + default { + ralink,group = "i2c", "rgmii2", "spi refclk"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_netgear_ex6130.dts b/target/linux/ramips/dts/mt7620a_netgear_ex6130.dts index 68dd3f65d..f0e0861f3 100644 --- a/target/linux/ramips/dts/mt7620a_netgear_ex6130.dts +++ b/target/linux/ramips/dts/mt7620a_netgear_ex6130.dts @@ -13,6 +13,7 @@ led-failsafe = &led_power_green; led-running = &led_power_green; led-upgrade = &led_power_green; + label-mac-device = ðernet; }; leds { diff --git a/target/linux/ramips/dts/mt7620a_ohyeah_oy-0001.dts b/target/linux/ramips/dts/mt7620a_ohyeah_oy-0001.dts index 6ef7e8415..98dac3f5b 100644 --- a/target/linux/ramips/dts/mt7620a_ohyeah_oy-0001.dts +++ b/target/linux/ramips/dts/mt7620a_ohyeah_oy-0001.dts @@ -93,12 +93,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_phicomm_k2g.dts b/target/linux/ramips/dts/mt7620a_phicomm_k2g.dts index e71211e68..5071aed16 100644 --- a/target/linux/ramips/dts/mt7620a_phicomm_k2g.dts +++ b/target/linux/ramips/dts/mt7620a_phicomm_k2g.dts @@ -93,12 +93,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_phicomm_psg1208.dts b/target/linux/ramips/dts/mt7620a_phicomm_psg1208.dts index 310f78ec5..92fcfdf68 100644 --- a/target/linux/ramips/dts/mt7620a_phicomm_psg1208.dts +++ b/target/linux/ramips/dts/mt7620a_phicomm_psg1208.dts @@ -89,12 +89,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "spi refclk", "wled"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "spi refclk", "wled"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_phicomm_psg1218a.dts b/target/linux/ramips/dts/mt7620a_phicomm_psg1218a.dts index 4e023ed6b..1474422a2 100644 --- a/target/linux/ramips/dts/mt7620a_phicomm_psg1218a.dts +++ b/target/linux/ramips/dts/mt7620a_phicomm_psg1218a.dts @@ -34,12 +34,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_phicomm_psg1218b.dts b/target/linux/ramips/dts/mt7620a_phicomm_psg1218b.dts index f451b43ae..15fb40fa7 100644 --- a/target/linux/ramips/dts/mt7620a_phicomm_psg1218b.dts +++ b/target/linux/ramips/dts/mt7620a_phicomm_psg1218b.dts @@ -34,12 +34,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd", "pa"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd", "pa"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_planex_cs-qr10.dts b/target/linux/ramips/dts/mt7620a_planex_cs-qr10.dts index c5efb3956..8390d1891 100644 --- a/target/linux/ramips/dts/mt7620a_planex_cs-qr10.dts +++ b/target/linux/ramips/dts/mt7620a_planex_cs-qr10.dts @@ -116,16 +116,14 @@ status = "okay"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi refclk", "rgmii1"; - ralink,function = "gpio"; - }; - wdt { - ralink,group = "wdt"; - ralink,function = "wdt refclk"; - }; +&state_default { + gpio { + ralink,group = "spi refclk", "rgmii1"; + ralink,function = "gpio"; + }; + wdt { + ralink,group = "wdt"; + ralink,function = "wdt refclk"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_planex_db-wrt01.dts b/target/linux/ramips/dts/mt7620a_planex_db-wrt01.dts index ecbf91083..a7c614cc2 100644 --- a/target/linux/ramips/dts/mt7620a_planex_db-wrt01.dts +++ b/target/linux/ramips/dts/mt7620a_planex_db-wrt01.dts @@ -80,12 +80,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "spi refclk", "rgmii1"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "spi refclk", "rgmii1"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_planex_mzk-750dhp.dts b/target/linux/ramips/dts/mt7620a_planex_mzk-750dhp.dts index be7a56983..6062a76f7 100644 --- a/target/linux/ramips/dts/mt7620a_planex_mzk-750dhp.dts +++ b/target/linux/ramips/dts/mt7620a_planex_mzk-750dhp.dts @@ -100,12 +100,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "spi refclk", "rgmii1", "nd_sd"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "spi refclk", "rgmii1", "nd_sd"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_planex_mzk-ex300np.dts b/target/linux/ramips/dts/mt7620a_planex_mzk-ex300np.dts index ea2a11b82..3313c6c07 100644 --- a/target/linux/ramips/dts/mt7620a_planex_mzk-ex300np.dts +++ b/target/linux/ramips/dts/mt7620a_planex_mzk-ex300np.dts @@ -120,12 +120,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "spi refclk", "rgmii1", "wled"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "spi refclk", "rgmii1", "wled"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_planex_mzk-ex750np.dts b/target/linux/ramips/dts/mt7620a_planex_mzk-ex750np.dts index 7fe329f03..4b64afd22 100644 --- a/target/linux/ramips/dts/mt7620a_planex_mzk-ex750np.dts +++ b/target/linux/ramips/dts/mt7620a_planex_mzk-ex750np.dts @@ -125,12 +125,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "uartf", "nd_sd", "rgmii2", "wled"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "uartf", "nd_sd", "rgmii2", "wled"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_ralink_mt7620a-evb.dts b/target/linux/ramips/dts/mt7620a_ralink_mt7620a-evb.dts index 5b62fd92d..56f427aa8 100644 --- a/target/linux/ramips/dts/mt7620a_ralink_mt7620a-evb.dts +++ b/target/linux/ramips/dts/mt7620a_ralink_mt7620a-evb.dts @@ -66,12 +66,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_ralink_mt7620a-mt7530-evb.dts b/target/linux/ramips/dts/mt7620a_ralink_mt7620a-mt7530-evb.dts index 976e2acca..e106af402 100644 --- a/target/linux/ramips/dts/mt7620a_ralink_mt7620a-mt7530-evb.dts +++ b/target/linux/ramips/dts/mt7620a_ralink_mt7620a-mt7530-evb.dts @@ -47,12 +47,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_ralink_mt7620a-v22sg-evb.dts b/target/linux/ramips/dts/mt7620a_ralink_mt7620a-v22sg-evb.dts index 7b3517c13..74c82341f 100644 --- a/target/linux/ramips/dts/mt7620a_ralink_mt7620a-v22sg-evb.dts +++ b/target/linux/ramips/dts/mt7620a_ralink_mt7620a-v22sg-evb.dts @@ -60,12 +60,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "uartf", "spi"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "uartf", "spi"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_sanlinking_d240.dts b/target/linux/ramips/dts/mt7620a_sanlinking_d240.dts index c2b94eebb..35617c088 100644 --- a/target/linux/ramips/dts/mt7620a_sanlinking_d240.dts +++ b/target/linux/ramips/dts/mt7620a_sanlinking_d240.dts @@ -177,26 +177,24 @@ ralink,mtd-eeprom = <&factory 0>; }; -&pinctrl { - state_default: pinctrl0 { - default { - ralink,group = "i2c", "uartf", "wled", "spi refclk", "pa"; - ralink,function = "gpio"; - }; +&state_default { + default { + ralink,group = "i2c", "uartf", "wled", "spi refclk", "pa"; + ralink,function = "gpio"; + }; - /* - * The sd function of the nd_sd group configures two of the - * groups pins as gpios. The pins are used as PCIe reset/power. - * Due to the driver load order, the pins are configured way to - * late if triggered by the sd-card driver. - * To not introduce another kind of driver load order - * dependency and configure the pins as early as possible, - * means during pinmux driver load. - */ - gpio_sd { - ralink,group = "nd_sd"; - ralink,function = "sd"; - }; + /* + * The sd function of the nd_sd group configures two of the + * groups pins as gpios. The pins are used as PCIe reset/power. + * Due to the driver load order, the pins are configured way to + * late if triggered by the sd-card driver. + * To not introduce another kind of driver load order + * dependency and configure the pins as early as possible, + * means during pinmux driver load. + */ + gpio_sd { + ralink,group = "nd_sd"; + ralink,function = "sd"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_sercomm_na930.dts b/target/linux/ramips/dts/mt7620a_sercomm_na930.dts index 76e1eb79b..952f371ce 100644 --- a/target/linux/ramips/dts/mt7620a_sercomm_na930.dts +++ b/target/linux/ramips/dts/mt7620a_sercomm_na930.dts @@ -114,17 +114,15 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "rgmii2", "spi", "ephy"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "rgmii2", "spi", "ephy"; + ralink,function = "gpio"; + }; - uartf_gpio { - ralink,group = "uartf"; - ralink,function = "gpio uartf"; - }; + uartf_gpio { + ralink,group = "uartf"; + ralink,function = "gpio uartf"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts b/target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts index 2da35936b..efa83eb16 100644 --- a/target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts +++ b/target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts @@ -20,15 +20,6 @@ bootargs = "console=ttyS0,115200"; }; - pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "uartf", "wled", "ephy", "spi refclk"; - ralink,function = "gpio"; - }; - }; - }; - leds { compatible = "gpio-leds"; @@ -57,6 +48,7 @@ wlan { label = "archer-c2-v1:green:wlan"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy1tpt"; }; }; @@ -165,6 +157,13 @@ status = "okay"; }; +&state_default { + gpio { + ralink,group = "i2c", "uartf", "wled", "ephy", "spi refclk"; + ralink,function = "gpio"; + }; +}; + &wmac { ralink,mtd-eeprom = <&radio 0>; mtd-mac-address = <&rom 0xf100>; @@ -186,5 +185,7 @@ mt76@0,0 { reg = <0x0000 0 0 0 0>; mediatek,mtd-eeprom = <&radio 0x8000>; + mtd-mac-address = <&rom 0xf100>; + mtd-mac-address-increment = <(-1)>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_tplink_archer-c20-v1.dts b/target/linux/ramips/dts/mt7620a_tplink_archer-c20-v1.dts index 23719c3f3..b1d3e2345 100644 --- a/target/linux/ramips/dts/mt7620a_tplink_archer-c20-v1.dts +++ b/target/linux/ramips/dts/mt7620a_tplink_archer-c20-v1.dts @@ -47,11 +47,13 @@ wlan5g { label = "archer-c20-v1:blue:wlan5g"; gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy0tpt"; }; wlan2g { label = "archer-c20-v1:blue:wlan2g"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy1tpt"; }; wps { @@ -61,12 +63,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "uartf", "wled", "ephy", "spi refclk", "wdt"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "uartf", "wled", "ephy", "spi refclk", "wdt"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_tplink_archer-c20i.dts b/target/linux/ramips/dts/mt7620a_tplink_archer-c20i.dts index 975e0af66..7e05a2e1e 100644 --- a/target/linux/ramips/dts/mt7620a_tplink_archer-c20i.dts +++ b/target/linux/ramips/dts/mt7620a_tplink_archer-c20i.dts @@ -7,6 +7,10 @@ model = "TP-Link Archer C20i"; aliases { + led-boot = &led_wps; + led-failsafe = &led_wps; + led-running = &led_wps; + led-upgrade = &led_wps; label-mac-device = ðernet; }; @@ -25,7 +29,7 @@ linux,default-trigger = "usbport"; }; - wps { + led_wps: wps { label = "archer-c20i:blue:wps"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; @@ -38,15 +42,23 @@ wlan { label = "archer-c20i:blue:wlan"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy1tpt"; }; }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd", "ephy", "spi refclk"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd", "ephy", "spi refclk"; + ralink,function = "gpio"; }; }; + +&wmac { + mtd-mac-address = <&rom 0xf100>; +}; + +&wifi { + mtd-mac-address = <&rom 0xf100>; + mtd-mac-address-increment = <(-1)>; +}; diff --git a/target/linux/ramips/dts/mt7620a_tplink_archer-c50-v1.dts b/target/linux/ramips/dts/mt7620a_tplink_archer-c50-v1.dts index 77885853e..ca03d2ed7 100644 --- a/target/linux/ramips/dts/mt7620a_tplink_archer-c50-v1.dts +++ b/target/linux/ramips/dts/mt7620a_tplink_archer-c50-v1.dts @@ -47,11 +47,13 @@ wlan5g { label = "archer-c50-v1:green:wlan5g"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy0tpt"; }; wlan2g { label = "archer-c50-v1:green:wlan2g"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy1tpt"; }; wps { @@ -61,12 +63,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "ephy", "spi refclk", "mdio", "wdt", "nd_sd"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "ephy", "spi refclk", "mdio", "wdt", "nd_sd"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_tplink_archer-mr200.dts b/target/linux/ramips/dts/mt7620a_tplink_archer-mr200.dts index 21fc3a185..ea42ef2c5 100644 --- a/target/linux/ramips/dts/mt7620a_tplink_archer-mr200.dts +++ b/target/linux/ramips/dts/mt7620a_tplink_archer-mr200.dts @@ -71,6 +71,7 @@ wlan { label = "archer-mr200:white:wlan"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy1tpt"; }; }; @@ -160,19 +161,16 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd", "ephy", "spi refclk"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd", "ephy", "spi refclk"; + ralink,function = "gpio"; }; }; ðernet { - mtd-mac-address = <&rom 0xf100>; - mediatek,portmap = "llll"; - }; + mtd-mac-address = <&rom 0xf100>; +}; &ehci { status = "okay"; diff --git a/target/linux/ramips/dts/mt7620a_tplink_re200-v1.dts b/target/linux/ramips/dts/mt7620a_tplink_re200-v1.dts new file mode 100644 index 000000000..afc94c538 --- /dev/null +++ b/target/linux/ramips/dts/mt7620a_tplink_re200-v1.dts @@ -0,0 +1,158 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/dts-v1/; + +#include "mt7620a.dtsi" + +#include +#include + +/ { + compatible = "tplink,re200-v1", "ralink,mt7620a-soc"; + model = "TP-Link RE200 v1"; + + aliases { + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; + label-mac-device = ðernet; + }; + + chosen { + bootargs = "console=ttyS0,57600n8"; + }; + + leds { + compatible = "gpio-leds"; + + led_power: power { + label = "re200-v1:green:power"; + gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; + }; + + lan { + label = "re200-v1:green:lan"; + gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; + }; + + wlan { + label = "re200-v1:green:wlan"; + gpios = <&gpio1 3 GPIO_ACTIVE_LOW>; + }; + + qss { + label = "re200-v1:green:qss"; + gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; + }; + + wlan2g_red { + label = "re200-v1:red:wlan2g"; + gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; + }; + + wlan2g_green { + label = "re200-v1:green:wlan2g"; + gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy1tpt"; + }; + }; + + keys { + compatible = "gpio-keys"; + + reset { + label = "reset"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wps { + label = "wps"; + gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + + +&state_default { + gpio { + ralink,group = "i2c", "uartf", "ephy", "wled", "rgmii1", "spi refclk"; + ralink,function = "gpio"; + }; +}; + +&spi0 { + status = "okay"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <50000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + uboot: partition@0 { + label = "u-boot"; + reg = <0x0 0x20000>; + read-only; + }; + + partition@20000 { + compatible = "tplink,firmware"; + label = "firmware"; + reg = <0x20000 0x7c0000>; + }; + + partition@7e0000 { + label = "userconfig"; + reg = <0x7e0000 0x10000>; + read-only; + }; + + radio: partition@7f0000 { + label = "radio"; + reg = <0x7f0000 0x10000>; + read-only; + }; + }; + }; +}; + +&gpio1 { + status = "okay"; +}; + +&gpio2 { + status = "okay"; +}; + +&gpio3 { + status = "okay"; +}; + +ðernet { + mtd-mac-address = <&uboot 0x1fc00>; +}; + +&wmac { + ralink,mtd-eeprom = <&radio 0x0>; + mtd-mac-address = <&uboot 0x1fc00>; +}; + +&pcie { + status = "okay"; +}; + +&pcie0 { + mt76@0,0 { + reg = <0x0000 0 0 0 0>; + mediatek,mtd-eeprom = <&radio 0x8000>; + mtd-mac-address = <&uboot 0x1fc00>; + mtd-mac-address-increment = <2>; + ieee80211-freq-limit = <5000000 6000000>; + }; +}; diff --git a/target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts b/target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts index 8bf6565d2..d076e10ce 100644 --- a/target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts +++ b/target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts @@ -152,11 +152,9 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "rgmii1"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "rgmii1"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_youku_yk1.dts b/target/linux/ramips/dts/mt7620a_youku_yk1.dts index 82be9c4c9..641c05a62 100644 --- a/target/linux/ramips/dts/mt7620a_youku_yk1.dts +++ b/target/linux/ramips/dts/mt7620a_youku_yk1.dts @@ -110,12 +110,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - default { - ralink,group = "i2c", "rgmii1", "ephy", "wled"; - ralink,function = "gpio"; - }; +&state_default { + default { + ralink,group = "i2c", "rgmii1", "ephy", "wled"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_yukai_bocco.dts b/target/linux/ramips/dts/mt7620a_yukai_bocco.dts index 7abc34d19..94ac1dd4f 100644 --- a/target/linux/ramips/dts/mt7620a_yukai_bocco.dts +++ b/target/linux/ramips/dts/mt7620a_yukai_bocco.dts @@ -139,12 +139,10 @@ status = "okay"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi refclk", "rgmii1"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "spi refclk", "rgmii1"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-ape522ii.dts b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-ape522ii.dts index f7bc4f200..cf9b91f56 100644 --- a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-ape522ii.dts +++ b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-ape522ii.dts @@ -133,11 +133,9 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "wled", "i2c", "uartf", "wdt"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "wled", "i2c", "uartf", "wdt"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we1026.dtsi b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we1026.dtsi index d5a6d5389..3d971ba2c 100644 --- a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we1026.dtsi +++ b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we1026.dtsi @@ -94,11 +94,9 @@ ralink,mtd-eeprom = <&factory 0x0>; }; -&pinctrl { - state_default: pinctrl0 { - default { - ralink,group = "i2c", "uartf", "spi refclk", "ephy", "wled"; - ralink,function = "gpio"; - }; +&state_default { + default { + ralink,group = "i2c", "uartf", "spi refclk", "ephy", "wled"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we826-e.dts b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we826-e.dts index 2496a16a2..a7779a007 100644 --- a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we826-e.dts +++ b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we826-e.dts @@ -74,11 +74,9 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - default { - ralink,group = "i2c", "uartf", "wled"; - ralink,function = "gpio"; - }; +&state_default { + default { + ralink,group = "i2c", "uartf", "wled"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we826.dtsi b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we826.dtsi index 41c6b07db..82d5de401 100644 --- a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we826.dtsi +++ b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we826.dtsi @@ -82,12 +82,10 @@ ralink,mtd-eeprom = <&factory 0>; }; -&pinctrl { - state_default: pinctrl0 { - default { - ralink,group = "i2c", "uartf", "wled", "spi refclk", "pa"; - ralink,function = "gpio"; - }; +&state_default { + default { + ralink,group = "i2c", "uartf", "wled", "spi refclk", "pa"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_zte_q7.dts b/target/linux/ramips/dts/mt7620a_zte_q7.dts index 50368b8bd..fc07b5741 100644 --- a/target/linux/ramips/dts/mt7620a_zte_q7.dts +++ b/target/linux/ramips/dts/mt7620a_zte_q7.dts @@ -89,12 +89,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "ephy", "wled"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "ephy", "wled"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_zyxel_keenetic-viva.dts b/target/linux/ramips/dts/mt7620a_zyxel_keenetic-viva.dts index 16a606ea1..563a159ff 100644 --- a/target/linux/ramips/dts/mt7620a_zyxel_keenetic-viva.dts +++ b/target/linux/ramips/dts/mt7620a_zyxel_keenetic-viva.dts @@ -128,12 +128,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620n_asus_rt-n12p.dts b/target/linux/ramips/dts/mt7620n_asus_rt-n12p.dts index 76c362f59..801f4c50e 100644 --- a/target/linux/ramips/dts/mt7620n_asus_rt-n12p.dts +++ b/target/linux/ramips/dts/mt7620n_asus_rt-n12p.dts @@ -116,11 +116,9 @@ ralink,mtd-eeprom = <&factory 0>; }; -&pinctrl { - state_default: pinctrl0 { - default { - ralink,group = "ephy", "wled", "i2c", "wdt", "pa", "spi refclk"; - ralink,function = "gpio"; - }; +&state_default { + default { + ralink,group = "ephy", "wled", "i2c", "wdt", "pa", "spi refclk"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620n_asus_rt-n14u.dts b/target/linux/ramips/dts/mt7620n_asus_rt-n14u.dts index 960d2acae..2e7f8ea5f 100644 --- a/target/linux/ramips/dts/mt7620n_asus_rt-n14u.dts +++ b/target/linux/ramips/dts/mt7620n_asus_rt-n14u.dts @@ -129,11 +129,9 @@ ralink,mtd-eeprom = <&factory 0>; }; -&pinctrl { - state_default: pinctrl0 { - default { - ralink,group = "ephy", "wled", "i2c"; - ralink,function = "gpio"; - }; +&state_default { + default { + ralink,group = "ephy", "wled", "i2c"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620n_buffalo_wmr-300.dts b/target/linux/ramips/dts/mt7620n_buffalo_wmr-300.dts index f7c24ec48..9db47c814 100644 --- a/target/linux/ramips/dts/mt7620n_buffalo_wmr-300.dts +++ b/target/linux/ramips/dts/mt7620n_buffalo_wmr-300.dts @@ -105,11 +105,9 @@ ralink,mtd-eeprom = <&factory 0>; }; -&pinctrl { - state_default: pinctrl0 { - default { - ralink,group = "i2c", "ephy"; - ralink,function = "gpio"; - }; +&state_default { + default { + ralink,group = "i2c", "ephy"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620n_comfast_cf-wr800n.dts b/target/linux/ramips/dts/mt7620n_comfast_cf-wr800n.dts index b033ef90c..16eea14bd 100644 --- a/target/linux/ramips/dts/mt7620n_comfast_cf-wr800n.dts +++ b/target/linux/ramips/dts/mt7620n_comfast_cf-wr800n.dts @@ -114,11 +114,9 @@ ralink,mtd-eeprom = <&factory 0>; }; -&pinctrl { - state_default: pinctrl0 { - default { - ralink,group = "ephy", "wled", "spi refclk", "i2c"; - ralink,function = "gpio"; - }; +&state_default { + default { + ralink,group = "ephy", "wled", "spi refclk", "i2c"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620n_dlink_dwr-116-a1.dts b/target/linux/ramips/dts/mt7620n_dlink_dwr-116-a1.dts index 14bfc0f30..cac849c91 100644 --- a/target/linux/ramips/dts/mt7620n_dlink_dwr-116-a1.dts +++ b/target/linux/ramips/dts/mt7620n_dlink_dwr-116-a1.dts @@ -97,12 +97,10 @@ status = "okay"; }; -&pinctrl { - state_default: pinctrl0 { - default { - ralink,group = "i2c", "wled"; - ralink,function = "gpio"; - }; +&state_default { + default { + ralink,group = "i2c", "wled"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620n_dlink_dwr-921-c1.dts b/target/linux/ramips/dts/mt7620n_dlink_dwr-921-c1.dts index 8214e4a78..27703acc0 100644 --- a/target/linux/ramips/dts/mt7620n_dlink_dwr-921-c1.dts +++ b/target/linux/ramips/dts/mt7620n_dlink_dwr-921-c1.dts @@ -141,11 +141,9 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - default { - ralink,group = "spi refclk", "i2c", "ephy", "wled"; - ralink,function = "gpio"; - }; +&state_default { + default { + ralink,group = "spi refclk", "i2c", "ephy", "wled"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620n_dlink_dwr-922-e2.dts b/target/linux/ramips/dts/mt7620n_dlink_dwr-922-e2.dts index ab38ad057..ebd917141 100644 --- a/target/linux/ramips/dts/mt7620n_dlink_dwr-922-e2.dts +++ b/target/linux/ramips/dts/mt7620n_dlink_dwr-922-e2.dts @@ -143,11 +143,9 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - default { - ralink,group = "spi refclk", "i2c", "ephy", "wled"; - ralink,function = "gpio"; - }; +&state_default { + default { + ralink,group = "spi refclk", "i2c", "ephy", "wled"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620n_elecom_wrh-300cr.dts b/target/linux/ramips/dts/mt7620n_elecom_wrh-300cr.dts index b1eceeed8..a8d5b04b3 100644 --- a/target/linux/ramips/dts/mt7620n_elecom_wrh-300cr.dts +++ b/target/linux/ramips/dts/mt7620n_elecom_wrh-300cr.dts @@ -126,11 +126,9 @@ ralink,mtd-eeprom = <&factory 0>; }; -&pinctrl { - state_default: pinctrl0 { - default { - ralink,group = "i2c", "ephy", "wled"; - ralink,function = "gpio"; - }; +&state_default { + default { + ralink,group = "i2c", "ephy", "wled"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620n_kimax_u35wf.dts b/target/linux/ramips/dts/mt7620n_kimax_u35wf.dts index c49cb02bb..c48560bb9 100644 --- a/target/linux/ramips/dts/mt7620n_kimax_u35wf.dts +++ b/target/linux/ramips/dts/mt7620n_kimax_u35wf.dts @@ -105,11 +105,9 @@ ralink,mtd-eeprom = <&factory 0>; }; -&pinctrl { - state_default: pinctrl0 { - default { - ralink,group = "ephy", "wled"; - ralink,function = "gpio"; - }; +&state_default { + default { + ralink,group = "ephy", "wled"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620n_kingston_mlw221.dts b/target/linux/ramips/dts/mt7620n_kingston_mlw221.dts index 9658f6c4d..6decec798 100644 --- a/target/linux/ramips/dts/mt7620n_kingston_mlw221.dts +++ b/target/linux/ramips/dts/mt7620n_kingston_mlw221.dts @@ -121,11 +121,9 @@ ralink,mtd-eeprom = <&factory 0>; }; -&pinctrl { - state_default: pinctrl0 { - default { - ralink,group = "i2c", "ephy", "wled"; - ralink,function = "gpio"; - }; +&state_default { + default { + ralink,group = "i2c", "ephy", "wled"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620n_kingston_mlwg2.dts b/target/linux/ramips/dts/mt7620n_kingston_mlwg2.dts index 6d7d2d06b..75267c68b 100644 --- a/target/linux/ramips/dts/mt7620n_kingston_mlwg2.dts +++ b/target/linux/ramips/dts/mt7620n_kingston_mlwg2.dts @@ -121,11 +121,9 @@ ralink,mtd-eeprom = <&factory 0>; }; -&pinctrl { - state_default: pinctrl0 { - default { - ralink,group = "i2c", "ephy", "wled"; - ralink,function = "gpio"; - }; +&state_default { + default { + ralink,group = "i2c", "ephy", "wled"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620n_nexx_wt3020.dtsi b/target/linux/ramips/dts/mt7620n_nexx_wt3020.dtsi index 2fc366264..cee1e04e8 100644 --- a/target/linux/ramips/dts/mt7620n_nexx_wt3020.dtsi +++ b/target/linux/ramips/dts/mt7620n_nexx_wt3020.dtsi @@ -51,11 +51,9 @@ ralink,mtd-eeprom = <&factory 0>; }; -&pinctrl { - state_default: pinctrl0 { - default { - ralink,group = "ephy", "wled", "pa", "i2c", "wdt", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + default { + ralink,group = "ephy", "wled", "pa", "i2c", "wdt", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620n_ravpower_wd03.dts b/target/linux/ramips/dts/mt7620n_ravpower_wd03.dts index 7dcff4691..1740de16e 100644 --- a/target/linux/ramips/dts/mt7620n_ravpower_wd03.dts +++ b/target/linux/ramips/dts/mt7620n_ravpower_wd03.dts @@ -32,7 +32,7 @@ reset { label = "reset"; - gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>; + gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; linux,code = ; }; }; @@ -107,11 +107,9 @@ ralink,mtd-eeprom = <&factory 0>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "wled", "ephy"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "wled", "ephy"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620n_vonets_var11n-300.dts b/target/linux/ramips/dts/mt7620n_vonets_var11n-300.dts index 184d947e3..ddcfb1d9b 100644 --- a/target/linux/ramips/dts/mt7620n_vonets_var11n-300.dts +++ b/target/linux/ramips/dts/mt7620n_vonets_var11n-300.dts @@ -89,11 +89,9 @@ ralink,mtd-eeprom = <&factory 0>; }; -&pinctrl { - state_default: pinctrl0 { - default { - ralink,group = "i2c"; - ralink,function = "gpio"; - }; +&state_default { + default { + ralink,group = "i2c"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620n_wrtnode_wrtnode.dts b/target/linux/ramips/dts/mt7620n_wrtnode_wrtnode.dts index a80881820..1c346856d 100644 --- a/target/linux/ramips/dts/mt7620n_wrtnode_wrtnode.dts +++ b/target/linux/ramips/dts/mt7620n_wrtnode_wrtnode.dts @@ -94,11 +94,9 @@ ralink,mtd-eeprom = <&factory 0>; }; -&pinctrl { - state_default: pinctrl0 { - default { - ralink,group = "ephy", "wled", "pa", "i2c", "wdt", "uartf", "spi refclk"; - ralink,function = "gpio"; - }; +&state_default { + default { + ralink,group = "ephy", "wled", "pa", "i2c", "wdt", "uartf", "spi refclk"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-cpe102.dts b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-cpe102.dts index 388542834..7a646882f 100644 --- a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-cpe102.dts +++ b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-cpe102.dts @@ -117,11 +117,9 @@ ralink,mtd-eeprom = <&factory 0>; }; -&pinctrl { - state_default: pinctrl0 { - default { - ralink,group = "i2c", "spi refclk", "wled"; - ralink,function = "gpio"; - }; +&state_default { + default { + ralink,group = "i2c", "spi refclk", "wled"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-wa05.dts b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-wa05.dts index 7949c4838..41029440e 100644 --- a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-wa05.dts +++ b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-wa05.dts @@ -121,11 +121,9 @@ ralink,mtd-eeprom = <&factory 0>; }; -&pinctrl { - state_default: pinctrl0 { - default { - ralink,group = "i2c", "spi refclk", "wled"; - ralink,function = "gpio"; - }; +&state_default { + default { + ralink,group = "i2c", "spi refclk", "wled"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-we2026.dts b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-we2026.dts index 0cadbddcb..725a070fd 100644 --- a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-we2026.dts +++ b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-we2026.dts @@ -102,11 +102,9 @@ ralink,mtd-eeprom = <&factory 0>; }; -&pinctrl { - state_default: pinctrl0 { - default { - ralink,group = "i2c", "spi refclk", "wled"; - ralink,function = "gpio"; - }; +&state_default { + default { + ralink,group = "i2c", "spi refclk", "wled"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-wr8305rt.dts b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-wr8305rt.dts index cdfeaff39..12b1c5908 100644 --- a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-wr8305rt.dts +++ b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-wr8305rt.dts @@ -115,11 +115,9 @@ ralink,mtd-eeprom = <&factory 0>; }; -&pinctrl { - state_default: pinctrl0 { - default { - ralink,group = "i2c", "uartf", "spi refclk", "wled"; - ralink,function = "gpio"; - }; +&state_default { + default { + ralink,group = "i2c", "uartf", "spi refclk", "wled"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni-ii.dts b/target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni-ii.dts index 98c560921..c974c9b1d 100644 --- a/target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni-ii.dts +++ b/target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni-ii.dts @@ -124,12 +124,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "wdt", "pa", "spi refclk", "wled"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "wdt", "pa", "spi refclk", "wled"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni.dts b/target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni.dts index ff9a9ee1a..6e8a33306 100644 --- a/target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni.dts +++ b/target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni.dts @@ -124,12 +124,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "wdt", "pa", "spi refclk", "wled"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "wdt", "pa", "spi refclk", "wled"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_adslr_g7.dts b/target/linux/ramips/dts/mt7621_adslr_g7.dts index c086b16f7..26e66f9a3 100644 --- a/target/linux/ramips/dts/mt7621_adslr_g7.dts +++ b/target/linux/ramips/dts/mt7621_adslr_g7.dts @@ -109,11 +109,9 @@ mtd-mac-address = <&factory 0xe00c>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "wdt"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "wdt"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_afoundry_ew1200.dts b/target/linux/ramips/dts/mt7621_afoundry_ew1200.dts index a165c2074..8dab036b1 100644 --- a/target/linux/ramips/dts/mt7621_afoundry_ew1200.dts +++ b/target/linux/ramips/dts/mt7621_afoundry_ew1200.dts @@ -121,11 +121,9 @@ mtd-mac-address = <&factory 0xe000>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "wdt", "rgmii2", "jtag", "mdio"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "wdt", "rgmii2", "jtag", "mdio"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_alfa-network_quad-e4g.dts b/target/linux/ramips/dts/mt7621_alfa-network_quad-e4g.dts index f3080c29e..1066536ea 100644 --- a/target/linux/ramips/dts/mt7621_alfa-network_quad-e4g.dts +++ b/target/linux/ramips/dts/mt7621_alfa-network_quad-e4g.dts @@ -165,12 +165,10 @@ status = "okay"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "jtag", "rgmii2", "wdt"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "jtag", "rgmii2", "wdt"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_asiarf_ap7621.dtsi b/target/linux/ramips/dts/mt7621_asiarf_ap7621.dtsi index db83f99c3..d4e5cfbf0 100644 --- a/target/linux/ramips/dts/mt7621_asiarf_ap7621.dtsi +++ b/target/linux/ramips/dts/mt7621_asiarf_ap7621.dtsi @@ -108,11 +108,9 @@ mediatek,portmap = "llllw"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "wdt", "jtag"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "wdt", "jtag"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_asus_rt-ac57u.dts b/target/linux/ramips/dts/mt7621_asus_rt-ac57u.dts index e589461a4..0a315398e 100644 --- a/target/linux/ramips/dts/mt7621_asus_rt-ac57u.dts +++ b/target/linux/ramips/dts/mt7621_asus_rt-ac57u.dts @@ -138,11 +138,9 @@ mtd-mac-address = <&factory 0xe000>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "sdhci"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "sdhci"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_asus_rt-acx5p.dtsi b/target/linux/ramips/dts/mt7621_asus_rt-acx5p.dtsi index 8eaf55dbc..2de6d4c76 100644 --- a/target/linux/ramips/dts/mt7621_asus_rt-acx5p.dtsi +++ b/target/linux/ramips/dts/mt7621_asus_rt-acx5p.dtsi @@ -147,11 +147,9 @@ status = "disabled"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "uart2", "uart3", "i2c"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "uart2", "uart3", "i2c"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_buffalo_wsr-1166dhp.dts b/target/linux/ramips/dts/mt7621_buffalo_wsr-1166dhp.dts index 1b99f8147..b67e430e5 100644 --- a/target/linux/ramips/dts/mt7621_buffalo_wsr-1166dhp.dts +++ b/target/linux/ramips/dts/mt7621_buffalo_wsr-1166dhp.dts @@ -158,12 +158,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_buffalo_wsr-600dhp.dts b/target/linux/ramips/dts/mt7621_buffalo_wsr-600dhp.dts index 36bcd15e4..dadc26c12 100644 --- a/target/linux/ramips/dts/mt7621_buffalo_wsr-600dhp.dts +++ b/target/linux/ramips/dts/mt7621_buffalo_wsr-600dhp.dts @@ -153,12 +153,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_d-team_newifi-d2.dts b/target/linux/ramips/dts/mt7621_d-team_newifi-d2.dts index 896d9f603..f1b4d3d8a 100644 --- a/target/linux/ramips/dts/mt7621_d-team_newifi-d2.dts +++ b/target/linux/ramips/dts/mt7621_d-team_newifi-d2.dts @@ -153,11 +153,9 @@ mtd-mac-address = <&factory 0xe000>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uart2", "uart3"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "uart2", "uart3"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_d-team_pbr-m1.dts b/target/linux/ramips/dts/mt7621_d-team_pbr-m1.dts index fd598de4b..59dd80fc6 100644 --- a/target/linux/ramips/dts/mt7621_d-team_pbr-m1.dts +++ b/target/linux/ramips/dts/mt7621_d-team_pbr-m1.dts @@ -168,11 +168,9 @@ mtd-mac-address = <&factory 0xe000>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "wdt", "rgmii2", "jtag", "mdio"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "wdt", "rgmii2", "jtag", "mdio"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_dlink_dir-860l-b1.dts b/target/linux/ramips/dts/mt7621_dlink_dir-860l-b1.dts index f189365ba..65924bb2e 100644 --- a/target/linux/ramips/dts/mt7621_dlink_dir-860l-b1.dts +++ b/target/linux/ramips/dts/mt7621_dlink_dir-860l-b1.dts @@ -134,11 +134,9 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_edimax_ra21s.dts b/target/linux/ramips/dts/mt7621_edimax_ra21s.dts new file mode 100644 index 000000000..ad0eee0d1 --- /dev/null +++ b/target/linux/ramips/dts/mt7621_edimax_ra21s.dts @@ -0,0 +1,40 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/dts-v1/; + +#include "mt7621_edimax_rx21s.dtsi" + +/ { + compatible = "edimax,ra21s", "mediatek,mt7621-soc"; + model = "Edimax RA21S"; + + aliases { + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; + }; + + leds { + compatible = "gpio-leds"; + + led_power: led_1 { + label = "ra21s:red:led1"; + gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; + }; + + led_2 { + label = "ra21s:red:led2"; + gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; + }; + + led_3 { + label = "ra21s:red:led3"; + gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; + }; + + led_4 { + label = "ra21s:red:led4"; + gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>; + }; + }; +}; diff --git a/target/linux/ramips/dts/mt7621_edimax_rg21s.dts b/target/linux/ramips/dts/mt7621_edimax_rg21s.dts index 6ed08413c..4325e9813 100644 --- a/target/linux/ramips/dts/mt7621_edimax_rg21s.dts +++ b/target/linux/ramips/dts/mt7621_edimax_rg21s.dts @@ -1,10 +1,7 @@ // SPDX-License-Identifier: GPL-2.0-or-later OR MIT /dts-v1/; -#include "mt7621.dtsi" - -#include -#include +#include "mt7621_edimax_rx21s.dtsi" / { compatible = "edimax,rg21s", "mediatek,mt7621-soc"; @@ -17,32 +14,6 @@ led-upgrade = &led_power; }; - chosen { - bootargs = "console=ttyS0,57600"; - }; - - palmbus: palmbus@1E000000 { - i2c@900 { - status = "okay"; - }; - }; - - keys { - compatible = "gpio-keys"; - - reset { - label = "reset"; - gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - wps { - label = "wps"; - gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; - leds { compatible = "gpio-leds"; @@ -67,89 +38,3 @@ }; }; }; - -&sdhci { - status = "okay"; -}; - -&spi0 { - status = "okay"; - - flash@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x50000 0xfb0000>; - }; - }; - }; -}; - -&pcie { - status = "okay"; -}; - -&pcie0 { - wifi0: wifi@0,0 { - compatible = "pci14c3,7615"; - reg = <0x0000 0 0 0 0>; - mediatek,mtd-eeprom = <&factory 0x0000>; - ieee80211-freq-limit = <2400000 2500000>; - }; -}; - -&pcie1 { - wifi1: wifi@0,0 { - compatible = "pci14c3,7615"; - reg = <0x0000 0 0 0 0>; - mediatek,mtd-eeprom = <&factory 0x8000>; - ieee80211-freq-limit = <5000000 6000000>; - }; -}; - -ðernet { - mediatek,portmap = "wllll"; - port@5 { - status = "disabled"; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "wdt", "rgmii2", "jtag", "mdio"; - ralink,function = "gpio"; - }; - }; -}; - -&xhci { - status = "disabled"; -}; diff --git a/target/linux/ramips/dts/mt7621_edimax_rx21s.dtsi b/target/linux/ramips/dts/mt7621_edimax_rx21s.dtsi new file mode 100644 index 000000000..31498a534 --- /dev/null +++ b/target/linux/ramips/dts/mt7621_edimax_rx21s.dtsi @@ -0,0 +1,115 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/dts-v1/; + +#include "mt7621.dtsi" + +#include +#include + +/ { + aliases { + label-mac-device = ðernet; + }; + + chosen { + bootargs = "console=ttyS0,57600"; + }; + + keys { + compatible = "gpio-keys"; + + reset { + label = "reset"; + gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wps { + label = "wps"; + gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&spi0 { + status = "okay"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <40000000>; + + 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 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x50000 0xfb0000>; + }; + }; + }; +}; + +&pcie { + status = "okay"; +}; + +&pcie0 { + wifi0: wifi@0,0 { + compatible = "mediatek,mt76"; + reg = <0x0000 0 0 0 0>; + mediatek,mtd-eeprom = <&factory 0x0000>; + ieee80211-freq-limit = <2400000 2500000>; + }; +}; + +&pcie1 { + wifi1: wifi@0,0 { + compatible = "mediatek,mt76"; + reg = <0x0000 0 0 0 0>; + mediatek,mtd-eeprom = <&factory 0x8000>; + ieee80211-freq-limit = <5000000 6000000>; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; + + mediatek,portmap = "wllll"; + port@5 { + status = "disabled"; + }; +}; + +&state_default { + gpio { + ralink,group = "uart3", "uart2", "jtag", "wdt"; + ralink,function = "gpio"; + }; +}; + +&xhci { + status = "disabled"; +}; diff --git a/target/linux/ramips/dts/mt7621_elecom_wrc-1167ghbk2-s.dts b/target/linux/ramips/dts/mt7621_elecom_wrc-1167ghbk2-s.dts index 3d0b72652..c43f0ad19 100644 --- a/target/linux/ramips/dts/mt7621_elecom_wrc-1167ghbk2-s.dts +++ b/target/linux/ramips/dts/mt7621_elecom_wrc-1167ghbk2-s.dts @@ -128,12 +128,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "uart3", "jtag", "wdt"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "uart3", "jtag", "wdt"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_elecom_wrc-gst.dtsi b/target/linux/ramips/dts/mt7621_elecom_wrc-gst.dtsi index b4aaec46f..0a4afd964 100644 --- a/target/linux/ramips/dts/mt7621_elecom_wrc-gst.dtsi +++ b/target/linux/ramips/dts/mt7621_elecom_wrc-gst.dtsi @@ -154,12 +154,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "uart3", "jtag", "wdt", "sdhci"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "uart3", "jtag", "wdt", "sdhci"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_firefly_firewrt.dts b/target/linux/ramips/dts/mt7621_firefly_firewrt.dts index 773cf82e3..1df3116d2 100644 --- a/target/linux/ramips/dts/mt7621_firefly_firewrt.dts +++ b/target/linux/ramips/dts/mt7621_firefly_firewrt.dts @@ -114,11 +114,9 @@ mtd-mac-address = <&factory 0xe000>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "wdt", "rgmii2"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "wdt", "rgmii2"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_gehua_ghl-r-001.dts b/target/linux/ramips/dts/mt7621_gehua_ghl-r-001.dts index b7ddc51fb..fea83e5e1 100644 --- a/target/linux/ramips/dts/mt7621_gehua_ghl-r-001.dts +++ b/target/linux/ramips/dts/mt7621_gehua_ghl-r-001.dts @@ -114,11 +114,9 @@ mtd-mac-address = <&factory 0xe000>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "jtag", "wdt"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "jtag", "wdt"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_gnubee_gb-pc1.dts b/target/linux/ramips/dts/mt7621_gnubee_gb-pc1.dts index c7a610590..25ad9dc13 100644 --- a/target/linux/ramips/dts/mt7621_gnubee_gb-pc1.dts +++ b/target/linux/ramips/dts/mt7621_gnubee_gb-pc1.dts @@ -108,11 +108,9 @@ mtd-mac-address = <&factory 0xe000>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "jtag", "rgmii2", "uart3", "wdt"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "jtag", "rgmii2", "uart3", "wdt"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts b/target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts index bd3411b61..9920a1f0b 100644 --- a/target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts +++ b/target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts @@ -118,11 +118,9 @@ mtd-mac-address = <&factory 0xe000>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "jtag", "rgmii2", "uart3", "wdt"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "jtag", "rgmii2", "uart3", "wdt"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_hiwifi_hc5962.dts b/target/linux/ramips/dts/mt7621_hiwifi_hc5962.dts index 1d0471fd3..f8d7268b9 100644 --- a/target/linux/ramips/dts/mt7621_hiwifi_hc5962.dts +++ b/target/linux/ramips/dts/mt7621_hiwifi_hc5962.dts @@ -10,8 +10,8 @@ model = "HiWiFi HC5962"; aliases { - led-boot = &led_status; - led-failsafe = &led_status; + led-boot = &led_system; + led-failsafe = &led_system; led-running = &led_status; led-upgrade = &led_status; }; @@ -28,9 +28,10 @@ gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; }; - system { + led_system: system { label = "hc5962:red:system"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; + panic-indicator; }; }; @@ -141,11 +142,9 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "uart3", "jtag"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "uart3", "jtag"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_iodata_wn-ax1167gr.dts b/target/linux/ramips/dts/mt7621_iodata_wn-ax1167gr.dts index 40e11014d..d3bdc4acd 100644 --- a/target/linux/ramips/dts/mt7621_iodata_wn-ax1167gr.dts +++ b/target/linux/ramips/dts/mt7621_iodata_wn-ax1167gr.dts @@ -133,12 +133,10 @@ mtd-mac-address = <&iNIC_rf 0x4>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "uart2", "uart3", "jtag"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "uart2", "uart3", "jtag"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_iodata_wn-gx300gr.dts b/target/linux/ramips/dts/mt7621_iodata_wn-gx300gr.dts index 1e692ea3c..fa8c4aa65 100644 --- a/target/linux/ramips/dts/mt7621_iodata_wn-gx300gr.dts +++ b/target/linux/ramips/dts/mt7621_iodata_wn-gx300gr.dts @@ -133,12 +133,10 @@ mtd-mac-address = <&factory 0x4>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "uart2", "uart3", "jtag"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "uart2", "uart3", "jtag"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_iodata_wnpr2600g.dts b/target/linux/ramips/dts/mt7621_iodata_wnpr2600g.dts index 09bc9a3d5..7fa06b184 100644 --- a/target/linux/ramips/dts/mt7621_iodata_wnpr2600g.dts +++ b/target/linux/ramips/dts/mt7621_iodata_wnpr2600g.dts @@ -129,12 +129,10 @@ mediatek,portmap = "wllll"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "uart2", "uart3", "jtag", "wdt"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "uart2", "uart3", "jtag", "wdt"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_iptime_a8004t.dts b/target/linux/ramips/dts/mt7621_iptime_a8004t.dts new file mode 100644 index 000000000..81643e6f6 --- /dev/null +++ b/target/linux/ramips/dts/mt7621_iptime_a8004t.dts @@ -0,0 +1,134 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/dts-v1/; + +#include "mt7621.dtsi" + +#include +#include + +/ { + compatible = "iptime,a8004t", "mediatek,mt7621-soc"; + model = "ipTIME A8004T"; + + chosen { + bootargs = "console=ttyS0,57600"; + }; + + aliases { + led-boot = &led_cpu; + led-failsafe = &led_cpu; + led-running = &led_cpu; + led-upgrade = &led_cpu; + }; + + leds { + compatible = "gpio-leds"; + + led_cpu: cpu { + label = "a8004t:orange:cpu"; + gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; + }; + + wlan2g { + label = "a8004t:orange:wlan2g"; + gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy0radio"; + }; + + wlan5g { + label = "a8004t:orange:wlan5g"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy1radio"; + }; + }; + + keys { + compatible = "gpio-keys"; + + reset { + label = "reset"; + gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wps { + label = "wps"; + gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&spi0 { + status = "okay"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <80000000>; + m25p,fast-read; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + uboot: partition@0 { + label = "u-boot"; + reg = <0x0 0x20000>; + read-only; + }; + + partition@20000 { + label = "config"; + reg = <0x20000 0x10000>; + read-only; + }; + + factory: partition@30000 { + label = "factory"; + reg = <0x30000 0x10000>; + read-only; + }; + + partition@40000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x40000 0xfc0000>; + }; + }; + }; +}; + +ðernet { + mtd-mac-address = <&uboot 0x1fc20>; +}; + +&pcie { + status = "okay"; +}; + +&pcie0 { + wifi@0,0 { + compatible = "mediatek,mt76"; + reg = <0x0000 0 0 0 0>; + mediatek,mtd-eeprom = <&factory 0x0000>; + ieee80211-freq-limit = <2400000 2500000>; + }; +}; + +&pcie1 { + wifi@0,0 { + compatible = "mediatek,mt76"; + reg = <0x0000 0 0 0 0>; + mediatek,mtd-eeprom = <&factory 0x8000>; + ieee80211-freq-limit = <5000000 6000000>; + }; +}; + +&state_default { + gpio { + ralink,group = "wdt", "jtag", "i2c"; + ralink,function = "gpio"; + }; +}; diff --git a/target/linux/ramips/dts/mt7621_lenovo_newifi-d1.dts b/target/linux/ramips/dts/mt7621_lenovo_newifi-d1.dts index 7403a8760..0ff5f2e76 100644 --- a/target/linux/ramips/dts/mt7621_lenovo_newifi-d1.dts +++ b/target/linux/ramips/dts/mt7621_lenovo_newifi-d1.dts @@ -137,11 +137,9 @@ mtd-mac-address = <&factory 0xe000>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "wdt", "rgmii2", "jtag", "uart2", "uart3", "i2c"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "wdt", "rgmii2", "jtag", "uart2", "uart3", "i2c"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_linksys_re6500.dts b/target/linux/ramips/dts/mt7621_linksys_re6500.dts index a7f1fdd26..9c12f0ff8 100644 --- a/target/linux/ramips/dts/mt7621_linksys_re6500.dts +++ b/target/linux/ramips/dts/mt7621_linksys_re6500.dts @@ -91,12 +91,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "uart2", "uart3", "rgmii2"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "uart2", "uart3", "rgmii2"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_mediatek_ap-mt7621a-v60.dts b/target/linux/ramips/dts/mt7621_mediatek_ap-mt7621a-v60.dts index 15a4d71c1..09063e677 100644 --- a/target/linux/ramips/dts/mt7621_mediatek_ap-mt7621a-v60.dts +++ b/target/linux/ramips/dts/mt7621_mediatek_ap-mt7621a-v60.dts @@ -36,13 +36,14 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "uart2", "rgmii2"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "uart2", "rgmii2"; + ralink,function = "gpio"; }; +}; + +&pinctrl { i2s_pins: i2s { i2s { ralink,group = "uart3"; diff --git a/target/linux/ramips/dts/mt7621_mediatek_mt7621-eval-board.dts b/target/linux/ramips/dts/mt7621_mediatek_mt7621-eval-board.dts index 177154b8d..5a330a742 100644 --- a/target/linux/ramips/dts/mt7621_mediatek_mt7621-eval-board.dts +++ b/target/linux/ramips/dts/mt7621_mediatek_mt7621-eval-board.dts @@ -45,11 +45,9 @@ status = "okay"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_mikrotik_rb750gr3.dts b/target/linux/ramips/dts/mt7621_mikrotik_rb750gr3.dts index b164ed2c7..da2b571dd 100644 --- a/target/linux/ramips/dts/mt7621_mikrotik_rb750gr3.dts +++ b/target/linux/ramips/dts/mt7621_mikrotik_rb750gr3.dts @@ -134,13 +134,11 @@ mtd-mac-address-increment = <1>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - /* via gpio7 (uart3 group) the PoE status can be read */ - ralink,group = "uart2", "uart3", "jtag", "wdt"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + /* via gpio7 (uart3 group) the PoE status can be read */ + ralink,group = "uart2", "uart3", "jtag", "wdt"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_mikrotik_rbm11g.dts b/target/linux/ramips/dts/mt7621_mikrotik_rbm11g.dts index f13a77960..60b6395c1 100644 --- a/target/linux/ramips/dts/mt7621_mikrotik_rbm11g.dts +++ b/target/linux/ramips/dts/mt7621_mikrotik_rbm11g.dts @@ -143,12 +143,10 @@ mtd-mac-address-increment = <1>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "uart2", "wdt", "rgmii2"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "uart2", "wdt", "rgmii2"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_mikrotik_rbm33g.dts b/target/linux/ramips/dts/mt7621_mikrotik_rbm33g.dts index 45b2182de..2500ae29d 100644 --- a/target/linux/ramips/dts/mt7621_mikrotik_rbm33g.dts +++ b/target/linux/ramips/dts/mt7621_mikrotik_rbm33g.dts @@ -167,12 +167,10 @@ mtd-mac-address-increment = <1>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "uart2", "wdt"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "uart2", "wdt"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_mqmaker_witi.dts b/target/linux/ramips/dts/mt7621_mqmaker_witi.dts index 6d13ac147..d0ea44528 100644 --- a/target/linux/ramips/dts/mt7621_mqmaker_witi.dts +++ b/target/linux/ramips/dts/mt7621_mqmaker_witi.dts @@ -105,11 +105,9 @@ mtd-mac-address = <&factory 0xe000>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "wdt", "rgmii2", "jtag", "mdio"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "wdt", "rgmii2", "jtag", "mdio"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_mtc_wr1201.dts b/target/linux/ramips/dts/mt7621_mtc_wr1201.dts index fb3efe6d7..40180068e 100644 --- a/target/linux/ramips/dts/mt7621_mtc_wr1201.dts +++ b/target/linux/ramips/dts/mt7621_mtc_wr1201.dts @@ -142,11 +142,9 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "rgmii2"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "rgmii2"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_netgear_ex6150.dts b/target/linux/ramips/dts/mt7621_netgear_ex6150.dts index fc8a68a13..0d6dac0ca 100644 --- a/target/linux/ramips/dts/mt7621_netgear_ex6150.dts +++ b/target/linux/ramips/dts/mt7621_netgear_ex6150.dts @@ -232,11 +232,9 @@ mtd-mac-address = <&factory 0x00000004>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "sdhci", "rgmii2", "jtag"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "sdhci", "rgmii2", "jtag"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_netgear_sercomm_ayx.dtsi b/target/linux/ramips/dts/mt7621_netgear_sercomm_ayx.dtsi index 864952f25..116c412b0 100644 --- a/target/linux/ramips/dts/mt7621_netgear_sercomm_ayx.dtsi +++ b/target/linux/ramips/dts/mt7621_netgear_sercomm_ayx.dtsi @@ -109,11 +109,9 @@ mtd-mac-address = <&factory 0x4>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "uart3", "uart2", "jtag", "wdt"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "uart3", "uart2", "jtag", "wdt"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_netgear_sercomm_chj.dtsi b/target/linux/ramips/dts/mt7621_netgear_sercomm_chj.dtsi index cf9d1c607..52af14723 100644 --- a/target/linux/ramips/dts/mt7621_netgear_sercomm_chj.dtsi +++ b/target/linux/ramips/dts/mt7621_netgear_sercomm_chj.dtsi @@ -99,12 +99,10 @@ mtd-mac-address = <&factory 0x4>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "uart3", "uart2", "jtag", "wdt"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "uart3", "uart2", "jtag", "wdt"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_netis_wf-2881.dts b/target/linux/ramips/dts/mt7621_netis_wf-2881.dts index 1f16174cf..a7e8e06ff 100644 --- a/target/linux/ramips/dts/mt7621_netis_wf-2881.dts +++ b/target/linux/ramips/dts/mt7621_netis_wf-2881.dts @@ -118,11 +118,9 @@ mtd-mac-address = <&factory 0xe000>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "uart3", "uart2"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "uart3", "uart2"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_phicomm_k2p.dts b/target/linux/ramips/dts/mt7621_phicomm_k2p.dts index 909df622f..9e9e2c0df 100644 --- a/target/linux/ramips/dts/mt7621_phicomm_k2p.dts +++ b/target/linux/ramips/dts/mt7621_phicomm_k2p.dts @@ -111,11 +111,9 @@ mtd-mac-address = <&factory 0xe000>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_planex_vr500.dts b/target/linux/ramips/dts/mt7621_planex_vr500.dts index 3d8d34648..87c638429 100644 --- a/target/linux/ramips/dts/mt7621_planex_vr500.dts +++ b/target/linux/ramips/dts/mt7621_planex_vr500.dts @@ -84,11 +84,9 @@ mtd-mac-address = <&factory 0xe000>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_samknows_whitebox-v8.dts b/target/linux/ramips/dts/mt7621_samknows_whitebox-v8.dts index 84cc4541e..4b5fc7edf 100644 --- a/target/linux/ramips/dts/mt7621_samknows_whitebox-v8.dts +++ b/target/linux/ramips/dts/mt7621_samknows_whitebox-v8.dts @@ -114,11 +114,9 @@ mtd-mac-address = <&factory 0xe000>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_storylink_sap-g3200u3.dts b/target/linux/ramips/dts/mt7621_storylink_sap-g3200u3.dts index 4194154f0..002804bbf 100644 --- a/target/linux/ramips/dts/mt7621_storylink_sap-g3200u3.dts +++ b/target/linux/ramips/dts/mt7621_storylink_sap-g3200u3.dts @@ -111,11 +111,9 @@ mtd-mac-address = <&factory 0xe006>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "uart3", "jtag"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "uart3", "jtag"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_telco-electronics_x1.dts b/target/linux/ramips/dts/mt7621_telco-electronics_x1.dts index 9e8f9f75e..50df90b69 100644 --- a/target/linux/ramips/dts/mt7621_telco-electronics_x1.dts +++ b/target/linux/ramips/dts/mt7621_telco-electronics_x1.dts @@ -131,12 +131,10 @@ mediatek,portmap = "llllw"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "jtag", "uart2", "wdt", "rgmii2"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "jtag", "uart2", "wdt", "rgmii2"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_thunder_timecloud.dts b/target/linux/ramips/dts/mt7621_thunder_timecloud.dts index 4ff845543..e1f6835a8 100644 --- a/target/linux/ramips/dts/mt7621_thunder_timecloud.dts +++ b/target/linux/ramips/dts/mt7621_thunder_timecloud.dts @@ -99,11 +99,9 @@ mtd-mac-address = <&factory 0xe000>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "uart2", "jtag"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "uart2", "jtag"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_totolink_a7000r.dts b/target/linux/ramips/dts/mt7621_totolink_a7000r.dts index 68bc8afa1..dd4336367 100644 --- a/target/linux/ramips/dts/mt7621_totolink_a7000r.dts +++ b/target/linux/ramips/dts/mt7621_totolink_a7000r.dts @@ -108,11 +108,9 @@ mtd-mac-address = <&factory 0xe000>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "wdt"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "wdt"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_tplink_re350-v1.dts b/target/linux/ramips/dts/mt7621_tplink_re350-v1.dts index 7859f611e..76134925b 100644 --- a/target/linux/ramips/dts/mt7621_tplink_re350-v1.dts +++ b/target/linux/ramips/dts/mt7621_tplink_re350-v1.dts @@ -155,11 +155,9 @@ mtd-mac-address = <&config 0x10008>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "rgmii2", "wdt"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "rgmii2", "wdt"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_tplink_re650-v1.dts b/target/linux/ramips/dts/mt7621_tplink_re650-v1.dts index 23b559daa..8122e11a3 100644 --- a/target/linux/ramips/dts/mt7621_tplink_re650-v1.dts +++ b/target/linux/ramips/dts/mt7621_tplink_re650-v1.dts @@ -168,11 +168,9 @@ mtd-mac-address = <&config 0x10008>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "rgmii2", "wdt"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "rgmii2", "wdt"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_ubiquiti_edgerouterx.dtsi b/target/linux/ramips/dts/mt7621_ubiquiti_edgerouterx.dtsi index d03c3256e..d8b4aa0a0 100644 --- a/target/linux/ramips/dts/mt7621_ubiquiti_edgerouterx.dtsi +++ b/target/linux/ramips/dts/mt7621_ubiquiti_edgerouterx.dtsi @@ -71,12 +71,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "uart2", "uart3", "i2c", "pcie", "rgmii2", "jtag"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "uart2", "uart3", "i2c", "pcie", "rgmii2", "jtag"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_unielec_u7621-06.dtsi b/target/linux/ramips/dts/mt7621_unielec_u7621-06.dtsi index 5bd7f0b92..209656232 100644 --- a/target/linux/ramips/dts/mt7621_unielec_u7621-06.dtsi +++ b/target/linux/ramips/dts/mt7621_unielec_u7621-06.dtsi @@ -109,11 +109,9 @@ mediatek,portmap = "llllw"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "jtag", "uart2", "wdt"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "jtag", "uart2", "wdt"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_wevo_11acnas.dts b/target/linux/ramips/dts/mt7621_wevo_11acnas.dts index ec3154263..0320a4506 100644 --- a/target/linux/ramips/dts/mt7621_wevo_11acnas.dts +++ b/target/linux/ramips/dts/mt7621_wevo_11acnas.dts @@ -3,7 +3,7 @@ #include "mt7621_wevo_w2914ns-v2.dtsi" / { - compatible = "wevo,11acnas", "wevo,w2914ns-v2", "mediatek,mt7621-soc"; + compatible = "wevo,11acnas", "mediatek,mt7621-soc"; model = "WeVO 11AC NAS Router"; leds { diff --git a/target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dts b/target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dts index 816f6b1c0..bb9fa5948 100644 --- a/target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dts +++ b/target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dts @@ -3,6 +3,7 @@ #include "mt7621_wevo_w2914ns-v2.dtsi" / { + compatible = "wevo,w2914ns-v2", "mediatek,mt7621-soc"; model = "WeVO W2914NS v2"; leds { diff --git a/target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dtsi b/target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dtsi index 6ad3ef111..2cffb9520 100644 --- a/target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dtsi +++ b/target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dtsi @@ -4,8 +4,6 @@ #include / { - compatible = "wevo,w2914ns-v2", "mediatek,mt7621-soc"; - chosen { bootargs = "console=ttyS0,57600"; }; @@ -27,10 +25,6 @@ }; }; -&xhci { - status = "okay"; -}; - &spi0 { status = "okay"; @@ -80,7 +74,7 @@ wifi@0,0 { compatible = "mediatek,mt76"; reg = <0x0000 0 0 0 0>; - mediatek,mtd-eeprom = <&factory 0x0000>; + mediatek,mtd-eeprom = <&factory 0x0>; led { led-sources = <0>; @@ -107,11 +101,9 @@ mtd-mac-address = <&factory 0xe000>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "wdt", "rgmii2"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "wdt", "rgmii2"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_xiaomi_mir3g-v2.dts b/target/linux/ramips/dts/mt7621_xiaomi_mir3g-v2.dts index 757e487bc..6e06ed07e 100644 --- a/target/linux/ramips/dts/mt7621_xiaomi_mir3g-v2.dts +++ b/target/linux/ramips/dts/mt7621_xiaomi_mir3g-v2.dts @@ -134,14 +134,12 @@ ðernet { mtd-mac-address = <&factory 0xe000>; - mediatek,portmap = "lllwl"; + mediatek,portmap = "llllw"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "jtag", "uart2", "uart3", "wdt"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "jtag", "uart2", "uart3", "wdt"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_xiaomi_mir3g.dts b/target/linux/ramips/dts/mt7621_xiaomi_mir3g.dts index 29ac01989..a09cbb6ee 100644 --- a/target/linux/ramips/dts/mt7621_xiaomi_mir3g.dts +++ b/target/linux/ramips/dts/mt7621_xiaomi_mir3g.dts @@ -191,11 +191,9 @@ mediatek,portmap = "lwlll"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "jtag", "uart2", "uart3", "wdt"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "jtag", "uart2", "uart3", "wdt"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_xiaomi_mir3p.dts b/target/linux/ramips/dts/mt7621_xiaomi_mir3p.dts index 9482889b8..0a566afff 100644 --- a/target/linux/ramips/dts/mt7621_xiaomi_mir3p.dts +++ b/target/linux/ramips/dts/mt7621_xiaomi_mir3p.dts @@ -176,11 +176,9 @@ mediatek,portmap = "llllw"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "jtag", "uart2", "uart3", "wdt"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "jtag", "uart2", "uart3", "wdt"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_xiaoyu_xy-c5.dts b/target/linux/ramips/dts/mt7621_xiaoyu_xy-c5.dts index 4b12ee538..9360ed54b 100644 --- a/target/linux/ramips/dts/mt7621_xiaoyu_xy-c5.dts +++ b/target/linux/ramips/dts/mt7621_xiaoyu_xy-c5.dts @@ -16,7 +16,7 @@ led-upgrade = &led_sys; label-mac-device = ðernet; }; - + memory@0 { device_type = "memory"; reg = <0x0 0x1c000000>, <0x20000000 0x4000000>; @@ -99,11 +99,9 @@ mtd-mac-address = <&factory 0x4>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "uart3", "wdt"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "uart3", "wdt"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_xzwifi_creativebox-v1.dts b/target/linux/ramips/dts/mt7621_xzwifi_creativebox-v1.dts index f33a6fce4..0792b7fb9 100644 --- a/target/linux/ramips/dts/mt7621_xzwifi_creativebox-v1.dts +++ b/target/linux/ramips/dts/mt7621_xzwifi_creativebox-v1.dts @@ -156,11 +156,9 @@ mtd-mac-address = <&factory 0xe000>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "wdt", "rgmii2"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "wdt", "rgmii2"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_youhua_wr1200js.dts b/target/linux/ramips/dts/mt7621_youhua_wr1200js.dts index 7f7d5cb27..1a759bf7c 100644 --- a/target/linux/ramips/dts/mt7621_youhua_wr1200js.dts +++ b/target/linux/ramips/dts/mt7621_youhua_wr1200js.dts @@ -130,11 +130,9 @@ mtd-mac-address = <&factory 0xe000>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "uart2", "uart3", "wdt"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "uart2", "uart3", "wdt"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_youku_yk-l2.dts b/target/linux/ramips/dts/mt7621_youku_yk-l2.dts index 3a9794da0..1673baabc 100644 --- a/target/linux/ramips/dts/mt7621_youku_yk-l2.dts +++ b/target/linux/ramips/dts/mt7621_youku_yk-l2.dts @@ -141,11 +141,9 @@ mtd-mac-address = <&factory 0xe000>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "jtag", "wdt"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "jtag", "wdt"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_zbtlink_zbt-we1326.dts b/target/linux/ramips/dts/mt7621_zbtlink_zbt-we1326.dts index 9d4ab65d3..7bfb39212 100644 --- a/target/linux/ramips/dts/mt7621_zbtlink_zbt-we1326.dts +++ b/target/linux/ramips/dts/mt7621_zbtlink_zbt-we1326.dts @@ -28,12 +28,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "wdt"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "wdt"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_zbtlink_zbt-we3526.dts b/target/linux/ramips/dts/mt7621_zbtlink_zbt-we3526.dts index 9ee88d964..15a4472cd 100644 --- a/target/linux/ramips/dts/mt7621_zbtlink_zbt-we3526.dts +++ b/target/linux/ramips/dts/mt7621_zbtlink_zbt-we3526.dts @@ -103,11 +103,9 @@ mtd-mac-address = <&factory 0xe000>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "wdt"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "wdt"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_zbtlink_zbt-wg2626.dts b/target/linux/ramips/dts/mt7621_zbtlink_zbt-wg2626.dts index d1cf30880..f3f06dd69 100644 --- a/target/linux/ramips/dts/mt7621_zbtlink_zbt-wg2626.dts +++ b/target/linux/ramips/dts/mt7621_zbtlink_zbt-wg2626.dts @@ -114,11 +114,9 @@ mtd-mac-address = <&factory 0xe000>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "wdt", "rgmii2", "jtag", "mdio"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "wdt", "rgmii2", "jtag", "mdio"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_zbtlink_zbt-wg3526.dtsi b/target/linux/ramips/dts/mt7621_zbtlink_zbt-wg3526.dtsi index f1b126ad1..48de87269 100644 --- a/target/linux/ramips/dts/mt7621_zbtlink_zbt-wg3526.dtsi +++ b/target/linux/ramips/dts/mt7621_zbtlink_zbt-wg3526.dtsi @@ -116,11 +116,9 @@ mtd-mac-address = <&factory 0xe000>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "wdt", "rgmii2", "jtag", "mdio"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "wdt", "rgmii2", "jtag", "mdio"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_zio_freezio.dts b/target/linux/ramips/dts/mt7621_zio_freezio.dts new file mode 100644 index 000000000..dce1c4bd4 --- /dev/null +++ b/target/linux/ramips/dts/mt7621_zio_freezio.dts @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/dts-v1/; + +#include "mt7621_wevo_w2914ns-v2.dtsi" + +/ { + compatible = "zio,freezio", "mediatek,mt7621-soc"; + model = "ZIO FREEZIO"; + + leds { + compatible = "gpio-leds"; + + usb { + label = "freezio:green:usb"; + gpios = <&gpio0 27 GPIO_ACTIVE_LOW>; + trigger-sources = <&xhci_ehci_port1>; + linux,default-trigger = "usbport"; + }; + }; +}; diff --git a/target/linux/ramips/dts/mt7628an_alfa-network_awusfree1.dts b/target/linux/ramips/dts/mt7628an_alfa-network_awusfree1.dts index 35665172c..3c38cc7b4 100644 --- a/target/linux/ramips/dts/mt7628an_alfa-network_awusfree1.dts +++ b/target/linux/ramips/dts/mt7628an_alfa-network_awusfree1.dts @@ -97,22 +97,20 @@ status = "disabled"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "p0led_an", "wdt", "wled_an"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "p0led_an", "wdt", "wled_an"; + ralink,function = "gpio"; + }; - ext_lna { - ralink,group = "uart1"; - ralink,function = "sw_r"; - }; + ext_lna { + ralink,group = "uart1"; + ralink,function = "sw_r"; + }; - ext_pa { - ralink,group = "i2s"; - ralink,function = "antenna"; - }; + ext_pa { + ralink,group = "i2s"; + ralink,function = "antenna"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_buffalo_wcr-1166ds.dts b/target/linux/ramips/dts/mt7628an_buffalo_wcr-1166ds.dts index 2c878ff8a..25c3c403d 100644 --- a/target/linux/ramips/dts/mt7628an_buffalo_wcr-1166ds.dts +++ b/target/linux/ramips/dts/mt7628an_buffalo_wcr-1166ds.dts @@ -109,12 +109,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "uart1", "wled_an", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "wdt", "refclk", "gpio", "i2s"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "uart1", "wled_an", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "wdt", "refclk", "gpio", "i2s"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_cudy_wr1000.dts b/target/linux/ramips/dts/mt7628an_cudy_wr1000.dts index aa3f01e68..71aefcb52 100644 --- a/target/linux/ramips/dts/mt7628an_cudy_wr1000.dts +++ b/target/linux/ramips/dts/mt7628an_cudy_wr1000.dts @@ -104,13 +104,11 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2s", "refclk", "wdt", "p4led_an", - "p3led_an", "p2led_an", "wled_an"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2s", "refclk", "wdt", "p4led_an", + "p3led_an", "p2led_an", "wled_an"; + ralink,function = "gpio"; }; }; @@ -134,10 +132,12 @@ &wmac { status = "okay"; - ralink,mtd-eeprom = <&factory 0x4>; }; ðernet { mtd-mac-address = <&factory 0x28>; - mediatek,portmap = "llllw"; +}; + +&esw { + mediatek,portmap = <0x2f>; }; diff --git a/target/linux/ramips/dts/mt7628an_d-team_pbr-d1.dts b/target/linux/ramips/dts/mt7628an_d-team_pbr-d1.dts index cef92c5bf..bcc9d0051 100644 --- a/target/linux/ramips/dts/mt7628an_d-team_pbr-d1.dts +++ b/target/linux/ramips/dts/mt7628an_d-team_pbr-d1.dts @@ -60,32 +60,30 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "gpio"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "gpio"; + ralink,function = "gpio"; + }; - i2c { - ralink,group = "i2c"; - ralink,function = "gpio"; - }; + i2c { + ralink,group = "i2c"; + ralink,function = "gpio"; + }; - i2s { - ralink,group = "i2s"; - ralink,function = "gpio"; - }; + i2s { + ralink,group = "i2s"; + ralink,function = "gpio"; + }; - spis { - ralink,group = "spis"; - ralink,function = "gpio"; - }; + spis { + ralink,group = "spis"; + ralink,function = "gpio"; + }; - wdt { - ralink,group = "wdt"; - ralink,function = "gpio"; - }; + wdt { + ralink,group = "wdt"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_duzun_dm06.dts b/target/linux/ramips/dts/mt7628an_duzun_dm06.dts index 20d3bd83b..83f93e0de 100644 --- a/target/linux/ramips/dts/mt7628an_duzun_dm06.dts +++ b/target/linux/ramips/dts/mt7628an_duzun_dm06.dts @@ -48,12 +48,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "wdt", "uart1"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "wdt", "uart1"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_glinet_gl-mt300n-v2.dts b/target/linux/ramips/dts/mt7628an_glinet_gl-mt300n-v2.dts index 979f5d2bc..533f3b0dc 100644 --- a/target/linux/ramips/dts/mt7628an_glinet_gl-mt300n-v2.dts +++ b/target/linux/ramips/dts/mt7628an_glinet_gl-mt300n-v2.dts @@ -75,12 +75,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "wdt", "gpio", "wled_an", "p0led_an", "p1led_an", "i2s"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "wdt", "gpio", "wled_an", "p0led_an", "p1led_an", "i2s"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_glinet_microuter-n300.dts b/target/linux/ramips/dts/mt7628an_glinet_microuter-n300.dts new file mode 100644 index 000000000..5a965f96b --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_glinet_microuter-n300.dts @@ -0,0 +1,21 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/dts-v1/; + +#include "mt7628an_glinet_vixmini_microuter.dtsi" + +/ { + compatible = "glinet,microuter-n300", "mediatek,mt7628an-soc"; + model = "GL.iNet microuter-N300"; +}; + +&led_power_blue { + label = "microuter-n300:blue:power"; +}; + +&led_wlan_white { + label = "microuter-n300:white:wlan"; +}; + +&firmware_part { + reg = <0x50000 0xfb0000>; +}; diff --git a/target/linux/ramips/dts/mt7628an_glinet_vixmini.dts b/target/linux/ramips/dts/mt7628an_glinet_vixmini.dts index 46d74b765..770998a87 100644 --- a/target/linux/ramips/dts/mt7628an_glinet_vixmini.dts +++ b/target/linux/ramips/dts/mt7628an_glinet_vixmini.dts @@ -1,106 +1,21 @@ // SPDX-License-Identifier: GPL-2.0-or-later OR MIT /dts-v1/; -#include "mt7628an.dtsi" +#include "mt7628an_glinet_vixmini_microuter.dtsi" -#include -#include - -/{ +/ { compatible = "glinet,vixmini", "mediatek,mt7628an-soc"; model = "GL.iNet VIXMINI"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - chosen { - bootargs = "console=ttyS0,115200"; - }; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "vixmini:blue:power"; - default-state = "on"; - gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; - }; - - wlan { - label = "vixmini:white:wlan"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - }; - - keys { - compatible = "gpio-keys"; - - reset { - label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "wdt", "wled_an", "p1led_an"; - ralink,function = "gpio"; - }; - }; +&led_power_blue { + label = "vixmini:blue:power"; }; -ðernet { - mtd-mac-address = <&factory 0x4>; +&led_wlan_white { + label = "vixmini:white:wlan"; }; -&wmac { - status = "okay"; -}; - -&spi0 { - status = "okay"; - - flash@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x50000 0x7b0000>; - }; - }; - }; +&firmware_part { + reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/mt7628an_glinet_vixmini_microuter.dtsi b/target/linux/ramips/dts/mt7628an_glinet_vixmini_microuter.dtsi new file mode 100644 index 000000000..b88f9e735 --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_glinet_vixmini_microuter.dtsi @@ -0,0 +1,104 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT + +#include "mt7628an.dtsi" + +#include +#include + +/ { + aliases { + led-boot = &led_power_blue; + led-failsafe = &led_power_blue; + led-running = &led_power_blue; + led-upgrade = &led_power_blue; + + label-mac-device = ðernet; + }; + + chosen { + bootargs = "console=ttyS0,115200"; + }; + + leds { + compatible = "gpio-leds"; + + led_power_blue: power { + /* Name is set device-specific */ + gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; + }; + + led_wlan_white: wlan { + /* Name is set device-specific */ + gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy0tpt"; + }; + }; + + keys { + compatible = "gpio-keys"; + + reset { + label = "reset"; + gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&state_default { + gpio { + ralink,group = "wdt", "wled_an", "p1led_an"; + ralink,function = "gpio"; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&wmac { + status = "okay"; +}; + +&spi0 { + status = "okay"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + partitions: 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; + }; + + /* + * Firmware-partition size is model-specific + * due to different flash sizes. + */ + firmware_part: partition@50000 { + compatible = "denx,uimage"; + label = "firmware"; + }; + }; + }; +}; diff --git a/target/linux/ramips/dts/mt7628an_hilink_hlk-7628n.dts b/target/linux/ramips/dts/mt7628an_hilink_hlk-7628n.dts index f31e129e9..d0df692a3 100644 --- a/target/linux/ramips/dts/mt7628an_hilink_hlk-7628n.dts +++ b/target/linux/ramips/dts/mt7628an_hilink_hlk-7628n.dts @@ -34,12 +34,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_hiwifi_hc5661a.dts b/target/linux/ramips/dts/mt7628an_hiwifi_hc5661a.dts index 1f93141a3..3b6a92c01 100644 --- a/target/linux/ramips/dts/mt7628an_hiwifi_hc5661a.dts +++ b/target/linux/ramips/dts/mt7628an_hiwifi_hc5661a.dts @@ -27,12 +27,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "refclk", "wdt", "wled_an"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "refclk", "wdt", "wled_an"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_hiwifi_hc5761a.dts b/target/linux/ramips/dts/mt7628an_hiwifi_hc5761a.dts index a8b904939..1f7715bb3 100644 --- a/target/linux/ramips/dts/mt7628an_hiwifi_hc5761a.dts +++ b/target/linux/ramips/dts/mt7628an_hiwifi_hc5761a.dts @@ -34,12 +34,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "refclk", "wdt", "p3led_an", "wled_an"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "refclk", "wdt", "p3led_an", "wled_an"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_hiwifi_hc5861b.dts b/target/linux/ramips/dts/mt7628an_hiwifi_hc5861b.dts index 050c91d12..fbc8d9837 100644 --- a/target/linux/ramips/dts/mt7628an_hiwifi_hc5861b.dts +++ b/target/linux/ramips/dts/mt7628an_hiwifi_hc5861b.dts @@ -22,12 +22,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "refclk", "wdt", "wled_an"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "refclk", "wdt", "wled_an"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_iptime.dtsi b/target/linux/ramips/dts/mt7628an_iptime.dtsi index bbd8642f2..8ee865ddf 100644 --- a/target/linux/ramips/dts/mt7628an_iptime.dtsi +++ b/target/linux/ramips/dts/mt7628an_iptime.dtsi @@ -69,12 +69,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "uart1", "wdt"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "uart1", "wdt"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_iptime_a604m.dts b/target/linux/ramips/dts/mt7628an_iptime_a604m.dts index da44eb539..d9e0f8c59 100644 --- a/target/linux/ramips/dts/mt7628an_iptime_a604m.dts +++ b/target/linux/ramips/dts/mt7628an_iptime_a604m.dts @@ -36,11 +36,9 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "uart1", "wdt"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "uart1", "wdt"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_mediatek_linkit-smart-7688.dts b/target/linux/ramips/dts/mt7628an_mediatek_linkit-smart-7688.dts index d4eadf68e..229843fe1 100644 --- a/target/linux/ramips/dts/mt7628an_mediatek_linkit-smart-7688.dts +++ b/target/linux/ramips/dts/mt7628an_mediatek_linkit-smart-7688.dts @@ -50,42 +50,36 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "gpio"; - ralink,function = "gpio"; - }; - - refclk { - ralink,group = "refclk"; - ralink,function = "gpio"; - }; - - i2s { - ralink,group = "i2s"; - ralink,function = "gpio"; - }; - - spis { - ralink,group = "spis"; - ralink,function = "gpio"; - }; - - wled_an { - ralink,group = "wled_an"; - ralink,function = "gpio"; - }; - - wdt { - ralink,group = "wdt"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "gpio"; + ralink,function = "gpio"; }; -}; -&wmac { - status = "okay"; + refclk { + ralink,group = "refclk"; + ralink,function = "gpio"; + }; + + i2s { + ralink,group = "i2s"; + ralink,function = "gpio"; + }; + + spis { + ralink,group = "spis"; + ralink,function = "gpio"; + }; + + wled_an { + ralink,group = "wled_an"; + ralink,function = "gpio"; + }; + + wdt { + ralink,group = "wdt"; + ralink,function = "gpio"; + }; }; &spi0 { diff --git a/target/linux/ramips/dts/mt7628an_mediatek_mt7628an-eval-board.dts b/target/linux/ramips/dts/mt7628an_mediatek_mt7628an-eval-board.dts index 6b9c3e4af..5558892a2 100644 --- a/target/linux/ramips/dts/mt7628an_mediatek_mt7628an-eval-board.dts +++ b/target/linux/ramips/dts/mt7628an_mediatek_mt7628an-eval-board.dts @@ -7,12 +7,10 @@ model = "Mediatek MT7628AN evaluation board"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_mercury_mac1200r-v2.dts b/target/linux/ramips/dts/mt7628an_mercury_mac1200r-v2.dts index 715f4d1ff..22a8b566e 100644 --- a/target/linux/ramips/dts/mt7628an_mercury_mac1200r-v2.dts +++ b/target/linux/ramips/dts/mt7628an_mercury_mac1200r-v2.dts @@ -82,7 +82,10 @@ ðernet { pinctrl-names = "default"; mtd-mac-address = <&factory 0xd>; - mediatek,portmap = "llllw"; +}; + +&esw { + mediatek,portmap = <0x2f>; }; &wmac { diff --git a/target/linux/ramips/dts/mt7628an_netgear_r6120.dts b/target/linux/ramips/dts/mt7628an_netgear_r6120.dts index 12eb638df..49ca18964 100644 --- a/target/linux/ramips/dts/mt7628an_netgear_r6120.dts +++ b/target/linux/ramips/dts/mt7628an_netgear_r6120.dts @@ -74,14 +74,12 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "p0led_an", "p1led_an", "p2led_an", - "p3led_an", "p4led_an", "wdt", - "wled_an", "uart1"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "p0led_an", "p1led_an", "p2led_an", + "p3led_an", "p4led_an", "wdt", + "wled_an", "uart1"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_onion_omega2.dtsi b/target/linux/ramips/dts/mt7628an_onion_omega2.dtsi index 8b761d781..89f00a3e6 100644 --- a/target/linux/ramips/dts/mt7628an_onion_omega2.dtsi +++ b/target/linux/ramips/dts/mt7628an_onion_omega2.dtsi @@ -36,57 +36,55 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "gpio"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "gpio"; + ralink,function = "gpio"; + }; - perst { - ralink,group = "perst"; - ralink,function = "gpio"; - }; + perst { + ralink,group = "perst"; + ralink,function = "gpio"; + }; - refclk { - ralink,group = "refclk"; - ralink,function = "gpio"; - }; + refclk { + ralink,group = "refclk"; + ralink,function = "gpio"; + }; - i2s { - ralink,group = "i2s"; - ralink,function = "gpio"; - }; + i2s { + ralink,group = "i2s"; + ralink,function = "gpio"; + }; - spis { - ralink,group = "spis"; - ralink,function = "gpio"; - }; + spis { + ralink,group = "spis"; + ralink,function = "gpio"; + }; - wled_kn { - ralink,group = "wled_kn"; - ralink,function = "gpio"; - }; + wled_kn { + ralink,group = "wled_kn"; + ralink,function = "gpio"; + }; - wled_an { - ralink,group = "wled_an"; - ralink,function = "gpio"; - }; + wled_an { + ralink,group = "wled_an"; + ralink,function = "gpio"; + }; - wdt { - ralink,group = "wdt"; - ralink,function = "gpio"; - }; + wdt { + ralink,group = "wdt"; + ralink,function = "gpio"; + }; - pwm0 { - ralink,group = "pwm0"; - ralink,function = "gpio"; - }; + pwm0 { + ralink,group = "pwm0"; + ralink,function = "gpio"; + }; - pwm1 { - ralink,group = "pwm1"; - ralink,function = "gpio"; - }; + pwm1 { + ralink,group = "pwm1"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_rakwireless_rak633.dts b/target/linux/ramips/dts/mt7628an_rakwireless_rak633.dts index 1316a290d..01fe7025b 100644 --- a/target/linux/ramips/dts/mt7628an_rakwireless_rak633.dts +++ b/target/linux/ramips/dts/mt7628an_rakwireless_rak633.dts @@ -20,12 +20,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - wled_an { - ralink,group = "wled_an"; - ralink,function = "gpio"; - }; +&state_default { + wled_an { + ralink,group = "wled_an"; + ralink,function = "gpio"; }; }; @@ -95,5 +93,4 @@ &wmac { status = "okay"; - ralink,mtd-eeprom = <&factory 0x4>; }; diff --git a/target/linux/ramips/dts/mt7628an_skylab_skw92a.dts b/target/linux/ramips/dts/mt7628an_skylab_skw92a.dts index addcabd7f..0efe14621 100644 --- a/target/linux/ramips/dts/mt7628an_skylab_skw92a.dts +++ b/target/linux/ramips/dts/mt7628an_skylab_skw92a.dts @@ -44,12 +44,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "wdt", "refclk", "wled_an"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "wdt", "refclk", "wled_an"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tama_w06.dts b/target/linux/ramips/dts/mt7628an_tama_w06.dts index 2a906c266..782e2dcd7 100644 --- a/target/linux/ramips/dts/mt7628an_tama_w06.dts +++ b/target/linux/ramips/dts/mt7628an_tama_w06.dts @@ -51,12 +51,10 @@ status = "okay"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "uart1", "p0led_an", "wdt"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "uart1", "p0led_an", "wdt"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_totolink_lr1200.dts b/target/linux/ramips/dts/mt7628an_totolink_lr1200.dts index 4a712e917..55c1ff03e 100644 --- a/target/linux/ramips/dts/mt7628an_totolink_lr1200.dts +++ b/target/linux/ramips/dts/mt7628an_totolink_lr1200.dts @@ -87,12 +87,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "gpio", "i2c", "i2s", "refclk", "uart1", "wdt", "wled_an"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "gpio", "i2c", "i2s", "refclk", "uart1", "wdt", "wled_an"; + ralink,function = "gpio"; }; }; @@ -110,7 +108,6 @@ &wmac { status = "okay"; - ralink,mtd-eeprom = <&factory 0x4>; }; ðernet { diff --git a/target/linux/ramips/dts/mt7628an_tplink_8m-split-uboot.dtsi b/target/linux/ramips/dts/mt7628an_tplink_8m-split-uboot.dtsi index 6d7fb01c5..222906034 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_8m-split-uboot.dtsi +++ b/target/linux/ramips/dts/mt7628an_tplink_8m-split-uboot.dtsi @@ -84,5 +84,8 @@ ðernet { mtd-mac-address = <&rom 0xf100>; - mediatek,portmap = "llllw"; +}; + +&esw { + mediatek,portmap = <0x3e>; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_8m.dtsi b/target/linux/ramips/dts/mt7628an_tplink_8m.dtsi index ba3350ed0..5269fd668 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_8m.dtsi +++ b/target/linux/ramips/dts/mt7628an_tplink_8m.dtsi @@ -66,5 +66,4 @@ ðernet { mtd-mac-address = <&factory 0xf100>; - mediatek,portmap = "llllw"; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v4.dts b/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v4.dts index 91401b5a3..3f02b7af3 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v4.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v4.dts @@ -42,11 +42,13 @@ wlan5g { label = "archer-c20-v4:green:wlan5g"; gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy1tpt"; }; wlan2g { label = "archer-c20-v4:green:wlan2g"; gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy0tpt"; }; wps { @@ -76,16 +78,14 @@ mtd-mac-address-increment = <(-2)>; }; -ðernet { - mediatek,portmap = "wllll"; +&esw { + mediatek,portmap = <0x3e>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2s", "refclk", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "wdt"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2s", "gpio", "refclk", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "wdt"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v5.dts b/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v5.dts new file mode 100644 index 000000000..e01826841 --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v5.dts @@ -0,0 +1,98 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/dts-v1/; + +#include "mt7628an_tplink_8m-split-uboot.dtsi" + +#include +#include + +/ { + compatible = "tplink,archer-c20-v5", "mediatek,mt7628an-soc"; + model = "TP-Link Archer C20 v5"; + + aliases { + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; + }; + + keys { + compatible = "gpio-keys"; + + reset { + label = "reset"; + gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + rfkill { + label = "rfkill"; + gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + leds { + compatible = "gpio-leds"; + + led_power: power { + label = "archer-c20-v5:green:power"; + gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; + }; + + wlan2g { + label = "archer-c20-v5:green:wlan2g"; + gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy0tpt"; + }; + + wlan5g { + label = "archer-c20-v5:green:wlan5g"; + gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy1tpt"; + }; + + lan { + label = "archer-c20-v5:green:lan"; + gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; + }; + + wan_green { + label = "archer-c20-v5:green:wan"; + gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + }; + + wan_orange { + label = "archer-c20-v5:orange:wan"; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + }; + + wps { + label = "archer-c20-v5:green:wps"; + gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&state_default { + gpio { + ralink,group = "i2s", "gpio", "refclk", "p0led_an", "p1led_an", + "p2led_an", "p3led_an", "p4led_an", "wdt"; + ralink,function = "gpio"; + }; +}; + +&pcie { + status = "okay"; +}; + +&pcie0 { + wifi@0,0 { + reg = <0x0000 0 0 0 0>; + mediatek,mtd-eeprom = <&radio 0x8000>; + ieee80211-freq-limit = <5000000 6000000>; + mtd-mac-address = <&rom 0xf100>; + mtd-mac-address-increment = <(-1)>; + }; +}; diff --git a/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v3.dts b/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v3.dts index 2f0576f2f..92f581d1e 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v3.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v3.dts @@ -72,16 +72,18 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "gpio", "p0led_an", "p1led_an", "p2led_an", - "p3led_an", "p4led_an", "wdt", "wled_an"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "gpio", "p0led_an", "p1led_an", "p2led_an", + "p3led_an", "p4led_an", "wdt", "wled_an"; + ralink,function = "gpio"; }; }; +&esw { + mediatek,portmap = <0x3e>; +}; + &pcie { status = "okay"; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v4.dts b/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v4.dts index 197773db0..f7a559918 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v4.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v4.dts @@ -73,13 +73,11 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "p0led_an", "p1led_an", "p2led_an", - "p3led_an", "p4led_an", "wdt", "wled_an"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "p0led_an", "p1led_an", "p2led_an", + "p3led_an", "p4led_an", "wdt", "wled_an"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_re200-v2.dts b/target/linux/ramips/dts/mt7628an_tplink_re200-v2.dts new file mode 100644 index 000000000..54fd805ce --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_tplink_re200-v2.dts @@ -0,0 +1,70 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/dts-v1/; + +#include "mt7628an_tplink_re200.dtsi" + +/ { + compatible = "tplink,re200-v2", "mediatek,mt7628an-soc"; + model = "TP-Link RE200 v2"; + + aliases { + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; + }; + + leds { + compatible = "gpio-leds"; + + wps { + label = "re200-v2:green:wps"; + gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; + }; + + wifi { + label = "re200-v2:green:wifi"; + gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; + }; + + lan { + label = "re200-v2:green:lan"; + gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; + }; + + led_power: power { + label = "re200-v2:green:power"; + gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + }; + + wifi2g_green { + label = "re200-v2:green:wifi2g"; + gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy0tpt"; + }; + + wifi5g_green { + label = "re200-v2:green:wifi5g"; + gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy1tpt"; + }; + + wifi2g_red { + label = "re200-v2:red:wifi2g"; + gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + }; + + wifi5g_red { + label = "re200-v2:red:wifi5g"; + gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&state_default { + gpio { + ralink,group = "p4led_an", "p3led_an", "p2led_an", "p1led_an", + "p0led_an", "wled_an", "i2c", "wdt", "refclk"; + ralink,function = "gpio"; + }; +}; diff --git a/target/linux/ramips/dts/mt7628an_tplink_re200.dtsi b/target/linux/ramips/dts/mt7628an_tplink_re200.dtsi new file mode 100644 index 000000000..45d5b8ed7 --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_tplink_re200.dtsi @@ -0,0 +1,98 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT + +#include "mt7628an.dtsi" + +#include +#include + +/ { + aliases { + label-mac-device = ðernet; + }; + + chosen { + bootargs = "console=ttyS0,57600n8"; + }; + + keys { + compatible = "gpio-keys"; + + reset { + label = "reset"; + gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wps { + label = "wps"; + gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <50000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x20000>; + read-only; + }; + + partition@20000 { + compatible = "tplink,firmware"; + label = "firmware"; + reg = <0x20000 0x7a0000>; + }; + + config: partition@7c0000 { + label = "config"; + reg = <0x7c0000 0x30000>; + read-only; + }; + + radio: partition@7f0000 { + label = "radio"; + reg = <0x7f0000 0x10000>; + read-only; + }; + }; + }; +}; + +ðernet { + mtd-mac-address = <&config 0x2008>; +}; + +&wmac { + status = "okay"; + + mediatek,mtd-eeprom = <&radio 0x0>; + mtd-mac-address = <&config 0x2008>; + mtd-mac-address-increment = <1>; +}; + +&pcie { + status = "okay"; +}; + +&pcie0 { + mt76@0,0 { + reg = <0x0000 0 0 0 0>; + mediatek,mtd-eeprom = <&radio 0x8000>; + ieee80211-freq-limit = <5000000 6000000>; + mtd-mac-address = <&config 0x2008>; + mtd-mac-address-increment = <2>; + }; +}; diff --git a/target/linux/ramips/dts/mt7628an_tplink_re305-v1.dts b/target/linux/ramips/dts/mt7628an_tplink_re305-v1.dts new file mode 100644 index 000000000..d1adb1b38 --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_tplink_re305-v1.dts @@ -0,0 +1,150 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/dts-v1/; + +#include "mt7628an.dtsi" + +#include +#include + +/ { + compatible = "tplink,re305-v1", "mediatek,mt7628an-soc"; + model = "TP-Link RE305 v1"; + + aliases { + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; + label-mac-device = ðernet; + }; + + chosen { + bootargs = "console=ttyS0,57600"; + }; + + keys { + compatible = "gpio-keys"; + + reset { + label = "reset"; + gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wps { + label = "wps"; + gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + leds { + compatible = "gpio-leds"; + + led_power: power { + label = "re305-v1:blue:power"; + gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; + }; + + wlan2g { + label = "re305-v1:blue:wlan2g"; + gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy0tpt"; + }; + + wlan5g { + label = "re305-v1:blue:wlan5g"; + gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy1tpt"; + }; + + rssi1 { + label = "re305-v1:red:rssi"; + gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + }; + + rssi2 { + label = "re305-v1:blue:rssi"; + gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&spi0 { + status = "okay"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <50000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x20000>; + read-only; + }; + + partition@20000 { + compatible = "tplink,firmware"; + label = "firmware"; + reg = <0x20000 0x5e0000>; + }; + + config: partition@600000 { + label = "config"; + reg = <0x600000 0x50000>; + read-only; + }; + + /* + The flash space between 0x650000 and 0x7f0000 is blank in the + stock firmware so it is left out as well. + */ + + radio: partition@7f0000 { + label = "radio"; + reg = <0x7f0000 0x10000>; + read-only; + }; + }; + }; +}; + +&state_default { + gpio { + ralink,group = "refclk", "wdt", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an"; + ralink,function = "gpio"; + }; +}; + +&pcie { + status = "okay"; +}; + +&pcie0 { + mt76@0,0 { + compatible = "mediatek,mt76"; + reg = <0x0000 0 0 0 0>; + mediatek,mtd-eeprom = <&radio 0x8000>; + ieee80211-freq-limit = <5000000 6000000>; + mtd-mac-address = <&config 0x10008>; + mtd-mac-address-increment = <2>; + }; +}; + +&wmac { + status = "okay"; + + mediatek,mtd-eeprom = <&radio 0x0>; + mtd-mac-address = <&config 0x10008>; + mtd-mac-address-increment = <1>; +}; + +ðernet { + mtd-mac-address = <&config 0x10008>; +}; diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts index 84fe3224b..cf0f5eb79 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts @@ -61,6 +61,7 @@ wlan { label = "tl-mr3020-v3:green:wlan"; gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy0tpt"; }; wps { @@ -123,12 +124,10 @@ status = "okay"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2s", "refclk", "wdt", "p2led_an", "p1led_an", "p0led_an", "wled_an"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2s", "refclk", "wdt", "p2led_an", "p1led_an", "p0led_an", "wled_an"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-mr3420-v5.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-mr3420-v5.dts index 2bc4fac50..76cf0ca24 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-mr3420-v5.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-mr3420-v5.dts @@ -82,11 +82,13 @@ status = "okay"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "i2s", "p2led_an", "refclk", "uart1", "wdt", "wled_an"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "i2s", "p2led_an", "refclk", "uart1", "wdt", "wled_an"; + ralink,function = "gpio"; }; }; + +&esw { + mediatek,portmap = <0x3e>; +}; diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wa801nd-v5.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wa801nd-v5.dts index 0336730a4..7b9033202 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-wa801nd-v5.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wa801nd-v5.dts @@ -24,6 +24,12 @@ gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; linux,code = ; }; + + wps { + label = "wps"; + gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; + linux,code = ; + }; }; leds { @@ -42,20 +48,25 @@ wlan { label = "tl-wa801nd-v5:green:wlan"; gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy0tpt"; }; - wps { - label = "tl-wa801nd-v5:orange:wps"; - gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + wps_red { + label = "tl-wa801nd-v5:red:wps"; + gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>; + }; + + wps_green { + label = "tl-wa801nd-v5:green:wps"; + gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>; }; }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "p0led_an", "perst", "refclk", "wdt", "wled_an"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "p0led_an", "p1led_an", "perst", "refclk", + "uart1", "wdt", "wled_an"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wr802n-v4.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wr802n-v4.dts index 5e97733d0..3c615e606 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-wr802n-v4.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr802n-v4.dts @@ -37,16 +37,13 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "refclk", "wdt"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "refclk", "wdt"; + ralink,function = "gpio"; }; }; ðernet { mtd-mac-address = <&factory 0xf100>; - mediatek,portmap = "l"; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v4.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v4.dts index 32d4cdf4e..3f901d3a7 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v4.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v4.dts @@ -56,11 +56,13 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "p0led_an", "p2led_an", "perst", "refclk", "wdt", "wled_an"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "p0led_an", "p2led_an", "perst", "refclk", "wdt", "wled_an"; + ralink,function = "gpio"; }; }; + +&esw { + mediatek,portmap = <0x3e>; +}; diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v5.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v5.dts index 93869381c..3de58a71f 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v5.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v5.dts @@ -95,14 +95,15 @@ ðernet { mtd-mac-address = <&factory 0xf100>; - mediatek,portmap = "wllll"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "p0led_an", "p2led_an", "perst"; - ralink,function = "gpio"; - }; +&esw { + mediatek,portmap = <0x3e>; +}; + +&state_default { + gpio { + ralink,group = "p0led_an", "p2led_an", "perst"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v13.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v13.dts index 5bfabe4bd..89e2923c9 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v13.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v13.dts @@ -82,11 +82,13 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "gpio", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "perst", "refclk", "uart1", "wdt", "wled_an"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "gpio", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "perst", "refclk", "uart1", "wdt", "wled_an"; + ralink,function = "gpio"; }; }; + +&esw { + mediatek,portmap = <0x3e>; +}; diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v14.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v14.dts index 554300c97..1654e1819 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v14.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v14.dts @@ -109,15 +109,16 @@ ðernet { mtd-mac-address = <&factory 0xf100>; - mediatek,portmap = "wllll"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "p4led_an", "p3led_an", "p2led_an", "p1led_an", "p0led_an", "wdt"; - ralink,function = "gpio"; - }; +&esw { + mediatek,portmap = <0x3e>; +}; + +&state_default { + gpio { + ralink,group = "p4led_an", "p3led_an", "p2led_an", "p1led_an", "p0led_an", "wdt"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wr842n-v5.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wr842n-v5.dts index 648e64766..a0adb160d 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-wr842n-v5.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr842n-v5.dts @@ -82,11 +82,13 @@ status = "okay"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "i2s", "p2led_an", "refclk", "uart1", "wdt", "wled_an"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "i2s", "p2led_an", "refclk", "uart1", "wdt", "wled_an"; + ralink,function = "gpio"; }; }; + +&esw { + mediatek,portmap = <0x3e>; +}; diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wr902ac-v3.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wr902ac-v3.dts index 33449d965..f4b50a37f 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-wr902ac-v3.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr902ac-v3.dts @@ -81,12 +81,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "i2s", "p0led_an", "p2led_an", "p4led_an", "uart1", "wdt", "wled_an"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "i2s", "p0led_an", "p2led_an", "p4led_an", "uart1", "wdt", "wled_an"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_unielec_u7628-01.dtsi b/target/linux/ramips/dts/mt7628an_unielec_u7628-01.dtsi index 3416714d9..afa7f18ef 100644 --- a/target/linux/ramips/dts/mt7628an_unielec_u7628-01.dtsi +++ b/target/linux/ramips/dts/mt7628an_unielec_u7628-01.dtsi @@ -128,11 +128,9 @@ status = "okay"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "gpio", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "refclk", "wdt", "wled_an"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "gpio", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "refclk", "wdt", "wled_an"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_vocore_vocore2.dtsi b/target/linux/ramips/dts/mt7628an_vocore_vocore2.dtsi index 6a312ff0b..a0056dced 100644 --- a/target/linux/ramips/dts/mt7628an_vocore_vocore2.dtsi +++ b/target/linux/ramips/dts/mt7628an_vocore_vocore2.dtsi @@ -12,18 +12,15 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "wled_an", "refclk", "wdt"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "wled_an", "refclk", "wdt"; + ralink,function = "gpio"; }; }; &wmac { status = "okay"; - ralink,mtd-eeprom = <&factory 0x4>; }; ðernet { diff --git a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn570ha1.dts b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn570ha1.dts index fa59a8b10..a38907400 100644 --- a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn570ha1.dts +++ b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn570ha1.dts @@ -58,12 +58,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "wled_an", "p0led_an", "wdt", "refclk"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "wled_an", "p0led_an", "wdt", "refclk"; + ralink,function = "gpio"; }; }; @@ -125,5 +123,8 @@ ðernet { mtd-mac-address = <&factory 0x2e>; - mediatek,portmap = "llllw"; +}; + +&esw { + mediatek,portmap = <0x2f>; }; diff --git a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn575a3.dts b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn575a3.dts index 0aed99c45..330ae5807 100644 --- a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn575a3.dts +++ b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn575a3.dts @@ -53,12 +53,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "wled_an", "gpio", "refclk", "wdt", "p0led_an"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "wled_an", "gpio", "refclk", "wdt", "p0led_an"; + ralink,function = "gpio"; }; }; @@ -120,5 +118,8 @@ ðernet { mtd-mac-address = <&factory 0x28>; - mediatek,portmap = "llllw"; +}; + +&esw { + mediatek,portmap = <0x2f>; }; diff --git a/target/linux/ramips/dts/mt7628an_widora_neo.dtsi b/target/linux/ramips/dts/mt7628an_widora_neo.dtsi index 5457ca85c..f89342eb8 100644 --- a/target/linux/ramips/dts/mt7628an_widora_neo.dtsi +++ b/target/linux/ramips/dts/mt7628an_widora_neo.dtsi @@ -46,47 +46,45 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "gpio"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "gpio"; + ralink,function = "gpio"; + }; - perst { - ralink,group = "perst"; - ralink,function = "gpio"; - }; + perst { + ralink,group = "perst"; + ralink,function = "gpio"; + }; - refclk { - ralink,group = "refclk"; - ralink,function = "gpio"; - }; + refclk { + ralink,group = "refclk"; + ralink,function = "gpio"; + }; - i2s { - ralink,group = "i2s"; - ralink,function = "gpio"; - }; + i2s { + ralink,group = "i2s"; + ralink,function = "gpio"; + }; - spis { - ralink,group = "spis"; - ralink,function = "gpio"; - }; + spis { + ralink,group = "spis"; + ralink,function = "gpio"; + }; - wled_kn { - ralink,group = "wled_kn"; - ralink,function = "gpio"; - }; + wled_kn { + ralink,group = "wled_kn"; + ralink,function = "gpio"; + }; - wled_an { - ralink,group = "wled_an"; - ralink,function = "wled_an"; - }; + wled_an { + ralink,group = "wled_an"; + ralink,function = "wled_an"; + }; - wdt { - ralink,group = "wdt"; - ralink,function = "gpio"; - }; + wdt { + ralink,group = "wdt"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts b/target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts index b5da84c9f..c3a37fad4 100644 --- a/target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts +++ b/target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts @@ -79,32 +79,30 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "gpio"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "gpio"; + ralink,function = "gpio"; + }; - i2s { - ralink,group = "i2s"; - ralink,function = "gpio"; - }; + i2s { + ralink,group = "i2s"; + ralink,function = "gpio"; + }; - wdt { - ralink,group = "wdt"; - ralink,function = "gpio"; - }; + wdt { + ralink,group = "wdt"; + ralink,function = "gpio"; + }; - i2c { - ralink,group = "i2c"; - ralink,function = "gpio"; - }; + i2c { + ralink,group = "i2c"; + ralink,function = "gpio"; + }; - refclk { - ralink,group = "refclk"; - ralink,function = "gpio"; - }; + refclk { + ralink,group = "refclk"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2.dtsi b/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2.dtsi index 206da8b16..89b37f6b3 100644 --- a/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2.dtsi +++ b/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2.dtsi @@ -71,7 +71,10 @@ ðernet { mtd-mac-address = <&factory 0x4>; - mediatek,portmap = "llllw"; +}; + +&esw { + mediatek,portmap = <0x3e>; }; &sdhci { diff --git a/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2p.dts b/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2p.dts index fe9cf0dd1..6ac44ec8e 100644 --- a/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2p.dts +++ b/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2p.dts @@ -23,11 +23,9 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "gpio"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "gpio"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2r.dts b/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2r.dts index 7defe9c03..afd0c9359 100644 --- a/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2r.dts +++ b/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2r.dts @@ -26,14 +26,14 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "gpio"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "gpio"; + ralink,function = "gpio"; }; +}; +&pinctrl { led_pins: led { gpio { ralink,group = "wled_an"; diff --git a/target/linux/ramips/dts/mt7628an_xiaomi_mir4a-100m.dts b/target/linux/ramips/dts/mt7628an_xiaomi_mir4a-100m.dts index 2de28041e..fcbacf6db 100644 --- a/target/linux/ramips/dts/mt7628an_xiaomi_mir4a-100m.dts +++ b/target/linux/ramips/dts/mt7628an_xiaomi_mir4a-100m.dts @@ -117,12 +117,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "gpio", "wdt", "wled_an"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "gpio", "wdt", "wled_an"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_xiaomi_miwifi-nano.dts b/target/linux/ramips/dts/mt7628an_xiaomi_miwifi-nano.dts index 8b2a3d6c9..e502f273a 100644 --- a/target/linux/ramips/dts/mt7628an_xiaomi_miwifi-nano.dts +++ b/target/linux/ramips/dts/mt7628an_xiaomi_miwifi-nano.dts @@ -7,13 +7,14 @@ / { compatible = "xiaomi,miwifi-nano", "mediatek,mt7628an-soc"; - model = "MiWiFi Nano"; + model = "Xiaomi MiWiFi Nano"; aliases { - led-boot = &led_blue; - led-failsafe = &led_blue; - led-running = &led_blue; - led-upgrade = &led_blue; + led-boot = &led_status_amber; + led-failsafe = &led_status_red; + led-running = &led_status_blue; + led-upgrade = &led_status_amber; + label-mac-device = ðernet; }; chosen { @@ -23,17 +24,17 @@ leds { compatible = "gpio-leds"; - led_blue: status_blue { + led_status_blue: status_blue { label = "miwifi-nano:blue:status"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; - status_red { + led_status_red: status_red { label = "miwifi-nano:red:status"; gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; }; - status_amber { + led_status_amber: status_amber { label = "miwifi-nano:amber:status"; gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; }; @@ -50,12 +51,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "gpio", "refclk", "wdt", "wled_an"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "gpio", "refclk", "wdt", "wled_an"; + ralink,function = "gpio"; }; }; @@ -67,9 +66,13 @@ status = "disabled"; }; +&esw { + mediatek,portmap = <0x2f>; + mediatek,portdisable = <0x2a>; +}; + &wmac { status = "okay"; - ralink,mtd-eeprom = <&factory 0x4>; }; ðernet { @@ -79,7 +82,7 @@ &spi0 { status = "okay"; - m25p80@0 { + flash@0 { compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <40000000>; diff --git a/target/linux/ramips/dts/mt7628an_zbtlink_zbt-we1226.dts b/target/linux/ramips/dts/mt7628an_zbtlink_zbt-we1226.dts index b89e68950..fb620eae3 100644 --- a/target/linux/ramips/dts/mt7628an_zbtlink_zbt-we1226.dts +++ b/target/linux/ramips/dts/mt7628an_zbtlink_zbt-we1226.dts @@ -54,12 +54,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "p0led_an", "p1led_an", "p4led_an", "wdt", "wled_an"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "p0led_an", "p1led_an", "p4led_an", "wdt", "wled_an"; + ralink,function = "gpio"; }; }; @@ -105,10 +103,12 @@ &wmac { status = "okay"; - ralink,mtd-eeprom = <&factory 0x4>; }; ðernet { mtd-mac-address = <&factory 0x2e>; - mediatek,portmap = "llllw"; +}; + +&esw { + mediatek,portmap = <0x2f>; }; diff --git a/target/linux/ramips/dts/mt7628an_zyxel_keenetic-extra-ii.dts b/target/linux/ramips/dts/mt7628an_zyxel_keenetic-extra-ii.dts index f4d678e38..0fd8c56d0 100644 --- a/target/linux/ramips/dts/mt7628an_zyxel_keenetic-extra-ii.dts +++ b/target/linux/ramips/dts/mt7628an_zyxel_keenetic-extra-ii.dts @@ -179,7 +179,10 @@ ðernet { mtd-mac-address = <&factory 0x4>; - mediatek,portmap = "wllll"; +}; + +&esw { + mediatek,portmap = <0x3e>; }; &wmac { @@ -198,11 +201,9 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "gpio", "i2s", "refclk", "spi cs1", "uart1", "wled_an"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "gpio", "i2s", "refclk", "spi cs1", "uart1", "wled_an"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt2880_airlink101_ar670w.dts b/target/linux/ramips/dts/rt2880_airlink101_ar670w.dts index 96e4a8cbe..8a472626b 100644 --- a/target/linux/ramips/dts/rt2880_airlink101_ar670w.dts +++ b/target/linux/ramips/dts/rt2880_airlink101_ar670w.dts @@ -82,12 +82,10 @@ status = "okay"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "spi", "uartlite"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "spi", "uartlite"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt2880_airlink101_ar725w.dts b/target/linux/ramips/dts/rt2880_airlink101_ar725w.dts index 5e3782ac2..3e6691287 100644 --- a/target/linux/ramips/dts/rt2880_airlink101_ar725w.dts +++ b/target/linux/ramips/dts/rt2880_airlink101_ar725w.dts @@ -92,12 +92,10 @@ status = "okay"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "spi", "uartlite"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "spi", "uartlite"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt2880_asus_rt-n15.dts b/target/linux/ramips/dts/rt2880_asus_rt-n15.dts index 4ed6c1ed4..6830fc5ba 100644 --- a/target/linux/ramips/dts/rt2880_asus_rt-n15.dts +++ b/target/linux/ramips/dts/rt2880_asus_rt-n15.dts @@ -92,12 +92,10 @@ status = "okay"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "uartlite", "mdio"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "uartlite", "mdio"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt2880_belkin_f5d8235-v1.dts b/target/linux/ramips/dts/rt2880_belkin_f5d8235-v1.dts index 04728c582..2f0475b33 100644 --- a/target/linux/ramips/dts/rt2880_belkin_f5d8235-v1.dts +++ b/target/linux/ramips/dts/rt2880_belkin_f5d8235-v1.dts @@ -193,12 +193,10 @@ status = "okay"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "mdio", "uartlite"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "spi", "i2c", "jtag", "mdio", "uartlite"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt2880_buffalo_wzr-agl300nh.dts b/target/linux/ramips/dts/rt2880_buffalo_wzr-agl300nh.dts index c6a90d426..ff7660723 100644 --- a/target/linux/ramips/dts/rt2880_buffalo_wzr-agl300nh.dts +++ b/target/linux/ramips/dts/rt2880_buffalo_wzr-agl300nh.dts @@ -113,12 +113,10 @@ status = "okay"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "uartlite", "mdio"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "uartlite", "mdio"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt2880_dlink_dap-1522-a1.dts b/target/linux/ramips/dts/rt2880_dlink_dap-1522-a1.dts index 56e3990bf..cf5a3cf2c 100644 --- a/target/linux/ramips/dts/rt2880_dlink_dap-1522-a1.dts +++ b/target/linux/ramips/dts/rt2880_dlink_dap-1522-a1.dts @@ -117,12 +117,10 @@ status = "okay"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "uartlite", "pci"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "uartlite", "pci"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3050_8devices_carambola.dts b/target/linux/ramips/dts/rt3050_8devices_carambola.dts index aaaea8fd4..aa9cf5927 100644 --- a/target/linux/ramips/dts/rt3050_8devices_carambola.dts +++ b/target/linux/ramips/dts/rt3050_8devices_carambola.dts @@ -57,12 +57,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3050_allnet_all0256n.dtsi b/target/linux/ramips/dts/rt3050_allnet_all0256n.dtsi index d31547c33..32fbe68f1 100644 --- a/target/linux/ramips/dts/rt3050_allnet_all0256n.dtsi +++ b/target/linux/ramips/dts/rt3050_allnet_all0256n.dtsi @@ -41,12 +41,10 @@ status = "okay"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3050_alphanetworks_asl26555.dtsi b/target/linux/ramips/dts/rt3050_alphanetworks_asl26555.dtsi index d1c21f808..1172c7483 100644 --- a/target/linux/ramips/dts/rt3050_alphanetworks_asl26555.dtsi +++ b/target/linux/ramips/dts/rt3050_alphanetworks_asl26555.dtsi @@ -81,12 +81,10 @@ status = "okay"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3050_arcwireless_freestation5.dts b/target/linux/ramips/dts/rt3050_arcwireless_freestation5.dts index b924229a7..0289e1110 100644 --- a/target/linux/ramips/dts/rt3050_arcwireless_freestation5.dts +++ b/target/linux/ramips/dts/rt3050_arcwireless_freestation5.dts @@ -88,12 +88,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3050_asus_rt-g32-b1.dts b/target/linux/ramips/dts/rt3050_asus_rt-g32-b1.dts index 8f0544e7e..a4b1c9801 100644 --- a/target/linux/ramips/dts/rt3050_asus_rt-g32-b1.dts +++ b/target/linux/ramips/dts/rt3050_asus_rt-g32-b1.dts @@ -67,12 +67,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3050_asus_wl-330n.dts b/target/linux/ramips/dts/rt3050_asus_wl-330n.dts index 48a6e3a4c..3a3444916 100644 --- a/target/linux/ramips/dts/rt3050_asus_wl-330n.dts +++ b/target/linux/ramips/dts/rt3050_asus_wl-330n.dts @@ -88,12 +88,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3050_asus_wl-330n3g.dts b/target/linux/ramips/dts/rt3050_asus_wl-330n3g.dts index 8453147b6..23f8457fd 100644 --- a/target/linux/ramips/dts/rt3050_asus_wl-330n3g.dts +++ b/target/linux/ramips/dts/rt3050_asus_wl-330n3g.dts @@ -93,12 +93,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3050_dlink_dcs-930.dts b/target/linux/ramips/dts/rt3050_dlink_dcs-930.dts index 1c44e28fe..679173c79 100644 --- a/target/linux/ramips/dts/rt3050_dlink_dcs-930.dts +++ b/target/linux/ramips/dts/rt3050_dlink_dcs-930.dts @@ -90,12 +90,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3050_dlink_dir-300-b1.dts b/target/linux/ramips/dts/rt3050_dlink_dir-300-b1.dts index 030796f28..945182e69 100644 --- a/target/linux/ramips/dts/rt3050_dlink_dir-300-b1.dts +++ b/target/linux/ramips/dts/rt3050_dlink_dir-300-b1.dts @@ -100,12 +100,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3050_dlink_dir-600-b1.dts b/target/linux/ramips/dts/rt3050_dlink_dir-600-b1.dts index a77bfd717..864f86451 100644 --- a/target/linux/ramips/dts/rt3050_dlink_dir-600-b1.dts +++ b/target/linux/ramips/dts/rt3050_dlink_dir-600-b1.dts @@ -100,12 +100,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3050_dlink_dir-615-d.dts b/target/linux/ramips/dts/rt3050_dlink_dir-615-d.dts index c0593dd6e..a9d0dc985 100644 --- a/target/linux/ramips/dts/rt3050_dlink_dir-615-d.dts +++ b/target/linux/ramips/dts/rt3050_dlink_dir-615-d.dts @@ -110,11 +110,9 @@ ralink,mtd-eeprom = <&devdata 0x4000>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3050_dlink_dir-620-a1.dts b/target/linux/ramips/dts/rt3050_dlink_dir-620-a1.dts index 24fdec8ed..a0f365912 100644 --- a/target/linux/ramips/dts/rt3050_dlink_dir-620-a1.dts +++ b/target/linux/ramips/dts/rt3050_dlink_dir-620-a1.dts @@ -105,12 +105,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3050_edimax_3g-6200n.dts b/target/linux/ramips/dts/rt3050_edimax_3g-6200n.dts index 385981221..edd95a756 100644 --- a/target/linux/ramips/dts/rt3050_edimax_3g-6200n.dts +++ b/target/linux/ramips/dts/rt3050_edimax_3g-6200n.dts @@ -98,12 +98,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3050_edimax_3g-6200nl.dts b/target/linux/ramips/dts/rt3050_edimax_3g-6200nl.dts index 7742561e5..31d311f72 100644 --- a/target/linux/ramips/dts/rt3050_edimax_3g-6200nl.dts +++ b/target/linux/ramips/dts/rt3050_edimax_3g-6200nl.dts @@ -85,12 +85,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3050_huawei_d105.dts b/target/linux/ramips/dts/rt3050_huawei_d105.dts index 10732cc5e..ca30791d8 100644 --- a/target/linux/ramips/dts/rt3050_huawei_d105.dts +++ b/target/linux/ramips/dts/rt3050_huawei_d105.dts @@ -81,12 +81,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3050_jcg_jhr-n805r.dts b/target/linux/ramips/dts/rt3050_jcg_jhr-n805r.dts index 702d779aa..8709a21ab 100644 --- a/target/linux/ramips/dts/rt3050_jcg_jhr-n805r.dts +++ b/target/linux/ramips/dts/rt3050_jcg_jhr-n805r.dts @@ -37,12 +37,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3050_netcore_nw718.dts b/target/linux/ramips/dts/rt3050_netcore_nw718.dts index 61af498fd..fe13d9ac9 100644 --- a/target/linux/ramips/dts/rt3050_netcore_nw718.dts +++ b/target/linux/ramips/dts/rt3050_netcore_nw718.dts @@ -95,12 +95,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3050_sparklan_wcr-150gn.dts b/target/linux/ramips/dts/rt3050_sparklan_wcr-150gn.dts index a2f763cb8..66abb4853 100644 --- a/target/linux/ramips/dts/rt3050_sparklan_wcr-150gn.dts +++ b/target/linux/ramips/dts/rt3050_sparklan_wcr-150gn.dts @@ -87,12 +87,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3050_teltonika_rut5xx.dts b/target/linux/ramips/dts/rt3050_teltonika_rut5xx.dts index 52638f94e..9532d922f 100644 --- a/target/linux/ramips/dts/rt3050_teltonika_rut5xx.dts +++ b/target/linux/ramips/dts/rt3050_teltonika_rut5xx.dts @@ -77,12 +77,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3050_tenda_w150m.dts b/target/linux/ramips/dts/rt3050_tenda_w150m.dts index e6a2c4ab1..6e2ea916e 100644 --- a/target/linux/ramips/dts/rt3050_tenda_w150m.dts +++ b/target/linux/ramips/dts/rt3050_tenda_w150m.dts @@ -105,12 +105,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3050_trendnet_tew-638apb-v2.dts b/target/linux/ramips/dts/rt3050_trendnet_tew-638apb-v2.dts index a014b3280..66a637206 100644 --- a/target/linux/ramips/dts/rt3050_trendnet_tew-638apb-v2.dts +++ b/target/linux/ramips/dts/rt3050_trendnet_tew-638apb-v2.dts @@ -85,12 +85,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_accton_wr6202.dts b/target/linux/ramips/dts/rt3052_accton_wr6202.dts index 1caec41a4..bc7a79c97 100644 --- a/target/linux/ramips/dts/rt3052_accton_wr6202.dts +++ b/target/linux/ramips/dts/rt3052_accton_wr6202.dts @@ -93,12 +93,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_alfa-network_w502u.dts b/target/linux/ramips/dts/rt3052_alfa-network_w502u.dts index 5c1b47bc0..489b85338 100644 --- a/target/linux/ramips/dts/rt3052_alfa-network_w502u.dts +++ b/target/linux/ramips/dts/rt3052_alfa-network_w502u.dts @@ -91,12 +91,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_argus_atp-52b.dts b/target/linux/ramips/dts/rt3052_argus_atp-52b.dts index 046fe676c..3170f88d9 100644 --- a/target/linux/ramips/dts/rt3052_argus_atp-52b.dts +++ b/target/linux/ramips/dts/rt3052_argus_atp-52b.dts @@ -83,12 +83,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_asiarf_awapn2403.dts b/target/linux/ramips/dts/rt3052_asiarf_awapn2403.dts index 38ad539eb..f3a21fada 100644 --- a/target/linux/ramips/dts/rt3052_asiarf_awapn2403.dts +++ b/target/linux/ramips/dts/rt3052_asiarf_awapn2403.dts @@ -77,12 +77,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_asus_rt-n13u.dts b/target/linux/ramips/dts/rt3052_asus_rt-n13u.dts index c3a3d2346..20e287b1c 100644 --- a/target/linux/ramips/dts/rt3052_asus_rt-n13u.dts +++ b/target/linux/ramips/dts/rt3052_asus_rt-n13u.dts @@ -85,12 +85,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_aximcom_mr-102n.dts b/target/linux/ramips/dts/rt3052_aximcom_mr-102n.dts index d8efb425e..cbb8b7b94 100644 --- a/target/linux/ramips/dts/rt3052_aximcom_mr-102n.dts +++ b/target/linux/ramips/dts/rt3052_aximcom_mr-102n.dts @@ -102,12 +102,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; @@ -117,7 +115,6 @@ &esw { status = "okay"; - #mediatek,portmap = <0x3e>; mediatek,portmap = <0x2f>; }; diff --git a/target/linux/ramips/dts/rt3052_aztech_hw550-3g.dts b/target/linux/ramips/dts/rt3052_aztech_hw550-3g.dts index 372d18e75..8eb02f14c 100644 --- a/target/linux/ramips/dts/rt3052_aztech_hw550-3g.dts +++ b/target/linux/ramips/dts/rt3052_aztech_hw550-3g.dts @@ -103,12 +103,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_belkin_f5d8235-v2.dts b/target/linux/ramips/dts/rt3052_belkin_f5d8235-v2.dts index 93725e933..af2a5bc9b 100644 --- a/target/linux/ramips/dts/rt3052_belkin_f5d8235-v2.dts +++ b/target/linux/ramips/dts/rt3052_belkin_f5d8235-v2.dts @@ -109,12 +109,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "spi", "i2c", "jtag", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_buffalo_whr-g300n.dts b/target/linux/ramips/dts/rt3052_buffalo_whr-g300n.dts index 3871b5549..90e7ee81c 100644 --- a/target/linux/ramips/dts/rt3052_buffalo_whr-g300n.dts +++ b/target/linux/ramips/dts/rt3052_buffalo_whr-g300n.dts @@ -107,12 +107,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_dlink_dap-1350.dts b/target/linux/ramips/dts/rt3052_dlink_dap-1350.dts index 06d490cac..60ef24db2 100644 --- a/target/linux/ramips/dts/rt3052_dlink_dap-1350.dts +++ b/target/linux/ramips/dts/rt3052_dlink_dap-1350.dts @@ -112,12 +112,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_engenius_esr-9753.dts b/target/linux/ramips/dts/rt3052_engenius_esr-9753.dts index 4b55af069..82ab9db6f 100644 --- a/target/linux/ramips/dts/rt3052_engenius_esr-9753.dts +++ b/target/linux/ramips/dts/rt3052_engenius_esr-9753.dts @@ -85,12 +85,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_fon_fonera-20n.dts b/target/linux/ramips/dts/rt3052_fon_fonera-20n.dts index dfe55a257..8ff73bdc5 100644 --- a/target/linux/ramips/dts/rt3052_fon_fonera-20n.dts +++ b/target/linux/ramips/dts/rt3052_fon_fonera-20n.dts @@ -93,12 +93,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_hauppauge_broadway.dts b/target/linux/ramips/dts/rt3052_hauppauge_broadway.dts index 353cfbf41..0d94db855 100644 --- a/target/linux/ramips/dts/rt3052_hauppauge_broadway.dts +++ b/target/linux/ramips/dts/rt3052_hauppauge_broadway.dts @@ -74,12 +74,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_huawei_hg255d.dts b/target/linux/ramips/dts/rt3052_huawei_hg255d.dts index df8a72c8c..24eb32005 100644 --- a/target/linux/ramips/dts/rt3052_huawei_hg255d.dts +++ b/target/linux/ramips/dts/rt3052_huawei_hg255d.dts @@ -119,12 +119,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_jcg_jhr-n825r.dts b/target/linux/ramips/dts/rt3052_jcg_jhr-n825r.dts index 4c0640b88..936de0391 100644 --- a/target/linux/ramips/dts/rt3052_jcg_jhr-n825r.dts +++ b/target/linux/ramips/dts/rt3052_jcg_jhr-n825r.dts @@ -72,12 +72,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_jcg_jhr-n926r.dts b/target/linux/ramips/dts/rt3052_jcg_jhr-n926r.dts index 941482859..93ed7029d 100644 --- a/target/linux/ramips/dts/rt3052_jcg_jhr-n926r.dts +++ b/target/linux/ramips/dts/rt3052_jcg_jhr-n926r.dts @@ -118,12 +118,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_mofinetwork_mofi3500-3gn.dts b/target/linux/ramips/dts/rt3052_mofinetwork_mofi3500-3gn.dts index d20f2d270..7f11bb57f 100644 --- a/target/linux/ramips/dts/rt3052_mofinetwork_mofi3500-3gn.dts +++ b/target/linux/ramips/dts/rt3052_mofinetwork_mofi3500-3gn.dts @@ -103,12 +103,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_netgear_wnce2001.dts b/target/linux/ramips/dts/rt3052_netgear_wnce2001.dts index 3f0d93d8a..3954ce4e7 100644 --- a/target/linux/ramips/dts/rt3052_netgear_wnce2001.dts +++ b/target/linux/ramips/dts/rt3052_netgear_wnce2001.dts @@ -131,12 +131,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_nexaira_bc2.dts b/target/linux/ramips/dts/rt3052_nexaira_bc2.dts index 324909e82..80fbfce07 100644 --- a/target/linux/ramips/dts/rt3052_nexaira_bc2.dts +++ b/target/linux/ramips/dts/rt3052_nexaira_bc2.dts @@ -69,12 +69,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_omnima_miniembwifi.dts b/target/linux/ramips/dts/rt3052_omnima_miniembwifi.dts index 2f045c788..ac0e65be6 100644 --- a/target/linux/ramips/dts/rt3052_omnima_miniembwifi.dts +++ b/target/linux/ramips/dts/rt3052_omnima_miniembwifi.dts @@ -79,12 +79,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_petatel_psr-680w.dts b/target/linux/ramips/dts/rt3052_petatel_psr-680w.dts index 260d0a144..f57522571 100644 --- a/target/linux/ramips/dts/rt3052_petatel_psr-680w.dts +++ b/target/linux/ramips/dts/rt3052_petatel_psr-680w.dts @@ -78,12 +78,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_planex_mzk-w300nh2.dts b/target/linux/ramips/dts/rt3052_planex_mzk-w300nh2.dts index ab749fc43..e21926ce1 100644 --- a/target/linux/ramips/dts/rt3052_planex_mzk-w300nh2.dts +++ b/target/linux/ramips/dts/rt3052_planex_mzk-w300nh2.dts @@ -102,12 +102,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_planex_mzk-wdpr.dts b/target/linux/ramips/dts/rt3052_planex_mzk-wdpr.dts index 17591268b..00b479b7b 100644 --- a/target/linux/ramips/dts/rt3052_planex_mzk-wdpr.dts +++ b/target/linux/ramips/dts/rt3052_planex_mzk-wdpr.dts @@ -67,12 +67,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_poray_ip2202.dts b/target/linux/ramips/dts/rt3052_poray_ip2202.dts index 31478da69..a75413619 100644 --- a/target/linux/ramips/dts/rt3052_poray_ip2202.dts +++ b/target/linux/ramips/dts/rt3052_poray_ip2202.dts @@ -79,12 +79,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_prolink_pwh2004.dts b/target/linux/ramips/dts/rt3052_prolink_pwh2004.dts index 3280c93af..7a8a85b5d 100644 --- a/target/linux/ramips/dts/rt3052_prolink_pwh2004.dts +++ b/target/linux/ramips/dts/rt3052_prolink_pwh2004.dts @@ -79,12 +79,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_ralink_v22rw-2x2.dts b/target/linux/ramips/dts/rt3052_ralink_v22rw-2x2.dts index df56c8081..6816305e2 100644 --- a/target/linux/ramips/dts/rt3052_ralink_v22rw-2x2.dts +++ b/target/linux/ramips/dts/rt3052_ralink_v22rw-2x2.dts @@ -85,12 +85,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_sitecom_wl-351.dts b/target/linux/ramips/dts/rt3052_sitecom_wl-351.dts index 1b31bda73..2b92f6bf1 100644 --- a/target/linux/ramips/dts/rt3052_sitecom_wl-351.dts +++ b/target/linux/ramips/dts/rt3052_sitecom_wl-351.dts @@ -96,12 +96,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "spi", "i2c", "jtag", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_skyline_sl-r7205.dts b/target/linux/ramips/dts/rt3052_skyline_sl-r7205.dts index 3d8a9ec46..664bced34 100644 --- a/target/linux/ramips/dts/rt3052_skyline_sl-r7205.dts +++ b/target/linux/ramips/dts/rt3052_skyline_sl-r7205.dts @@ -80,12 +80,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_tenda_3g300m.dts b/target/linux/ramips/dts/rt3052_tenda_3g300m.dts index a463890de..818929749 100644 --- a/target/linux/ramips/dts/rt3052_tenda_3g300m.dts +++ b/target/linux/ramips/dts/rt3052_tenda_3g300m.dts @@ -110,12 +110,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_tenda_w306r-v2.dts b/target/linux/ramips/dts/rt3052_tenda_w306r-v2.dts index 233a6d2e4..a25d2c56b 100644 --- a/target/linux/ramips/dts/rt3052_tenda_w306r-v2.dts +++ b/target/linux/ramips/dts/rt3052_tenda_w306r-v2.dts @@ -79,12 +79,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_unbranded_wr512-3gn.dtsi b/target/linux/ramips/dts/rt3052_unbranded_wr512-3gn.dtsi index 5761b8b53..271894639 100644 --- a/target/linux/ramips/dts/rt3052_unbranded_wr512-3gn.dtsi +++ b/target/linux/ramips/dts/rt3052_unbranded_wr512-3gn.dtsi @@ -60,12 +60,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_unbranded_xdx-rn502j.dts b/target/linux/ramips/dts/rt3052_unbranded_xdx-rn502j.dts index 2d1b416ce..d8739d758 100644 --- a/target/linux/ramips/dts/rt3052_unbranded_xdx-rn502j.dts +++ b/target/linux/ramips/dts/rt3052_unbranded_xdx-rn502j.dts @@ -79,12 +79,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_upvel_ur-326n4g.dts b/target/linux/ramips/dts/rt3052_upvel_ur-326n4g.dts index d67c2e0ec..489772940 100644 --- a/target/linux/ramips/dts/rt3052_upvel_ur-326n4g.dts +++ b/target/linux/ramips/dts/rt3052_upvel_ur-326n4g.dts @@ -100,12 +100,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_upvel_ur-336un.dts b/target/linux/ramips/dts/rt3052_upvel_ur-336un.dts index 937278db9..823913cfd 100644 --- a/target/linux/ramips/dts/rt3052_upvel_ur-336un.dts +++ b/target/linux/ramips/dts/rt3052_upvel_ur-336un.dts @@ -100,12 +100,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_zyxel_keenetic.dts b/target/linux/ramips/dts/rt3052_zyxel_keenetic.dts index 1f9928e59..ad641f47e 100644 --- a/target/linux/ramips/dts/rt3052_zyxel_keenetic.dts +++ b/target/linux/ramips/dts/rt3052_zyxel_keenetic.dts @@ -99,12 +99,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_zyxel_nbg-419n.dts b/target/linux/ramips/dts/rt3052_zyxel_nbg-419n.dts index 625e1616d..608f21ddf 100644 --- a/target/linux/ramips/dts/rt3052_zyxel_nbg-419n.dts +++ b/target/linux/ramips/dts/rt3052_zyxel_nbg-419n.dts @@ -85,12 +85,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3352_allnet_all5002.dts b/target/linux/ramips/dts/rt3352_allnet_all5002.dts index a604ec151..ea5386c5e 100644 --- a/target/linux/ramips/dts/rt3352_allnet_all5002.dts +++ b/target/linux/ramips/dts/rt3352_allnet_all5002.dts @@ -89,12 +89,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3352_dlink_dir-615-h1.dts b/target/linux/ramips/dts/rt3352_dlink_dir-615-h1.dts index a87fc1e9a..72145b4e4 100644 --- a/target/linux/ramips/dts/rt3352_dlink_dir-615-h1.dts +++ b/target/linux/ramips/dts/rt3352_dlink_dir-615-h1.dts @@ -105,12 +105,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3352_dlink_dir-620-d1.dts b/target/linux/ramips/dts/rt3352_dlink_dir-620-d1.dts index 74fd4af75..c85f72d01 100644 --- a/target/linux/ramips/dts/rt3352_dlink_dir-620-d1.dts +++ b/target/linux/ramips/dts/rt3352_dlink_dir-620-d1.dts @@ -82,12 +82,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3352_zyxel_nbg-419n-v2.dts b/target/linux/ramips/dts/rt3352_zyxel_nbg-419n-v2.dts index e150eff9e..fde9b8198 100644 --- a/target/linux/ramips/dts/rt3352_zyxel_nbg-419n-v2.dts +++ b/target/linux/ramips/dts/rt3352_zyxel_nbg-419n-v2.dts @@ -100,12 +100,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3662_asus_rt-n56u.dts b/target/linux/ramips/dts/rt3662_asus_rt-n56u.dts index 13f6cdd1d..4f9bc9843 100644 --- a/target/linux/ramips/dts/rt3662_asus_rt-n56u.dts +++ b/target/linux/ramips/dts/rt3662_asus_rt-n56u.dts @@ -105,12 +105,10 @@ status = "okay"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "spi", "i2c", "jtag", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3662_dlink_dir-645.dts b/target/linux/ramips/dts/rt3662_dlink_dir-645.dts index 5effbf9fa..235bcf879 100644 --- a/target/linux/ramips/dts/rt3662_dlink_dir-645.dts +++ b/target/linux/ramips/dts/rt3662_dlink_dir-645.dts @@ -121,12 +121,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3662_edimax_br-6475nd.dts b/target/linux/ramips/dts/rt3662_edimax_br-6475nd.dts index 9e6d98f95..233a7d37c 100644 --- a/target/linux/ramips/dts/rt3662_edimax_br-6475nd.dts +++ b/target/linux/ramips/dts/rt3662_edimax_br-6475nd.dts @@ -121,12 +121,10 @@ */ }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "jtag", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "spi", "jtag", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3662_omnima_hpm.dts b/target/linux/ramips/dts/rt3662_omnima_hpm.dts index 5d3f3278a..7ac16cbf9 100644 --- a/target/linux/ramips/dts/rt3662_omnima_hpm.dts +++ b/target/linux/ramips/dts/rt3662_omnima_hpm.dts @@ -126,12 +126,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3662_samsung_cy-swr1100.dts b/target/linux/ramips/dts/rt3662_samsung_cy-swr1100.dts index 0d98a43e0..aaa0985bf 100644 --- a/target/linux/ramips/dts/rt3662_samsung_cy-swr1100.dts +++ b/target/linux/ramips/dts/rt3662_samsung_cy-swr1100.dts @@ -113,12 +113,10 @@ status = "okay"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "spi"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "spi"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3883_belkin_f9k110x.dtsi b/target/linux/ramips/dts/rt3883_belkin_f9k110x.dtsi index 98ad1b13e..47e24c66d 100644 --- a/target/linux/ramips/dts/rt3883_belkin_f9k110x.dtsi +++ b/target/linux/ramips/dts/rt3883_belkin_f9k110x.dtsi @@ -73,12 +73,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3883_sitecom_wlr-6000.dts b/target/linux/ramips/dts/rt3883_sitecom_wlr-6000.dts index 2b1f70765..b41bb7421 100644 --- a/target/linux/ramips/dts/rt3883_sitecom_wlr-6000.dts +++ b/target/linux/ramips/dts/rt3883_sitecom_wlr-6000.dts @@ -57,12 +57,10 @@ status = "okay"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts b/target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts index aeed7fbb2..6830f736f 100644 --- a/target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts +++ b/target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts @@ -89,12 +89,10 @@ status = "okay"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "spi", "i2c", "jtag", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3883_trendnet_tew-692gr.dts b/target/linux/ramips/dts/rt3883_trendnet_tew-692gr.dts index 03395a92d..6d234796d 100644 --- a/target/linux/ramips/dts/rt3883_trendnet_tew-692gr.dts +++ b/target/linux/ramips/dts/rt3883_trendnet_tew-692gr.dts @@ -88,12 +88,10 @@ status = "okay"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "spi", "i2c", "jtag", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_7links_px-4885.dtsi b/target/linux/ramips/dts/rt5350_7links_px-4885.dtsi index cdd3033be..6ce6c3f4a 100644 --- a/target/linux/ramips/dts/rt5350_7links_px-4885.dtsi +++ b/target/linux/ramips/dts/rt5350_7links_px-4885.dtsi @@ -41,12 +41,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_airlive_air3gii.dts b/target/linux/ramips/dts/rt5350_airlive_air3gii.dts index 111119eea..50d08a8fe 100644 --- a/target/linux/ramips/dts/rt5350_airlive_air3gii.dts +++ b/target/linux/ramips/dts/rt5350_airlive_air3gii.dts @@ -81,12 +81,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_allnet_all5003.dts b/target/linux/ramips/dts/rt5350_allnet_all5003.dts index 8a3488a7e..0571b89fb 100644 --- a/target/linux/ramips/dts/rt5350_allnet_all5003.dts +++ b/target/linux/ramips/dts/rt5350_allnet_all5003.dts @@ -89,12 +89,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_asiarf_awm002-evb.dtsi b/target/linux/ramips/dts/rt5350_asiarf_awm002-evb.dtsi index 384b2efec..974a902e2 100644 --- a/target/linux/ramips/dts/rt5350_asiarf_awm002-evb.dtsi +++ b/target/linux/ramips/dts/rt5350_asiarf_awm002-evb.dtsi @@ -51,12 +51,10 @@ ralink,mtd-eeprom = <&factory 0>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_belkin_f7c027.dts b/target/linux/ramips/dts/rt5350_belkin_f7c027.dts index f3bf00e30..0869b4315 100644 --- a/target/linux/ramips/dts/rt5350_belkin_f7c027.dts +++ b/target/linux/ramips/dts/rt5350_belkin_f7c027.dts @@ -133,11 +133,9 @@ ralink,mtd-eeprom = <&factory 0>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_dlink_dcs-930l-b1.dts b/target/linux/ramips/dts/rt5350_dlink_dcs-930l-b1.dts index 0fff5e8b5..c08a76d55 100644 --- a/target/linux/ramips/dts/rt5350_dlink_dcs-930l-b1.dts +++ b/target/linux/ramips/dts/rt5350_dlink_dcs-930l-b1.dts @@ -88,12 +88,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf", "led"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "uartf", "led"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_dlink_dir-300-b7.dts b/target/linux/ramips/dts/rt5350_dlink_dir-300-b7.dts index 2b6af163b..b5e966cfd 100644 --- a/target/linux/ramips/dts/rt5350_dlink_dir-300-b7.dts +++ b/target/linux/ramips/dts/rt5350_dlink_dir-300-b7.dts @@ -88,12 +88,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_dlink_dir-320-b1.dts b/target/linux/ramips/dts/rt5350_dlink_dir-320-b1.dts index 040a22398..c1eb2a8d1 100644 --- a/target/linux/ramips/dts/rt5350_dlink_dir-320-b1.dts +++ b/target/linux/ramips/dts/rt5350_dlink_dir-320-b1.dts @@ -110,12 +110,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_dlink_dir-610-a1.dts b/target/linux/ramips/dts/rt5350_dlink_dir-610-a1.dts index 7a0323e21..e791c9a5f 100644 --- a/target/linux/ramips/dts/rt5350_dlink_dir-610-a1.dts +++ b/target/linux/ramips/dts/rt5350_dlink_dir-610-a1.dts @@ -88,12 +88,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_dlink_dwr-512-b.dts b/target/linux/ramips/dts/rt5350_dlink_dwr-512-b.dts index a08ea5d03..c5ccfd0c9 100644 --- a/target/linux/ramips/dts/rt5350_dlink_dwr-512-b.dts +++ b/target/linux/ramips/dts/rt5350_dlink_dwr-512-b.dts @@ -125,12 +125,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_easyacc_wizard-8800.dts b/target/linux/ramips/dts/rt5350_easyacc_wizard-8800.dts index a69ed4bd0..c3e76cb13 100644 --- a/target/linux/ramips/dts/rt5350_easyacc_wizard-8800.dts +++ b/target/linux/ramips/dts/rt5350_easyacc_wizard-8800.dts @@ -55,12 +55,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_hame_mpr-a1.dts b/target/linux/ramips/dts/rt5350_hame_mpr-a1.dts index 328351a55..88aec9471 100644 --- a/target/linux/ramips/dts/rt5350_hame_mpr-a1.dts +++ b/target/linux/ramips/dts/rt5350_hame_mpr-a1.dts @@ -103,12 +103,10 @@ status = "okay"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf", "led"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "uartf", "led"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_hame_mpr-a2.dts b/target/linux/ramips/dts/rt5350_hame_mpr-a2.dts index fedb5b061..c55fa6892 100644 --- a/target/linux/ramips/dts/rt5350_hame_mpr-a2.dts +++ b/target/linux/ramips/dts/rt5350_hame_mpr-a2.dts @@ -99,12 +99,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_hilink_hlk-rm04.dts b/target/linux/ramips/dts/rt5350_hilink_hlk-rm04.dts index cf586bf59..c6eda2e27 100644 --- a/target/linux/ramips/dts/rt5350_hilink_hlk-rm04.dts +++ b/target/linux/ramips/dts/rt5350_hilink_hlk-rm04.dts @@ -92,17 +92,15 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag"; + ralink,function = "gpio"; + }; - uartf_gpio { - ralink,group = "uartf"; - ralink,function = "gpio uartf"; - }; + uartf_gpio { + ralink,group = "uartf"; + ralink,function = "gpio uartf"; }; }; diff --git a/target/linux/ramips/dts/rt5350_hootoo_ht-tm02.dts b/target/linux/ramips/dts/rt5350_hootoo_ht-tm02.dts index 4e73c6988..7f71e3fa3 100644 --- a/target/linux/ramips/dts/rt5350_hootoo_ht-tm02.dts +++ b/target/linux/ramips/dts/rt5350_hootoo_ht-tm02.dts @@ -93,12 +93,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_intenso_memory2move.dts b/target/linux/ramips/dts/rt5350_intenso_memory2move.dts index 763256934..57a9bec41 100644 --- a/target/linux/ramips/dts/rt5350_intenso_memory2move.dts +++ b/target/linux/ramips/dts/rt5350_intenso_memory2move.dts @@ -92,12 +92,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_nexx_wt1520.dtsi b/target/linux/ramips/dts/rt5350_nexx_wt1520.dtsi index a66b0096a..10b51d7c5 100644 --- a/target/linux/ramips/dts/rt5350_nexx_wt1520.dtsi +++ b/target/linux/ramips/dts/rt5350_nexx_wt1520.dtsi @@ -18,12 +18,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "jtag", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "jtag", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_nixcore_x1.dtsi b/target/linux/ramips/dts/rt5350_nixcore_x1.dtsi index 1702d74db..17f1497bf 100644 --- a/target/linux/ramips/dts/rt5350_nixcore_x1.dtsi +++ b/target/linux/ramips/dts/rt5350_nixcore_x1.dtsi @@ -125,12 +125,10 @@ reset-names = "gpio uartf"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "jtag", "led", "spi_cs1"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "jtag", "led", "spi_cs1"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_olimex_rt5350f-olinuxino.dtsi b/target/linux/ramips/dts/rt5350_olimex_rt5350f-olinuxino.dtsi index ff30966bf..8665c7dd7 100644 --- a/target/linux/ramips/dts/rt5350_olimex_rt5350f-olinuxino.dtsi +++ b/target/linux/ramips/dts/rt5350_olimex_rt5350f-olinuxino.dtsi @@ -53,16 +53,14 @@ status = "okay"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "jtag"; - ralink,function = "gpio"; - }; - uartf_gpio { - ralink,group = "uartf"; - ralink,function = "gpio uartf"; - }; +&state_default { + gpio { + ralink,group = "jtag"; + ralink,function = "gpio"; + }; + uartf_gpio { + ralink,group = "uartf"; + ralink,function = "gpio uartf"; }; }; diff --git a/target/linux/ramips/dts/rt5350_omnima_miniembplug.dts b/target/linux/ramips/dts/rt5350_omnima_miniembplug.dts index 5db1ce48a..4e7b6e267 100644 --- a/target/linux/ramips/dts/rt5350_omnima_miniembplug.dts +++ b/target/linux/ramips/dts/rt5350_omnima_miniembplug.dts @@ -55,12 +55,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_planex_mzk-dp150n.dts b/target/linux/ramips/dts/rt5350_planex_mzk-dp150n.dts index 41fb6e06d..bddf7adb5 100644 --- a/target/linux/ramips/dts/rt5350_planex_mzk-dp150n.dts +++ b/target/linux/ramips/dts/rt5350_planex_mzk-dp150n.dts @@ -89,12 +89,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "jtag", "uartf", "led"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "jtag", "uartf", "led"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_poray_m3.dts b/target/linux/ramips/dts/rt5350_poray_m3.dts index 1c894aff1..294cf3367 100644 --- a/target/linux/ramips/dts/rt5350_poray_m3.dts +++ b/target/linux/ramips/dts/rt5350_poray_m3.dts @@ -84,12 +84,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_poray_m4.dtsi b/target/linux/ramips/dts/rt5350_poray_m4.dtsi index df8db131e..db39c7705 100644 --- a/target/linux/ramips/dts/rt5350_poray_m4.dtsi +++ b/target/linux/ramips/dts/rt5350_poray_m4.dtsi @@ -34,12 +34,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_poray_x5.dts b/target/linux/ramips/dts/rt5350_poray_x5.dts index 7e3d8b6f0..4a65acc5c 100644 --- a/target/linux/ramips/dts/rt5350_poray_x5.dts +++ b/target/linux/ramips/dts/rt5350_poray_x5.dts @@ -116,12 +116,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_poray_x8.dts b/target/linux/ramips/dts/rt5350_poray_x8.dts index 3b6d60478..b02056379 100644 --- a/target/linux/ramips/dts/rt5350_poray_x8.dts +++ b/target/linux/ramips/dts/rt5350_poray_x8.dts @@ -77,12 +77,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_tenda_3g150b.dts b/target/linux/ramips/dts/rt5350_tenda_3g150b.dts index 9d1362551..ece2db036 100644 --- a/target/linux/ramips/dts/rt5350_tenda_3g150b.dts +++ b/target/linux/ramips/dts/rt5350_tenda_3g150b.dts @@ -99,12 +99,10 @@ status = "okay"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf", "led"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "uartf", "led"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_trendnet_tew-714tru.dts b/target/linux/ramips/dts/rt5350_trendnet_tew-714tru.dts index 00e3d2df1..b485e1cef 100644 --- a/target/linux/ramips/dts/rt5350_trendnet_tew-714tru.dts +++ b/target/linux/ramips/dts/rt5350_trendnet_tew-714tru.dts @@ -98,12 +98,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_unbranded_a5-v11.dts b/target/linux/ramips/dts/rt5350_unbranded_a5-v11.dts index f4e4d17b0..8a3485971 100644 --- a/target/linux/ramips/dts/rt5350_unbranded_a5-v11.dts +++ b/target/linux/ramips/dts/rt5350_unbranded_a5-v11.dts @@ -104,12 +104,10 @@ status = "okay"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf", "led"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "uartf", "led"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_vocore_vocore.dtsi b/target/linux/ramips/dts/rt5350_vocore_vocore.dtsi index cce444c00..f5642744d 100644 --- a/target/linux/ramips/dts/rt5350_vocore_vocore.dtsi +++ b/target/linux/ramips/dts/rt5350_vocore_vocore.dtsi @@ -164,12 +164,10 @@ status = "okay"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "jtag", "uartf", "led"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "jtag", "uartf", "led"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_wansview_ncs601w.dts b/target/linux/ramips/dts/rt5350_wansview_ncs601w.dts index ff6ccd224..4d1093d83 100644 --- a/target/linux/ramips/dts/rt5350_wansview_ncs601w.dts +++ b/target/linux/ramips/dts/rt5350_wansview_ncs601w.dts @@ -47,12 +47,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_wiznet_wizfi630a.dts b/target/linux/ramips/dts/rt5350_wiznet_wizfi630a.dts index f88d5ae63..ce747994d 100644 --- a/target/linux/ramips/dts/rt5350_wiznet_wizfi630a.dts +++ b/target/linux/ramips/dts/rt5350_wiznet_wizfi630a.dts @@ -128,12 +128,10 @@ pinctrl-0 = <&uartf_pins>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag" ; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag" ; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_zorlik_zl5900v2.dts b/target/linux/ramips/dts/rt5350_zorlik_zl5900v2.dts index d5d0ca372..56e3f0854 100644 --- a/target/linux/ramips/dts/rt5350_zorlik_zl5900v2.dts +++ b/target/linux/ramips/dts/rt5350_zorlik_zl5900v2.dts @@ -82,12 +82,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "jtag", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "jtag", "uartf"; + ralink,function = "gpio"; }; }; @@ -96,7 +94,6 @@ }; &esw { - mediatek,portmap = <0>; mediatek,portdisable = <0x2f>; }; diff --git a/target/linux/ramips/dts/rt5350_zyxel_keenetic-start.dts b/target/linux/ramips/dts/rt5350_zyxel_keenetic-start.dts index b8db4fdc7..f96ad9092 100644 --- a/target/linux/ramips/dts/rt5350_zyxel_keenetic-start.dts +++ b/target/linux/ramips/dts/rt5350_zyxel_keenetic-start.dts @@ -90,12 +90,10 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/esw_rt3050.c b/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/esw_rt3050.c index 816c588dd..292f11a17 100644 --- a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/esw_rt3050.c +++ b/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/esw_rt3050.c @@ -617,6 +617,10 @@ static void esw_hw_init(struct rt305x_esw *esw) /* reset EPHY */ fe_reset(RT5350_RESET_EPHY); + /* set the led polarity */ + esw_w32(esw, esw->reg_led_polarity & 0x1F, + RT5350_EWS_REG_LED_POLARITY); + rt305x_mii_write(esw, 0, 31, 0x2000); /* change G2 page */ rt305x_mii_write(esw, 0, 26, 0x0020); diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile index 4f65583f1..1d865aa56 100644 --- a/target/linux/ramips/image/Makefile +++ b/target/linux/ramips/image/Makefile @@ -23,9 +23,9 @@ KERNEL_DTB = kernel-bin | append-dtb | lzma define Device/Default PROFILES = Default KERNEL := $(KERNEL_DTB) | uImage lzma - MTK_SOC := + SOC := $(DEFAULT_SOC) DEVICE_DTS_DIR := ../dts - DEVICE_DTS = $$(MTK_SOC)_$(1) + DEVICE_DTS = $$(SOC)_$(1) IMAGES := sysupgrade.bin SUPPORTED_DEVICES := $(subst _,$(comma),$(1)) sysupgrade_bin := append-kernel | append-rootfs | pad-rootfs diff --git a/target/linux/ramips/image/common-tp-link.mk b/target/linux/ramips/image/common-tp-link.mk new file mode 100644 index 000000000..587ef89fc --- /dev/null +++ b/target/linux/ramips/image/common-tp-link.mk @@ -0,0 +1,44 @@ +DEVICE_VARS += TPLINK_FLASHLAYOUT TPLINK_HWID TPLINK_HWREV TPLINK_HWREVADD +DEVICE_VARS += TPLINK_HVERSION TPLINK_BOARD_ID TPLINK_HEADER_VERSION + +define Device/tplink-v1 + DEVICE_VENDOR := TP-Link + TPLINK_FLASHLAYOUT := + TPLINK_HWID := + TPLINK_HWREV := 0x1 + TPLINK_HEADER_VERSION := 1 + KERNEL := $(KERNEL_DTB) + KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-v1-header -e -O + IMAGES += factory.bin + IMAGE/factory.bin := tplink-v1-image factory -e -O + IMAGE/sysupgrade.bin := tplink-v1-image sysupgrade -e -O | append-metadata | \ + check-size $$$$(IMAGE_SIZE) +endef + +define Device/tplink-v2 + DEVICE_VENDOR := TP-Link + TPLINK_FLASHLAYOUT := + TPLINK_HWID := + TPLINK_HWREV := 0x1 + TPLINK_HWREVADD := 0x0 + TPLINK_HVERSION := 3 + KERNEL := $(KERNEL_DTB) + KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-v2-header -e + IMAGES += factory.bin + IMAGE/factory.bin := tplink-v2-image -e + IMAGE/sysupgrade.bin := tplink-v2-image -s -e | append-metadata | \ + check-size $$$$(IMAGE_SIZE) +endef + +define Device/tplink-safeloader + DEVICE_VENDOR := TP-Link + TPLINK_BOARD_ID := + TPLINK_HWID := 0x0 + TPLINK_HWREV := 0x0 + TPLINK_HEADER_VERSION := 1 + KERNEL := $(KERNEL_DTB) | tplink-v1-header -e -O + 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 diff --git a/target/linux/ramips/image/mt7620.mk b/target/linux/ramips/image/mt7620.mk index 422a4f1fb..3d601dfed 100644 --- a/target/linux/ramips/image/mt7620.mk +++ b/target/linux/ramips/image/mt7620.mk @@ -2,8 +2,9 @@ # MT7620A Profiles # -DEVICE_VARS += TPLINK_FLASHLAYOUT TPLINK_HWID TPLINK_HWREV TPLINK_HWREVADD TPLINK_HVERSION \ - DLINK_ROM_ID DLINK_FAMILY_MEMBER DLINK_FIRMWARE_SIZE DLINK_IMAGE_OFFSET +include ./common-tp-link.mk + +DEVICE_VARS += DLINK_ROM_ID DLINK_FAMILY_MEMBER DLINK_FIRMWARE_SIZE DLINK_IMAGE_OFFSET define Build/elecom-header cp $@ $(KDIR)/v_0.0.0.bin @@ -17,7 +18,7 @@ define Build/elecom-header endef define Device/aigale_ai-br100 - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 7936k DEVICE_VENDOR := Aigale DEVICE_MODEL := Ai-BR100 @@ -27,7 +28,7 @@ endef TARGET_DEVICES += aigale_ai-br100 define Device/alfa-network_ac1200rm - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 16064k DEVICE_VENDOR := ALFA Network DEVICE_MODEL := AC1200RM @@ -36,21 +37,22 @@ endef TARGET_DEVICES += alfa-network_ac1200rm define Device/alfa-network_r36m-e4g - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 16064k DEVICE_VENDOR := ALFA Network DEVICE_MODEL := R36M-E4G - DEVICE_PACKAGES := kmod-i2c-ralink kmod-usb2 kmod-usb-ohci uboot-envtools uqmi + DEVICE_PACKAGES := kmod-i2c-ralink kmod-usb2 kmod-usb-ohci uboot-envtools \ + uqmi endef TARGET_DEVICES += alfa-network_r36m-e4g define Device/alfa-network_tube-e4g - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 16064k DEVICE_VENDOR := ALFA Network DEVICE_MODEL := Tube-E4G - DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci uboot-envtools uqmi \ - -iwinfo -kmod-rt2800-soc -wpad-openssl + DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci uboot-envtools uqmi -iwinfo \ + -kmod-rt2800-soc -wpad-openssl endef TARGET_DEVICES += alfa-network_tube-e4g @@ -63,19 +65,8 @@ define Device/amit_jboot DEVICE_PACKAGES := jboot-tools kmod-usb2 kmod-usb-ohci endef -define Device/Archer - MTK_SOC := mt7620a - DEVICE_VENDOR := TP-Link - TPLINK_HWREVADD := 0 - TPLINK_HVERSION := 3 - KERNEL := $(KERNEL_DTB) - KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-v2-header -e - IMAGE/factory.bin := tplink-v2-image -e - IMAGE/sysupgrade.bin := tplink-v2-image -s -e | append-metadata -endef - define Device/asus_rp-n53 - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 7872k DEVICE_VENDOR := Asus DEVICE_MODEL := RP-N53 @@ -85,17 +76,18 @@ endef TARGET_DEVICES += asus_rp-n53 define Device/asus_rt-ac51u - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 16064k DEVICE_VENDOR := Asus DEVICE_MODEL := RT-AC51U - DEVICE_PACKAGES := kmod-mt76x0e kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport + DEVICE_PACKAGES := kmod-mt76x0e kmod-usb2 kmod-usb-ohci \ + kmod-usb-ledtrig-usbport SUPPORTED_DEVICES += rt-ac51u endef TARGET_DEVICES += asus_rt-ac51u define Device/asus_rt-n12p - MTK_SOC := mt7620n + SOC := mt7620n IMAGE_SIZE := 16064k DEVICE_VENDOR := Asus DEVICE_MODEL := RT-N11P/RT-N12+/RT-N12Eb1 @@ -104,7 +96,7 @@ endef TARGET_DEVICES += asus_rt-n12p define Device/asus_rt-n14u - MTK_SOC := mt7620n + SOC := mt7620n IMAGE_SIZE := 16064k DEVICE_VENDOR := Asus DEVICE_MODEL := RT-N14u @@ -114,16 +106,17 @@ endef TARGET_DEVICES += asus_rt-n14u define Device/bdcom_wap2100-sk - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 15808k DEVICE_VENDOR := BDCOM DEVICE_MODEL := WAP2100-SK (ZTE ZXECS EBG3130) - DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76x2 kmod-mt76x0e 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 define Device/buffalo_whr-1166d - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 16064k DEVICE_VENDOR := Buffalo DEVICE_MODEL := WHR-1166D @@ -133,7 +126,7 @@ endef TARGET_DEVICES += buffalo_whr-1166d define Device/buffalo_whr-300hp2 - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 7872k DEVICE_VENDOR := Buffalo DEVICE_MODEL := WHR-300HP2 @@ -142,7 +135,7 @@ endef TARGET_DEVICES += buffalo_whr-300hp2 define Device/buffalo_whr-600d - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 7872k DEVICE_VENDOR := Buffalo DEVICE_MODEL := WHR-600D @@ -152,7 +145,7 @@ endef TARGET_DEVICES += buffalo_whr-600d define Device/buffalo_wmr-300 - MTK_SOC := mt7620n + SOC := mt7620n IMAGE_SIZE := 7872k DEVICE_VENDOR := Buffalo DEVICE_MODEL := WMR-300 @@ -161,7 +154,7 @@ endef TARGET_DEVICES += buffalo_wmr-300 define Device/comfast_cf-wr800n - MTK_SOC := mt7620n + SOC := mt7620n IMAGE_SIZE := 7872k DEVICE_VENDOR := Comfast DEVICE_MODEL := CF-WR800N @@ -171,7 +164,7 @@ TARGET_DEVICES += comfast_cf-wr800n define Device/dlink_dch-m225 $(Device/seama) - MTK_SOC := mt7620a + SOC := mt7620a BLOCKSIZE := 4k SEAMA_SIGNATURE := wapn22_dlink.2013gui_dap1320b IMAGE_SIZE := 6848k @@ -184,7 +177,7 @@ TARGET_DEVICES += dlink_dch-m225 define Device/dlink_dir-510l $(Device/amit_jboot) - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 14208k DEVICE_VENDOR := D-Link DEVICE_MODEL := DIR-510L @@ -197,7 +190,7 @@ endef TARGET_DEVICES += dlink_dir-510l define Device/dlink_dir-810l - MTK_SOC := mt7620a + SOC := mt7620a DEVICE_PACKAGES := kmod-mt76x0e DEVICE_VENDOR := D-Link DEVICE_MODEL := DIR-810L @@ -208,7 +201,7 @@ TARGET_DEVICES += dlink_dir-810l define Device/dlink_dwr-116-a1 $(Device/amit_jboot) - MTK_SOC := mt7620n + SOC := mt7620n IMAGE_SIZE := 8064k DEVICE_VENDOR := D-Link DEVICE_MODEL := DWR-116 @@ -221,7 +214,7 @@ TARGET_DEVICES += dlink_dwr-116-a1 define Device/dlink_dwr-118-a1 $(Device/amit_jboot) - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 16256k DEVICE_VENDOR := D-Link DEVICE_MODEL := DWR-118 @@ -235,7 +228,7 @@ TARGET_DEVICES += dlink_dwr-118-a1 define Device/dlink_dwr-118-a2 $(Device/amit_jboot) - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 16256k DEVICE_VENDOR := D-Link DEVICE_MODEL := DWR-118 @@ -249,7 +242,7 @@ TARGET_DEVICES += dlink_dwr-118-a2 define Device/dlink_dwr-921-c1 $(Device/amit_jboot) - MTK_SOC := mt7620n + SOC := mt7620n IMAGE_SIZE := 16256k DEVICE_VENDOR := D-Link DEVICE_MODEL := DWR-921 @@ -274,7 +267,7 @@ TARGET_DEVICES += dlink_dwr-921-c3 define Device/dlink_dwr-922-e2 $(Device/amit_jboot) - MTK_SOC := mt7620n + SOC := mt7620n IMAGE_SIZE := 16256k DEVICE_VENDOR := D-Link DEVICE_MODEL := DWR-922 @@ -287,7 +280,7 @@ endef TARGET_DEVICES += dlink_dwr-922-e2 define Device/dovado_tiny-ac - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 7872k DEVICE_VENDOR := Dovado DEVICE_MODEL := Tiny AC @@ -297,7 +290,7 @@ endef TARGET_DEVICES += dovado_tiny-ac define Device/edimax_br-6478ac-v2 - MTK_SOC := mt7620a + SOC := mt7620a DEVICE_VENDOR := Edimax DEVICE_MODEL := BR-6478AC DEVICE_VARIANT := V2 @@ -306,51 +299,53 @@ 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-mt76x2 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 define Device/edimax_ew-7476rpc - MTK_SOC := mt7620a + SOC := mt7620a DEVICE_VENDOR := Edimax DEVICE_MODEL := EW-7476RPC BLOCKSIZE := 4k IMAGE_SIZE := 7744k IMAGE/sysupgrade.bin := append-kernel | append-rootfs | \ - edimax-header -s CSYS -m RN79 -f 0x70000 -S 0x01100000 | pad-rootfs | \ - append-metadata | check-size $$$$(IMAGE_SIZE) + edimax-header -s CSYS -m RN79 -f 0x70000 -S 0x01100000 | pad-rootfs | \ + append-metadata | check-size $$$$(IMAGE_SIZE) DEVICE_PACKAGES := kmod-mt76x2 kmod-phy-realtek endef TARGET_DEVICES += edimax_ew-7476rpc define Device/edimax_ew-7478ac - MTK_SOC := mt7620a + SOC := mt7620a DEVICE_VENDOR := Edimax DEVICE_MODEL := EW-7478AC BLOCKSIZE := 4k IMAGE_SIZE := 7744k IMAGE/sysupgrade.bin := append-kernel | append-rootfs | \ - edimax-header -s CSYS -m RN70 -f 0x70000 -S 0x01100000 | pad-rootfs | \ - append-metadata | check-size $$$$(IMAGE_SIZE) + edimax-header -s CSYS -m RN70 -f 0x70000 -S 0x01100000 | pad-rootfs | \ + append-metadata | check-size $$$$(IMAGE_SIZE) DEVICE_PACKAGES := kmod-mt76x2 kmod-phy-realtek endef TARGET_DEVICES += edimax_ew-7478ac define Device/edimax_ew-7478apc - MTK_SOC := mt7620a + SOC := mt7620a DEVICE_VENDOR := Edimax DEVICE_MODEL := EW-7478APC BLOCKSIZE := 4k IMAGE_SIZE := 7744k IMAGE/sysupgrade.bin := append-kernel | append-rootfs | \ - edimax-header -s CSYS -m RN75 -f 0x70000 -S 0x01100000 | pad-rootfs | \ - append-metadata | check-size $$$$(IMAGE_SIZE) - DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport + edimax-header -s CSYS -m RN75 -f 0x70000 -S 0x01100000 | pad-rootfs | \ + append-metadata | check-size $$$$(IMAGE_SIZE) + DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci \ + kmod-usb-ledtrig-usbport endef TARGET_DEVICES += edimax_ew-7478apc define Device/elecom_wrh-300cr - MTK_SOC := mt7620n + SOC := mt7620n IMAGE_SIZE := 14272k IMAGES += factory.bin IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ @@ -363,33 +358,33 @@ endef TARGET_DEVICES += elecom_wrh-300cr define Device/engenius_esr600 - MTK_SOC := mt7620a + SOC := mt7620a BLOCKSIZE := 64k IMAGE_SIZE := 15616k IMAGES += factory.dlf IMAGE/factory.dlf := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ - senao-header -r 0x101 -p 0x57 -t 2 + senao-header -r 0x101 -p 0x57 -t 2 DEVICE_VENDOR := EnGenius DEVICE_MODEL := ESR600 - DEVICE_PACKAGES += kmod-rt2800-pci kmod-usb-storage kmod-usb-ohci kmod-usb-ehci + DEVICE_PACKAGES += kmod-rt2800-pci kmod-usb-storage kmod-usb-ohci \ + kmod-usb-ehci endef TARGET_DEVICES += engenius_esr600 define Device/fon_fon2601 - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 15936k DEVICE_VENDOR := Fon DEVICE_MODEL := FON2601 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci KERNEL_INITRAMFS := $$(KERNEL) | fonfxcimage - IMAGE/sysupgrade.bin := append-kernel | append-rootfs |\ - fonfxcimage |\ - pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE) + IMAGE/sysupgrade.bin := append-kernel | append-rootfs | fonfxcimage | \ + pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE) endef TARGET_DEVICES += fon_fon2601 define Device/glinet_gl-mt300a - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 15872k DEVICE_VENDOR := GL.iNet DEVICE_MODEL := GL-MT300A @@ -399,7 +394,7 @@ endef TARGET_DEVICES += glinet_gl-mt300a define Device/glinet_gl-mt300n - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 15872k DEVICE_VENDOR := GL.iNet DEVICE_MODEL := GL-MT300N @@ -409,7 +404,7 @@ endef TARGET_DEVICES += glinet_gl-mt300n define Device/glinet_gl-mt750 - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 15872k DEVICE_VENDOR := GL.iNet DEVICE_MODEL := GL-MT750 @@ -419,17 +414,17 @@ endef TARGET_DEVICES += glinet_gl-mt750 define Device/head-weblink_hdrm200 - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 16064k DEVICE_VENDOR := Head Weblink DEVICE_MODEL := HDRM2000 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci kmod-sdhci-mt7620 \ - uqmi kmod-usb-serial kmod-usb-serial-option + uqmi kmod-usb-serial kmod-usb-serial-option endef TARGET_DEVICES += head-weblink_hdrm200 define Device/hiwifi_hc5661 - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 15872k DEVICE_VENDOR := HiWiFi DEVICE_MODEL := HC5661 @@ -439,27 +434,29 @@ endef TARGET_DEVICES += hiwifi_hc5661 define Device/hiwifi_hc5761 - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 15872k DEVICE_VENDOR := HiWiFi DEVICE_MODEL := HC5761 - DEVICE_PACKAGES := kmod-mt76x0e 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 SUPPORTED_DEVICES += hc5761 endef TARGET_DEVICES += hiwifi_hc5761 define Device/hiwifi_hc5861 - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 15872k DEVICE_VENDOR := HiWiFi DEVICE_MODEL := HC5861 - DEVICE_PACKAGES := kmod-mt76x2 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 SUPPORTED_DEVICES += hc5861 endef TARGET_DEVICES += hiwifi_hc5861 define Device/hnet_c108 - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 16064k DEVICE_VENDOR := HNET DEVICE_MODEL := C108 @@ -469,55 +466,64 @@ endef TARGET_DEVICES += hnet_c108 define Device/iodata_wn-ac1167gr - MTK_SOC := mt7620a + SOC := mt7620a DEVICE_VENDOR := I-O DATA DEVICE_MODEL := WN-AC1167GR IMAGE_SIZE := 6864k IMAGES += factory.bin - IMAGE/factory.bin := \ - $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ - elx-header 01040016 8844A2D168B45A2D + IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ + elx-header 01040016 8844A2D168B45A2D DEVICE_PACKAGES := kmod-mt76x2 endef TARGET_DEVICES += iodata_wn-ac1167gr define Device/iodata_wn-ac733gr3 - MTK_SOC := mt7620a + SOC := mt7620a DEVICE_VENDOR := I-O DATA DEVICE_MODEL := WN-AC733GR3 IMAGE_SIZE := 6992k IMAGES += factory.bin - IMAGE/factory.bin := \ - $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ - elx-header 01040006 8844A2D168B45A2D + IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ + elx-header 01040006 8844A2D168B45A2D DEVICE_PACKAGES := kmod-mt76x0e kmod-switch-rtl8367b endef TARGET_DEVICES += iodata_wn-ac733gr3 +define Device/iptime_a104ns + SOC := mt7620a + IMAGE_SIZE := 8000k + UIMAGE_NAME := a104ns + DEVICE_VENDOR := ipTIME + DEVICE_MODEL := A104ns + DEVICE_PACKAGES := kmod-mt76x0e kmod-usb2 kmod-usb-ohci \ + kmod-usb-ledtrig-usbport +endef +TARGET_DEVICES += iptime_a104ns + define Device/kimax_u25awf-h1 - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 16064k DEVICE_VENDOR := Kimax DEVICE_MODEL := U25AWF DEVICE_VARIANT := H1 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-storage kmod-scsi-core \ - kmod-fs-ext4 kmod-fs-vfat block-mount + kmod-fs-ext4 kmod-fs-vfat block-mount SUPPORTED_DEVICES += u25awf-h1 endef TARGET_DEVICES += kimax_u25awf-h1 define Device/kimax_u35wf - MTK_SOC := mt7620n + SOC := mt7620n IMAGE_SIZE := 16064k DEVICE_VENDOR := Kimax DEVICE_MODEL := U35WF DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-storage kmod-scsi-core \ - kmod-fs-ext4 kmod-fs-vfat block-mount + kmod-fs-ext4 kmod-fs-vfat block-mount endef TARGET_DEVICES += kimax_u35wf define Device/kingston_mlw221 - MTK_SOC := mt7620n + SOC := mt7620n IMAGE_SIZE := 15744k DEVICE_VENDOR := Kingston DEVICE_MODEL := MLW221 @@ -527,7 +533,7 @@ endef TARGET_DEVICES += kingston_mlw221 define Device/kingston_mlwg2 - MTK_SOC := mt7620n + SOC := mt7620n IMAGE_SIZE := 15744k DEVICE_VENDOR := Kingston DEVICE_MODEL := MLWG2 @@ -538,7 +544,7 @@ TARGET_DEVICES += kingston_mlwg2 define Device/lava_lr-25g001 $(Device/amit_jboot) - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 16256k DEVICE_VENDOR := LAVA DEVICE_MODEL := LR-25G001 @@ -550,7 +556,7 @@ endef TARGET_DEVICES += lava_lr-25g001 define Device/lenovo_newifi-y1 - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 16064k DEVICE_VENDOR := Lenovo DEVICE_MODEL := Y1 @@ -560,7 +566,7 @@ endef TARGET_DEVICES += lenovo_newifi-y1 define Device/lenovo_newifi-y1s - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 16064k DEVICE_VENDOR := Lenovo DEVICE_MODEL := Y1S @@ -570,7 +576,7 @@ endef TARGET_DEVICES += lenovo_newifi-y1s define Device/linksys_e1700 - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 7872k IMAGES += factory.bin IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ @@ -582,7 +588,7 @@ endef TARGET_DEVICES += linksys_e1700 define Device/microduino_microwrt - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 16128k DEVICE_VENDOR := Microduino DEVICE_MODEL := MicroWRT @@ -592,13 +598,14 @@ endef TARGET_DEVICES += microduino_microwrt define Device/netgear_ex2700 - MTK_SOC := mt7620a + SOC := mt7620a NETGEAR_HW_ID := 29764623+4+0+32+2x2+0 NETGEAR_BOARD_ID := EX2700 BLOCKSIZE := 4k IMAGE_SIZE := 3776k IMAGES += factory.bin - KERNEL := $(KERNEL_DTB) | uImage lzma | pad-offset 64k 64 | append-uImage-fakehdr filesystem + 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_VENDOR := NETGEAR @@ -608,12 +615,13 @@ endef TARGET_DEVICES += netgear_ex2700 define Device/netgear_ex3700 - MTK_SOC := mt7620a + SOC := mt7620a NETGEAR_BOARD_ID := U12H319T00_NETGEAR BLOCKSIZE := 4k IMAGE_SIZE := 7744k IMAGES += factory.chk - IMAGE/factory.chk := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | netgear-chk + IMAGE/factory.chk := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ + netgear-chk DEVICE_PACKAGES := kmod-mt76x2 DEVICE_VENDOR := NETGEAR DEVICE_MODEL := EX3700/EX3800 @@ -622,12 +630,13 @@ endef TARGET_DEVICES += netgear_ex3700 define Device/netgear_ex6130 - MTK_SOC := mt7620a + SOC := mt7620a NETGEAR_BOARD_ID := U12H319T50_NETGEAR BLOCKSIZE := 4k IMAGE_SIZE := 7744k IMAGES += factory.chk - IMAGE/factory.chk := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | netgear-chk + IMAGE/factory.chk := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ + netgear-chk DEVICE_PACKAGES := kmod-mt76x2 DEVICE_VENDOR := NETGEAR DEVICE_MODEL := EX6130 @@ -635,13 +644,14 @@ endef TARGET_DEVICES += netgear_ex6130 define Device/netgear_wn3000rp-v3 - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 7872k NETGEAR_HW_ID := 29764836+8+0+32+2x2+0 NETGEAR_BOARD_ID := WN3000RPv3 BLOCKSIZE := 4k IMAGES += factory.bin - KERNEL := $(KERNEL_DTB) | uImage lzma | pad-offset 64k 64 | append-uImage-fakehdr filesystem + 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_VENDOR := NETGEAR @@ -652,7 +662,7 @@ endef TARGET_DEVICES += netgear_wn3000rp-v3 define Device/nexx_wt3020-4m - MTK_SOC := mt7620n + SOC := mt7620n BLOCKSIZE := 4k IMAGE_SIZE := 3776k IMAGES += factory.bin @@ -666,7 +676,7 @@ endef TARGET_DEVICES += nexx_wt3020-4m define Device/nexx_wt3020-8m - MTK_SOC := mt7620n + SOC := mt7620n IMAGE_SIZE := 7872k IMAGES += factory.bin IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ @@ -680,7 +690,7 @@ endef TARGET_DEVICES += nexx_wt3020-8m define Device/ohyeah_oy-0001 - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 16064k DEVICE_VENDOR := Oh Yeah DEVICE_MODEL := OY-0001 @@ -690,7 +700,7 @@ endef TARGET_DEVICES += ohyeah_oy-0001 define Device/phicomm_k2g - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 7552k DEVICE_VENDOR := Phicomm DEVICE_MODEL := K2G @@ -699,7 +709,7 @@ endef TARGET_DEVICES += phicomm_k2g define Device/phicomm_psg1208 - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 7872k DEVICE_VENDOR := Phicomm DEVICE_MODEL := PSG1208 @@ -709,7 +719,7 @@ endef TARGET_DEVICES += phicomm_psg1208 define Device/phicomm_psg1218a - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 7872k DEVICE_VENDOR := Phicomm DEVICE_MODEL := PSG1218 @@ -720,7 +730,7 @@ endef TARGET_DEVICES += phicomm_psg1218a define Device/phicomm_psg1218b - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 7872k DEVICE_VENDOR := Phicomm DEVICE_MODEL := PSG1218 @@ -731,19 +741,18 @@ endef TARGET_DEVICES += phicomm_psg1218b define Device/planex_cs-qr10 - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 7872k DEVICE_VENDOR := Planex DEVICE_MODEL := CS-QR10 - DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci \ - kmod-sound-core kmod-sound-mt7620 \ - kmod-i2c-ralink kmod-sdhci-mt7620 + DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-sound-core \ + kmod-sound-mt7620 kmod-i2c-ralink kmod-sdhci-mt7620 SUPPORTED_DEVICES += cs-qr10 endef TARGET_DEVICES += planex_cs-qr10 define Device/planex_db-wrt01 - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 7872k DEVICE_VENDOR := Planex DEVICE_MODEL := DB-WRT01 @@ -752,7 +761,7 @@ endef TARGET_DEVICES += planex_db-wrt01 define Device/planex_mzk-750dhp - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 7872k DEVICE_VENDOR := Planex DEVICE_MODEL := MZK-750DHP @@ -762,7 +771,7 @@ endef TARGET_DEVICES += planex_mzk-750dhp define Device/planex_mzk-ex300np - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 7360k DEVICE_VENDOR := Planex DEVICE_MODEL := MZK-EX300NP @@ -771,7 +780,7 @@ endef TARGET_DEVICES += planex_mzk-ex300np define Device/planex_mzk-ex750np - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 7360k DEVICE_VENDOR := Planex DEVICE_MODEL := MZK-EX750NP @@ -781,7 +790,7 @@ endef TARGET_DEVICES += planex_mzk-ex750np define Device/ralink_mt7620a-evb - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 7872k DEVICE_VENDOR := MediaTek DEVICE_MODEL := MT7620a EVB @@ -789,7 +798,7 @@ endef TARGET_DEVICES += ralink_mt7620a-evb define Device/ralink_mt7620a-mt7530-evb - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 7872k DEVICE_VENDOR := MediaTek DEVICE_MODEL := MT7620a + MT7530 EVB @@ -798,7 +807,7 @@ endef TARGET_DEVICES += ralink_mt7620a-mt7530-evb define Device/ralink_mt7620a-mt7610e-evb - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 7872k DEVICE_VENDOR := MediaTek DEVICE_MODEL := MT7620a + MT7610e EVB @@ -808,7 +817,7 @@ endef TARGET_DEVICES += ralink_mt7620a-mt7610e-evb define Device/ralink_mt7620a-v22sg-evb - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 130560k DEVICE_VENDOR := MediaTek DEVICE_MODEL := MT7620a V22SG @@ -817,7 +826,7 @@ endef TARGET_DEVICES += ralink_mt7620a-v22sg-evb define Device/ravpower_wd03 - MTK_SOC := mt7620n + SOC := mt7620n IMAGE_SIZE := 7872k DEVICE_VENDOR := Ravpower DEVICE_MODEL := WD03 @@ -826,7 +835,7 @@ endef TARGET_DEVICES += ravpower_wd03 define Device/sanlinking_d240 - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 16064k DEVICE_VENDOR := Sanlinking Technologies DEVICE_MODEL := D240 @@ -836,7 +845,7 @@ endef TARGET_DEVICES += sanlinking_d240 define Device/sercomm_na930 - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 20480k DEVICE_VENDOR := Sercomm DEVICE_MODEL := NA930 @@ -846,13 +855,12 @@ endef TARGET_DEVICES += sercomm_na930 define Device/tplink_archer-c20i - $(Device/Archer) + $(Device/tplink-v2) + SOC := mt7620a IMAGE_SIZE := 7808k TPLINK_FLASHLAYOUT := 8Mmtk TPLINK_HWID := 0xc2000001 TPLINK_HWREV := 58 - IMAGES += factory.bin - DEVICE_PACKAGES := kmod-mt76x0e DEVICE_MODEL := Archer C20i DEVICE_PACKAGES := kmod-mt76x0e kmod-usb2 kmod-usb-ohci SUPPORTED_DEVICES += c20i @@ -860,41 +868,44 @@ endef TARGET_DEVICES += tplink_archer-c20i define Device/tplink_archer-c20-v1 - $(Device/Archer) + $(Device/tplink-v2) + SOC := mt7620a IMAGE_SIZE := 7808k SUPPORTED_DEVICES += tplink,c20-v1 TPLINK_FLASHLAYOUT := 8Mmtk TPLINK_HWID := 0xc2000001 TPLINK_HWREV := 0x44 TPLINK_HWREVADD := 0x1 - IMAGES += factory.bin DEVICE_MODEL := Archer C20 DEVICE_VARIANT := v1 - DEVICE_PACKAGES := kmod-mt76x0e kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport + DEVICE_PACKAGES := kmod-mt76x0e kmod-usb2 kmod-usb-ohci \ + kmod-usb-ledtrig-usbport endef TARGET_DEVICES += tplink_archer-c20-v1 define Device/tplink_archer-c2-v1 - $(Device/Archer) + $(Device/tplink-v2) + SOC := mt7620a IMAGE_SIZE := 7808k SUPPORTED_DEVICES += tplink,c2-v1 TPLINK_FLASHLAYOUT := 8Mmtk TPLINK_HWID := 0xc7500001 TPLINK_HWREV := 50 - IMAGES += factory.bin DEVICE_MODEL := Archer C2 DEVICE_VARIANT := v1 - DEVICE_PACKAGES := kmod-mt76x0e 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_archer-c2-v1 define Device/tplink_archer-c50-v1 - $(Device/Archer) + $(Device/tplink-v2) + SOC := mt7620a IMAGE_SIZE := 7808k TPLINK_FLASHLAYOUT := 8Mmtk TPLINK_HWID := 0xc7500001 TPLINK_HWREV := 69 - IMAGES += factory-us.bin factory-eu.bin + IMAGES := sysupgrade.bin factory-us.bin factory-eu.bin IMAGE/factory-us.bin := tplink-v2-image -e -w 0 IMAGE/factory-eu.bin := tplink-v2-image -e -w 2 DEVICE_MODEL := Archer C50 @@ -905,19 +916,34 @@ endef TARGET_DEVICES += tplink_archer-c50-v1 define Device/tplink_archer-mr200 - $(Device/Archer) + $(Device/tplink-v2) + SOC := mt7620a IMAGE_SIZE := 7872k TPLINK_FLASHLAYOUT := 8MLmtk TPLINK_HWID := 0xd7500001 TPLINK_HWREV := 0x4a - DEVICE_PACKAGES := kmod-mt76x0e kmod-usb2 kmod-usb-net kmod-usb-net-rndis kmod-usb-serial kmod-usb-serial-option adb-enablemodem + IMAGES := sysupgrade.bin + DEVICE_PACKAGES := kmod-mt76x0e kmod-usb2 kmod-usb-net kmod-usb-net-rndis \ + kmod-usb-serial kmod-usb-serial-option adb-enablemodem DEVICE_MODEL := Archer MR200 SUPPORTED_DEVICES += mr200 endef TARGET_DEVICES += tplink_archer-mr200 +define Device/tplink_re200-v1 + $(Device/tplink-v1) + SOC := mt7620a + DEVICE_MODEL := RE200 + DEVICE_VARIANT := v1 + DEVICE_PACKAGES := kmod-mt76x0e + IMAGE_SIZE := 7936k + TPLINK_HWID := 0x02000001 + TPLINK_FLASHLAYOUT := 8Mmtk +endef +TARGET_DEVICES += tplink_re200-v1 + define Device/vonets_var11n-300 - MTK_SOC := mt7620n + SOC := mt7620n IMAGE_SIZE := 3776k BLOCKSIZE := 4k DEVICE_VENDOR := Vonets @@ -926,7 +952,7 @@ endef TARGET_DEVICES += vonets_var11n-300 define Device/wrtnode_wrtnode - MTK_SOC := mt7620n + SOC := mt7620n IMAGE_SIZE := 16064k DEVICE_VENDOR := WRTNode DEVICE_MODEL := WRTNode @@ -936,7 +962,7 @@ endef TARGET_DEVICES += wrtnode_wrtnode define Device/xiaomi_miwifi-mini - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 15872k DEVICE_VENDOR := Xiaomi DEVICE_MODEL := MiWiFi Mini @@ -946,17 +972,18 @@ endef TARGET_DEVICES += xiaomi_miwifi-mini define Device/youku_yk1 - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 32448k DEVICE_VENDOR := YOUKU DEVICE_MODEL := YK1 - DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-sdhci-mt7620 kmod-usb-ledtrig-usbport + DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-sdhci-mt7620 \ + kmod-usb-ledtrig-usbport SUPPORTED_DEVICES += youku-yk1 endef TARGET_DEVICES += youku_yk1 define Device/yukai_bocco - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 7872k DEVICE_VENDOR := YUKAI Engineering DEVICE_MODEL := BOCCO @@ -966,7 +993,7 @@ endef TARGET_DEVICES += yukai_bocco define Device/zbtlink_zbt-ape522ii - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 15872k DEVICE_VENDOR := Zbtlink DEVICE_MODEL := ZBT-APE522II @@ -976,7 +1003,7 @@ endef TARGET_DEVICES += zbtlink_zbt-ape522ii define Device/zbtlink_zbt-cpe102 - MTK_SOC := mt7620n + SOC := mt7620n IMAGE_SIZE := 7552k DEVICE_VENDOR := Zbtlink DEVICE_MODEL := ZBT-CPE102 @@ -986,7 +1013,7 @@ endef TARGET_DEVICES += zbtlink_zbt-cpe102 define Device/zbtlink_zbt-wa05 - MTK_SOC := mt7620n + SOC := mt7620n IMAGE_SIZE := 7552k DEVICE_VENDOR := Zbtlink DEVICE_MODEL := ZBT-WA05 @@ -996,7 +1023,7 @@ endef TARGET_DEVICES += zbtlink_zbt-wa05 define Device/zbtlink_zbt-we1026-5g-16m - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 16064k DEVICE_VENDOR := Zbtlink DEVICE_MODEL := ZBT-WE1026-5G @@ -1007,7 +1034,7 @@ endef TARGET_DEVICES += zbtlink_zbt-we1026-5g-16m define Device/zbtlink_zbt-we1026-h-32m - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 32448k DEVICE_VENDOR := Zbtlink DEVICE_MODEL := ZBT-WE1026-H @@ -1018,7 +1045,7 @@ endef TARGET_DEVICES += zbtlink_zbt-we1026-h-32m define Device/zbtlink_zbt-we2026 - MTK_SOC := mt7620n + SOC := mt7620n IMAGE_SIZE := 7552k DEVICE_VENDOR := Zbtlink DEVICE_MODEL := ZBT-WE2026 @@ -1027,7 +1054,7 @@ endef TARGET_DEVICES += zbtlink_zbt-we2026 define Device/zbtlink_zbt-we826-16m - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 16064k DEVICE_VENDOR := Zbtlink DEVICE_MODEL := ZBT-WE826 @@ -1038,7 +1065,7 @@ endef TARGET_DEVICES += zbtlink_zbt-we826-16m define Device/zbtlink_zbt-we826-32m - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 32448k DEVICE_VENDOR := Zbtlink DEVICE_MODEL := ZBT-WE826 @@ -1049,17 +1076,17 @@ endef TARGET_DEVICES += zbtlink_zbt-we826-32m define Device/zbtlink_zbt-we826-e - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 32448k DEVICE_VENDOR := Zbtlink DEVICE_MODEL := ZBT-WE826-E DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-sdhci-mt7620 uqmi \ - kmod-usb-serial kmod-usb-serial-option + kmod-usb-serial kmod-usb-serial-option endef TARGET_DEVICES += zbtlink_zbt-we826-e define Device/zbtlink_zbt-wr8305rt - MTK_SOC := mt7620n + SOC := mt7620n IMAGE_SIZE := 7872k DEVICE_VENDOR := Zbtlink DEVICE_MODEL := ZBT-WR8305RT @@ -1069,7 +1096,7 @@ endef TARGET_DEVICES += zbtlink_zbt-wr8305rt define Device/zte_q7 - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 7872k DEVICE_VENDOR := ZTE DEVICE_MODEL := Q7 @@ -1079,40 +1106,42 @@ endef TARGET_DEVICES += zte_q7 define Device/zyxel_keenetic-omni - MTK_SOC := mt7620n + SOC := mt7620n IMAGE_SIZE := 7872k DEVICE_VENDOR := ZyXEL DEVICE_MODEL := Keenetic Omni DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport IMAGES += factory.bin - IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | pad-to 64k | check-size $$$$(IMAGE_SIZE) | \ - zyimage -d 4882 -v "ZyXEL Keenetic Omni" + IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | pad-to 64k | \ + check-size $$$$(IMAGE_SIZE) | zyimage -d 4882 -v "ZyXEL Keenetic Omni" SUPPORTED_DEVICES += kn_rc endef TARGET_DEVICES += zyxel_keenetic-omni define Device/zyxel_keenetic-omni-ii - MTK_SOC := mt7620n + SOC := mt7620n IMAGE_SIZE := 7872k DEVICE_VENDOR := ZyXEL DEVICE_MODEL := Keenetic Omni II DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport IMAGES += factory.bin - IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | pad-to 64k | check-size $$$$(IMAGE_SIZE) | \ + IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | pad-to 64k | \ + check-size $$$$(IMAGE_SIZE) | \ zyimage -d 2102034 -v "ZyXEL Keenetic Omni II" SUPPORTED_DEVICES += kn_rf endef TARGET_DEVICES += zyxel_keenetic-omni-ii define Device/zyxel_keenetic-viva - MTK_SOC := mt7620a + SOC := mt7620a IMAGE_SIZE := 16064k DEVICE_VENDOR := ZyXEL DEVICE_MODEL := Keenetic Viva - DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport kmod-switch-rtl8366-smi kmod-switch-rtl8367b + DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport \ + kmod-switch-rtl8366-smi kmod-switch-rtl8367b IMAGES += factory.bin - IMAGE/factory.bin := $$(sysupgrade_bin) | pad-to 64k | check-size $$$$(IMAGE_SIZE) | \ - zyimage -d 8997 -v "ZyXEL Keenetic Viva" + IMAGE/factory.bin := $$(sysupgrade_bin) | pad-to 64k | \ + check-size $$$$(IMAGE_SIZE) | zyimage -d 8997 -v "ZyXEL Keenetic Viva" SUPPORTED_DEVICES += kng_rc endef TARGET_DEVICES += zyxel_keenetic-viva diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk index a32f129b0..dbaa5a786 100644 --- a/target/linux/ramips/image/mt7621.mk +++ b/target/linux/ramips/image/mt7621.mk @@ -2,8 +2,11 @@ # MT7621 Profiles # +include ./common-tp-link.mk + +DEFAULT_SOC := mt7621 + KERNEL_DTB += -d21 -DEVICE_VARS += TPLINK_BOARD_ID TPLINK_HEADER_VERSION TPLINK_HWID TPLINK_HWREV define Build/elecom-gst-factory $(eval product=$(word 1,$(1))) @@ -85,19 +88,16 @@ define Build/wr1201-factory-header endef define Device/afoundry_ew1200 - MTK_SOC := mt7621 IMAGE_SIZE := 16064k DEVICE_VENDOR := AFOUNDRY DEVICE_MODEL := EW1200 - DEVICE_PACKAGES := \ - kmod-ata-core kmod-ata-ahci kmod-mt76x2 kmod-mt7603 kmod-usb3 \ - kmod-usb-ledtrig-usbport wpad-openssl + DEVICE_PACKAGES := kmod-ata-core kmod-ata-ahci kmod-mt76x2 kmod-mt7603 \ + kmod-usb3 kmod-usb-ledtrig-usbport wpad-openssl SUPPORTED_DEVICES += ew1200 endef TARGET_DEVICES += afoundry_ew1200 define Device/alfa-network_quad-e4g - MTK_SOC := mt7621 IMAGE_SIZE := 16064k DEVICE_VENDOR := ALFA Network DEVICE_MODEL := Quad-E4G @@ -107,36 +107,31 @@ endef TARGET_DEVICES += alfa-network_quad-e4g define Device/asiarf_ap7621-001 - MTK_SOC := mt7621 IMAGE_SIZE := 16000k DEVICE_VENDOR := AsiaRF DEVICE_MODEL := AP7621-001 - DEVICE_PACKAGES := \ - kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3 + DEVICE_PACKAGES := kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3 endef TARGET_DEVICES += asiarf_ap7621-001 define Device/asiarf_ap7621-nv1 - MTK_SOC := mt7621 IMAGE_SIZE := 16000k DEVICE_VENDOR := AsiaRF DEVICE_MODEL := AP7621-NV1 - DEVICE_PACKAGES := \ - kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3 + DEVICE_PACKAGES := kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3 endef TARGET_DEVICES += asiarf_ap7621-nv1 define Device/asus_rt-ac57u - MTK_SOC := mt7621 DEVICE_VENDOR := ASUS DEVICE_MODEL := RT-AC57U IMAGE_SIZE := 16064k - DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-openssl + DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \ + kmod-usb-ledtrig-usbport wpad-openssl endef TARGET_DEVICES += asus_rt-ac57u define Device/asus_rt-ac65p - MTK_SOC := mt7621 DEVICE_VENDOR := ASUS DEVICE_MODEL := RT-AC65P IMAGE_SIZE := 51200k @@ -146,13 +141,13 @@ define Device/asus_rt-ac65p KERNEL_SIZE := 4096k IMAGES += factory.bin IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata - IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | check-size $$$$(IMAGE_SIZE) + IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | \ + check-size $$$$(IMAGE_SIZE) DEVICE_PACKAGES := kmod-usb3 kmod-mt7615e wpad-openssl uboot-envtools endef TARGET_DEVICES += asus_rt-ac65p define Device/asus_rt-ac85p - MTK_SOC := mt7621 DEVICE_VENDOR := ASUS DEVICE_MODEL := RT-AC85P IMAGE_SIZE := 51200k @@ -162,13 +157,13 @@ define Device/asus_rt-ac85p KERNEL_SIZE := 4096k IMAGES += factory.bin IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata - IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | check-size $$$$(IMAGE_SIZE) + IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | \ + check-size $$$$(IMAGE_SIZE) DEVICE_PACKAGES := kmod-usb3 kmod-mt7615e wpad-openssl uboot-envtools endef TARGET_DEVICES += asus_rt-ac85p define Device/buffalo_wsr-1166dhp - MTK_SOC := mt7621 IMAGE/sysupgrade.bin := trx | pad-rootfs | append-metadata IMAGE_SIZE := 15936k DEVICE_VENDOR := Buffalo @@ -179,7 +174,6 @@ endef TARGET_DEVICES += buffalo_wsr-1166dhp define Device/buffalo_wsr-600dhp - MTK_SOC := mt7621 IMAGE_SIZE := 16064k DEVICE_VENDOR := Buffalo DEVICE_MODEL := WSR-600DHP @@ -190,7 +184,6 @@ TARGET_DEVICES += buffalo_wsr-600dhp define Device/dlink_dir-860l-b1 $(Device/seama) - MTK_SOC := mt7621 BLOCKSIZE := 64k SEAMA_SIGNATURE := wrgac13_dlink.2013gui_dir860lb KERNEL := kernel-bin | append-dtb | relocate-kernel | lzma | uImage lzma @@ -204,77 +197,80 @@ endef TARGET_DEVICES += dlink_dir-860l-b1 define Device/d-team_newifi-d2 - MTK_SOC := mt7621 IMAGE_SIZE := 32448k DEVICE_VENDOR := Newifi DEVICE_MODEL := D2 - DEVICE_PACKAGES := \ - kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-openssl + DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \ + kmod-usb-ledtrig-usbport wpad-openssl endef TARGET_DEVICES += d-team_newifi-d2 define Device/d-team_pbr-m1 - MTK_SOC := mt7621 IMAGE_SIZE := 16064k DEVICE_VENDOR := PandoraBox DEVICE_MODEL := PBR-M1 - DEVICE_PACKAGES := \ - kmod-ata-core kmod-ata-ahci kmod-mt7603 kmod-mt76x2 kmod-sdhci-mt7620 \ - kmod-usb3 kmod-usb-ledtrig-usbport wpad-openssl + DEVICE_PACKAGES := kmod-ata-core kmod-ata-ahci kmod-mt7603 kmod-mt76x2 \ + kmod-sdhci-mt7620 kmod-usb3 kmod-usb-ledtrig-usbport wpad-openssl SUPPORTED_DEVICES += pbr-m1 endef TARGET_DEVICES += d-team_pbr-m1 +define Device/edimax_ra21s + IMAGE_SIZE := 16064k + DEVICE_VENDOR := Edimax + DEVICE_MODEL := RA21S + DEVICE_ALT0_VENDOR := Edimax + DEVICE_ALT0_MODEL := Gemini RA21S + IMAGES += factory.bin + IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ + elx-header 02020040 8844A2D168B45A2D + DEVICE_PACKAGES := kmod-mt7615e wpad-openssl +endef +TARGET_DEVICES += edimax_ra21s + define Device/edimax_rg21s - MTK_SOC := mt7621 IMAGE_SIZE := 16064k DEVICE_VENDOR := Edimax DEVICE_MODEL := Gemini AC2600 RG21S IMAGES += factory.bin - IMAGE/factory.bin := \ - $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ - elx-header 02020038 8844A2D168B45A2D - DEVICE_PACKAGES := \ - kmod-mt7615e wpad-openssl + IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ + elx-header 02020038 8844A2D168B45A2D + DEVICE_PACKAGES := kmod-mt7615e wpad-openssl endef TARGET_DEVICES += edimax_rg21s define Device/elecom_wrc-1167ghbk2-s - MTK_SOC := mt7621 IMAGE_SIZE := 15488k DEVICE_VENDOR := ELECOM DEVICE_MODEL := WRC-1167GHBK2-S IMAGES += factory.bin - IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) |\ - elecom-wrc-factory WRC-1167GHBK2-S 0.00 + IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ + elecom-wrc-factory WRC-1167GHBK2-S 0.00 DEVICE_PACKAGES := kmod-mt7615e wpad-openssl endef TARGET_DEVICES += elecom_wrc-1167ghbk2-s define Device/elecom_wrc-1900gst - MTK_SOC := mt7621 IMAGE_SIZE := 11264k DEVICE_VENDOR := ELECOM DEVICE_MODEL := WRC-1900GST IMAGES += factory.bin - IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) |\ - elecom-gst-factory WRC-1900GST 0.00 + IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ + elecom-gst-factory WRC-1900GST 0.00 endef TARGET_DEVICES += elecom_wrc-1900gst define Device/elecom_wrc-2533gst - MTK_SOC := mt7621 IMAGE_SIZE := 11264k DEVICE_VENDOR := ELECOM DEVICE_MODEL := WRC-2533GST IMAGES += factory.bin - IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) |\ - elecom-gst-factory WRC-2533GST 0.00 + IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ + elecom-gst-factory WRC-2533GST 0.00 endef TARGET_DEVICES += elecom_wrc-2533gst define Device/firefly_firewrt - MTK_SOC := mt7621 IMAGE_SIZE := 16064k DEVICE_VENDOR := Firefly DEVICE_MODEL := FireWRT @@ -284,17 +280,16 @@ endef TARGET_DEVICES += firefly_firewrt define Device/gehua_ghl-r-001 - MTK_SOC := mt7621 IMAGE_SIZE := 32448k DEVICE_VENDOR := GeHua DEVICE_MODEL := GHL-R-001 - DEVICE_PACKAGES := \ - kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-openssl + DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \ + kmod-usb-ledtrig-usbport wpad-openssl + DEFAULT := n endef TARGET_DEVICES += gehua_ghl-r-001 define Device/gnubee_gb-pc1 - MTK_SOC := mt7621 DEVICE_VENDOR := GnuBee DEVICE_MODEL := Personal Cloud One DEVICE_PACKAGES := kmod-ata-core kmod-ata-ahci kmod-usb3 kmod-sdhci-mt7620 @@ -303,7 +298,6 @@ endef TARGET_DEVICES += gnubee_gb-pc1 define Device/gnubee_gb-pc2 - MTK_SOC := mt7621 DEVICE_VENDOR := GnuBee DEVICE_MODEL := Personal Cloud Two DEVICE_PACKAGES := kmod-ata-core kmod-ata-ahci kmod-usb3 kmod-sdhci-mt7620 @@ -312,7 +306,6 @@ endef TARGET_DEVICES += gnubee_gb-pc2 define Device/hiwifi_hc5962 - MTK_SOC := mt7621 BLOCKSIZE := 128k PAGESIZE := 2048 KERNEL_SIZE := 2097152 @@ -320,19 +313,21 @@ define Device/hiwifi_hc5962 IMAGE_SIZE := 32768k IMAGES += factory.bin IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata - IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | check-size $$$$(IMAGE_SIZE) + IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | \ + check-size $$$$(IMAGE_SIZE) DEVICE_VENDOR := HiWiFi DEVICE_MODEL := HC5962 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 wpad-openssl SUPPORTED_DEVICES += hc5962 + # Kernel partition too small + DEFAULT := n endef TARGET_DEVICES += hiwifi_hc5962 define Device/iodata_wn-ax1167gr - MTK_SOC := mt7621 IMAGE_SIZE := 15552k KERNEL_INITRAMFS := $$(KERNEL) | \ - iodata-factory 7864320 4 0x1055 $(KDIR)/tmp/$$(KERNEL_INITRAMFS_PREFIX)-factory.bin + iodata-factory 7864320 4 0x1055 $(KDIR)/tmp/$$(KERNEL_INITRAMFS_PREFIX)-factory.bin DEVICE_VENDOR := I-O DATA DEVICE_MODEL := WN-AX1167GR DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 wpad-openssl @@ -340,7 +335,6 @@ endef TARGET_DEVICES += iodata_wn-ax1167gr define Device/iodata_wn-gx300gr - MTK_SOC := mt7621 IMAGE_SIZE := 7616k DEVICE_VENDOR := I-O DATA DEVICE_MODEL := WN-GX300GR @@ -349,20 +343,17 @@ endef TARGET_DEVICES += iodata_wn-gx300gr define Device/iodata_wnpr2600g - MTK_SOC := mt7621 DEVICE_VENDOR := I-O DATA DEVICE_MODEL := WNPR2600G IMAGE_SIZE := 13952k IMAGES += factory.bin - IMAGE/factory.bin := \ - $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ - elx-header 0104003a 8844A2D168B45A2D + IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ + elx-header 0104003a 8844A2D168B45A2D DEVICE_PACKAGES := kmod-mt7615e wpad-openssl endef TARGET_DEVICES += iodata_wnpr2600g define Device/iptime_a6ns-m - MTK_SOC := mt7621 IMAGE_SIZE := 16128k UIMAGE_NAME := a6nm DEVICE_VENDOR := ipTIME @@ -371,12 +362,20 @@ define Device/iptime_a6ns-m endef TARGET_DEVICES += iptime_a6ns-m +define Device/iptime_a8004t + IMAGE_SIZE := 16128k + UIMAGE_NAME := a8004t + DEVICE_VENDOR := ipTIME + DEVICE_MODEL := A8004T + DEVICE_PACKAGES := kmod-mt7615e kmod-usb3 wpad-openssl +endef +TARGET_DEVICES += iptime_a8004t + define Device/jcg_jhr-ac876m - MTK_SOC := mt7621 IMAGE_SIZE := 16064k IMAGES += factory.bin - IMAGE/factory.bin := \ - $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | jcg-header 89.1 + IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ + jcg-header 89.1 JCG_MAXSIZE := 16064k DEVICE_VENDOR := JCG DEVICE_MODEL := JHR-AC876M @@ -385,18 +384,16 @@ endef TARGET_DEVICES += jcg_jhr-ac876m define Device/lenovo_newifi-d1 - MTK_SOC := mt7621 IMAGE_SIZE := 32448k DEVICE_VENDOR := Newifi DEVICE_MODEL := D1 - DEVICE_PACKAGES := \ - kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-sdhci-mt7620 kmod-usb-ledtrig-usbport wpad-openssl + DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-sdhci-mt7620 \ + kmod-usb-ledtrig-usbport wpad-openssl SUPPORTED_DEVICES += newifi-d1 endef TARGET_DEVICES += lenovo_newifi-d1 define Device/linksys_re6500 - MTK_SOC := mt7621 IMAGE_SIZE := 7872k DEVICE_VENDOR := Linksys DEVICE_MODEL := RE6500 @@ -406,7 +403,6 @@ endef TARGET_DEVICES += linksys_re6500 define Device/mediatek_ap-mt7621a-v60 - MTK_SOC := mt7621 IMAGE_SIZE := 7872k DEVICE_VENDOR := Mediatek DEVICE_MODEL := AP-MT7621A-V60 EVB @@ -415,7 +411,6 @@ endef TARGET_DEVICES += mediatek_ap-mt7621a-v60 define Device/mediatek_mt7621-eval-board - MTK_SOC := mt7621 BLOCKSIZE := 64k IMAGE_SIZE := 15104k DEVICE_VENDOR := MediaTek @@ -425,7 +420,6 @@ endef TARGET_DEVICES += mediatek_mt7621-eval-board define Device/MikroTik - MTK_SOC := mt7621 DEVICE_VENDOR := MikroTik BLOCKSIZE := 64k IMAGE_SIZE := 16128k @@ -433,8 +427,9 @@ define Device/MikroTik LOADER_TYPE := elf PLATFORM := mt7621 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) + IMAGE/sysupgrade.bin := append-kernel | kernel2minor -s 1024 | \ + pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | append-metadata | \ + check-size $$$$(IMAGE_SIZE) endef define Device/mikrotik_rb750gr3 @@ -458,49 +453,45 @@ endef TARGET_DEVICES += mikrotik_rbm33g define Device/mqmaker_witi - MTK_SOC := mt7621 IMAGE_SIZE := 16064k DEVICE_VENDOR := MQmaker DEVICE_MODEL := WiTi - DEVICE_PACKAGES := \ - kmod-ata-core kmod-ata-ahci kmod-mt76x2 kmod-sdhci-mt7620 kmod-usb3 \ - kmod-usb-ledtrig-usbport wpad-openssl + DEVICE_PACKAGES := kmod-ata-core kmod-ata-ahci kmod-mt76x2 \ + kmod-sdhci-mt7620 kmod-usb3 kmod-usb-ledtrig-usbport wpad-openssl SUPPORTED_DEVICES += witi mqmaker,witi-256m mqmaker,witi-512m endef TARGET_DEVICES += mqmaker_witi define Device/mtc_wr1201 - MTK_SOC := mt7621 IMAGE_SIZE := 16000k DEVICE_VENDOR := MTC DEVICE_MODEL := Wireless Router WR1201 KERNEL_INITRAMFS := $(KERNEL_DTB) | wr1201-factory-header - DEVICE_PACKAGES := \ - kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-openssl + DEVICE_PACKAGES := kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3 \ + kmod-usb-ledtrig-usbport wpad-openssl endef TARGET_DEVICES += mtc_wr1201 define Device/netgear_ex6150 - MTK_SOC := mt7621 DEVICE_VENDOR := NETGEAR DEVICE_MODEL := EX6150 DEVICE_PACKAGES := kmod-mt76x2 wpad-openssl NETGEAR_BOARD_ID := U12H318T00_NETGEAR IMAGE_SIZE := 14848k IMAGES += factory.chk - IMAGE/factory.chk := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | netgear-chk + IMAGE/factory.chk := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ + netgear-chk endef TARGET_DEVICES += netgear_ex6150 define Device/netgear_sercomm_nand - MTK_SOC := mt7621 BLOCKSIZE := 128k PAGESIZE := 2048 KERNEL_SIZE := 4096k UBINIZE_OPTS := -E 5 IMAGES += factory.img kernel.bin rootfs.bin - IMAGE/factory.img := pad-extra 2048k | append-kernel | pad-to 6144k | append-ubi | \ - pad-to $$$$(BLOCKSIZE) | sercom-footer | pad-to 128 | \ + IMAGE/factory.img := pad-extra 2048k | append-kernel | pad-to 6144k | \ + append-ubi | pad-to $$$$(BLOCKSIZE) | sercom-footer | pad-to 128 | \ zip $$$$(SERCOMM_HWNAME).bin | sercom-seal IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata IMAGE/kernel.bin := append-kernel @@ -573,35 +564,37 @@ endef TARGET_DEVICES += netgear_r6850 define Device/netgear_wndr3700-v5 - MTK_SOC := mt7621 BLOCKSIZE := 64k IMAGE_SIZE := 15232k SERCOMM_HWID := AYB SERCOMM_HWVER := A001 SERCOMM_SWVER := 0x1054 IMAGES += factory.img - IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs - IMAGE/sysupgrade.bin := $$(IMAGE/default) | append-metadata | check-size $$$$(IMAGE_SIZE) - IMAGE/factory.img := pad-extra 320k | $$(IMAGE/default) | pad-to $$$$(BLOCKSIZE) | \ - sercom-footer | pad-to 128 | zip WNDR3700v5.bin | sercom-seal + IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | \ + pad-rootfs + IMAGE/sysupgrade.bin := $$(IMAGE/default) | append-metadata | \ + check-size $$$$(IMAGE_SIZE) + IMAGE/factory.img := pad-extra 320k | $$(IMAGE/default) | \ + pad-to $$$$(BLOCKSIZE) | sercom-footer | pad-to 128 | \ + zip WNDR3700v5.bin | sercom-seal DEVICE_VENDOR := NETGEAR DEVICE_MODEL := WNDR3700 DEVICE_VARIANT := v5 - DEVICE_PACKAGES := \ - kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-openssl + DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \ + kmod-usb-ledtrig-usbport wpad-openssl SUPPORTED_DEVICES += wndr3700v5 endef TARGET_DEVICES += netgear_wndr3700-v5 define Device/netis_wf-2881 - MTK_SOC := mt7621 BLOCKSIZE := 128k PAGESIZE := 2048 FILESYSTEMS := squashfs IMAGE_SIZE := 129280k KERNEL := $(KERNEL_DTB) | pad-offset $$(BLOCKSIZE) 64 | uImage lzma UBINIZE_OPTS := -E 5 - IMAGE/sysupgrade.bin := append-kernel | append-ubi | append-metadata | check-size $$$$(IMAGE_SIZE) + IMAGE/sysupgrade.bin := append-kernel | append-ubi | append-metadata | \ + check-size $$$$(IMAGE_SIZE) DEVICE_VENDOR := NETIS DEVICE_MODEL := WF-2881 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-openssl @@ -610,17 +603,17 @@ endef TARGET_DEVICES += netis_wf-2881 define Device/phicomm_k2p - MTK_SOC := mt7621 IMAGE_SIZE := 15744k DEVICE_VENDOR := Phicomm DEVICE_MODEL := K2P + DEVICE_ALT0_VENDOR := Phicomm + DEVICE_ALT0_MODEL := KE 2P SUPPORTED_DEVICES += k2p DEVICE_PACKAGES := luci-app-mtwifi endef TARGET_DEVICES += phicomm_k2p define Device/planex_vr500 - MTK_SOC := mt7621 IMAGE_SIZE := 65216k DEVICE_VENDOR := Planex DEVICE_MODEL := VR500 @@ -630,19 +623,16 @@ endef TARGET_DEVICES += planex_vr500 define Device/samknows_whitebox-v8 - MTK_SOC := mt7621 IMAGE_SIZE := 16064k DEVICE_VENDOR := SamKnows DEVICE_MODEL := Whitebox 8 - DEVICE_PACKAGES := \ - kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport \ - uboot-envtools wpad-openssl + DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \ + kmod-usb-ledtrig-usbport uboot-envtools wpad-openssl SUPPORTED_DEVICES += sk-wb8 endef TARGET_DEVICES += samknows_whitebox-v8 define Device/storylink_sap-g3200u3 - MTK_SOC := mt7621 IMAGE_SIZE := 7872k DEVICE_VENDOR := STORYLiNK DEVICE_MODEL := SAP-G3200U3 @@ -652,7 +642,6 @@ endef TARGET_DEVICES += storylink_sap-g3200u3 define Device/telco-electronics_x1 - MTK_SOC := mt7621 IMAGE_SIZE := 16064k DEVICE_VENDOR := Telco Electronics DEVICE_MODEL := X1 @@ -661,7 +650,6 @@ endef TARGET_DEVICES += telco-electronics_x1 define Device/thunder_timecloud - MTK_SOC := mt7621 IMAGE_SIZE := 16064k DEVICE_VENDOR := Thunder DEVICE_MODEL := Timecloud @@ -671,7 +659,6 @@ endef TARGET_DEVICES += thunder_timecloud define Device/totolink_a7000r - MTK_SOC := mt7621 IMAGE_SIZE := 16064k UIMAGE_NAME := C8340R1C-9999 DEVICE_VENDOR := TOTOLINK @@ -681,7 +668,6 @@ endef TARGET_DEVICES += totolink_a7000r define Device/adslr_g7 - MTK_SOC := mt7621 IMAGE_SIZE := 16064k DEVICE_VENDOR := ADSLR DEVICE_MODEL := G7 @@ -689,20 +675,6 @@ define Device/adslr_g7 endef TARGET_DEVICES += adslr_g7 -define Device/tplink-safeloader - MTK_SOC := mt7621 - DEVICE_VENDOR := TP-Link - TPLINK_BOARD_ID := - TPLINK_HWID := 0x0 - TPLINK_HWREV := 0 - TPLINK_HEADER_VERSION := 1 - KERNEL := $(KERNEL_DTB) | tplink-v1-header -e -O - 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 - define Device/tplink_re350-v1 $(Device/tplink-safeloader) DEVICE_MODEL := RE350 @@ -725,11 +697,11 @@ endef TARGET_DEVICES += tplink_re650-v1 define Device/ubiquiti_edgerouterx - MTK_SOC := mt7621 IMAGE_SIZE := 256768k FILESYSTEMS := squashfs KERNEL_SIZE := 3145728 - KERNEL_INITRAMFS := $$(KERNEL) | ubnt-erx-factory-image $(KDIR)/tmp/$$(KERNEL_INITRAMFS_PREFIX)-factory.tar + KERNEL_INITRAMFS := $$(KERNEL) | \ + ubnt-erx-factory-image $(KDIR)/tmp/$$(KERNEL_INITRAMFS_PREFIX)-factory.tar IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata DEVICE_VENDOR := Ubiquiti DEVICE_MODEL := EdgeRouter X @@ -747,7 +719,6 @@ endef TARGET_DEVICES += ubiquiti_edgerouterx-sfp define Device/unielec_u7621-06-16m - MTK_SOC := mt7621 IMAGE_SIZE := 16064k DEVICE_VENDOR := UniElec DEVICE_MODEL := U7621-06 @@ -758,7 +729,6 @@ endef TARGET_DEVICES += unielec_u7621-06-16m define Device/unielec_u7621-06-64m - MTK_SOC := mt7621 IMAGE_SIZE := 65216k DEVICE_VENDOR := UniElec DEVICE_MODEL := U7621-06 @@ -769,31 +739,29 @@ endef TARGET_DEVICES += unielec_u7621-06-64m define Device/wevo_11acnas - MTK_SOC := mt7621 IMAGE_SIZE := 16064k UIMAGE_NAME := 11AC-NAS-Router(0.0.0) DEVICE_VENDOR := WeVO DEVICE_MODEL := 11AC NAS Router - DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-openssl + DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \ + kmod-usb-ledtrig-usbport wpad-openssl SUPPORTED_DEVICES += 11acnas endef TARGET_DEVICES += wevo_11acnas define Device/wevo_w2914ns-v2 - MTK_SOC := mt7621 IMAGE_SIZE := 16064k UIMAGE_NAME := W2914NS-V2(0.0.0) DEVICE_VENDOR := WeVO DEVICE_MODEL := W2914NS DEVICE_VARIANT := v2 - DEVICE_PACKAGES := \ - kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-openssl + DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \ + kmod-usb-ledtrig-usbport wpad-openssl SUPPORTED_DEVICES += w2914nsv2 endef TARGET_DEVICES += wevo_w2914ns-v2 define Device/xiaomi_mir3g - MTK_SOC := mt7621 BLOCKSIZE := 128k PAGESIZE := 2048 KERNEL_SIZE := 4096k @@ -807,14 +775,12 @@ define Device/xiaomi_mir3g DEVICE_MODEL := Mi Router 3G SUPPORTED_DEVICES += R3G SUPPORTED_DEVICES += mir3g - DEVICE_PACKAGES := \ - kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-openssl \ - uboot-envtools + DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \ + kmod-usb-ledtrig-usbport wpad-openssl uboot-envtools endef TARGET_DEVICES += xiaomi_mir3g define Device/xiaomi_mir3g-v2 - MTK_SOC := mt7621 IMAGE_SIZE := 14848k DEVICE_VENDOR := Xiaomi DEVICE_MODEL := Mi Router 3G @@ -827,7 +793,6 @@ endef TARGET_DEVICES += xiaomi_mir3g-v2 define Device/xiaomi_mir3p - MTK_SOC := mt7621 BLOCKSIZE := 128k PAGESIZE := 2048 KERNEL_SIZE:= 4096k @@ -837,15 +802,14 @@ define Device/xiaomi_mir3p DEVICE_MODEL := Mi Router 3 Pro IMAGES += factory.bin IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata - IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | check-size $$$$(IMAGE_SIZE) - DEVICE_PACKAGES := \ - kmod-mt7615e kmod-usb3 kmod-usb-ledtrig-usbport wpad-openssl \ - uboot-envtools + IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | \ + check-size $$$$(IMAGE_SIZE) + DEVICE_PACKAGES := kmod-mt7615e kmod-usb3 kmod-usb-ledtrig-usbport \ + wpad-openssl uboot-envtools endef TARGET_DEVICES += xiaomi_mir3p define Device/xiaoyu_xy-c5 - MTK_SOC := mt7621 IMAGE_SIZE := 32448k DEVICE_VENDOR := XiaoYu DEVICE_MODEL := XY-C5 @@ -854,92 +818,88 @@ endef TARGET_DEVICES += xiaoyu_xy-c5 define Device/xzwifi_creativebox-v1 - MTK_SOC := mt7621 IMAGE_SIZE := 32448k DEVICE_VENDOR := CreativeBox DEVICE_MODEL := v1 - DEVICE_PACKAGES := \ - kmod-ata-core kmod-ata-ahci kmod-mt7603 kmod-mt76x2 kmod-sdhci-mt7620 \ - kmod-usb3 + DEVICE_PACKAGES := kmod-ata-core kmod-ata-ahci kmod-mt7603 kmod-mt76x2 \ + kmod-sdhci-mt7620 kmod-usb3 endef TARGET_DEVICES += xzwifi_creativebox-v1 define Device/youhua_wr1200js - MTK_SOC := mt7621 IMAGE_SIZE := 16064k DEVICE_VENDOR := YouHua DEVICE_MODEL := WR1200JS - DEVICE_PACKAGES := \ - kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-openssl + DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \ + kmod-usb-ledtrig-usbport wpad-openssl endef TARGET_DEVICES += youhua_wr1200js define Device/youku_yk-l2 - MTK_SOC := mt7621 IMAGE_SIZE := 16064k DEVICE_VENDOR := Youku DEVICE_MODEL := YK-L2 - DEVICE_PACKAGES := \ - kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-openssl + DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \ + kmod-usb-ledtrig-usbport wpad-openssl endef TARGET_DEVICES += youku_yk-l2 define Device/zbtlink_zbt-we1326 - MTK_SOC := mt7621 IMAGE_SIZE := 16064k DEVICE_VENDOR := Zbtlink DEVICE_MODEL := ZBT-WE1326 - DEVICE_PACKAGES := \ - kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-sdhci-mt7620 wpad-openssl + DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-sdhci-mt7620 \ + wpad-openssl SUPPORTED_DEVICES += zbt-we1326 endef TARGET_DEVICES += zbtlink_zbt-we1326 define Device/zbtlink_zbt-we3526 - MTK_SOC := mt7621 IMAGE_SIZE := 16064k DEVICE_VENDOR := Zbtlink DEVICE_MODEL := ZBT-WE3526 - DEVICE_PACKAGES := \ - kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 \ - kmod-usb3 kmod-usb-ledtrig-usbport wpad-openssl + DEVICE_PACKAGES := kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 kmod-usb3 \ + kmod-usb-ledtrig-usbport wpad-openssl endef TARGET_DEVICES += zbtlink_zbt-we3526 define Device/zbtlink_zbt-wg2626 - MTK_SOC := mt7621 IMAGE_SIZE := 16064k DEVICE_VENDOR := Zbtlink DEVICE_MODEL := ZBT-WG2626 - DEVICE_PACKAGES := \ - kmod-ata-core kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3 \ - kmod-usb-ledtrig-usbport wpad-openssl + DEVICE_PACKAGES := kmod-ata-core kmod-ata-ahci kmod-sdhci-mt7620 \ + kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-openssl SUPPORTED_DEVICES += zbt-wg2626 endef TARGET_DEVICES += zbtlink_zbt-wg2626 define Device/zbtlink_zbt-wg3526-16m - MTK_SOC := mt7621 IMAGE_SIZE := 16064k DEVICE_VENDOR := Zbtlink DEVICE_MODEL := ZBT-WG3526 DEVICE_VARIANT := 16M - DEVICE_PACKAGES := \ - kmod-ata-core kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 \ - kmod-usb3 kmod-usb-ledtrig-usbport wpad-openssl + DEVICE_PACKAGES := kmod-ata-core kmod-ata-ahci kmod-sdhci-mt7620 \ + kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-openssl SUPPORTED_DEVICES += zbt-wg3526 zbt-wg3526-16M endef TARGET_DEVICES += zbtlink_zbt-wg3526-16m define Device/zbtlink_zbt-wg3526-32m - MTK_SOC := mt7621 IMAGE_SIZE := 32448k DEVICE_VENDOR := Zbtlink DEVICE_MODEL := ZBT-WG3526 DEVICE_VARIANT := 32M - DEVICE_PACKAGES := \ - kmod-ata-core kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 \ - kmod-usb3 kmod-usb-ledtrig-usbport wpad-openssl + DEVICE_PACKAGES := kmod-ata-core kmod-ata-ahci kmod-sdhci-mt7620 \ + kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-openssl SUPPORTED_DEVICES += ac1200pro zbt-wg3526-32M endef TARGET_DEVICES += zbtlink_zbt-wg3526-32m + +define Device/zio_freezio + IMAGE_SIZE := 16064k + DEVICE_VENDOR := ZIO + DEVICE_MODEL := FREEZIO + DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \ + kmod-usb-ledtrig-usbport wpad-openssl +endef +TARGET_DEVICES += zio_freezio diff --git a/target/linux/ramips/image/mt76x8.mk b/target/linux/ramips/image/mt76x8.mk index 758caf7fa..faa2ca1c5 100644 --- a/target/linux/ramips/image/mt76x8.mk +++ b/target/linux/ramips/image/mt76x8.mk @@ -2,8 +2,11 @@ # MT76x8 Profiles # +include ./common-tp-link.mk + +DEFAULT_SOC := mt7628an + define Device/alfa-network_awusfree1 - MTK_SOC := mt7628an IMAGE_SIZE := 7872k DEVICE_VENDOR := ALFA Network DEVICE_MODEL := AWUSFREE1 @@ -12,18 +15,15 @@ endef TARGET_DEVICES += alfa-network_awusfree1 define Device/buffalo_wcr-1166ds - MTK_SOC := mt7628an IMAGE_SIZE := 7936k BUFFALO_TAG_PLATFORM := MTK BUFFALO_TAG_VERSION := 9.99 BUFFALO_TAG_MINOR := 9.99 IMAGES += factory.bin IMAGE/sysupgrade.bin := trx | pad-rootfs | append-metadata - IMAGE/factory.bin := \ - trx -M 0x746f435c | pad-rootfs | append-metadata | \ + IMAGE/factory.bin := trx -M 0x746f435c | pad-rootfs | append-metadata | \ buffalo-enc WCR-1166DS $$(BUFFALO_TAG_VERSION) -l | \ - buffalo-tag-dhp WCR-1166DS JP JP | buffalo-enc-tag -l | \ - buffalo-dhp-image + buffalo-tag-dhp WCR-1166DS JP JP | buffalo-enc-tag -l | buffalo-dhp-image DEVICE_VENDOR := Buffalo DEVICE_MODEL := WCR-1166DS DEVICE_PACKAGES := kmod-mt76x2 @@ -32,11 +32,10 @@ endef TARGET_DEVICES += buffalo_wcr-1166ds define Device/cudy_wr1000 - MTK_SOC := mt7628an IMAGE_SIZE := 7872k IMAGES += factory.bin - IMAGE/factory.bin := \ - $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | jcg-header 92.122 + IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ + jcg-header 92.122 JCG_MAXSIZE := 7872k DEVICE_VENDOR := Cudy DEVICE_MODEL := WR1000 @@ -46,7 +45,6 @@ endef TARGET_DEVICES += cudy_wr1000 define Device/d-team_pbr-d1 - MTK_SOC := mt7628an IMAGE_SIZE := 16064k DEVICE_VENDOR := PandoraBox DEVICE_MODEL := PBR-D1 @@ -56,7 +54,6 @@ endef TARGET_DEVICES += d-team_pbr-d1 define Device/duzun_dm06 - MTK_SOC := mt7628an IMAGE_SIZE := 7872k DEVICE_VENDOR := DuZun DEVICE_MODEL := DM06 @@ -66,7 +63,6 @@ endef TARGET_DEVICES += duzun_dm06 define Device/glinet_gl-mt300n-v2 - MTK_SOC := mt7628an IMAGE_SIZE := 16064k DEVICE_VENDOR := GL.iNet DEVICE_MODEL := GL-MT300N @@ -76,8 +72,15 @@ define Device/glinet_gl-mt300n-v2 endef TARGET_DEVICES += glinet_gl-mt300n-v2 +define Device/glinet_microuter-n300 + IMAGE_SIZE := 16064k + DEVICE_VENDOR := GL.iNet + DEVICE_MODEL := microuter-N300 + SUPPORTED_DEVICES += microuter-n300 +endef +TARGET_DEVICES += glinet_microuter-n300 + define Device/glinet_vixmini - MTK_SOC := mt7628an IMAGE_SIZE := 7872k DEVICE_VENDOR := GL.iNet DEVICE_MODEL := VIXMINI @@ -86,7 +89,6 @@ endef TARGET_DEVICES += glinet_vixmini define Device/hilink_hlk-7628n - MTK_SOC := mt7628an IMAGE_SIZE := 32448k DEVICE_VENDOR := HILINK DEVICE_MODEL := HLK-7628N @@ -94,7 +96,6 @@ endef TARGET_DEVICES += hilink_hlk-7628n define Device/hiwifi_hc5661a - MTK_SOC := mt7628an IMAGE_SIZE := 15808k DEVICE_VENDOR := HiWiFi DEVICE_MODEL := HC5661A @@ -103,7 +104,6 @@ endef TARGET_DEVICES += hiwifi_hc5661a define Device/hiwifi_hc5761a - MTK_SOC := mt7628an IMAGE_SIZE := 15808k DEVICE_VENDOR := HiWiFi DEVICE_MODEL := HC5761A @@ -112,7 +112,6 @@ endef TARGET_DEVICES += hiwifi_hc5761a define Device/hiwifi_hc5861b - MTK_SOC := mt7628an IMAGE_SIZE := 15808k DEVICE_VENDOR := HiWiFi DEVICE_MODEL := HC5861B @@ -121,7 +120,6 @@ endef TARGET_DEVICES += hiwifi_hc5861b define Device/iptime_a3 - MTK_SOC := mt7628an IMAGE_SIZE := 7936k UIMAGE_NAME := a3 DEVICE_VENDOR := ipTIME @@ -131,7 +129,6 @@ endef TARGET_DEVICES += iptime_a3 define Device/iptime_a604m - MTK_SOC := mt7628an IMAGE_SIZE := 7936k UIMAGE_NAME := a604m DEVICE_VENDOR := ipTIME @@ -141,7 +138,6 @@ endef TARGET_DEVICES += iptime_a604m define Device/mediatek_linkit-smart-7688 - MTK_SOC := mt7628an IMAGE_SIZE := 32448k DEVICE_VENDOR := MediaTek DEVICE_MODEL := LinkIt Smart 7688 @@ -151,7 +147,6 @@ endef TARGET_DEVICES += mediatek_linkit-smart-7688 define Device/mediatek_mt7628an-eval-board - MTK_SOC := mt7628an BLOCKSIZE := 64k IMAGE_SIZE := 7872k DEVICE_VENDOR := MediaTek @@ -162,7 +157,6 @@ endef TARGET_DEVICES += mediatek_mt7628an-eval-board define Device/mercury_mac1200r-v2 - MTK_SOC := mt7628an IMAGE_SIZE := 7936k DEVICE_VENDOR := Mercury DEVICE_MODEL := MAC1200R @@ -174,7 +168,6 @@ endef TARGET_DEVICES += mercury_mac1200r-v2 define Device/netgear_r6120 - MTK_SOC := mt7628an BLOCKSIZE := 64k IMAGE_SIZE := 15744k DEVICE_VENDOR := NETGEAR @@ -184,15 +177,17 @@ define Device/netgear_r6120 SERCOMM_HWVER := A001 SERCOMM_SWVER := 0x0040 IMAGES += factory.img - IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE)| append-rootfs | pad-rootfs - IMAGE/sysupgrade.bin := $$(IMAGE/default) | append-metadata | check-size $$$$(IMAGE_SIZE) - IMAGE/factory.img := pad-extra 576k | $$(IMAGE/default) | pad-to $$$$(BLOCKSIZE) | \ - sercom-footer | pad-to 128 | zip R6120.bin | sercom-seal + IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE)| append-rootfs | \ + pad-rootfs + IMAGE/sysupgrade.bin := $$(IMAGE/default) | append-metadata | \ + check-size $$$$(IMAGE_SIZE) + IMAGE/factory.img := pad-extra 576k | $$(IMAGE/default) | \ + pad-to $$$$(BLOCKSIZE) | sercom-footer | pad-to 128 | zip R6120.bin | \ + sercom-seal endef TARGET_DEVICES += netgear_r6120 define Device/onion_omega2 - MTK_SOC := mt7628an IMAGE_SIZE := 16064k DEVICE_VENDOR := Onion DEVICE_MODEL := Omega2 @@ -202,7 +197,6 @@ endef TARGET_DEVICES += onion_omega2 define Device/onion_omega2p - MTK_SOC := mt7628an IMAGE_SIZE := 32448k DEVICE_VENDOR := Onion DEVICE_MODEL := Omega2+ @@ -212,7 +206,6 @@ endef TARGET_DEVICES += onion_omega2p define Device/rakwireless_rak633 - MTK_SOC := mt7628an IMAGE_SIZE := 7872k DEVICE_VENDOR := Rakwireless DEVICE_MODEL := RAK633 @@ -221,7 +214,6 @@ endef TARGET_DEVICES += rakwireless_rak633 define Device/skylab_skw92a - MTK_SOC := mt7628an IMAGE_SIZE := 16064k DEVICE_VENDOR := Skylab DEVICE_MODEL := SKW92A @@ -230,7 +222,6 @@ endef TARGET_DEVICES += skylab_skw92a define Device/tama_w06 - MTK_SOC := mt7628an IMAGE_SIZE := 15040k DEVICE_VENDOR := Tama DEVICE_MODEL := W06 @@ -239,7 +230,6 @@ endef TARGET_DEVICES += tama_w06 define Device/totolink_lr1200 - MTK_SOC := mt7628an IMAGE_SIZE := 7872k DEVICE_VENDOR := TOTOLINK DEVICE_MODEL := LR1200 @@ -247,41 +237,36 @@ define Device/totolink_lr1200 endef TARGET_DEVICES += totolink_lr1200 -define Device/tplink - MTK_SOC := mt7628an - DEVICE_VENDOR := TP-Link - TPLINK_FLASHLAYOUT := - TPLINK_HWID := - TPLINK_HWREV := - TPLINK_HWREVADD := - TPLINK_HVERSION := - KERNEL := $(KERNEL_DTB) - KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-v2-header -e - IMAGES += tftp-recovery.bin - IMAGE/factory.bin := tplink-v2-image -e - IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin) - IMAGE/sysupgrade.bin := tplink-v2-image -s -e | append-metadata | \ - check-size $$$$(IMAGE_SIZE) -endef -DEVICE_VARS += TPLINK_FLASHLAYOUT TPLINK_HWID TPLINK_HWREV TPLINK_HWREVADD TPLINK_HVERSION - define Device/tplink_archer-c20-v4 - $(Device/tplink) + $(Device/tplink-v2) IMAGE_SIZE := 7808k DEVICE_MODEL := Archer C20 DEVICE_VARIANT := v4 TPLINK_FLASHLAYOUT := 8Mmtk TPLINK_HWID := 0xc200004 - TPLINK_HWREV := 0x1 TPLINK_HWREVADD := 0x4 - TPLINK_HVERSION := 3 DEVICE_PACKAGES := kmod-mt76x0e + IMAGES := sysupgrade.bin tftp-recovery.bin + IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin) SUPPORTED_DEVICES += tplink,c20-v4 endef TARGET_DEVICES += tplink_archer-c20-v4 +define Device/tplink_archer-c20-v5 + $(Device/tplink-v2) + IMAGE_SIZE := 7616k + DEVICE_MODEL := Archer C20 + DEVICE_VARIANT := v5 + TPLINK_FLASHLAYOUT := 8MSUmtk + TPLINK_HWID := 0xc200005 + TPLINK_HWREVADD := 0x5 + DEVICE_PACKAGES := kmod-mt76x0e + IMAGES := sysupgrade.bin +endef +TARGET_DEVICES += tplink_archer-c20-v5 + define Device/tplink_archer-c50-v3 - $(Device/tplink) + $(Device/tplink-v2) IMAGE_SIZE := 7808k DEVICE_MODEL := Archer C50 DEVICE_VARIANT := v3 @@ -289,14 +274,15 @@ define Device/tplink_archer-c50-v3 TPLINK_HWID := 0x001D9BA4 TPLINK_HWREV := 0x79 TPLINK_HWREVADD := 0x1 - TPLINK_HVERSION := 3 DEVICE_PACKAGES := kmod-mt76x2 + IMAGES := sysupgrade.bin tftp-recovery.bin + IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin) SUPPORTED_DEVICES += tplink,c50-v3 endef TARGET_DEVICES += tplink_archer-c50-v3 define Device/tplink_archer-c50-v4 - $(Device/tplink) + $(Device/tplink-v2) IMAGE_SIZE := 7616k DEVICE_MODEL := Archer C50 DEVICE_VARIANT := v4 @@ -304,15 +290,34 @@ define Device/tplink_archer-c50-v4 TPLINK_HWID := 0x001D589B TPLINK_HWREV := 0x93 TPLINK_HWREVADD := 0x2 - TPLINK_HVERSION := 3 DEVICE_PACKAGES := kmod-mt76x2 IMAGES := sysupgrade.bin SUPPORTED_DEVICES += tplink,c50-v4 endef TARGET_DEVICES += tplink_archer-c50-v4 +define Device/tplink_re200-v2 + $(Device/tplink-safeloader) + IMAGE_SIZE := 7808k + DEVICE_MODEL := RE200 + DEVICE_VARIANT := v2 + DEVICE_PACKAGES := kmod-mt76x0e + TPLINK_BOARD_ID := RE200-V2 +endef +TARGET_DEVICES += tplink_re200-v2 + +define Device/tplink_re305-v1 + $(Device/tplink-safeloader) + IMAGE_SIZE := 6016k + DEVICE_MODEL := RE305 + DEVICE_VARIANT := v1 + DEVICE_PACKAGES := kmod-mt76x2 + TPLINK_BOARD_ID := RE305-V1 +endef +TARGET_DEVICES += tplink_re305-v1 + define Device/tplink_tl-mr3020-v3 - $(Device/tplink) + $(Device/tplink-v2) IMAGE_SIZE := 7808k DEVICE_MODEL := TL-MR3020 DEVICE_VARIANT := v3 @@ -320,13 +325,14 @@ define Device/tplink_tl-mr3020-v3 TPLINK_HWID := 0x30200003 TPLINK_HWREV := 0x3 TPLINK_HWREVADD := 0x3 - TPLINK_HVERSION := 3 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport + IMAGES := sysupgrade.bin tftp-recovery.bin + IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin) endef TARGET_DEVICES += tplink_tl-mr3020-v3 define Device/tplink_tl-mr3420-v5 - $(Device/tplink) + $(Device/tplink-v2) IMAGE_SIZE := 7808k DEVICE_MODEL := TL-MR3420 DEVICE_VARIANT := v5 @@ -334,72 +340,67 @@ define Device/tplink_tl-mr3420-v5 TPLINK_HWID := 0x34200005 TPLINK_HWREV := 0x5 TPLINK_HWREVADD := 0x5 - TPLINK_HVERSION := 3 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport + IMAGES := sysupgrade.bin tftp-recovery.bin + IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin) endef TARGET_DEVICES += tplink_tl-mr3420-v5 define Device/tplink_tl-wa801nd-v5 - $(Device/tplink) + $(Device/tplink-v2) IMAGE_SIZE := 7808k DEVICE_MODEL := TL-WA801ND DEVICE_VARIANT := v5 TPLINK_FLASHLAYOUT := 8Mmtk TPLINK_HWID := 0x08010005 - TPLINK_HWREV := 0x1 TPLINK_HWREVADD := 0x5 - TPLINK_HVERSION := 3 + IMAGES := sysupgrade.bin tftp-recovery.bin + IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin) endef TARGET_DEVICES += tplink_tl-wa801nd-v5 define Device/tplink_tl-wr802n-v4 - $(Device/tplink) + $(Device/tplink-v2) IMAGE_SIZE := 7808k DEVICE_MODEL := TL-WR802N DEVICE_VARIANT := v4 TPLINK_FLASHLAYOUT := 8Mmtk TPLINK_HWID := 0x08020004 - TPLINK_HWREV := 0x1 TPLINK_HWREVADD := 0x4 - TPLINK_HVERSION := 3 + IMAGES := sysupgrade.bin tftp-recovery.bin + IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin) endef TARGET_DEVICES += tplink_tl-wr802n-v4 define Device/tplink_tl-wr840n-v4 - $(Device/tplink) + $(Device/tplink-v2) IMAGE_SIZE := 7808k DEVICE_MODEL := TL-WR840N DEVICE_VARIANT := v4 TPLINK_FLASHLAYOUT := 8Mmtk TPLINK_HWID := 0x08400004 - TPLINK_HWREV := 0x1 TPLINK_HWREVADD := 0x4 - TPLINK_HVERSION := 3 + IMAGES := sysupgrade.bin tftp-recovery.bin + IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin) SUPPORTED_DEVICES += tl-wr840n-v4 endef TARGET_DEVICES += tplink_tl-wr840n-v4 define Device/tplink_tl-wr840n-v5 - MTK_SOC := mt7628an + $(Device/tplink-v2) IMAGE_SIZE := 3904k - DEVICE_VENDOR := TP-Link DEVICE_MODEL := TL-WR840N DEVICE_VARIANT := v5 TPLINK_FLASHLAYOUT := 4Mmtk TPLINK_HWID := 0x08400005 - TPLINK_HWREV := 0x1 TPLINK_HWREVADD := 0x5 - TPLINK_HVERSION := 3 - KERNEL := $(KERNEL_DTB) - KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-v2-header -e - IMAGE/sysupgrade.bin := tplink-v2-image -s -e | append-metadata | \ - check-size $$$$(IMAGE_SIZE) + IMAGES := sysupgrade.bin SUPPORTED_DEVICES += tl-wr840n-v5 endef TARGET_DEVICES += tplink_tl-wr840n-v5 define Device/tplink_tl-wr841n-v13 - $(Device/tplink) + $(Device/tplink-v2) IMAGE_SIZE := 7808k DEVICE_MODEL := TL-WR841N DEVICE_VARIANT := v13 @@ -407,27 +408,27 @@ define Device/tplink_tl-wr841n-v13 TPLINK_HWID := 0x08410013 TPLINK_HWREV := 0x268 TPLINK_HWREVADD := 0x13 - TPLINK_HVERSION := 3 + IMAGES := sysupgrade.bin tftp-recovery.bin + IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin) SUPPORTED_DEVICES += tl-wr841n-v13 endef TARGET_DEVICES += tplink_tl-wr841n-v13 define Device/tplink_tl-wr841n-v14 - $(Device/tplink) + $(Device/tplink-v2) IMAGE_SIZE := 3968k DEVICE_MODEL := TL-WR841N DEVICE_VARIANT := v14 TPLINK_FLASHLAYOUT := 4Mmtk TPLINK_HWID := 0x08410014 - TPLINK_HWREV := 0x1 TPLINK_HWREVADD := 0x14 - TPLINK_HVERSION := 3 + IMAGES := sysupgrade.bin tftp-recovery.bin IMAGE/tftp-recovery.bin := pad-extra 64k | $$(IMAGE/factory.bin) endef TARGET_DEVICES += tplink_tl-wr841n-v14 define Device/tplink_tl-wr842n-v5 - $(Device/tplink) + $(Device/tplink-v2) IMAGE_SIZE := 7808k DEVICE_MODEL := TL-WR842N DEVICE_VARIANT := v5 @@ -435,13 +436,14 @@ define Device/tplink_tl-wr842n-v5 TPLINK_HWID := 0x08420005 TPLINK_HWREV := 0x5 TPLINK_HWREVADD := 0x5 - TPLINK_HVERSION := 3 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport + IMAGES := sysupgrade.bin tftp-recovery.bin + IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin) endef TARGET_DEVICES += tplink_tl-wr842n-v5 define Device/tplink_tl-wr902ac-v3 - $(Device/tplink) + $(Device/tplink-v2) IMAGE_SIZE := 7808k DEVICE_MODEL := TL-WR902AC DEVICE_VARIANT := v3 @@ -449,13 +451,14 @@ define Device/tplink_tl-wr902ac-v3 TPLINK_HWID := 0x000dc88f TPLINK_HWREV := 0x89 TPLINK_HWREVADD := 0x1 - TPLINK_HVERSION := 3 - DEVICE_PACKAGES := kmod-mt76x0e kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport + DEVICE_PACKAGES := kmod-mt76x0e kmod-usb2 kmod-usb-ohci \ + kmod-usb-ledtrig-usbport + IMAGES := sysupgrade.bin tftp-recovery.bin + IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin) endef TARGET_DEVICES += tplink_tl-wr902ac-v3 define Device/unielec_u7628-01-16m - MTK_SOC := mt7628an IMAGE_SIZE := 16064k DEVICE_VENDOR := UniElec DEVICE_MODEL := U7628-01 @@ -466,29 +469,26 @@ endef TARGET_DEVICES += unielec_u7628-01-16m define Device/vocore_vocore2 - MTK_SOC := mt7628an IMAGE_SIZE := 16064k DEVICE_VENDOR := VoCore DEVICE_MODEL := VoCore2 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport \ - kmod-sdhci-mt7620 + kmod-sdhci-mt7620 SUPPORTED_DEVICES += vocore2 endef TARGET_DEVICES += vocore_vocore2 define Device/vocore_vocore2-lite - MTK_SOC := mt7628an IMAGE_SIZE := 7872k DEVICE_VENDOR := VoCore DEVICE_MODEL := VoCore2-Lite DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport \ - kmod-sdhci-mt7620 + kmod-sdhci-mt7620 SUPPORTED_DEVICES += vocore2lite endef TARGET_DEVICES += vocore_vocore2-lite define Device/wavlink_wl-wn570ha1 - MTK_SOC := mt7628an IMAGE_SIZE := 7872k DEVICE_VENDOR := Wavlink DEVICE_MODEL := WL-WN570HA1 @@ -497,7 +497,6 @@ endef TARGET_DEVICES += wavlink_wl-wn570ha1 define Device/wavlink_wl-wn575a3 - MTK_SOC := mt7628an IMAGE_SIZE := 7872k DEVICE_VENDOR := Wavlink DEVICE_MODEL := WL-WN575A3 @@ -507,7 +506,6 @@ endef TARGET_DEVICES += wavlink_wl-wn575a3 define Device/widora_neo-16m - MTK_SOC := mt7628an IMAGE_SIZE := 16064k DEVICE_VENDOR := Widora DEVICE_MODEL := Widora-NEO @@ -518,7 +516,6 @@ endef TARGET_DEVICES += widora_neo-16m define Device/widora_neo-32m - MTK_SOC := mt7628an IMAGE_SIZE := 32448k DEVICE_VENDOR := Widora DEVICE_MODEL := Widora-NEO @@ -528,7 +525,6 @@ endef TARGET_DEVICES += widora_neo-32m define Device/wiznet_wizfi630s - MTK_SOC := mt7628an IMAGE_SIZE := 32448k DEVICE_VENDOR := WIZnet DEVICE_MODEL := WizFi630S @@ -536,7 +532,6 @@ endef TARGET_DEVICES += wiznet_wizfi630s define Device/wrtnode_wrtnode2p - MTK_SOC := mt7628an IMAGE_SIZE := 32448k DEVICE_VENDOR := WRTnode DEVICE_MODEL := WRTnode 2P @@ -546,7 +541,6 @@ endef TARGET_DEVICES += wrtnode_wrtnode2p define Device/wrtnode_wrtnode2r - MTK_SOC := mt7628an IMAGE_SIZE := 32448k DEVICE_VENDOR := WRTnode DEVICE_MODEL := WRTnode 2R @@ -556,7 +550,6 @@ endef TARGET_DEVICES += wrtnode_wrtnode2r define Device/xiaomi_mir4a-100m - MTK_SOC := mt7628an IMAGE_SIZE := 14976k DEVICE_VENDOR := Xiaomi DEVICE_MODEL := Mi Router 4A @@ -566,7 +559,6 @@ endef TARGET_DEVICES += xiaomi_mir4a-100m define Device/xiaomi_miwifi-nano - MTK_SOC := mt7628an IMAGE_SIZE := 16064k DEVICE_VENDOR := Xiaomi DEVICE_MODEL := MiWiFi Nano @@ -576,7 +568,6 @@ endef TARGET_DEVICES += xiaomi_miwifi-nano define Device/zbtlink_zbt-we1226 - MTK_SOC := mt7628an IMAGE_SIZE := 7872k DEVICE_VENDOR := Zbtlink DEVICE_MODEL := ZBT-WE1226 @@ -584,12 +575,12 @@ endef TARGET_DEVICES += zbtlink_zbt-we1226 define Device/zyxel_keenetic-extra-ii - MTK_SOC := mt7628an IMAGE_SIZE := 14912k BLOCKSIZE := 64k DEVICE_VENDOR := ZyXEL DEVICE_MODEL := Keenetic Extra II - DEVICE_PACKAGES := kmod-mt76x2 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 := $$(sysupgrade_bin) | pad-to $$$$(BLOCKSIZE) | \ check-size $$$$(IMAGE_SIZE) | zyimage -d 6162 -v "ZyXEL Keenetic Extra II" diff --git a/target/linux/ramips/image/rt288x.mk b/target/linux/ramips/image/rt288x.mk index 460df2853..800dc553a 100644 --- a/target/linux/ramips/image/rt288x.mk +++ b/target/linux/ramips/image/rt288x.mk @@ -2,6 +2,8 @@ # RT288X Profiles # +DEFAULT_SOC := rt2880 + define Build/gemtek-header if [ -f $@ ]; then \ mkheader_gemtek $@ $@.new $(1) && \ @@ -10,7 +12,6 @@ define Build/gemtek-header endef define Device/airlink101_ar670w - MTK_SOC := rt2880 BLOCKSIZE := 64k DEVICE_VENDOR := Airlink DEVICE_MODEL := AR670W @@ -24,7 +25,6 @@ endef TARGET_DEVICES += airlink101_ar670w define Device/airlink101_ar725w - MTK_SOC := rt2880 IMAGE_SIZE := 3776k DEVICE_VENDOR := Airlink DEVICE_MODEL := AR725W @@ -36,7 +36,6 @@ endef TARGET_DEVICES += airlink101_ar725w define Device/asus_rt-n15 - MTK_SOC := rt2880 BLOCKSIZE := 64k IMAGE_SIZE := 3776k DEVICE_VENDOR := Asus @@ -47,19 +46,17 @@ endef TARGET_DEVICES += asus_rt-n15 define Device/belkin_f5d8235-v1 - MTK_SOC := rt2880 IMAGE_SIZE := 7872k DEVICE_VENDOR := Belkin DEVICE_MODEL := F5D8235 DEVICE_VARIANT := V1 DEVICE_PACKAGES := kmod-switch-rtl8366s kmod-usb-ohci \ - kmod-usb-ohci-pci kmod-usb2 kmod-usb2-pci kmod-usb-ledtrig-usbport + kmod-usb-ohci-pci kmod-usb2 kmod-usb2-pci kmod-usb-ledtrig-usbport SUPPORTED_DEVICES += f5d8235-v1 endef TARGET_DEVICES += belkin_f5d8235-v1 define Device/buffalo_wli-tx4-ag300n - MTK_SOC := rt2880 BLOCKSIZE := 64k IMAGE_SIZE := 3776k DEVICE_VENDOR := Buffalo @@ -70,7 +67,6 @@ endef TARGET_DEVICES += buffalo_wli-tx4-ag300n define Device/buffalo_wzr-agl300nh - MTK_SOC := rt2880 BLOCKSIZE := 64k IMAGE_SIZE := 3776k DEVICE_VENDOR := Buffalo @@ -81,7 +77,6 @@ endef TARGET_DEVICES += buffalo_wzr-agl300nh define Device/dlink_dap-1522-a1 - MTK_SOC := rt2880 BLOCKSIZE := 64k IMAGE_SIZE := 3712k DEVICE_VENDOR := D-Link @@ -90,16 +85,13 @@ define Device/dlink_dap-1522-a1 DEVICE_PACKAGES := kmod-switch-rtl8366s KERNEL := $(KERNEL_DTB) IMAGES += factory.bin - IMAGE/factory.bin := \ - append-kernel | pad-offset $$$$(BLOCKSIZE) 96 | \ - append-rootfs | pad-rootfs -x 96 | \ - wrg-header wapnd01_dlink_dap1522 | \ + IMAGE/factory.bin := append-kernel | pad-offset $$$$(BLOCKSIZE) 96 | \ + append-rootfs | pad-rootfs -x 96 | wrg-header wapnd01_dlink_dap1522 | \ check-size $$$$(IMAGE_SIZE) endef TARGET_DEVICES += dlink_dap-1522-a1 define Device/ralink_v11st-fe - MTK_SOC := rt2880 BLOCKSIZE := 64k IMAGE_SIZE := 3776k DEVICE_VENDOR := Ralink diff --git a/target/linux/ramips/image/rt305x.mk b/target/linux/ramips/image/rt305x.mk index fac2a689a..f63891ac7 100644 --- a/target/linux/ramips/image/rt305x.mk +++ b/target/linux/ramips/image/rt305x.mk @@ -22,7 +22,7 @@ define Build/hilink-header endef define Device/7links_px-4885-4m - MTK_SOC := rt5350 + SOC := rt5350 IMAGE_SIZE := 3776k DEVICE_VENDOR := 7Links DEVICE_MODEL := PX-4885 @@ -34,7 +34,7 @@ endef TARGET_DEVICES += 7links_px-4885-4m define Device/7links_px-4885-8m - MTK_SOC := rt5350 + SOC := rt5350 IMAGE_SIZE := 7872k DEVICE_VENDOR := 7Links DEVICE_MODEL := PX-4885 @@ -46,7 +46,7 @@ endef TARGET_DEVICES += 7links_px-4885-8m define Device/8devices_carambola - MTK_SOC := rt3050 + SOC := rt3050 IMAGE_SIZE := 7872k DEVICE_VENDOR := 8devices DEVICE_MODEL := Carambola @@ -56,7 +56,7 @@ endef TARGET_DEVICES += 8devices_carambola define Device/accton_wr6202 - MTK_SOC := rt3052 + SOC := rt3052 IMAGE_SIZE := 7872k DEVICE_VENDOR := Accton DEVICE_MODEL := WR6202 @@ -65,7 +65,7 @@ endef TARGET_DEVICES += accton_wr6202 define Device/airlive_air3gii - MTK_SOC := rt5350 + SOC := rt5350 BLOCKSIZE := 64k IMAGE_SIZE := 3776k DEVICE_VENDOR := AirLive @@ -75,7 +75,7 @@ endef TARGET_DEVICES += airlive_air3gii define Device/alfa-network_w502u - MTK_SOC := rt3052 + SOC := rt3052 IMAGE_SIZE := 7872k DEVICE_VENDOR := ALFA DEVICE_MODEL := Networks W502U @@ -84,7 +84,7 @@ endef TARGET_DEVICES += alfa-network_w502u define Device/allnet_all0256n-4m - MTK_SOC := rt3050 + SOC := rt3050 IMAGE_SIZE := 3776k DEVICE_VENDOR := Allnet DEVICE_MODEL := ALL0256N @@ -95,7 +95,7 @@ endef TARGET_DEVICES += allnet_all0256n-4m define Device/allnet_all0256n-8m - MTK_SOC := rt3050 + SOC := rt3050 IMAGE_SIZE := 7872k DEVICE_VENDOR := Allnet DEVICE_MODEL := ALL0256N @@ -106,29 +106,29 @@ endef TARGET_DEVICES += allnet_all0256n-8m define Device/allnet_all5002 - MTK_SOC := rt3352 + SOC := rt3352 IMAGE_SIZE := 32448k DEVICE_VENDOR := Allnet DEVICE_MODEL := ALL5002 DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport \ - kmod-i2c-core kmod-i2c-gpio kmod-hwmon-lm92 kmod-gpio-pcf857x + kmod-i2c-core kmod-i2c-gpio kmod-hwmon-lm92 kmod-gpio-pcf857x SUPPORTED_DEVICES += all5002 endef TARGET_DEVICES += allnet_all5002 define Device/allnet_all5003 - MTK_SOC := rt5350 + SOC := rt5350 IMAGE_SIZE := 32448k DEVICE_VENDOR := Allnet DEVICE_MODEL := ALL5003 DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport \ - kmod-i2c-core kmod-i2c-gpio kmod-hwmon-lm92 kmod-gpio-pcf857x + kmod-i2c-core kmod-i2c-gpio kmod-hwmon-lm92 kmod-gpio-pcf857x SUPPORTED_DEVICES += all5003 endef TARGET_DEVICES += allnet_all5003 define Device/alphanetworks_asl26555-16m - MTK_SOC := rt3050 + SOC := rt3050 IMAGE_SIZE := 15872k DEVICE_VENDOR := Alpha DEVICE_MODEL := ASL26555 @@ -139,7 +139,7 @@ endef TARGET_DEVICES += alphanetworks_asl26555-16m define Device/alphanetworks_asl26555-8m - MTK_SOC := rt3050 + SOC := rt3050 IMAGE_SIZE := 7744k DEVICE_VENDOR := Alpha DEVICE_MODEL := ASL26555 @@ -149,17 +149,18 @@ endef TARGET_DEVICES += alphanetworks_asl26555-8m define Device/arcwireless_freestation5 - MTK_SOC := rt3050 + SOC := rt3050 IMAGE_SIZE := 7872k DEVICE_VENDOR := ARC Wireless DEVICE_MODEL := FreeStation - DEVICE_PACKAGES := kmod-usb-dwc2 kmod-rt2500-usb kmod-rt2800-usb kmod-rt2x00-usb + DEVICE_PACKAGES := kmod-usb-dwc2 kmod-rt2500-usb kmod-rt2800-usb \ + kmod-rt2x00-usb SUPPORTED_DEVICES += freestation5 endef TARGET_DEVICES += arcwireless_freestation5 define Device/argus_atp-52b - MTK_SOC := rt3052 + SOC := rt3052 IMAGE_SIZE := 7808k DEVICE_VENDOR := Argus DEVICE_MODEL := ATP-52B @@ -168,7 +169,7 @@ endef TARGET_DEVICES += argus_atp-52b define Device/asiarf_awapn2403 - MTK_SOC := rt3052 + SOC := rt3052 BLOCKSIZE := 4k IMAGE_SIZE := 3776k DEVICE_VENDOR := AsiaRF @@ -178,31 +179,29 @@ endef TARGET_DEVICES += asiarf_awapn2403 define Device/asiarf_awm002-evb-4m - MTK_SOC := rt5350 + SOC := rt5350 IMAGE_SIZE := 3776k DEVICE_VENDOR := AsiaRF DEVICE_MODEL := AWM002-EVB DEVICE_VARIANT := 4M - DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 \ - kmod-i2c-core kmod-i2c-gpio + DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-i2c-core kmod-i2c-gpio SUPPORTED_DEVICES += awm002-evb-4M endef TARGET_DEVICES += asiarf_awm002-evb-4m define Device/asiarf_awm002-evb-8m - MTK_SOC := rt5350 + SOC := rt5350 IMAGE_SIZE := 7872k DEVICE_VENDOR := AsiaRF DEVICE_MODEL := AWM002-EVB/AWM003-EVB DEVICE_VARIANT := 8M - DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 \ - kmod-i2c-core kmod-i2c-gpio + DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-i2c-core kmod-i2c-gpio SUPPORTED_DEVICES += awm002-evb-8M endef TARGET_DEVICES += asiarf_awm002-evb-8m define Device/asus_rt-g32-b1 - MTK_SOC := rt3050 + SOC := rt3050 BLOCKSIZE := 4k IMAGE_SIZE := 3776k DEVICE_VENDOR := Asus @@ -213,7 +212,7 @@ endef TARGET_DEVICES += asus_rt-g32-b1 define Device/asus_rt-n10-plus - MTK_SOC := rt3050 + SOC := rt3050 BLOCKSIZE := 64k IMAGE_SIZE := 3776k DEVICE_VENDOR := Asus @@ -223,7 +222,7 @@ endef TARGET_DEVICES += asus_rt-n10-plus define Device/asus_rt-n13u - MTK_SOC := rt3052 + SOC := rt3052 IMAGE_SIZE := 7872k DEVICE_VENDOR := Asus DEVICE_MODEL := RT-N13U @@ -233,7 +232,7 @@ endef TARGET_DEVICES += asus_rt-n13u define Device/asus_wl-330n - MTK_SOC := rt3050 + SOC := rt3050 BLOCKSIZE := 4k IMAGE_SIZE := 3776k DEVICE_VENDOR := Asus @@ -243,7 +242,7 @@ endef TARGET_DEVICES += asus_wl-330n define Device/asus_wl-330n3g - MTK_SOC := rt3050 + SOC := rt3050 BLOCKSIZE := 4k IMAGE_SIZE := 3776k DEVICE_VENDOR := Asus @@ -254,7 +253,7 @@ endef TARGET_DEVICES += asus_wl-330n3g define Device/aximcom_mr-102n - MTK_SOC := rt3052 + SOC := rt3052 IMAGE_SIZE := 7744k DEVICE_VENDOR := AXIMCom DEVICE_MODEL := MR-102N @@ -263,7 +262,7 @@ endef TARGET_DEVICES += aximcom_mr-102n define Device/aztech_hw550-3g - MTK_SOC := rt3052 + SOC := rt3052 IMAGE_SIZE := 7872k DEVICE_VENDOR := Aztech DEVICE_MODEL := HW550-3G @@ -275,7 +274,7 @@ endef TARGET_DEVICES += aztech_hw550-3g define Device/belkin_f5d8235-v2 - MTK_SOC := rt3052 + SOC := rt3052 IMAGE_SIZE := 7744k DEVICE_VENDOR := Belkin DEVICE_MODEL := F5D8235 @@ -286,7 +285,7 @@ endef TARGET_DEVICES += belkin_f5d8235-v2 define Device/belkin_f7c027 - MTK_SOC := rt5350 + SOC := rt5350 IMAGE_SIZE := 7616k DEVICE_VENDOR := Belkin DEVICE_MODEL := F7C027 @@ -296,20 +295,20 @@ endef TARGET_DEVICES += belkin_f7c027 define Device/buffalo_whr-g300n - MTK_SOC := rt3052 + SOC := rt3052 BLOCKSIZE := 64k IMAGE_SIZE := 3712k DEVICE_VENDOR := Buffalo DEVICE_MODEL := WHR-G300N IMAGES += tftp.bin - IMAGE/tftp.bin := $$(sysupgrade_bin) | \ - check-size $$$$(IMAGE_SIZE) | buffalo-tftp-header + IMAGE/tftp.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ + buffalo-tftp-header SUPPORTED_DEVICES += whr-g300n endef TARGET_DEVICES += buffalo_whr-g300n define Device/dlink_dap-1350 - MTK_SOC := rt3052 + SOC := rt3052 IMAGES += factory.bin factory-NA.bin IMAGE_SIZE := 7488k IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ @@ -323,32 +322,34 @@ endef TARGET_DEVICES += dlink_dap-1350 define Device/dlink_dcs-930 - MTK_SOC := rt3050 + SOC := rt3050 IMAGE_SIZE := 3776k DEVICE_VENDOR := D-Link DEVICE_MODEL := DCS-930 - DEVICE_PACKAGES := kmod-video-core kmod-video-uvc kmod-sound-core kmod-usb-audio kmod-usb-dwc2 + DEVICE_PACKAGES := kmod-video-core kmod-video-uvc kmod-sound-core \ + kmod-usb-audio kmod-usb-dwc2 SUPPORTED_DEVICES += dcs-930 endef TARGET_DEVICES += dlink_dcs-930 define Device/dlink_dcs-930l-b1 - MTK_SOC := rt5350 + SOC := rt5350 IMAGE_SIZE := 3776k DEVICE_VENDOR := D-Link DEVICE_MODEL := DCS-930L DEVICE_VARIANT := B1 - DEVICE_PACKAGES := kmod-video-core kmod-video-uvc kmod-sound-core kmod-usb-audio kmod-usb-ohci kmod-usb2 + DEVICE_PACKAGES := kmod-video-core kmod-video-uvc kmod-sound-core \ + kmod-usb-audio kmod-usb-ohci kmod-usb2 SUPPORTED_DEVICES += dcs-930l-b1 endef TARGET_DEVICES += dlink_dcs-930l-b1 define Device/dlink_dir-300-b1 - MTK_SOC := rt3050 + SOC := rt3050 IMAGE_SIZE := 3776k IMAGES += factory.bin - IMAGE/factory.bin := \ - $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | wrg-header wrgn23_dlwbr_dir300b + IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ + wrg-header wrgn23_dlwbr_dir300b DEVICE_VENDOR := D-Link DEVICE_MODEL := DIR-300 DEVICE_VARIANT := B1 @@ -357,7 +358,7 @@ endef TARGET_DEVICES += dlink_dir-300-b1 define Device/dlink_dir-300-b7 - MTK_SOC := rt5350 + SOC := rt5350 BLOCKSIZE := 4k IMAGE_SIZE := 7872k DEVICE_VENDOR := D-Link @@ -368,7 +369,7 @@ endef TARGET_DEVICES += dlink_dir-300-b7 define Device/dlink_dir-320-b1 - MTK_SOC := rt5350 + SOC := rt5350 IMAGE_SIZE := 7872k DEVICE_VENDOR := D-Link DEVICE_MODEL := DIR-320 @@ -378,11 +379,11 @@ endef TARGET_DEVICES += dlink_dir-320-b1 define Device/dlink_dir-600-b1 - MTK_SOC := rt3050 + SOC := rt3050 IMAGE_SIZE := 3776k IMAGES += factory.bin - IMAGE/factory.bin := \ - $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | wrg-header wrgn23_dlwbr_dir600b + IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ + wrg-header wrgn23_dlwbr_dir600b DEVICE_VENDOR := D-Link DEVICE_MODEL := DIR-600 DEVICE_VARIANT := B1/B2 @@ -392,7 +393,7 @@ TARGET_DEVICES += dlink_dir-600-b1 define Device/dlink_dir-610-a1 $(Device/seama) - MTK_SOC := rt5350 + SOC := rt5350 BLOCKSIZE := 4k SEAMA_SIGNATURE := wrgn59_dlob.hans_dir610 KERNEL := $(KERNEL_DTB) @@ -406,11 +407,11 @@ endef TARGET_DEVICES += dlink_dir-610-a1 define Device/dlink_dir-615-d - MTK_SOC := rt3050 + SOC := rt3050 IMAGE_SIZE := 3776k IMAGES += factory.bin - IMAGE/factory.bin := \ - $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | wrg-header wrgn23_dlwbr_dir615d + IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ + wrg-header wrgn23_dlwbr_dir615d DEVICE_VENDOR := D-Link DEVICE_MODEL := DIR-615 DEVICE_VARIANT := D @@ -419,12 +420,11 @@ endef TARGET_DEVICES += dlink_dir-615-d define Device/dlink_dir-615-h1 - MTK_SOC := rt3352 + SOC := rt3352 BLOCKSIZE := 4k IMAGES += factory.bin IMAGE_SIZE := 3776k - IMAGE/factory.bin := \ - $$(sysupgrade_bin) | senao-header -r 0x218 -p 0x30 -t 3 + IMAGE/factory.bin := $$(sysupgrade_bin) | senao-header -r 0x218 -p 0x30 -t 3 DEVICE_VENDOR := D-Link DEVICE_MODEL := DIR-615 DEVICE_VARIANT := H1 @@ -433,7 +433,7 @@ endef TARGET_DEVICES += dlink_dir-615-h1 define Device/dlink_dir-620-a1 - MTK_SOC := rt3050 + SOC := rt3050 IMAGE_SIZE := 7872k DEVICE_VENDOR := D-Link DEVICE_MODEL := DIR-620 @@ -443,7 +443,7 @@ endef TARGET_DEVICES += dlink_dir-620-a1 define Device/dlink_dir-620-d1 - MTK_SOC := rt3352 + SOC := rt3352 IMAGE_SIZE := 7872k DEVICE_VENDOR := D-Link DEVICE_MODEL := DIR-620 @@ -453,14 +453,13 @@ endef TARGET_DEVICES += dlink_dir-620-d1 define Device/dlink_dwr-512-b - MTK_SOC := rt5350 + SOC := rt5350 IMAGE_SIZE := 8064k DEVICE_VENDOR := D-Link DEVICE_MODEL := DWR-512 DEVICE_VARIANT := B DEVICE_PACKAGES := jboot-tools kmod-usb2 kmod-spi-dev kmod-usb-serial \ - kmod-usb-serial-option kmod-usb-net kmod-usb-net-cdc-ether \ - comgt-ncm + kmod-usb-serial-option kmod-usb-net kmod-usb-net-cdc-ether comgt-ncm DLINK_ROM_ID := DLK6E2412001 DLINK_FAMILY_MEMBER := 0x6E24 DLINK_FIRMWARE_SIZE := 0x7E0000 @@ -473,7 +472,7 @@ endef TARGET_DEVICES += dlink_dwr-512-b define Device/easyacc_wizard-8800 - MTK_SOC := rt5350 + SOC := rt5350 IMAGE_SIZE := 7872k UIMAGE_NAME:= Linux Kernel Image DEVICE_VENDOR := EasyAcc @@ -483,7 +482,7 @@ endef TARGET_DEVICES += easyacc_wizard-8800 define Device/edimax_3g-6200n - MTK_SOC := rt3050 + SOC := rt3050 IMAGE_SIZE := 3648k IMAGE/sysupgrade.bin := append-kernel | append-rootfs | \ edimax-header -s CSYS -m 3G62 -f 0x50000 -S 0x01100000 | pad-rootfs | \ @@ -495,7 +494,7 @@ endef TARGET_DEVICES += edimax_3g-6200n define Device/edimax_3g-6200nl - MTK_SOC := rt3050 + SOC := rt3050 IMAGE_SIZE := 3648k IMAGE/sysupgrade.bin := append-kernel | append-rootfs | \ edimax-header -s CSYS -m 3G62 -f 0x50000 -S 0x01100000 | pad-rootfs | \ @@ -507,7 +506,7 @@ endef TARGET_DEVICES += edimax_3g-6200nl define Device/engenius_esr-9753 - MTK_SOC := rt3052 + SOC := rt3052 BLOCKSIZE := 64k IMAGE_SIZE := 3776k DEVICE_VENDOR := EnGenius @@ -517,7 +516,7 @@ endef TARGET_DEVICES += engenius_esr-9753 define Device/fon_fonera-20n - MTK_SOC := rt3052 + SOC := rt3052 IMAGE_SIZE := 7872k IMAGES += factory.bin IMAGE/factory.bin := $$(sysupgrade_bin) | \ @@ -530,7 +529,7 @@ endef TARGET_DEVICES += fon_fonera-20n define Device/hame_mpr-a1 - MTK_SOC := rt5350 + SOC := rt5350 BLOCKSIZE := 4k IMAGE_SIZE := 3776k UIMAGE_NAME:= Linux Kernel Image @@ -543,7 +542,7 @@ endef TARGET_DEVICES += hame_mpr-a1 define Device/hame_mpr-a2 - MTK_SOC := rt5350 + SOC := rt5350 IMAGE_SIZE := 7872k UIMAGE_NAME:= Linux Kernel Image DEVICE_VENDOR := HAME @@ -555,7 +554,7 @@ endef TARGET_DEVICES += hame_mpr-a2 define Device/hauppauge_broadway - MTK_SOC := rt3052 + SOC := rt3052 IMAGE_SIZE := 7744k UIMAGE_NAME:= Broadway Kernel Image DEVICE_VENDOR := Hauppauge @@ -566,11 +565,11 @@ endef TARGET_DEVICES += hauppauge_broadway define Device/hilink_hlk-rm04 - MTK_SOC := rt5350 + SOC := rt5350 IMAGE_SIZE := 3776k IMAGES += factory.bin - IMAGE/factory.bin := \ - $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | hilink-header + IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ + hilink-header DEVICE_VENDOR := Hi-Link DEVICE_MODEL := HLK-RM04 SUPPORTED_DEVICES += hlk-rm04 @@ -578,7 +577,7 @@ endef TARGET_DEVICES += hilink_hlk-rm04 define Device/hootoo_ht-tm02 - MTK_SOC := rt5350 + SOC := rt5350 IMAGE_SIZE := 7872k DEVICE_VENDOR := HooToo DEVICE_MODEL := HT-TM02 @@ -588,7 +587,7 @@ endef TARGET_DEVICES += hootoo_ht-tm02 define Device/huawei_d105 - MTK_SOC := rt3050 + SOC := rt3050 BLOCKSIZE := 64k IMAGE_SIZE := 3776k DEVICE_VENDOR := Huawei @@ -598,7 +597,7 @@ endef TARGET_DEVICES += huawei_d105 define Device/huawei_hg255d - MTK_SOC := rt3052 + SOC := rt3052 IMAGE_SIZE := 15744k DEVICE_VENDOR := HuaWei DEVICE_MODEL := HG255D @@ -607,24 +606,23 @@ endef TARGET_DEVICES += huawei_hg255d define Device/intenso_memory2move - MTK_SOC := rt5350 + SOC := rt5350 IMAGE_SIZE := 7872k UIMAGE_NAME:= Linux Kernel Image DEVICE_VENDOR := Intenso DEVICE_MODEL := Memory 2 Move - DEVICE_PACKAGES := kmod-ledtrig-netdev kmod-ledtrig-timer \ - kmod-usb2 kmod-usb-storage kmod-scsi-core \ - kmod-fs-ext4 kmod-fs-vfat block-mount + DEVICE_PACKAGES := kmod-ledtrig-netdev kmod-ledtrig-timer kmod-usb2 \ + kmod-usb-storage kmod-scsi-core kmod-fs-ext4 kmod-fs-vfat block-mount SUPPORTED_DEVICES += m2m endef TARGET_DEVICES += intenso_memory2move define Device/jcg_jhr-n805r - MTK_SOC := rt3050 + SOC := rt3050 IMAGE_SIZE := 3776k IMAGES += factory.bin - IMAGE/factory.bin := \ - $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | jcg-header 29.24 + IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ + jcg-header 29.24 DEVICE_VENDOR := JCG DEVICE_MODEL := JHR-N805R SUPPORTED_DEVICES += jhr-n805r @@ -632,11 +630,11 @@ endef TARGET_DEVICES += jcg_jhr-n805r define Device/jcg_jhr-n825r - MTK_SOC := rt3052 + SOC := rt3052 IMAGE_SIZE := 3776k IMAGES += factory.bin - IMAGE/factory.bin := \ - $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | jcg-header 23.24 + IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ + jcg-header 23.24 DEVICE_VENDOR := JCG DEVICE_MODEL := JHR-N825R SUPPORTED_DEVICES += jhr-n825r @@ -644,11 +642,11 @@ endef TARGET_DEVICES += jcg_jhr-n825r define Device/jcg_jhr-n926r - MTK_SOC := rt3052 + SOC := rt3052 IMAGE_SIZE := 3776k IMAGES += factory.bin - IMAGE/factory.bin := \ - $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | jcg-header 25.24 + IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ + jcg-header 25.24 DEVICE_VENDOR := JCG DEVICE_MODEL := JHR-N926R SUPPORTED_DEVICES += jhr-n926r @@ -656,7 +654,7 @@ endef TARGET_DEVICES += jcg_jhr-n926r define Device/mofinetwork_mofi3500-3gn - MTK_SOC := rt3052 + SOC := rt3052 IMAGE_SIZE := 7872k DEVICE_VENDOR := MoFi Network DEVICE_MODEL := MOFI3500-3GN @@ -665,7 +663,7 @@ endef TARGET_DEVICES += mofinetwork_mofi3500-3gn define Device/netcore_nw718 - MTK_SOC := rt3050 + SOC := rt3050 IMAGE_SIZE := 3712k UIMAGE_NAME:= ARA1B4NCRNW718;1 DEVICE_VENDOR := Netcore @@ -675,7 +673,7 @@ endef TARGET_DEVICES += netcore_nw718 define Device/netgear_wnce2001 - MTK_SOC := rt3052 + SOC := rt3052 IMAGE_SIZE := 3392k IMAGES += factory.bin factory-NA.bin IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ @@ -689,7 +687,7 @@ endef TARGET_DEVICES += netgear_wnce2001 define Device/nexaira_bc2 - MTK_SOC := rt3052 + SOC := rt3052 IMAGE_SIZE := 7872k DEVICE_VENDOR := NexAira DEVICE_MODEL := BC2 @@ -698,11 +696,11 @@ endef TARGET_DEVICES += nexaira_bc2 define Device/nexx_wt1520-4m - MTK_SOC := rt5350 + SOC := rt5350 IMAGE_SIZE := 3776k IMAGES += factory.bin - IMAGE/factory.bin := \ - $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | poray-header -B WT1520 -F 4M + IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ + poray-header -B WT1520 -F 4M DEVICE_VENDOR := Nexx DEVICE_MODEL := WT1520 DEVICE_VARIANT := 4M @@ -711,11 +709,11 @@ endef TARGET_DEVICES += nexx_wt1520-4m define Device/nexx_wt1520-8m - MTK_SOC := rt5350 + SOC := rt5350 IMAGE_SIZE := 7872k IMAGES += factory.bin - IMAGE/factory.bin := \ - $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | poray-header -B WT1520 -F 8M + IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ + poray-header -B WT1520 -F 8M DEVICE_VENDOR := Nexx DEVICE_MODEL := WT1520 DEVICE_VARIANT := 8M @@ -724,53 +722,53 @@ endef TARGET_DEVICES += nexx_wt1520-8m define Device/nixcore_x1-16m - MTK_SOC := rt5350 + SOC := rt5350 IMAGE_SIZE := 16064k DEVICE_VENDOR := Nixcore DEVICE_MODEL := X1 DEVICE_VARIANT := 16M - DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-i2c-core kmod-i2c-ralink kmod-spi-dev + DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-i2c-core kmod-i2c-ralink \ + kmod-spi-dev SUPPORTED_DEVICES += nixcore-x1 nixcore-x1-16M endef TARGET_DEVICES += nixcore_x1-16m define Device/nixcore_x1-8m - MTK_SOC := rt5350 + SOC := rt5350 IMAGE_SIZE := 7872k DEVICE_VENDOR := Nixcore DEVICE_MODEL := X1 DEVICE_VARIANT := 8M - DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-i2c-core kmod-i2c-ralink kmod-spi-dev + DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-i2c-core kmod-i2c-ralink \ + kmod-spi-dev SUPPORTED_DEVICES += nixcore-x1 nixcore-x1-8M endef TARGET_DEVICES += nixcore_x1-8m define Device/olimex_rt5350f-olinuxino - MTK_SOC := rt5350 + SOC := rt5350 IMAGE_SIZE := 7872k DEVICE_VENDOR := OLIMEX DEVICE_MODEL := RT5350F-OLinuXino - DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 \ - kmod-i2c-core kmod-i2c-ralink \ - kmod-spi-dev + DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-i2c-core kmod-i2c-ralink \ + kmod-spi-dev SUPPORTED_DEVICES += rt5350f-olinuxino endef TARGET_DEVICES += olimex_rt5350f-olinuxino define Device/olimex_rt5350f-olinuxino-evb - MTK_SOC := rt5350 + SOC := rt5350 IMAGE_SIZE := 7872k DEVICE_VENDOR := OLIMEX DEVICE_MODEL := RT5350F-OLinuXino-EVB - DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 \ - kmod-i2c-core kmod-i2c-ralink \ - kmod-spi-dev + DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-i2c-core kmod-i2c-ralink \ + kmod-spi-dev SUPPORTED_DEVICES += rt5350f-olinuxino-evb endef TARGET_DEVICES += olimex_rt5350f-olinuxino-evb define Device/omnima_miniembplug - MTK_SOC := rt5350 + SOC := rt5350 IMAGE_SIZE := 7872k DEVICE_VENDOR := Omnima DEVICE_MODEL := MiniEMBPlug @@ -779,7 +777,7 @@ endef TARGET_DEVICES += omnima_miniembplug define Device/omnima_miniembwifi - MTK_SOC := rt3052 + SOC := rt3052 IMAGE_SIZE := 7872k DEVICE_VENDOR := Omnima DEVICE_MODEL := MiniEMBWiFi @@ -788,7 +786,7 @@ endef TARGET_DEVICES += omnima_miniembwifi define Device/petatel_psr-680w - MTK_SOC := rt3052 + SOC := rt3052 BLOCKSIZE := 64k IMAGE_SIZE := 3776k DEVICE_VENDOR := Petatel @@ -798,7 +796,7 @@ endef TARGET_DEVICES += petatel_psr-680w define Device/planex_mzk-dp150n - MTK_SOC := rt5350 + SOC := rt5350 BLOCKSIZE := 64k IMAGE_SIZE := 3776k DEVICE_VENDOR := Planex @@ -809,7 +807,7 @@ endef TARGET_DEVICES += planex_mzk-dp150n define Device/planex_mzk-w300nh2 - MTK_SOC := rt3052 + SOC := rt3052 IMAGE_SIZE := 3648k IMAGES += factory.bin IMAGE/factory.bin := $$(sysupgrade_bin) | \ @@ -821,7 +819,7 @@ endef TARGET_DEVICES += planex_mzk-w300nh2 define Device/planex_mzk-wdpr - MTK_SOC := rt3052 + SOC := rt3052 IMAGE_SIZE := 6656k DEVICE_VENDOR := Planex DEVICE_MODEL := MZK-WDPR @@ -830,7 +828,7 @@ endef TARGET_DEVICES += planex_mzk-wdpr define Device/poray_ip2202 - MTK_SOC := rt3052 + SOC := rt3052 IMAGE_SIZE := 7872k DEVICE_VENDOR := Poray DEVICE_MODEL := IP2202 @@ -839,40 +837,38 @@ endef TARGET_DEVICES += poray_ip2202 define Device/poray_m3 - MTK_SOC := rt5350 + SOC := rt5350 IMAGE_SIZE := 3776k IMAGES += factory.bin - IMAGE/factory.bin := \ - $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | poray-header -B M3 -F 4M + IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ + poray-header -B M3 -F 4M DEVICE_VENDOR := Poray DEVICE_MODEL := M3 - DEVICE_PACKAGES := kmod-usb2 kmod-ledtrig-netdev \ - kmod-ledtrig-timer + DEVICE_PACKAGES := kmod-usb2 kmod-ledtrig-netdev kmod-ledtrig-timer SUPPORTED_DEVICES += m3 endef TARGET_DEVICES += poray_m3 define Device/poray_m4-4m - MTK_SOC := rt5350 + SOC := rt5350 IMAGE_SIZE := 3776k IMAGES += factory.bin - IMAGE/factory.bin := \ - $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | poray-header -B M4 -F 4M + IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ + poray-header -B M4 -F 4M DEVICE_VENDOR := Poray DEVICE_MODEL := M4 DEVICE_VARIANT := 4M - DEVICE_PACKAGES := kmod-usb2 kmod-ledtrig-netdev \ - kmod-ledtrig-timer + DEVICE_PACKAGES := kmod-usb2 kmod-ledtrig-netdev kmod-ledtrig-timer SUPPORTED_DEVICES += m4-4M endef TARGET_DEVICES += poray_m4-4m define Device/poray_m4-8m - MTK_SOC := rt5350 + SOC := rt5350 IMAGE_SIZE := 7872k IMAGES += factory.bin - IMAGE/factory.bin := \ - $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | poray-header -B M4 -F 8M + IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ + poray-header -B M4 -F 8M DEVICE_VENDOR := Poray DEVICE_MODEL := M4 DEVICE_VARIANT := 8M @@ -882,11 +878,11 @@ endef TARGET_DEVICES += poray_m4-8m define Device/poray_x5 - MTK_SOC := rt5350 + SOC := rt5350 IMAGE_SIZE := 7872k IMAGES += factory.bin - IMAGE/factory.bin := \ - $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | poray-header -B X5 -F 8M + IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ + poray-header -B X5 -F 8M DEVICE_VENDOR := Poray DEVICE_MODEL := X5/X6 DEVICE_PACKAGES := kmod-usb2 kmod-ledtrig-netdev kmod-ledtrig-timer @@ -895,11 +891,11 @@ endef TARGET_DEVICES += poray_x5 define Device/poray_x8 - MTK_SOC := rt5350 + SOC := rt5350 IMAGE_SIZE := 7872k IMAGES += factory.bin - IMAGE/factory.bin := \ - $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | poray-header -B X8 -F 8M + IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ + poray-header -B X8 -F 8M DEVICE_VENDOR := Poray DEVICE_MODEL := X8 DEVICE_PACKAGES := kmod-usb2 kmod-ledtrig-netdev kmod-ledtrig-timer @@ -908,7 +904,7 @@ endef TARGET_DEVICES += poray_x8 define Device/prolink_pwh2004 - MTK_SOC := rt3052 + SOC := rt3052 IMAGE_SIZE := 7872k DEVICE_VENDOR := Prolink DEVICE_MODEL := PWH2004 @@ -918,7 +914,7 @@ endef TARGET_DEVICES += prolink_pwh2004 define Device/ralink_v22rw-2x2 - MTK_SOC := rt3052 + SOC := rt3052 BLOCKSIZE := 64k IMAGE_SIZE := 3776k DEVICE_VENDOR := Ralink @@ -928,7 +924,7 @@ endef TARGET_DEVICES += ralink_v22rw-2x2 define Device/sitecom_wl-351 - MTK_SOC := rt3052 + SOC := rt3052 BLOCKSIZE := 64k IMAGE_SIZE := 3776k DEVICE_VENDOR := Sitecom @@ -939,7 +935,7 @@ endef TARGET_DEVICES += sitecom_wl-351 define Device/skyline_sl-r7205 - MTK_SOC := rt3052 + SOC := rt3052 BLOCKSIZE := 64k IMAGE_SIZE := 3776k DEVICE_VENDOR := Skyline @@ -949,7 +945,7 @@ endef TARGET_DEVICES += skyline_sl-r7205 define Device/sparklan_wcr-150gn - MTK_SOC := rt3050 + SOC := rt3050 BLOCKSIZE := 64k IMAGE_SIZE := 3776k DEVICE_VENDOR := Sparklan @@ -959,7 +955,7 @@ endef TARGET_DEVICES += sparklan_wcr-150gn define Device/teltonika_rut5xx - MTK_SOC := rt3050 + SOC := rt3050 IMAGE_SIZE := 16064k DEVICE_VENDOR := Teltonika DEVICE_MODEL := RUT5XX @@ -969,7 +965,7 @@ endef TARGET_DEVICES += teltonika_rut5xx define Device/tenda_3g150b - MTK_SOC := rt5350 + SOC := rt5350 BLOCKSIZE := 4k IMAGE_SIZE := 3776k UIMAGE_NAME:= Linux Kernel Image @@ -981,7 +977,7 @@ endef TARGET_DEVICES += tenda_3g150b define Device/tenda_3g300m - MTK_SOC := rt3052 + SOC := rt3052 IMAGE_SIZE := 3776k UIMAGE_NAME := 3G150M_SPI Kernel Image DEVICE_VENDOR := Tenda @@ -992,7 +988,7 @@ endef TARGET_DEVICES += tenda_3g300m define Device/tenda_w150m - MTK_SOC := rt3050 + SOC := rt3050 IMAGE_SIZE := 3776k UIMAGE_NAME:= W150M Kernel Image DEVICE_VENDOR := Tenda @@ -1002,7 +998,7 @@ endef TARGET_DEVICES += tenda_w150m define Device/tenda_w306r-v2 - MTK_SOC := rt3052 + SOC := rt3052 IMAGE_SIZE := 3776k UIMAGE_NAME:= linkn Kernel Image DEVICE_VENDOR := Tenda @@ -1013,11 +1009,11 @@ endef TARGET_DEVICES += tenda_w306r-v2 define Device/trendnet_tew-638apb-v2 - MTK_SOC := rt3050 + SOC := rt3050 BLOCKSIZE := 64k IMAGE_SIZE := 3776k IMAGE/sysupgrade.bin := $$(sysupgrade_bin) | umedia-header 0x026382 | \ - append-metadata | check-size $$$$(IMAGE_SIZE) + append-metadata | check-size $$$$(IMAGE_SIZE) DEVICE_VENDOR := TRENDnet DEVICE_MODEL := TEW-638APB DEVICE_VARIANT := v2 @@ -1026,7 +1022,7 @@ endef TARGET_DEVICES += trendnet_tew-638apb-v2 define Device/trendnet_tew-714tru - MTK_SOC := rt5350 + SOC := rt5350 IMAGE_SIZE := 7872k DEVICE_VENDOR := TRENDnet DEVICE_MODEL := TEW-714TRU @@ -1035,11 +1031,11 @@ endef TARGET_DEVICES += trendnet_tew-714tru define Device/unbranded_a5-v11 - MTK_SOC := rt5350 + SOC := rt5350 IMAGE_SIZE := 3776k IMAGES += factory.bin - IMAGE/factory.bin := \ - $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | poray-header -B A5-V11 -F 4M + IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ + poray-header -B A5-V11 -F 4M DEVICE_VENDOR := DEVICE_MODEL := A5-V11 DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 @@ -1048,7 +1044,7 @@ endef TARGET_DEVICES += unbranded_a5-v11 define Device/unbranded_wr512-3gn-4m - MTK_SOC := rt3052 + SOC := rt3052 IMAGE_SIZE := 3776k DEVICE_VENDOR := Ralink DEVICE_MODEL := WR512-3GN @@ -1058,7 +1054,7 @@ endef TARGET_DEVICES += unbranded_wr512-3gn-4m define Device/unbranded_wr512-3gn-8m - MTK_SOC := rt3052 + SOC := rt3052 IMAGE_SIZE := 7872k DEVICE_VENDOR := Ralink DEVICE_MODEL := WR512-3GN @@ -1068,7 +1064,7 @@ endef TARGET_DEVICES += unbranded_wr512-3gn-8m define Device/unbranded_xdx-rn502j - MTK_SOC := rt3052 + SOC := rt3052 BLOCKSIZE := 64k IMAGE_SIZE := 3776k DEVICE_VENDOR := XDX @@ -1078,7 +1074,7 @@ endef TARGET_DEVICES += unbranded_xdx-rn502j define Device/upvel_ur-326n4g - MTK_SOC := rt3052 + SOC := rt3052 BLOCKSIZE := 64k IMAGE_SIZE := 3776k DEVICE_VENDOR := UPVEL @@ -1089,7 +1085,7 @@ endef TARGET_DEVICES += upvel_ur-326n4g define Device/upvel_ur-336un - MTK_SOC := rt3052 + SOC := rt3052 IMAGE_SIZE := 7872k DEVICE_VENDOR := UPVEL DEVICE_MODEL := UR-336UN @@ -1099,44 +1095,41 @@ endef TARGET_DEVICES += upvel_ur-336un define Device/vocore_vocore-16m - MTK_SOC := rt5350 + SOC := rt5350 IMAGE_SIZE := 16064k DEVICE_VENDOR := VoCore DEVICE_MODEL := VoCore DEVICE_VARIANT := 16M - DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 \ - kmod-i2c-core kmod-i2c-ralink \ - kmod-spi-dev + DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-i2c-core kmod-i2c-ralink \ + kmod-spi-dev SUPPORTED_DEVICES += vocore vocore-16M endef TARGET_DEVICES += vocore_vocore-16m define Device/vocore_vocore-8m - MTK_SOC := rt5350 + SOC := rt5350 IMAGE_SIZE := 7872k DEVICE_VENDOR := VoCore DEVICE_MODEL := VoCore DEVICE_VARIANT := 8M - DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 \ - kmod-i2c-core kmod-i2c-ralink \ - kmod-spi-dev + DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-i2c-core kmod-i2c-ralink \ + kmod-spi-dev SUPPORTED_DEVICES += vocore vocore-8M endef TARGET_DEVICES += vocore_vocore-8m define Device/wansview_ncs601w - MTK_SOC := rt5350 + SOC := rt5350 IMAGE_SIZE := 7872k DEVICE_VENDOR := Wansview DEVICE_MODEL := NCS601W - DEVICE_PACKAGES := kmod-video-core kmod-video-uvc \ - kmod-usb-ohci + DEVICE_PACKAGES := kmod-video-core kmod-video-uvc kmod-usb-ohci SUPPORTED_DEVICES += ncs601w endef TARGET_DEVICES += wansview_ncs601w define Device/wiznet_wizfi630a - MTK_SOC := rt5350 + SOC := rt5350 IMAGE_SIZE := 16064k DEVICE_VENDOR := WIZnet DEVICE_MODEL := WizFi630A @@ -1145,7 +1138,7 @@ endef TARGET_DEVICES += wiznet_wizfi630a define Device/zorlik_zl5900v2 - MTK_SOC := rt5350 + SOC := rt5350 IMAGE_SIZE := 7872k DEVICE_VENDOR := Zorlik DEVICE_MODEL := ZL5900V2 @@ -1154,7 +1147,7 @@ endef TARGET_DEVICES += zorlik_zl5900v2 define Device/zyxel_keenetic - MTK_SOC := rt3052 + SOC := rt3052 BLOCKSIZE := 64k IMAGE_SIZE := 3776k DEVICE_VENDOR := ZyXEL @@ -1165,7 +1158,7 @@ endef TARGET_DEVICES += zyxel_keenetic define Device/zyxel_keenetic-start - MTK_SOC := rt5350 + SOC := rt5350 IMAGE_SIZE := 3776k DEVICE_VENDOR := ZyXEL DEVICE_MODEL := Keenetic Start @@ -1173,7 +1166,7 @@ endef TARGET_DEVICES += zyxel_keenetic-start define Device/zyxel_nbg-419n - MTK_SOC := rt3052 + SOC := rt3052 BLOCKSIZE := 64k IMAGE_SIZE := 3776k DEVICE_VENDOR := ZyXEL @@ -1183,7 +1176,7 @@ endef TARGET_DEVICES += zyxel_nbg-419n define Device/zyxel_nbg-419n-v2 - MTK_SOC := rt3352 + SOC := rt3352 IMAGE_SIZE := 7872k DEVICE_VENDOR := ZyXEL DEVICE_MODEL := NBG-419N diff --git a/target/linux/ramips/image/rt3883.mk b/target/linux/ramips/image/rt3883.mk index 0279bcd2d..ca6a713c4 100644 --- a/target/linux/ramips/image/rt3883.mk +++ b/target/linux/ramips/image/rt3883.mk @@ -6,7 +6,7 @@ define Build/mkrtn56uimg endef define Device/asus_rt-n56u - MTK_SOC := rt3662 + SOC := rt3662 BLOCKSIZE := 64k IMAGE_SIZE := 7872k IMAGE/sysupgrade.bin += | mkrtn56uimg -s @@ -18,7 +18,7 @@ endef TARGET_DEVICES += asus_rt-n56u define Device/belkin_f9k1109v1 - MTK_SOC := rt3883 + SOC := rt3883 BLOCKSIZE := 64k DEVICE_VENDOR := Belkin DEVICE_MODEL := F9K1109 @@ -33,10 +33,10 @@ TARGET_DEVICES += belkin_f9k1109v1 define Device/dlink_dir-645 $(Device/seama) - MTK_SOC := rt3662 + SOC := rt3662 BLOCKSIZE := 4k IMAGE_SIZE := 7872k - KERNEL := $(KERNEL_DTB) + KERNEL := kernel-bin | append-dtb | lzma -d10 SEAMA_SIGNATURE := wrgn39_dlob.hans_dir645 DEVICE_VENDOR := D-Link DEVICE_MODEL := DIR-645 @@ -46,7 +46,7 @@ endef TARGET_DEVICES += dlink_dir-645 define Device/edimax_br-6475nd - MTK_SOC := rt3662 + SOC := rt3662 BLOCKSIZE := 64k IMAGE_SIZE := 7744k IMAGE/sysupgrade.bin := append-kernel | append-rootfs | \ @@ -60,7 +60,7 @@ endef TARGET_DEVICES += edimax_br-6475nd define Device/loewe_wmdr-143n - MTK_SOC := rt3662 + SOC := rt3662 BLOCKSIZE := 64k IMAGE_SIZE := 7872k DEVICE_VENDOR := Loewe @@ -70,7 +70,7 @@ endef TARGET_DEVICES += loewe_wmdr-143n define Device/omnima_hpm - MTK_SOC := rt3662 + SOC := rt3662 BLOCKSIZE := 64k IMAGE_SIZE := 16064k DEVICE_VENDOR := Omnima @@ -82,7 +82,7 @@ TARGET_DEVICES += omnima_hpm define Device/samsung_cy-swr1100 $(Device/seama) - MTK_SOC := rt3662 + SOC := rt3662 BLOCKSIZE := 64k IMAGE_SIZE := 7872k KERNEL := $(KERNEL_DTB) @@ -95,7 +95,7 @@ endef TARGET_DEVICES += samsung_cy-swr1100 define Device/sitecom_wlr-6000 - MTK_SOC := rt3883 + SOC := rt3883 BLOCKSIZE := 4k IMAGE_SIZE := 7244k IMAGES += factory.dlf @@ -109,7 +109,7 @@ endef TARGET_DEVICES += sitecom_wlr-6000 define Device/trendnet_tew-691gr - MTK_SOC := rt3883 + SOC := rt3883 BLOCKSIZE := 64k IMAGE_SIZE := 7872k IMAGES += factory.bin @@ -123,7 +123,7 @@ endef TARGET_DEVICES += trendnet_tew-691gr define Device/trendnet_tew-692gr - MTK_SOC := rt3883 + SOC := rt3883 BLOCKSIZE := 64k IMAGE_SIZE := 7872k IMAGES += factory.bin diff --git a/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds b/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds index d88fdfb04..fe6dfac50 100755 --- a/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds @@ -111,19 +111,12 @@ glinet,gl-mt300n|\ glinet,gl-mt750) set_wifi_led "$boardname:wlan" ;; -hiwifi,hc5661) - ucidef_set_led_switch "internet" "internet" "$boardname:blue:internet" "switch0" "0x01" - set_wifi_led "$boardname:blue:wlan2g" - ;; +hiwifi,hc5661|\ hiwifi,hc5761) ucidef_set_led_switch "internet" "internet" "$boardname:blue:internet" "switch0" "0x01" - ucidef_set_led_netdev "wifi5g" "wifi5g" "$boardname:blue:wlan5g" "wlan0" - ucidef_set_led_netdev "wifi2g" "wifi2g" "$boardname:blue:wlan2g" "wlan1" ;; hiwifi,hc5861) ucidef_set_led_switch "internet" "internet" "$boardname:blue:internet" "switch0" "0x20" - ucidef_set_led_netdev "wifi5g" "wifi5g" "$boardname:blue:wlan5g" "wlan0" - ucidef_set_led_netdev "wifi2g" "wifi2g" "$boardname:blue:wlan2g" "wlan1" ;; hnet,c108) ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" "eth0" @@ -175,28 +168,25 @@ zbtlink,zbt-we826-e) tplink,archer-c2-v1) ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch1" "0x1e" ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch1" "0x01" - set_wifi_led "$boardname:green:wlan" ;; tplink,archer-c20-v1) ucidef_set_led_switch "lan" "lan" "$boardname:blue:lan" "switch0" "0x1e" ucidef_set_led_switch "wan" "wan" "$boardname:blue:wan" "switch0" "0x01" - ucidef_set_led_netdev "wlan2g" "wlan2g" "$boardname:blue:wlan2g" "wlan0" ;; tplink,archer-c20i) ucidef_set_led_switch "lan" "lan" "$boardname:blue:lan" "switch0" "0x1e" ucidef_set_led_switch "wan" "wan" "$boardname:blue:wan" "switch0" "0x01" - ucidef_set_led_wlan "wlan" "wlan" "$boardname:blue:wlan" "phy0radio" ;; tplink,archer-c50-v1) ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e" ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01" - ucidef_set_led_netdev "wlan2g" "wlan2g" "$boardname:green:wlan2g" wlan1 - set_wifi_led "$boardname:green:wlan5g" ;; tplink,archer-mr200) ucidef_set_led_netdev "lan" "lan" "$boardname:white:lan" "eth0.1" ucidef_set_led_netdev "wan" "wan" "$boardname:white:wan" "usb0" - set_wifi_led "$boardname:white:wlan" + ;; +tplink,re200-v1) + ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" "eth0" ;; youku,yk1) set_wifi_led "$boardname:blue:air" diff --git a/target/linux/ramips/mt7620/base-files/etc/board.d/02_network b/target/linux/ramips/mt7620/base-files/etc/board.d/02_network index 20846ef20..7397ddcc2 100755 --- a/target/linux/ramips/mt7620/base-files/etc/board.d/02_network +++ b/target/linux/ramips/mt7620/base-files/etc/board.d/02_network @@ -50,6 +50,7 @@ ramips_setup_interfaces() planex,mzk-ex300np|\ planex,mzk-ex750np|\ ravpower,wd03|\ + tplink,re200-v1|\ sercomm,na930) ucidef_set_interface_lan "eth0" ;; @@ -139,6 +140,10 @@ ramips_setup_interfaces() ucidef_add_switch "switch1" \ "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "0:wan" "6@eth0" ;; + iptime,a104ns) + ucidef_add_switch "switch0" \ + "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "0:wan" "6@eth0" + ;; kingston,mlw221) ucidef_set_interface_lan "eth0.2" ;; @@ -301,6 +306,9 @@ ramips_setup_macs() iodata,wn-ac733gr3) wan_mac=$(mtd_get_mac_ascii u-boot-env wanaddr) ;; + iptime,a104ns) + wan_mac=$(macaddr_add "$(mtd_get_mac_binary u-boot 0x1fc20)" 2) + ;; lenovo,newifi-y1|\ lenovo,newifi-y1s|\ ohyeah,oy-0001|\ diff --git a/target/linux/ramips/mt7620/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom b/target/linux/ramips/mt7620/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom index f33ed82f6..cf9243adc 100644 --- a/target/linux/ramips/mt7620/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom +++ b/target/linux/ramips/mt7620/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom @@ -1,8 +1,23 @@ #!/bin/sh -[ -e /lib/firmware/$FIRMWARE ] && exit 0 +rt2x00_eeprom_die() { + echo "rt2x00 eeprom: " "$*" + exit 1 +} -. /lib/functions/caldata.sh +rt2x00_eeprom_extract() { + local part=$1 + local offset=$2 + local count=$3 + local mtd + + mtd=$(find_mtd_part $part) + [ -n "$mtd" ] || \ + rt2x00_eeprom_die "no mtd device found for partition $part" + + dd if=$mtd of=/lib/firmware/$FIRMWARE bs=1 skip=$offset count=$count 2>/dev/null || \ + rt2x00_eeprom_die "failed to extract from $mtd" +} jboot_eeprom_extract() { local part=$1 @@ -11,12 +26,29 @@ jboot_eeprom_extract() { mtd=$(find_mtd_part $part) [ -n "$mtd" ] || \ - caldata_die "no mtd device found for partition $part" + rt2x00_eeprom_die "no mtd device found for partition $part" jboot_config_read -i $mtd -o $offset -e /lib/firmware/$FIRMWARE 2>/dev/null || \ - caldata_die "failed to extract from $mtd" + rt2x00_eeprom_die "failed to extract from $mtd" } +rt2x00_eeprom_set_macaddr() { + local macaddr=$1 + + [ -n "$macaddr" ] || \ + rt2x00_eeprom_die "invalid wlan mac address" + + macaddr_2bin $macaddr | dd of=/lib/firmware/$FIRMWARE \ + conv=notrunc bs=1 seek=4 count=6 2>/dev/null || \ + rt2x00_eeprom_die "failed to write mac address to eeprom file" +} + +FW="/lib/firmware/$FIRMWARE" +[ -e "$FW" ] && exit 0 + +. /lib/functions.sh +. /lib/functions/system.sh + board=$(board_name) case "$FIRMWARE" in @@ -32,15 +64,15 @@ case "$FIRMWARE" in wan_mac=$(jboot_config_read -m -i $(find_mtd_part "config") -o 0xE000) wifi_mac=$(macaddr_add "$wan_mac" 1) jboot_eeprom_extract "config" 0xE000 - caldata_patch_mac $wifi_mac 0x4 + rt2x00_eeprom_set_macaddr $wifi_mac ;; dovado,tiny-ac) wifi_mac=$(mtd_get_mac_ascii u-boot-env INIC_MAC_ADDR) - caldata_extract "factory" 0x0 0x200 - caldata_patch_mac $wifi_mac 0x4 + rt2x00_eeprom_extract "factory" 0 512 + rt2x00_eeprom_set_macaddr $wifi_mac ;; *) - caldata_die "Please define mtd-eeprom in $board DTS file!" + rt2x00_eeprom_die "Please define mtd-eeprom in $board DTS file!" ;; esac ;; diff --git a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network index 5c30021c9..4e38e9df3 100755 --- a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network +++ b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network @@ -13,7 +13,6 @@ ramips_setup_interfaces() afoundry,ew1200|\ d-team,pbr-m1|\ firefly,firewrt|\ - hiwifi,hc5962|\ jcg,jhr-ac876m|\ mediatek,ap-mt7621a-v60|\ mediatek,mt7621-eval-board|\ @@ -51,7 +50,8 @@ ramips_setup_interfaces() netgear,wndr3700-v5|\ netis,wf-2881|\ wevo,11acnas|\ - wevo,w2914ns-v2) + wevo,w2914ns-v2|\ + zio,freezio) ucidef_add_switch "switch0" \ "0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "4:wan" "6@eth0" ;; @@ -78,7 +78,8 @@ ramips_setup_interfaces() elecom,wrc-2533gst|\ iodata,wn-ax1167gr|\ iodata,wn-gx300gr|\ - iodata,wnpr2600g) + iodata,wnpr2600g|\ + iptime,a8004t) ucidef_add_switch "switch0" \ "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "0:wan" "6@eth0" ;; @@ -91,6 +92,7 @@ ramips_setup_interfaces() ucidef_add_switch "switch0" \ "0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "4:wan:5" "6@eth0" ;; + edimax,ra21s|\ edimax,rg21s) ucidef_add_switch "switch0" \ "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "0:wan" "6@eth0" @@ -104,6 +106,10 @@ ramips_setup_interfaces() ucidef_add_switch "switch0" \ "0:lan" "4:lan" "6@eth0" ;; + hiwifi,hc5962) + ucidef_add_switch "switch0" \ + "1:lan" "2:lan" "3:lan" "4:wan" "6@eth0" + ;; lenovo,newifi-d1) ucidef_add_switch "switch0" \ "1:lan:2" "2:lan:1" "4:wan" "6@eth0" @@ -202,6 +208,7 @@ ramips_setup_macs() wan_mac=$(mtd_get_mac_ascii factory wanmac) label_mac=$(mtd_get_mac_binary radio 0x4) ;; + edimax,ra21s|\ edimax,rg21s) lan_mac=$(mtd_get_mac_ascii u-boot-env ethaddr) wan_mac=$(mtd_get_mac_ascii u-boot-env wanaddr) @@ -224,7 +231,8 @@ ramips_setup_macs() wan_mac=$(mtd_get_mac_ascii u-boot-env wanaddr) label_mac=$wan_mac ;; - iptime,a6ns-m) + iptime,a6ns-m|\ + iptime,a8004t) wan_mac=$(mtd_get_mac_binary u-boot 0x1fc40) ;; jcg,jhr-ac876m) @@ -234,9 +242,7 @@ ramips_setup_macs() mediatek,ap-mt7621a-v60) wan_mac=$(macaddr_add "$(mtd_get_mac_binary factory 0x5)" 1) ;; - mikrotik,rb750gr3) - wan_mac=$(macaddr_add "$(mtd_get_mac_binary hard_config 0x10)" 2) - ;; + mikrotik,rb750gr3|\ mikrotik,rbm33g) wan_mac=$(macaddr_add "$(mtd_get_mac_binary hard_config 0x10)" 2) label_mac=$(mtd_get_mac_binary hard_config 0x10) @@ -256,21 +262,20 @@ ramips_setup_macs() wan_mac=$(macaddr_add "$(mtd_get_mac_binary factory 0x22)" 1) ;; wevo,11acnas|\ - wevo,w2914ns-v2) + wevo,w2914ns-v2|\ + zio,freezio) wan_mac=$(mtd_get_mac_binary factory 0x2e) label_mac=$wan_mac ;; - xiaomi,mir3g) + xiaomi,mir3g|\ + xiaomi,mir3p) lan_mac=$(mtd_get_mac_binary factory 0xe006) + label_mac=$lan_mac ;; xiaomi,mir3g-v2) wan_mac=$(mtd_get_mac_binary factory 0xe006) label_mac=$wan_mac ;; - xiaomi,mir3p) - lan_mac=$(mtd_get_mac_binary factory 0xe006) - label_mac=$lan_mac - ;; zbtlink,zbt-we1326) wan_mac=$(mtd_get_mac_binary factory 0xe006) label_mac=$(mtd_get_mac_binary factory 0x4) diff --git a/target/linux/ramips/base-files/etc/init.d/set-irq-affinity b/target/linux/ramips/mt7621/base-files/etc/init.d/set-irq-affinity similarity index 100% rename from target/linux/ramips/base-files/etc/init.d/set-irq-affinity rename to target/linux/ramips/mt7621/base-files/etc/init.d/set-irq-affinity diff --git a/target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds b/target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds index f397da14a..c66e13d3c 100755 --- a/target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds @@ -52,10 +52,10 @@ tama,w06) ucidef_set_led_netdev "wan" "WAN" "$boardname:green:wan" "eth0" ucidef_set_led_wlan "wlan" "WLAN" "$boardname:green:wlan" "phy0tpt" ;; -tplink,archer-c20-v4) +tplink,archer-c20-v4|\ +tplink,archer-c20-v5) ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e" ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01" - ucidef_set_led_netdev "wlan2g" "wlan2g" "$boardname:green:wlan2g" "wlan0" ;; tplink,archer-c50-v3|\ tplink,archer-c50-v4) @@ -64,9 +64,10 @@ tplink,archer-c50-v4) ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan2g" "phy0tpt" ucidef_set_led_wlan "wlan5g" "wlan5g" "$boardname:green:wlan5g" "phy1tpt" ;; -tplink,tl-mr3020-v3) - set_wifi_led "$boardname:green:wlan" - ucidef_set_led_netdev "lan" "LAN" "$boardname:green:lan" "eth0" +tplink,re200-v2|\ +tplink,tl-mr3020-v3|\ +tplink,tl-wa801nd-v5) + ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" "eth0" ;; tplink,tl-mr3420-v5|\ tplink,tl-wr842n-v5) @@ -74,10 +75,6 @@ tplink,tl-wr842n-v5) ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e" ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01" ;; -tplink,tl-wa801nd-v5) - ucidef_set_led_wlan "wlan" "wlan" "$boardname:green:wlan" "phy0tpt" - ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" "eth0" - ;; tplink,tl-wr840n-v4) ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan" "phy0tpt" ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e" @@ -98,6 +95,7 @@ tplink,tl-wr841n-v14) tplink,tl-wr902ac-v3) ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan" "phy0tpt" ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x10" + ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x10" ;; unielec,u7628-01-16m) ucidef_set_led_switch "lan1" "lan1" "u7628-01:green:lan1" "switch0" "0x2" diff --git a/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network b/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network index aeaf29698..6ba23f945 100755 --- a/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network +++ b/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network @@ -12,6 +12,8 @@ ramips_setup_interfaces() alfa-network,awusfree1|\ d-team,pbr-d1|\ tama,w06|\ + tplink,re200-v2|\ + tplink,re305-v1|\ tplink,tl-mr3020-v3|\ tplink,tl-wr802n-v4) ucidef_set_interface_lan "eth0" @@ -32,6 +34,7 @@ ramips_setup_interfaces() ucidef_add_switch "switch0" \ "1:lan" "0:wan" "6@eth0" ;; + glinet,microuter-n300|\ glinet,vixmini) ucidef_add_switch "switch0" \ "0:lan" "6@eth0" @@ -40,6 +43,7 @@ ramips_setup_interfaces() hiwifi,hc5861b|\ skylab,skw92a|\ tplink,archer-c20-v4|\ + tplink,archer-c20-v5|\ tplink,archer-c50-v3|\ tplink,archer-c50-v4|\ tplink,tl-mr3420-v5|\ @@ -61,8 +65,7 @@ ramips_setup_interfaces() mercury,mac1200r-v2|\ totolink,lr1200|\ wavlink,wl-wn570ha1|\ - wavlink,wl-wn575a3|\ - xiaomi,miwifi-nano) + wavlink,wl-wn575a3) ucidef_add_switch "switch0" \ "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "6@eth0" ;; @@ -109,6 +112,10 @@ ramips_setup_interfaces() ucidef_add_switch "switch0" \ "4:lan:1" "2:lan:2" "0:wan" "6@eth0" ;; + xiaomi,miwifi-nano) + ucidef_add_switch "switch0" \ + "0:lan:2" "2:lan:1" "4:wan" "6@eth0" + ;; zbtlink,zbt-we1226) ucidef_add_switch "switch0" \ "0:lan:2" "1:lan:1" "4:wan" "6@eth0" @@ -134,7 +141,7 @@ ramips_setup_macs() ;; cudy,wr1000) wan_mac=$(mtd_get_mac_binary factory 0x2e) - label_mac=$(mtd_get_mac_binary factory 0x8) + label_mac=$(mtd_get_mac_binary factory 0x4) ;; duzun,dm06|\ netgear,r6120|\ @@ -171,8 +178,7 @@ ramips_setup_macs() rakwireless,rak633|\ unielec,u7628-01-16m|\ wavlink,wl-wn575a3|\ - wiznet,wizfi630s|\ - xiaomi,miwifi-nano) + wiznet,wizfi630s) wan_mac=$(macaddr_add "$(mtd_get_mac_binary factory 0x28)" 1) ;; skylab,skw92a|\ @@ -189,12 +195,13 @@ ramips_setup_macs() tplink,tl-wr842n-v5) wan_mac=$(macaddr_add "$(mtd_get_mac_binary factory 0xf100)" 1) ;; + tplink,archer-c20-v5|\ tplink,archer-c50-v4) wan_mac=$(macaddr_add "$(mtd_get_mac_binary rom 0xf100)" 1) ;; vocore,vocore2|\ vocore,vocore2-lite) - label_mac=$(mtd_get_mac_binary factory 0x8) + label_mac=$(mtd_get_mac_binary factory 0x4) ;; wavlink,wl-wn570ha1|\ zbtlink,zbt-we1226) diff --git a/target/linux/ramips/mt76x8/base-files/lib/upgrade/platform.sh b/target/linux/ramips/mt76x8/base-files/lib/upgrade/platform.sh index a3de97abf..05de7c1c5 100755 --- a/target/linux/ramips/mt76x8/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/mt76x8/base-files/lib/upgrade/platform.sh @@ -28,7 +28,8 @@ platform_do_upgrade() { } default_do_upgrade "$1" ;; - tplink,archer-c50-v4) + tplink,archer-c50-v4|\ + tplink,archer-c20-v5) MTD_ARGS="-t romfile" default_do_upgrade "$1" ;; diff --git a/target/linux/ramips/rt3883/base-files/etc/board.d/01_leds b/target/linux/ramips/rt3883/base-files/etc/board.d/01_leds index 8502c8f41..e7c2cad3d 100755 --- a/target/linux/ramips/rt3883/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/rt3883/base-files/etc/board.d/01_leds @@ -18,7 +18,7 @@ led_wlan="$(get_dt_led wlan)" case $board in belkin,f9k1109v1) - set_usb_led "$boardname:green:usb1" + ucidef_set_led_usbport "usb" "USB" "$boardname:green:usb1" "usb1-port1" ucidef_set_led_netdev "lan" "lan" "$boardname:blue:wps" "eth0" ;; edimax,br-6475nd)