From 363924db72644d1565005ea088bba09302a551b5 Mon Sep 17 00:00:00 2001 From: Adrian Schmutzler Date: Sun, 27 Sep 2020 19:40:51 +0200 Subject: [PATCH] ramips: remove model name from LED labels Like in the previous patch for ath79 target, this will remove the "devicename" from LED labels in ramips as well. The devicename is removed in DTS files and 01_leds, consolidation of definitions into DTSI files is done where (easily) possible, and migration scripts are updated. For the latter, all existing definitions were actually just devicename migrations anyway. Therefore, those are removed and a common migration file is created in target base-files. This is actually another example of how the devicename removal makes things easier. Signed-off-by: Adrian Schmutzler --- .../etc/uci-defaults/04_led_migration | 8 + .../ramips/dts/mt7620a_aigale_ai-br100.dts | 4 +- .../dts/mt7620a_alfa-network_ac1200rm.dts | 4 +- .../dts/mt7620a_alfa-network_r36m-e4g.dts | 14 +- .../dts/mt7620a_alfa-network_tube-e4g.dts | 10 +- .../linux/ramips/dts/mt7620a_asus_rp-n53.dts | 16 +- .../ramips/dts/mt7620a_asus_rt-ac51u.dts | 36 ---- .../ramips/dts/mt7620a_asus_rt-ac54u.dts | 36 ---- .../ramips/dts/mt7620a_asus_rt-ac5x.dtsi | 33 +++ .../ramips/dts/mt7620a_bdcom_wap2100-sk.dts | 6 +- .../ramips/dts/mt7620a_buffalo_whr-1166d.dts | 14 +- .../ramips/dts/mt7620a_buffalo_whr-300hp2.dts | 14 +- .../ramips/dts/mt7620a_buffalo_whr-600d.dts | 14 +- .../linux/ramips/dts/mt7620a_cameo_810.dtsi | 39 ++++ .../ramips/dts/mt7620a_dlink_dch-m225.dts | 4 +- .../ramips/dts/mt7620a_dlink_dir-510l.dts | 4 +- .../ramips/dts/mt7620a_dlink_dir-810l.dts | 39 ---- .../ramips/dts/mt7620a_dlink_dwr-118-a1.dts | 10 +- .../ramips/dts/mt7620a_dlink_dwr-118-a2.dts | 10 +- .../ramips/dts/mt7620a_dlink_dwr-960.dts | 20 +- .../ramips/dts/mt7620a_dovado_tiny-ac.dts | 4 +- .../dts/mt7620a_edimax_br-6478ac-v2.dts | 8 +- .../ramips/dts/mt7620a_edimax_ew-7476rpc.dts | 36 ---- .../ramips/dts/mt7620a_edimax_ew-7478ac.dts | 36 ---- .../ramips/dts/mt7620a_edimax_ew-7478apc.dts | 8 +- .../ramips/dts/mt7620a_edimax_ew-747x.dtsi | 36 ++++ .../ramips/dts/mt7620a_engenius_esr600.dts | 8 +- .../linux/ramips/dts/mt7620a_fon_fon2601.dts | 8 +- .../dts/mt7620a_head-weblink_hdrm200.dts | 6 +- .../ramips/dts/mt7620a_hiwifi_hc5661.dts | 6 +- .../ramips/dts/mt7620a_hiwifi_hc5761.dts | 8 +- .../ramips/dts/mt7620a_hiwifi_hc5861.dts | 10 +- target/linux/ramips/dts/mt7620a_hnet_c108.dts | 10 +- .../ramips/dts/mt7620a_iodata_wn-ac1167gr.dts | 8 +- .../ramips/dts/mt7620a_iodata_wn-ac733gr3.dts | 8 +- .../ramips/dts/mt7620a_iptime_a1004ns.dts | 4 +- .../ramips/dts/mt7620a_iptime_a104ns.dts | 4 +- .../ramips/dts/mt7620a_kimax_u25awf-h1.dts | 4 +- .../ramips/dts/mt7620a_lava_lr-25g001.dts | 6 +- .../ramips/dts/mt7620a_lb-link_bl-w1200.dts | 2 +- .../ramips/dts/mt7620a_lenovo_newifi-y1.dts | 12 +- .../ramips/dts/mt7620a_lenovo_newifi-y1s.dts | 14 +- .../ramips/dts/mt7620a_linksys_e1700.dts | 4 +- .../ramips/dts/mt7620a_netgear_ex2700.dts | 14 +- .../ramips/dts/mt7620a_netgear_ex3700.dts | 47 ----- .../dts/mt7620a_netgear_ex3x00_ex61xx.dtsi | 47 +++++ .../ramips/dts/mt7620a_netgear_ex6120.dts | 47 ----- .../ramips/dts/mt7620a_netgear_ex6130.dts | 44 ---- .../dts/mt7620a_netgear_wn3000rp-v3.dts | 18 +- .../linux/ramips/dts/mt7620a_netis_wf2770.dts | 2 +- .../ramips/dts/mt7620a_ohyeah_oy-0001.dts | 4 +- .../linux/ramips/dts/mt7620a_phicomm_k2g.dts | 6 +- .../ramips/dts/mt7620a_phicomm_psg1208.dts | 4 +- .../ramips/dts/mt7620a_phicomm_psg1218.dtsi | 27 +++ .../ramips/dts/mt7620a_phicomm_psg1218a.dts | 27 --- .../ramips/dts/mt7620a_phicomm_psg1218b.dts | 27 --- .../ramips/dts/mt7620a_planex_cs-qr10.dts | 2 +- .../ramips/dts/mt7620a_planex_db-wrt01.dts | 2 +- .../ramips/dts/mt7620a_planex_mzk-750dhp.dts | 6 +- .../ramips/dts/mt7620a_planex_mzk-ex300np.dts | 12 +- .../ramips/dts/mt7620a_planex_mzk-ex750np.dts | 14 +- .../ramips/dts/mt7620a_sanlinking_d240.dts | 6 +- .../ramips/dts/mt7620a_sercomm_na930.dts | 8 +- .../dts/mt7620a_tplink_archer-c2-v1.dts | 10 +- .../dts/mt7620a_tplink_archer-c20-v1.dts | 16 +- .../ramips/dts/mt7620a_tplink_archer-c20i.dts | 10 +- .../dts/mt7620a_tplink_archer-c50-v1.dts | 16 +- .../dts/mt7620a_tplink_archer-mr200.dts | 20 +- .../ramips/dts/mt7620a_tplink_re200-v1.dts | 12 +- .../ramips/dts/mt7620a_tplink_re210-v1.dts | 10 +- .../ramips/dts/mt7620a_trendnet_tew-810dr.dts | 39 ---- .../ramips/dts/mt7620a_xiaomi_miwifi-mini.dts | 6 +- target/linux/ramips/dts/mt7620a_youku_yk1.dts | 8 +- .../dts/mt7620a_zbtlink_zbt-ape522ii.dts | 10 +- .../dts/mt7620a_zbtlink_zbt-we1026-5g.dtsi | 6 +- .../dts/mt7620a_zbtlink_zbt-we1026-h.dtsi | 8 +- .../dts/mt7620a_zbtlink_zbt-we826-e.dts | 8 +- .../ramips/dts/mt7620a_zbtlink_zbt-we826.dtsi | 6 +- target/linux/ramips/dts/mt7620a_zte_q7.dts | 4 +- .../dts/mt7620a_zyxel_keenetic-viva.dts | 10 +- .../linux/ramips/dts/mt7620n_asus_rt-n12p.dts | 8 +- .../linux/ramips/dts/mt7620n_asus_rt-n14u.dts | 10 +- .../ramips/dts/mt7620n_buffalo_wmr-300.dts | 6 +- .../ramips/dts/mt7620n_comfast_cf-wr800n.dts | 6 +- .../ramips/dts/mt7620n_dlink_dwr-116-a1.dts | 4 +- .../ramips/dts/mt7620n_dlink_dwr-921-c1.dts | 14 +- .../ramips/dts/mt7620n_dlink_dwr-922-e2.dts | 14 +- .../ramips/dts/mt7620n_elecom_wrh-300cr.dts | 6 +- .../ramips/dts/mt7620n_hootoo_ht-tm05.dts | 4 +- .../linux/ramips/dts/mt7620n_kimax_u35wf.dts | 4 +- .../ramips/dts/mt7620n_kingston_mlw221.dts | 4 +- .../ramips/dts/mt7620n_kingston_mlwg2.dts | 4 +- .../dts/mt7620n_netgear_jwnr2010-v5.dts | 14 +- .../linux/ramips/dts/mt7620n_nexx_wt3020.dtsi | 2 +- .../ramips/dts/mt7620n_ravpower_rp-wd03.dts | 4 +- .../ramips/dts/mt7620n_vonets_var11n-300.dts | 2 +- .../ramips/dts/mt7620n_wrtnode_wrtnode.dts | 2 +- .../ramips/dts/mt7620n_zbtlink_zbt-cpe102.dts | 6 +- .../ramips/dts/mt7620n_zbtlink_zbt-wa05.dts | 6 +- .../ramips/dts/mt7620n_zbtlink_zbt-we2026.dts | 4 +- .../dts/mt7620n_zbtlink_zbt-wr8305rt.dts | 6 +- .../dts/mt7620n_zyxel_keenetic-omni-ii.dts | 8 +- .../dts/mt7620n_zyxel_keenetic-omni.dts | 8 +- target/linux/ramips/dts/mt7621_adslr_g7.dts | 2 +- .../ramips/dts/mt7621_afoundry_ew1200.dts | 4 +- .../dts/mt7621_alfa-network_quad-e4g.dts | 10 +- .../ramips/dts/mt7621_asiarf_ap7621.dtsi | 4 +- .../linux/ramips/dts/mt7621_asus_rt-ac57u.dts | 4 +- .../linux/ramips/dts/mt7621_asus_rt-ac65p.dts | 28 --- .../linux/ramips/dts/mt7621_asus_rt-ac85p.dts | 28 --- .../ramips/dts/mt7621_asus_rt-acx5p.dtsi | 28 +++ .../ramips/dts/mt7621_buffalo_wsr-1166dhp.dts | 16 +- .../dts/mt7621_buffalo_wsr-2533dhpl.dts | 16 +- .../ramips/dts/mt7621_buffalo_wsr-600dhp.dts | 16 +- .../ramips/dts/mt7621_d-team_newifi-d2.dts | 14 +- .../linux/ramips/dts/mt7621_d-team_pbr-m1.dts | 10 +- .../ramips/dts/mt7621_dlink_dir-1960-a1.dts | 43 +--- .../ramips/dts/mt7621_dlink_dir-2660-a1.dts | 53 ++--- .../ramips/dts/mt7621_dlink_dir-860l-b1.dts | 8 +- .../ramips/dts/mt7621_dlink_dir-867-a1.dts | 31 --- .../ramips/dts/mt7621_dlink_dir-878-a1.dts | 31 --- .../ramips/dts/mt7621_dlink_dir-882-a1.dts | 53 ++--- .../ramips/dts/mt7621_dlink_dir-8xx-a1.dtsi | 28 +++ .../ramips/dts/mt7621_dlink_dir-xx60-a1.dtsi | 28 +++ .../linux/ramips/dts/mt7621_edimax_ra21s.dts | 31 --- .../linux/ramips/dts/mt7621_edimax_re23s.dts | 8 +- .../linux/ramips/dts/mt7621_edimax_rg21s.dts | 31 --- .../linux/ramips/dts/mt7621_edimax_rx21s.dtsi | 28 +++ .../dts/mt7621_elecom_wrc-1167ghbk2-s.dts | 12 +- .../ramips/dts/mt7621_elecom_wrc-gs.dtsi | 8 +- .../ramips/dts/mt7621_firefly_firewrt.dts | 2 +- .../ramips/dts/mt7621_gehua_ghl-r-001.dts | 4 +- .../linux/ramips/dts/mt7621_gnubee_gb-pc1.dts | 8 +- .../linux/ramips/dts/mt7621_gnubee_gb-pc2.dts | 12 +- .../linux/ramips/dts/mt7621_hiwifi_hc5962.dts | 4 +- .../ramips/dts/mt7621_iodata_wn-ax1167gr.dts | 4 +- .../ramips/dts/mt7621_iodata_wn-gx300gr.dts | 4 +- .../ramips/dts/mt7621_iodata_wn-xx-xr.dtsi | 4 +- .../ramips/dts/mt7621_iodata_wnpr2600g.dts | 8 +- .../linux/ramips/dts/mt7621_iptime_a6ns-m.dts | 8 +- .../linux/ramips/dts/mt7621_iptime_a8004t.dts | 6 +- .../ramips/dts/mt7621_jcg_jhr-ac876m.dts | 6 +- .../ramips/dts/mt7621_lenovo_newifi-d1.dts | 6 +- .../ramips/dts/mt7621_linksys_ea7300-v1.dts | 46 ---- .../ramips/dts/mt7621_linksys_ea7500-v2.dts | 46 ---- .../ramips/dts/mt7621_linksys_ea7xxx.dtsi | 46 ++++ .../ramips/dts/mt7621_linksys_re6500.dts | 4 +- .../mt7621_mikrotik_routerboard-750gr3.dts | 4 +- .../mt7621_mikrotik_routerboard-760igs.dts | 4 +- .../dts/mt7621_mikrotik_routerboard-m11g.dts | 12 +- .../dts/mt7621_mikrotik_routerboard-m33g.dts | 2 +- target/linux/ramips/dts/mt7621_mtc_wr1201.dts | 8 +- .../ramips/dts/mt7621_netgear_ex6150.dts | 18 +- .../linux/ramips/dts/mt7621_netgear_r6220.dts | 20 -- .../linux/ramips/dts/mt7621_netgear_r6260.dts | 16 -- .../linux/ramips/dts/mt7621_netgear_r6350.dts | 16 -- .../ramips/dts/mt7621_netgear_r6700-v2.dts | 113 +--------- .../linux/ramips/dts/mt7621_netgear_r6800.dts | 117 +---------- .../linux/ramips/dts/mt7621_netgear_r6850.dts | 16 -- .../dts/mt7621_netgear_sercomm_ayx.dtsi | 13 +- .../dts/mt7621_netgear_sercomm_bzv.dtsi | 104 +++++++++ .../dts/mt7621_netgear_sercomm_chj.dtsi | 10 +- .../ramips/dts/mt7621_netgear_wac104.dts | 6 +- .../ramips/dts/mt7621_netgear_wac124.dts | 16 -- .../ramips/dts/mt7621_netgear_wndr3700-v5.dts | 20 -- .../linux/ramips/dts/mt7621_netis_wf2881.dts | 4 +- .../linux/ramips/dts/mt7621_phicomm_k2p.dts | 6 +- .../linux/ramips/dts/mt7621_planex_vr500.dts | 2 +- .../dts/mt7621_samknows_whitebox-v8.dts | 4 +- .../dts/mt7621_storylink_sap-g3200u3.dts | 2 +- .../dts/mt7621_telco-electronics_x1.dts | 18 +- .../ramips/dts/mt7621_thunder_timecloud.dts | 4 +- .../ramips/dts/mt7621_totolink_a7000r.dts | 2 +- .../ramips/dts/mt7621_tplink_re350-v1.dts | 14 +- .../ramips/dts/mt7621_tplink_re500-v1.dts | 55 ----- .../ramips/dts/mt7621_tplink_re650-v1.dts | 55 ----- .../ramips/dts/mt7621_tplink_rexx0-v1.dtsi | 52 +++++ .../ramips/dts/mt7621_ubnt_unifi-nanohd.dts | 4 +- .../ramips/dts/mt7621_unielec_u7621-06.dtsi | 6 +- .../ramips/dts/mt7621_wavlink_wl-wn531a6.dts | 6 +- .../linux/ramips/dts/mt7621_wevo_11acnas.dts | 2 +- .../ramips/dts/mt7621_wevo_w2914ns-v2.dts | 2 +- .../ramips/dts/mt7621_winstars_ws-wn583a6.dts | 8 +- .../dts/mt7621_xiaomi_mi-router-ac2100.dts | 8 +- .../ramips/dts/mt7621_xiaomi_mir3g-v2.dts | 4 +- .../linux/ramips/dts/mt7621_xiaomi_mir3g.dts | 12 +- .../linux/ramips/dts/mt7621_xiaomi_mir3p.dts | 14 +- .../dts/mt7621_xiaomi_redmi-router-ac2100.dts | 8 +- .../linux/ramips/dts/mt7621_xiaoyu_xy-c5.dts | 4 +- .../dts/mt7621_xzwifi_creativebox-v1.dts | 10 +- .../ramips/dts/mt7621_youhua_wr1200js.dts | 6 +- .../linux/ramips/dts/mt7621_youku_yk-l2.dts | 6 +- .../ramips/dts/mt7621_zbtlink_zbt-wg2626.dts | 2 +- .../ramips/dts/mt7621_zbtlink_zbt-wg3526.dtsi | 2 +- .../linux/ramips/dts/mt7621_zio_freezio.dts | 2 +- .../linux/ramips/dts/mt7621_zyxel_wap6805.dts | 6 +- .../dts/mt7628an_alfa-network_awusfree1.dts | 4 +- .../ramips/dts/mt7628an_asus_rt-n10p-v3.dts | 25 --- .../ramips/dts/mt7628an_asus_rt-n11p-b1.dts | 25 --- .../ramips/dts/mt7628an_asus_rt-n12-vp-b1.dts | 25 --- .../ramips/dts/mt7628an_asus_rt-n1x.dtsi | 25 +++ .../dts/mt7628an_buffalo_wcr-1166ds.dts | 16 +- .../linux/ramips/dts/mt7628an_cudy_wr1000.dts | 10 +- .../ramips/dts/mt7628an_d-team_pbr-d1.dts | 4 +- .../dts/mt7628an_glinet_gl-mt300n-v2.dts | 6 +- .../dts/mt7628an_glinet_microuter-n300.dts | 8 - .../ramips/dts/mt7628an_glinet_vixmini.dts | 8 - .../mt7628an_glinet_vixmini_microuter.dtsi | 6 +- .../ramips/dts/mt7628an_hilink_hlk-7628n.dts | 2 +- .../ramips/dts/mt7628an_hiwifi_hc5661a.dts | 6 +- .../ramips/dts/mt7628an_hiwifi_hc5761a.dts | 8 +- .../ramips/dts/mt7628an_hiwifi_hc5861b.dts | 4 +- .../linux/ramips/dts/mt7628an_iptime_a3.dts | 4 +- .../ramips/dts/mt7628an_iptime_a604m.dts | 6 +- .../ramips/dts/mt7628an_jotale_js76x8.dtsi | 4 +- .../mt7628an_mediatek_linkit-smart-7688.dts | 2 +- .../dts/mt7628an_mercury_mac1200r-v2.dts | 2 +- .../ramips/dts/mt7628an_netgear_r6020.dts | 42 ---- .../ramips/dts/mt7628an_netgear_r6080.dts | 39 ---- .../ramips/dts/mt7628an_netgear_r6120.dts | 39 ---- .../ramips/dts/mt7628an_netgear_r6xxx.dtsi | 42 ++++ .../ramips/dts/mt7628an_onion_omega2.dts | 4 - .../ramips/dts/mt7628an_onion_omega2.dtsi | 11 +- .../ramips/dts/mt7628an_onion_omega2p.dts | 4 - .../dts/mt7628an_rakwireless_rak633.dts | 2 +- .../ramips/dts/mt7628an_ravpower_rp-wd009.dts | 10 +- .../ramips/dts/mt7628an_skylab_skw92a.dts | 4 +- target/linux/ramips/dts/mt7628an_tama_w06.dts | 6 +- .../linux/ramips/dts/mt7628an_totolink_a3.dts | 4 +- .../ramips/dts/mt7628an_totolink_lr1200.dts | 18 +- .../dts/mt7628an_tplink_archer-c20-v4.dts | 14 +- .../dts/mt7628an_tplink_archer-c20-v5.dts | 14 +- .../dts/mt7628an_tplink_archer-c50-v3.dts | 14 +- .../dts/mt7628an_tplink_archer-c50-v4.dts | 14 +- .../ramips/dts/mt7628an_tplink_re200-v2.dts | 61 ------ .../ramips/dts/mt7628an_tplink_re200-v3.dts | 61 ------ .../ramips/dts/mt7628an_tplink_re200.dtsi | 58 ++++++ .../ramips/dts/mt7628an_tplink_re220-v2.dts | 61 ------ .../ramips/dts/mt7628an_tplink_re305-v1.dts | 10 +- .../dts/mt7628an_tplink_tl-mr3020-v3.dts | 10 +- .../dts/mt7628an_tplink_tl-mr3420-v5.dts | 14 +- .../dts/mt7628an_tplink_tl-wa801nd-v5.dts | 10 +- .../dts/mt7628an_tplink_tl-wr802n-v4.dts | 2 +- .../dts/mt7628an_tplink_tl-wr840n-v4.dts | 10 +- .../dts/mt7628an_tplink_tl-wr840n-v5.dts | 4 +- .../dts/mt7628an_tplink_tl-wr841n-v13.dts | 18 +- .../dts/mt7628an_tplink_tl-wr841n-v14.dts | 8 +- .../dts/mt7628an_tplink_tl-wr842n-v5.dts | 14 +- .../dts/mt7628an_tplink_tl-wr850n-v2.dts | 10 +- .../dts/mt7628an_tplink_tl-wr902ac-v3.dts | 12 +- .../ramips/dts/mt7628an_unielec_u7628-01.dtsi | 16 +- .../dts/mt7628an_vocore_vocore2-lite.dts | 2 +- .../ramips/dts/mt7628an_vocore_vocore2.dts | 2 +- .../dts/mt7628an_wavlink_wl-wn570ha1.dts | 12 +- .../dts/mt7628an_wavlink_wl-wn575a3.dts | 8 +- .../dts/mt7628an_wavlink_wl-wn577a2.dts | 6 +- .../linux/ramips/dts/mt7628an_widora_neo.dtsi | 2 +- .../ramips/dts/mt7628an_wiznet_wizfi630s.dts | 8 +- .../ramips/dts/mt7628an_wrtnode_wrtnode2p.dts | 2 +- .../ramips/dts/mt7628an_wrtnode_wrtnode2r.dts | 2 +- .../ramips/dts/mt7628an_xiaomi_mir4a-100m.dts | 4 +- .../dts/mt7628an_xiaomi_miwifi-nano.dts | 6 +- .../dts/mt7628an_zbtlink_zbt-we1226.dts | 8 +- .../dts/mt7628an_zyxel_keenetic-extra-ii.dts | 8 +- .../ramips/dts/rt2880_airlink101_ar670w.dts | 4 +- .../ramips/dts/rt2880_airlink101_ar725w.dts | 6 +- .../linux/ramips/dts/rt2880_asus_rt-n15.dts | 2 +- .../ramips/dts/rt2880_belkin_f5d8235-v1.dts | 26 +-- .../dts/rt2880_buffalo_wli-tx4-ag300n.dts | 6 +- .../dts/rt2880_buffalo_wzr-agl300nh.dts | 8 +- .../ramips/dts/rt2880_dlink_dap-1522-a1.dts | 8 +- .../ramips/dts/rt2880_ralink_v11st-fe.dts | 2 +- .../ramips/dts/rt3050_allnet_all0256n.dtsi | 6 +- .../dts/rt3050_alphanetworks_asl26555.dtsi | 16 +- .../dts/rt3050_arcwireless_freestation5.dts | 6 +- .../ramips/dts/rt3050_asus_rt-n10-plus.dts | 2 +- .../linux/ramips/dts/rt3050_asus_wl-330n.dts | 4 +- .../ramips/dts/rt3050_asus_wl-330n3g.dts | 6 +- .../linux/ramips/dts/rt3050_dlink_dcs-930.dts | 6 +- .../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 | 12 +- .../ramips/dts/rt3050_edimax_3g-6200n.dts | 6 +- .../ramips/dts/rt3050_edimax_3g-6200nl.dts | 4 +- .../linux/ramips/dts/rt3050_huawei_d105.dts | 4 +- .../linux/ramips/dts/rt3050_jcg_jhr-n805r.dts | 2 +- .../linux/ramips/dts/rt3050_netcore_nw718.dts | 6 +- .../ramips/dts/rt3050_sparklan_wcr-150gn.dts | 4 +- .../ramips/dts/rt3050_teltonika_rut5xx.dts | 2 +- .../linux/ramips/dts/rt3050_tenda_w150m.dts | 12 +- .../dts/rt3050_trendnet_tew-638apb-v2.dts | 4 +- .../linux/ramips/dts/rt3052_accton_wr6202.dts | 4 +- .../ramips/dts/rt3052_alfa-network_w502u.dts | 4 +- .../linux/ramips/dts/rt3052_argus_atp-52b.dts | 4 +- .../ramips/dts/rt3052_asiarf_awapn2403.dts | 2 +- .../linux/ramips/dts/rt3052_asus_rt-n13u.dts | 4 +- .../ramips/dts/rt3052_aximcom_mr-102n.dts | 6 +- .../ramips/dts/rt3052_aztech_hw550-3g.dts | 8 +- .../ramips/dts/rt3052_belkin_f5d8235-v2.dts | 18 +- .../ramips/dts/rt3052_buffalo_whr-g300n.dts | 6 +- .../ramips/dts/rt3052_dlink_dap-1350.dts | 6 +- .../ramips/dts/rt3052_engenius_esr-9753.dts | 4 +- .../ramips/dts/rt3052_fon_fonera-20n.dts | 6 +- .../ramips/dts/rt3052_hauppauge_broadway.dts | 4 +- .../linux/ramips/dts/rt3052_huawei_hg255d.dts | 12 +- .../linux/ramips/dts/rt3052_jcg_jhr-n825r.dts | 2 +- .../linux/ramips/dts/rt3052_jcg_jhr-n926r.dts | 8 +- .../dts/rt3052_mofinetwork_mofi3500-3gn.dts | 8 +- .../ramips/dts/rt3052_netgear_wnce2001.dts | 8 +- .../linux/ramips/dts/rt3052_nexaira_bc2.dts | 2 +- .../ramips/dts/rt3052_omnima_miniembwifi.dts | 4 +- .../ramips/dts/rt3052_petatel_psr-680w.dts | 2 +- .../ramips/dts/rt3052_planex_mzk-w300nh2.dts | 6 +- .../linux/ramips/dts/rt3052_poray_ip2202.dts | 4 +- .../ramips/dts/rt3052_prolink_pwh2004.dts | 4 +- .../ramips/dts/rt3052_ralink_v22rw-2x2.dts | 4 +- .../ramips/dts/rt3052_sitecom_wl-351.dts | 6 +- .../ramips/dts/rt3052_skyline_sl-r7205.dts | 2 +- .../linux/ramips/dts/rt3052_tenda_3g300m.dts | 12 +- .../ramips/dts/rt3052_tenda_w306r-v2.dts | 4 +- .../dts/rt3052_unbranded_wr512-3gn.dtsi | 10 +- .../dts/rt3052_unbranded_xdx-rn502j.dts | 4 +- .../ramips/dts/rt3052_upvel_ur-326n4g.dts | 10 +- .../ramips/dts/rt3052_upvel_ur-336un.dts | 10 +- .../ramips/dts/rt3052_zyxel_keenetic.dts | 6 +- .../ramips/dts/rt3052_zyxel_nbg-419n.dts | 4 +- .../ramips/dts/rt3352_allnet_all5002.dts | 4 +- .../ramips/dts/rt3352_dlink_dir-615-h1.dts | 10 +- .../ramips/dts/rt3352_dlink_dir-620-d1.dts | 4 +- .../ramips/dts/rt3352_zyxel_nbg-419n-v2.dts | 6 +- .../linux/ramips/dts/rt3662_asus_rt-n56u.dts | 8 +- .../linux/ramips/dts/rt3662_dlink_dir-645.dts | 4 +- .../ramips/dts/rt3662_edimax_br-6475nd.dts | 6 +- target/linux/ramips/dts/rt3662_omnima_hpm.dts | 12 +- .../ramips/dts/rt3662_samsung_cy-swr1100.dts | 6 +- .../ramips/dts/rt3883_belkin_f9k1109v1.dts | 12 +- .../ramips/dts/rt3883_sitecom_wlr-6000.dts | 4 +- .../ramips/dts/rt3883_trendnet_tew-691gr.dts | 2 +- .../ramips/dts/rt3883_trendnet_tew-692gr.dts | 4 +- .../ramips/dts/rt5350_7links_px-4885.dtsi | 4 +- .../ramips/dts/rt5350_airlive_air3gii.dts | 4 +- .../ramips/dts/rt5350_allnet_all5003.dts | 4 +- .../ramips/dts/rt5350_asiarf_awm002-evb.dtsi | 6 +- .../linux/ramips/dts/rt5350_belkin_f7c027.dts | 8 +- .../ramips/dts/rt5350_dlink_dcs-930l-b1.dts | 4 +- .../ramips/dts/rt5350_dlink_dir-300-b7.dts | 4 +- .../ramips/dts/rt5350_dlink_dir-320-b1.dts | 6 +- .../ramips/dts/rt5350_dlink_dir-610-a1.dts | 4 +- .../ramips/dts/rt5350_dlink_dwr-512-b.dts | 12 +- .../linux/ramips/dts/rt5350_hame_mpr-a1.dts | 4 +- .../linux/ramips/dts/rt5350_hame_mpr-a2.dts | 4 +- .../ramips/dts/rt5350_hootoo_ht-tm02.dts | 4 +- .../ramips/dts/rt5350_intenso_memory2move.dts | 4 +- .../ramips/dts/rt5350_omnima_miniembplug.dts | 4 +- .../ramips/dts/rt5350_planex_mzk-dp150n.dts | 2 +- target/linux/ramips/dts/rt5350_poray_m3.dts | 2 +- target/linux/ramips/dts/rt5350_poray_m4.dtsi | 2 +- target/linux/ramips/dts/rt5350_poray_x5.dts | 8 +- target/linux/ramips/dts/rt5350_poray_x8.dts | 2 +- .../linux/ramips/dts/rt5350_tenda_3g150b.dts | 4 +- .../ramips/dts/rt5350_trendnet_tew-714tru.dts | 4 +- .../ramips/dts/rt5350_unbranded_a5-v11.dts | 4 +- .../ramips/dts/rt5350_vocore_vocore.dtsi | 4 +- .../ramips/dts/rt5350_wiznet_wizfi630a.dts | 8 +- .../ramips/dts/rt5350_zorlik_zl5900v2.dts | 4 +- .../dts/rt5350_zyxel_keenetic-lite-b.dts | 4 +- .../dts/rt5350_zyxel_keenetic-start.dts | 4 +- .../mt7620/base-files/etc/board.d/01_leds | 197 +++++++++--------- .../etc/uci-defaults/04_led_migration | 50 ----- .../mt7621/base-files/etc/board.d/01_leds | 80 +++---- .../etc/uci-defaults/04_led_migration | 27 --- .../mt76x8/base-files/etc/board.d/01_leds | 127 ++++++----- .../etc/uci-defaults/04_led_migration | 20 -- .../rt288x/base-files/etc/board.d/01_leds | 4 +- .../rt305x/base-files/etc/board.d/01_leds | 50 ++--- .../etc/uci-defaults/04_led_migration | 17 -- .../rt3883/base-files/etc/board.d/01_leds | 10 +- 378 files changed, 1978 insertions(+), 3076 deletions(-) create mode 100644 target/linux/ramips/base-files/etc/uci-defaults/04_led_migration delete mode 100644 target/linux/ramips/mt7620/base-files/etc/uci-defaults/04_led_migration delete mode 100644 target/linux/ramips/mt7621/base-files/etc/uci-defaults/04_led_migration delete mode 100644 target/linux/ramips/mt76x8/base-files/etc/uci-defaults/04_led_migration delete mode 100644 target/linux/ramips/rt305x/base-files/etc/uci-defaults/04_led_migration diff --git a/target/linux/ramips/base-files/etc/uci-defaults/04_led_migration b/target/linux/ramips/base-files/etc/uci-defaults/04_led_migration new file mode 100644 index 0000000000..161b79dac4 --- /dev/null +++ b/target/linux/ramips/base-files/etc/uci-defaults/04_led_migration @@ -0,0 +1,8 @@ +. /lib/functions.sh +. /lib/functions/migrations.sh + +remove_devicename_leds "rt2800soc-phy0" "rt2800pci-phy0" + +migrations_apply system + +exit 0 diff --git a/target/linux/ramips/dts/mt7620a_aigale_ai-br100.dts b/target/linux/ramips/dts/mt7620a_aigale_ai-br100.dts index 2afaf52fd7..9d0ffd4ae1 100644 --- a/target/linux/ramips/dts/mt7620a_aigale_ai-br100.dts +++ b/target/linux/ramips/dts/mt7620a_aigale_ai-br100.dts @@ -20,12 +20,12 @@ compatible = "gpio-leds"; wan { - label = "ai-br100:blue:wan"; + label = "blue:wan"; gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; }; led_wlan: wlan { - label = "ai-br100:blue:wlan"; + label = "blue:wlan"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_alfa-network_ac1200rm.dts b/target/linux/ramips/dts/mt7620a_alfa-network_ac1200rm.dts index 329d78f481..32bfc2a839 100644 --- a/target/linux/ramips/dts/mt7620a_alfa-network_ac1200rm.dts +++ b/target/linux/ramips/dts/mt7620a_alfa-network_ac1200rm.dts @@ -64,12 +64,12 @@ compatible = "gpio-leds"; wlan2g { - label = "ac1200rm:green:wlan2g"; + label = "green:wlan2g"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; led_wps: wps { - label = "ac1200rm:green:wps"; + label = "green:wps"; gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>; }; }; 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 9bbf266d77..6240ee4a7b 100644 --- a/target/linux/ramips/dts/mt7620a_alfa-network_r36m-e4g.dts +++ b/target/linux/ramips/dts/mt7620a_alfa-network_r36m-e4g.dts @@ -82,40 +82,40 @@ compatible = "gpio-leds"; 4g { - label = "r36m-e4g:orange:4g"; + label = "orange:4g"; gpios = <&gpio1 3 GPIO_ACTIVE_LOW>; }; lan { - label = "r36m-e4g:green:lan"; + label = "green:lan"; gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; }; led_system: system { - label = "r36m-e4g:green:system"; + label = "green:system"; gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; default-state = "keep"; }; sim1 { - label = "r36m-e4g:green:sim1"; + label = "green:sim1"; gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; default-state = "keep"; }; sim2 { - label = "r36m-e4g:green:sim2"; + label = "green:sim2"; gpios = <&gpio2 2 GPIO_ACTIVE_LOW>; default-state = "keep"; }; wan { - label = "r36m-e4g:green:wan"; + label = "green:wan"; gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; }; wlan { - label = "r36m-e4g:orange:wlan"; + label = "orange:wlan"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0radio"; }; 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 eec7d5883e..a09daaba38 100644 --- a/target/linux/ramips/dts/mt7620a_alfa-network_tube-e4g.dts +++ b/target/linux/ramips/dts/mt7620a_alfa-network_tube-e4g.dts @@ -70,29 +70,29 @@ compatible = "gpio-leds"; 4g { - label = "tube-e4g:green:4g"; + label = "green:4g"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; lan { - label = "tube-e4g:blue:lan"; + label = "blue:lan"; gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; }; power: power { - label = "tube-e4g:green:power"; + label = "green:power"; gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; default-state = "keep"; }; sim1 { - label = "tube-e4g:green:sim1"; + label = "green:sim1"; gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; default-state = "keep"; }; sim2 { - label = "tube-e4g:green:sim2"; + label = "green:sim2"; gpios = <&gpio2 2 GPIO_ACTIVE_LOW>; default-state = "keep"; }; diff --git a/target/linux/ramips/dts/mt7620a_asus_rp-n53.dts b/target/linux/ramips/dts/mt7620a_asus_rp-n53.dts index b11980d8ca..f5a0aefe9f 100644 --- a/target/linux/ramips/dts/mt7620a_asus_rp-n53.dts +++ b/target/linux/ramips/dts/mt7620a_asus_rp-n53.dts @@ -41,42 +41,42 @@ compatible = "gpio-leds"; backlight { - label = "rp-n53:white:back"; + label = "white:back"; gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; }; wifi0 { - label = "rp-n53:blue:5g3"; + label = "blue:5g3"; gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; }; wifi1 { - label = "rp-n53:blue:5g2"; + label = "blue:5g2"; gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; }; wifi2 { - label = "rp-n53:blue:5g1"; + label = "blue:5g1"; gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; }; wifi3 { - label = "rp-n53:blue:wifi"; + label = "blue:wifi"; gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; }; wifi4 { - label = "rp-n53:blue:2g1"; + label = "blue:2g1"; gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; }; wifi5 { - label = "rp-n53:blue:2g2"; + label = "blue:2g2"; gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; }; wifi6 { - label = "rp-n53:blue:2g3"; + label = "blue:2g3"; gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_asus_rt-ac51u.dts b/target/linux/ramips/dts/mt7620a_asus_rt-ac51u.dts index d0f126b272..82ace79691 100644 --- a/target/linux/ramips/dts/mt7620a_asus_rt-ac51u.dts +++ b/target/linux/ramips/dts/mt7620a_asus_rt-ac51u.dts @@ -5,42 +5,6 @@ / { compatible = "asus,rt-ac51u", "ralink,mt7620a-soc"; model = "Asus RT-AC51U"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "rt-ac51u:blue:power"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - - usb { - label = "rt-ac51u:blue:usb"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - trigger-sources = <&ohci_port1>, <&ehci_port1>; - linux,default-trigger = "usbport"; - }; - - wifi2g { - label = "rt-ac51u:blue:wifi2g"; - gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy1tpt"; - }; - }; -}; - -&state_default { - gpio { - groups = "i2c", "wled", "uartf"; - function = "gpio"; - }; }; &pcie0 { diff --git a/target/linux/ramips/dts/mt7620a_asus_rt-ac54u.dts b/target/linux/ramips/dts/mt7620a_asus_rt-ac54u.dts index 382c1c37a2..dff667ab40 100644 --- a/target/linux/ramips/dts/mt7620a_asus_rt-ac54u.dts +++ b/target/linux/ramips/dts/mt7620a_asus_rt-ac54u.dts @@ -6,42 +6,6 @@ / { compatible = "asus,rt-ac54u", "ralink,mt7620a-soc"; model = "Asus RT-AC54U"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "rt-ac54u:blue:power"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - - usb { - label = "rt-ac54u:blue:usb"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - trigger-sources = <&ohci_port1>, <&ehci_port1>; - linux,default-trigger = "usbport"; - }; - - wifi2g { - label = "rt-ac54u:blue:wifi2g"; - gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy1tpt"; - }; - }; -}; - -&state_default { - gpio { - groups = "i2c", "wled", "uartf"; - function = "gpio"; - }; }; &pcie0 { diff --git a/target/linux/ramips/dts/mt7620a_asus_rt-ac5x.dtsi b/target/linux/ramips/dts/mt7620a_asus_rt-ac5x.dtsi index adec8a1a6f..423b4edc6b 100644 --- a/target/linux/ramips/dts/mt7620a_asus_rt-ac5x.dtsi +++ b/target/linux/ramips/dts/mt7620a_asus_rt-ac5x.dtsi @@ -6,6 +6,10 @@ / { aliases { label-mac-device = ðernet; + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; }; keys { @@ -23,6 +27,28 @@ linux,code = ; }; }; + + leds { + compatible = "gpio-leds"; + + led_power: power { + label = "blue:power"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + }; + + usb { + label = "blue:usb"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + trigger-sources = <&ohci_port1>, <&ehci_port1>; + linux,default-trigger = "usbport"; + }; + + wifi2g { + label = "blue:wifi2g"; + gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy1tpt"; + }; + }; }; &spi0 { @@ -88,6 +114,13 @@ status = "okay"; }; +&state_default { + gpio { + groups = "i2c", "wled", "uartf"; + function = "gpio"; + }; +}; + ðernet { mtd-mac-address = <&factory 0x28>; diff --git a/target/linux/ramips/dts/mt7620a_bdcom_wap2100-sk.dts b/target/linux/ramips/dts/mt7620a_bdcom_wap2100-sk.dts index c8d67db884..c22d8ce7fe 100644 --- a/target/linux/ramips/dts/mt7620a_bdcom_wap2100-sk.dts +++ b/target/linux/ramips/dts/mt7620a_bdcom_wap2100-sk.dts @@ -23,19 +23,19 @@ compatible = "gpio-leds"; usb { - label = "wap2100-sk:green:usb"; + label = "green:usb"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; led_power: wps { - label = "wap2100-sk:green:wps"; + label = "green:wps"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; wlan2g { - label = "wap2100-sk:green:wlan2g"; + label = "green:wlan2g"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_buffalo_whr-1166d.dts b/target/linux/ramips/dts/mt7620a_buffalo_whr-1166d.dts index 75eaae08f6..5b718eb1d3 100644 --- a/target/linux/ramips/dts/mt7620a_buffalo_whr-1166d.dts +++ b/target/linux/ramips/dts/mt7620a_buffalo_whr-1166d.dts @@ -20,37 +20,37 @@ compatible = "gpio-leds"; power { - label = "whr-1166d:red:power"; + label = "red:power"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; wifi { - label = "whr-1166d:green:wifi"; + label = "green:wifi"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; led_power_green: power2 { - label = "whr-1166d:green:power"; + label = "green:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wifi2 { - label = "whr-1166d:orange:wifi"; + label = "orange:wifi"; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; }; internet { - label = "whr-1166d:green:internet"; + label = "green:internet"; gpios = <&gpio2 17 GPIO_ACTIVE_LOW>; }; router { - label = "whr-1166d:orange:router"; + label = "orange:router"; gpios = <&gpio2 18 GPIO_ACTIVE_LOW>; }; router2 { - label = "whr-1166d:green:router"; + label = "green:router"; gpios = <&gpio2 19 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_buffalo_whr-300hp2.dts b/target/linux/ramips/dts/mt7620a_buffalo_whr-300hp2.dts index 927a150743..84ccce581b 100644 --- a/target/linux/ramips/dts/mt7620a_buffalo_whr-300hp2.dts +++ b/target/linux/ramips/dts/mt7620a_buffalo_whr-300hp2.dts @@ -20,37 +20,37 @@ compatible = "gpio-leds"; power { - label = "whr-300hp2:red:power"; + label = "red:power"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; wifi { - label = "whr-300hp2:green:wifi"; + label = "green:wifi"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; led_power_green: power2 { - label = "whr-300hp2:green:power"; + label = "green:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wifi2 { - label = "whr-300hp2:orange:wifi"; + label = "orange:wifi"; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; }; internet { - label = "whr-300hp2:green:internet"; + label = "green:internet"; gpios = <&gpio2 17 GPIO_ACTIVE_LOW>; }; router { - label = "whr-300hp2:green:router"; + label = "green:router"; gpios = <&gpio2 18 GPIO_ACTIVE_LOW>; }; router2 { - label = "whr-300hp2:orange:router"; + label = "orange:router"; gpios = <&gpio2 19 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_buffalo_whr-600d.dts b/target/linux/ramips/dts/mt7620a_buffalo_whr-600d.dts index fd36f160a4..71918f6807 100644 --- a/target/linux/ramips/dts/mt7620a_buffalo_whr-600d.dts +++ b/target/linux/ramips/dts/mt7620a_buffalo_whr-600d.dts @@ -20,37 +20,37 @@ compatible = "gpio-leds"; power { - label = "whr-600d:red:power"; + label = "red:power"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; wifi { - label = "whr-600d:green:wifi"; + label = "green:wifi"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; led_power_green: power2 { - label = "whr-600d:green:power"; + label = "green:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wifi2 { - label = "whr-600d:orange:wifi"; + label = "orange:wifi"; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; }; internet { - label = "whr-600d:green:internet"; + label = "green:internet"; gpios = <&gpio2 17 GPIO_ACTIVE_LOW>; }; router { - label = "whr-600d:green:router"; + label = "green:router"; gpios = <&gpio2 18 GPIO_ACTIVE_LOW>; }; router2 { - label = "whr-600d:orange:router"; + label = "orange:router"; gpios = <&gpio2 19 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_cameo_810.dtsi b/target/linux/ramips/dts/mt7620a_cameo_810.dtsi index adbb4cf65c..3ec31238b4 100644 --- a/target/linux/ramips/dts/mt7620a_cameo_810.dtsi +++ b/target/linux/ramips/dts/mt7620a_cameo_810.dtsi @@ -6,6 +6,14 @@ #include / { + aliases { + label-mac-device = ðernet; + led-boot = &led_power_green; + led-failsafe = &led_power_green; + led-running = &led_power_green; + led-upgrade = &led_power_green; + }; + keys { compatible = "gpio-keys"; @@ -21,6 +29,30 @@ linux,code = ; }; }; + + leds { + compatible = "gpio-leds"; + + led_power_green: power_green { + label = "green:power"; + gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; + }; + + wan_orange { + label = "orange:wan"; + gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; + }; + + wan_green { + label = "green:wan"; + gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; + }; + + power_orange { + label = "orange:power"; + gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; + }; + }; }; &spi0 { @@ -87,6 +119,13 @@ }; }; +&state_default { + gpio { + groups = "i2c", "uartf", "ephy"; + function = "gpio"; + }; +}; + ðernet { mtd-mac-address = <&factory 0x28>; diff --git a/target/linux/ramips/dts/mt7620a_dlink_dch-m225.dts b/target/linux/ramips/dts/mt7620a_dlink_dch-m225.dts index 1ade27ae54..e27601581a 100644 --- a/target/linux/ramips/dts/mt7620a_dlink_dch-m225.dts +++ b/target/linux/ramips/dts/mt7620a_dlink_dch-m225.dts @@ -36,13 +36,13 @@ compatible = "gpio-leds"; led_power: power { - label = "dch-m225:green:power"; + label = "green:power"; gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; default-state = "on"; }; status { - label = "dch-m225:red:status"; + label = "red:status"; gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_dlink_dir-510l.dts b/target/linux/ramips/dts/mt7620a_dlink_dir-510l.dts index e8a8e65c7d..8f6acfb6e0 100644 --- a/target/linux/ramips/dts/mt7620a_dlink_dir-510l.dts +++ b/target/linux/ramips/dts/mt7620a_dlink_dir-510l.dts @@ -41,12 +41,12 @@ compatible = "gpio-leds"; led_status: status { - label = "dir-510l:green:status"; + label = "green:status"; gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; }; status-red { - label = "dir-510l:red:status"; + label = "red:status"; gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_dlink_dir-810l.dts b/target/linux/ramips/dts/mt7620a_dlink_dir-810l.dts index 9dd9825433..68c00f5a2b 100644 --- a/target/linux/ramips/dts/mt7620a_dlink_dir-810l.dts +++ b/target/linux/ramips/dts/mt7620a_dlink_dir-810l.dts @@ -5,43 +5,4 @@ / { compatible = "dlink,dir-810l", "ralink,mt7620a-soc"; model = "D-Link DIR-810L"; - - aliases { - led-boot = &led_power_green; - led-failsafe = &led_power_green; - led-running = &led_power_green; - led-upgrade = &led_power_green; - label-mac-device = ðernet; - }; - - leds { - compatible = "gpio-leds"; - - led_power_green: power_green { - label = "dir-810l:green:power"; - gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; - }; - - wan_orange { - label = "dir-810l:orange:wan"; - gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; - }; - - wan_green { - label = "dir-810l:green:wan"; - gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; - }; - - power_orange { - label = "dir-810l:orange:power"; - gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; - }; - }; -}; - -&state_default { - gpio { - groups = "i2c", "uartf", "ephy"; - 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 17df95b374..5f483fe1f2 100644 --- a/target/linux/ramips/dts/mt7620a_dlink_dwr-118-a1.dts +++ b/target/linux/ramips/dts/mt7620a_dlink_dwr-118-a1.dts @@ -36,27 +36,27 @@ compatible = "gpio-leds"; wan { - label = "dwr-118-a1:green:wan"; + label = "green:wan"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; led_internet: internet { - label = "dwr-118-a1:green:internet"; + label = "green:internet"; gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; }; lan { - label = "dwr-118-a1:green:lan"; + label = "green:lan"; gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; }; wlan2g { - label = "dwr-118-a1:green:wlan2g"; + label = "green:wlan2g"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; usb { - label = "dwr-118-a1:green:usb"; + label = "green:usb"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; 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 c54c85c420..d64b34af02 100644 --- a/target/linux/ramips/dts/mt7620a_dlink_dwr-118-a2.dts +++ b/target/linux/ramips/dts/mt7620a_dlink_dwr-118-a2.dts @@ -34,27 +34,27 @@ compatible = "gpio-leds"; wan { - label = "dwr-118-a2:green:wan"; + label = "green:wan"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; led_internet: internet { - label = "dwr-118-a2:green:internet"; + label = "green:internet"; gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; }; lan { - label = "dwr-118-a2:green:lan"; + label = "green:lan"; gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; }; wlan2g { - label = "dwr-118-a2:green:wlan2g"; + label = "green:wlan2g"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; usb { - label = "dwr-118-a2:green:usb"; + label = "green:usb"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/mt7620a_dlink_dwr-960.dts b/target/linux/ramips/dts/mt7620a_dlink_dwr-960.dts index ee8a48a08d..d37baf01cf 100644 --- a/target/linux/ramips/dts/mt7620a_dlink_dwr-960.dts +++ b/target/linux/ramips/dts/mt7620a_dlink_dwr-960.dts @@ -37,53 +37,53 @@ compatible = "gpio-leds"; led_status: status { - label = "dwr-960:green:status"; + label = "green:status"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; wan { - label = "dwr-960:green:wan"; + label = "green:wan"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; lan { - label = "dwr-960:green:lan"; + label = "green:lan"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; sms { - label = "dwr-960:green:sms"; + label = "green:sms"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; signal_green { - label = "dwr-960:green:signal"; + label = "green:signal"; gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>; }; signal_red { - label = "dwr-960:red:signal"; + label = "red:signal"; gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>; }; 4g { - label = "dwr-960:green:4g"; + label = "green:4g"; gpios = <&gpio2 2 GPIO_ACTIVE_LOW>; }; 3g { - label = "dwr-960:green:3g"; + label = "green:3g"; gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; }; wlan5g { - label = "dwr-960:green:wlan5g"; + label = "green:wlan5g"; gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; wlan2g { - label = "dwr-960:green:wlan2g"; + label = "green:wlan2g"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1tpt"; }; diff --git a/target/linux/ramips/dts/mt7620a_dovado_tiny-ac.dts b/target/linux/ramips/dts/mt7620a_dovado_tiny-ac.dts index 6c603bd12f..4774f153e0 100644 --- a/target/linux/ramips/dts/mt7620a_dovado_tiny-ac.dts +++ b/target/linux/ramips/dts/mt7620a_dovado_tiny-ac.dts @@ -13,14 +13,14 @@ compatible = "gpio-leds"; usb { - label = "tiny-ac:green:usb"; + label = "green:usb"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; wifi { - label = "tiny-ac:orange:wifi"; + label = "orange:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; 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 f4b3132fb9..4f1196a598 100644 --- a/target/linux/ramips/dts/mt7620a_edimax_br-6478ac-v2.dts +++ b/target/linux/ramips/dts/mt7620a_edimax_br-6478ac-v2.dts @@ -43,22 +43,22 @@ compatible = "gpio-leds"; led_power: power { - label = "br-6478ac-v2:white:power"; + label = "white:power"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; internet { - label = "br-6478ac-v2:blue:internet"; + label = "blue:internet"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; wlan { - label = "br-6478ac-v2:blue:wlan"; + label = "blue:wlan"; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; }; usb { - label = "br-6478ac-v2:blue:usb"; + label = "blue:usb"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/mt7620a_edimax_ew-7476rpc.dts b/target/linux/ramips/dts/mt7620a_edimax_ew-7476rpc.dts index 782263a068..c296593c03 100644 --- a/target/linux/ramips/dts/mt7620a_edimax_ew-7476rpc.dts +++ b/target/linux/ramips/dts/mt7620a_edimax_ew-7476rpc.dts @@ -7,40 +7,4 @@ / { compatible = "edimax,ew-7476rpc", "ralink,mt7620a-soc"; model = "Edimax EW-7476RPC"; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "ew-7476rpc:green:power"; - gpios = <&gpio2 27 GPIO_ACTIVE_LOW>; - }; - - lan { - label = "ew-7476rpc:green:lan"; - gpios = <&gpio2 26 GPIO_ACTIVE_LOW>; - }; - - wlan2g { - label = "ew-7476rpc:blue:wlan2g"; - gpios = <&gpio2 30 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy1radio"; - }; - - wlan5g { - label = "ew-7476rpc:blue:wlan5g"; - gpios = <&gpio2 31 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0radio"; - }; - - wps { - label = "ew-7476rpc:green:wps"; - gpios = <&gpio2 28 GPIO_ACTIVE_LOW>; - }; - - crossband { - label = "ew-7476rpc:green:crossband"; - gpios = <&gpio2 29 GPIO_ACTIVE_LOW>; - }; - }; }; diff --git a/target/linux/ramips/dts/mt7620a_edimax_ew-7478ac.dts b/target/linux/ramips/dts/mt7620a_edimax_ew-7478ac.dts index 37caeba23e..a2dfcea8f2 100644 --- a/target/linux/ramips/dts/mt7620a_edimax_ew-7478ac.dts +++ b/target/linux/ramips/dts/mt7620a_edimax_ew-7478ac.dts @@ -7,40 +7,4 @@ / { compatible = "edimax,ew-7478ac", "ralink,mt7620a-soc"; model = "Edimax EW-7478AC"; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "ew-7478ac:green:power"; - gpios = <&gpio2 27 GPIO_ACTIVE_LOW>; - }; - - lan { - label = "ew-7478ac:green:lan"; - gpios = <&gpio2 26 GPIO_ACTIVE_LOW>; - }; - - wlan2g { - label = "ew-7478ac:blue:wlan2g"; - gpios = <&gpio2 30 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy1radio"; - }; - - wlan5g { - label = "ew-7478ac:blue:wlan5g"; - gpios = <&gpio2 31 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0radio"; - }; - - wps { - label = "ew-7478ac:green:wps"; - gpios = <&gpio2 28 GPIO_ACTIVE_LOW>; - }; - - crossband { - label = "ew-7478ac:green:crossband"; - gpios = <&gpio2 29 GPIO_ACTIVE_LOW>; - }; - }; }; diff --git a/target/linux/ramips/dts/mt7620a_edimax_ew-7478apc.dts b/target/linux/ramips/dts/mt7620a_edimax_ew-7478apc.dts index f5ca7dc61d..37454e9794 100644 --- a/target/linux/ramips/dts/mt7620a_edimax_ew-7478apc.dts +++ b/target/linux/ramips/dts/mt7620a_edimax_ew-7478apc.dts @@ -31,22 +31,22 @@ compatible = "gpio-leds"; led_power: power { - label = "ew-7478apc:white:power"; + label = "white:power"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; internet { - label = "ew-7478apc:blue:internet"; + label = "blue:internet"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; wlan { - label = "ew-7478apc:blue:wlan"; + label = "blue:wlan"; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; }; usb { - label = "ew-7478apc:blue:usb"; + label = "blue:usb"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/mt7620a_edimax_ew-747x.dtsi b/target/linux/ramips/dts/mt7620a_edimax_ew-747x.dtsi index be83db2503..78b481bd2a 100644 --- a/target/linux/ramips/dts/mt7620a_edimax_ew-747x.dtsi +++ b/target/linux/ramips/dts/mt7620a_edimax_ew-747x.dtsi @@ -38,6 +38,42 @@ linux,input-type = ; }; }; + + leds { + compatible = "gpio-leds"; + + led_power: power { + label = "green:power"; + gpios = <&gpio2 27 GPIO_ACTIVE_LOW>; + }; + + lan { + label = "green:lan"; + gpios = <&gpio2 26 GPIO_ACTIVE_LOW>; + }; + + wlan2g { + label = "blue:wlan2g"; + gpios = <&gpio2 30 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy1radio"; + }; + + wlan5g { + label = "blue:wlan5g"; + gpios = <&gpio2 31 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy0radio"; + }; + + wps { + label = "green:wps"; + gpios = <&gpio2 28 GPIO_ACTIVE_LOW>; + }; + + crossband { + label = "green:crossband"; + gpios = <&gpio2 29 GPIO_ACTIVE_LOW>; + }; + }; }; &gpio1 { diff --git a/target/linux/ramips/dts/mt7620a_engenius_esr600.dts b/target/linux/ramips/dts/mt7620a_engenius_esr600.dts index 92d9008c69..eea70eaa60 100644 --- a/target/linux/ramips/dts/mt7620a_engenius_esr600.dts +++ b/target/linux/ramips/dts/mt7620a_engenius_esr600.dts @@ -25,22 +25,22 @@ compatible = "gpio-leds"; led_power: power { - label = "esr600:amber:power"; + label = "amber:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wps2g { - label = "esr600:amber:wps2g"; + label = "amber:wps2g"; gpios = <&gpio2 6 GPIO_ACTIVE_LOW>; }; wlan5g { - label = "esr600:blue:wlan5g"; + label = "blue:wlan5g"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; wlan2g { - label = "esr600:blue:wlan2g"; + label = "blue:wlan2g"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_fon_fon2601.dts b/target/linux/ramips/dts/mt7620a_fon_fon2601.dts index de8ae4d2b0..d5244b624d 100644 --- a/target/linux/ramips/dts/mt7620a_fon_fon2601.dts +++ b/target/linux/ramips/dts/mt7620a_fon_fon2601.dts @@ -21,22 +21,22 @@ compatible = "gpio-leds"; led_power: power_r { - label = "fon2601:red:power"; + label = "red:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; internet_g { - label = "fon2601:green:internet"; + label = "green:internet"; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; }; net_g { - label = "fon2601:green:net"; + label = "green:net"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; wifi_g { - label = "fon2601:green:wifi"; + label = "green:wifi"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_head-weblink_hdrm200.dts b/target/linux/ramips/dts/mt7620a_head-weblink_hdrm200.dts index e52a564213..8873fbf005 100644 --- a/target/linux/ramips/dts/mt7620a_head-weblink_hdrm200.dts +++ b/target/linux/ramips/dts/mt7620a_head-weblink_hdrm200.dts @@ -25,17 +25,17 @@ compatible = "gpio-leds"; rssi { - label = "hdrm200:red:rssi"; + label = "red:rssi"; gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; }; led_system: system { - label = "hdrm200:green:system"; + label = "green:system"; gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>; }; air { - label = "hdrm200:green:wifi"; + label = "green:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_hiwifi_hc5661.dts b/target/linux/ramips/dts/mt7620a_hiwifi_hc5661.dts index 452541137a..bb41d63aa5 100644 --- a/target/linux/ramips/dts/mt7620a_hiwifi_hc5661.dts +++ b/target/linux/ramips/dts/mt7620a_hiwifi_hc5661.dts @@ -17,17 +17,17 @@ compatible = "gpio-leds"; led_system: system { - label = "hc5661:blue:system"; + label = "blue:system"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; internet { - label = "hc5661:blue:internet"; + label = "blue:internet"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; wlan2g { - label = "hc5661:blue:wlan2g"; + label = "blue:wlan2g"; gpios = <&gpio3 0 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 33ef8dd2aa..9f71d23ea2 100644 --- a/target/linux/ramips/dts/mt7620a_hiwifi_hc5761.dts +++ b/target/linux/ramips/dts/mt7620a_hiwifi_hc5761.dts @@ -17,23 +17,23 @@ compatible = "gpio-leds"; led_system: system { - label = "hc5761:blue:system"; + label = "blue:system"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; internet { - label = "hc5761:blue:internet"; + label = "blue:internet"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; wlan2g { - label = "hc5761:blue:wlan2g"; + label = "blue:wlan2g"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1tpt"; }; wlan5g { - label = "hc5761:blue:wlan5g"; + label = "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 fc4b807ffd..9ea2f50340 100644 --- a/target/linux/ramips/dts/mt7620a_hiwifi_hc5861.dts +++ b/target/linux/ramips/dts/mt7620a_hiwifi_hc5861.dts @@ -17,29 +17,29 @@ compatible = "gpio-leds"; led_system: system { - label = "hc5861:blue:system"; + label = "blue:system"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wlan2g { - label = "hc5861:blue:wlan2g"; + label = "blue:wlan2g"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1tpt"; }; internet { - label = "hc5861:blue:internet"; + label = "blue:internet"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; wlan5g { - label = "hc5861:blue:wlan5g"; + label = "blue:wlan5g"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; turbo { - label = "hc5861:blue:turbo"; + label = "blue:turbo"; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_hnet_c108.dts b/target/linux/ramips/dts/mt7620a_hnet_c108.dts index 2c27516427..7bd934add4 100644 --- a/target/linux/ramips/dts/mt7620a_hnet_c108.dts +++ b/target/linux/ramips/dts/mt7620a_hnet_c108.dts @@ -68,27 +68,27 @@ compatible = "gpio-leds"; sdcard { - label = "c108:green:sdcard"; + label = "green:sdcard"; gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; }; modem_green { - label = "c108:green:modem"; + label = "green:modem"; gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; }; modem_red { - label = "c108:red:modem"; + label = "red:modem"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; lan_red { - label = "c108:red:lan"; + label = "red:lan"; gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>; }; led_lan_green: lan_green { - label = "c108:green:lan"; + label = "green:lan"; gpios = <&gpio2 4 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_iodata_wn-ac1167gr.dts b/target/linux/ramips/dts/mt7620a_iodata_wn-ac1167gr.dts index 60a67c6eac..b1b5e407ab 100644 --- a/target/linux/ramips/dts/mt7620a_iodata_wn-ac1167gr.dts +++ b/target/linux/ramips/dts/mt7620a_iodata_wn-ac1167gr.dts @@ -21,23 +21,23 @@ compatible = "gpio-leds"; led_power: power { - label = "wn-ac1167gr:green:power"; + label = "green:power"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; default-state = "on"; }; wlan2g { - label = "wn-ac1167gr:green:wlan2g"; + label = "green:wlan2g"; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; }; notification { - label = "wn-ac1167gr:green:notification"; + label = "green:notification"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; wlan5g { - label = "wn-ac1167gr:green:wlan5g"; + label = "green:wlan5g"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_iodata_wn-ac733gr3.dts b/target/linux/ramips/dts/mt7620a_iodata_wn-ac733gr3.dts index 02f620fbf3..abf626d635 100644 --- a/target/linux/ramips/dts/mt7620a_iodata_wn-ac733gr3.dts +++ b/target/linux/ramips/dts/mt7620a_iodata_wn-ac733gr3.dts @@ -21,23 +21,23 @@ compatible = "gpio-leds"; led_power: power { - label = "wn-ac733gr3:green:power"; + label = "green:power"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; default-state = "on"; }; notification { - label = "wn-ac733gr3:green:notification"; + label = "green:notification"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; wlan2g { - label = "wn-ac733gr3:green:wlan2g"; + label = "green:wlan2g"; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; }; wlan5g { - label = "wn-ac733gr3:green:wlan5g"; + label = "green:wlan5g"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_iptime_a1004ns.dts b/target/linux/ramips/dts/mt7620a_iptime_a1004ns.dts index e1e9050406..443d58fc55 100644 --- a/target/linux/ramips/dts/mt7620a_iptime_a1004ns.dts +++ b/target/linux/ramips/dts/mt7620a_iptime_a1004ns.dts @@ -18,12 +18,12 @@ compatible = "gpio-leds"; led_cpu: cpu { - label = "a1004ns:blue:cpu"; + label = "blue:cpu"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; usb { - label = "a1004ns:blue:usb"; + label = "blue:usb"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/mt7620a_iptime_a104ns.dts b/target/linux/ramips/dts/mt7620a_iptime_a104ns.dts index 28963edadc..a2212079eb 100644 --- a/target/linux/ramips/dts/mt7620a_iptime_a104ns.dts +++ b/target/linux/ramips/dts/mt7620a_iptime_a104ns.dts @@ -18,14 +18,14 @@ compatible = "gpio-leds"; usb { - label = "a104ns:blue:usb"; + label = "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"; + label = "blue:cpu"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_kimax_u25awf-h1.dts b/target/linux/ramips/dts/mt7620a_kimax_u25awf-h1.dts index 4a7d7cd696..ffc9f3ad22 100644 --- a/target/linux/ramips/dts/mt7620a_kimax_u25awf-h1.dts +++ b/target/linux/ramips/dts/mt7620a_kimax_u25awf-h1.dts @@ -30,12 +30,12 @@ compatible = "gpio-leds"; led_wifi: wifi { - label = "u25awf:red:wifi"; + label = "red:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; lan { - label = "u25awf:green:lan"; + label = "green:lan"; gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_lava_lr-25g001.dts b/target/linux/ramips/dts/mt7620a_lava_lr-25g001.dts index b05a7a89b4..e5b28c6a6b 100644 --- a/target/linux/ramips/dts/mt7620a_lava_lr-25g001.dts +++ b/target/linux/ramips/dts/mt7620a_lava_lr-25g001.dts @@ -36,17 +36,17 @@ compatible = "gpio-leds"; led_status: status { - label = "lr-25g001:green:status"; + label = "green:status"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; wifi2g { - label = "lr-25g001:green:wifi2g"; + label = "green:wifi2g"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; wifi5g { - label = "lr-25g001:green:wifi5g"; + label = "green:wifi5g"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_lb-link_bl-w1200.dts b/target/linux/ramips/dts/mt7620a_lb-link_bl-w1200.dts index b0112559de..09df14444f 100644 --- a/target/linux/ramips/dts/mt7620a_lb-link_bl-w1200.dts +++ b/target/linux/ramips/dts/mt7620a_lb-link_bl-w1200.dts @@ -31,7 +31,7 @@ compatible = "gpio-leds"; led_wps: wps { - label = "bl-w1200:green:wps"; + label = "green:wps"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dts b/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dts index 88c747e2d6..056e5b50a9 100644 --- a/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dts +++ b/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dts @@ -18,34 +18,34 @@ compatible = "gpio-leds"; led_power: power { - label = "newifi-y1:blue:power"; + label = "blue:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wlan1 { - label = "newifi-y1:blue:wifi"; + label = "blue:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; wlan2 { - label = "newifi-y1:blue:wifi5g"; + label = "blue:wifi5g"; gpios = <&gpio2 10 GPIO_ACTIVE_LOW>; }; usb { - label = "newifi-y1:blue:usb"; + label = "blue:usb"; gpios = <&gpio2 12 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; lan { - label = "newifi-y1:blue:lan"; + label = "blue:lan"; gpios = <&gpio2 15 GPIO_ACTIVE_LOW>; }; internet { - label = "newifi-y1:blue:internet"; + label = "blue:internet"; gpios = <&gpio2 11 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts b/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts index 60cd501aeb..0b1ec7ac0f 100644 --- a/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts +++ b/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts @@ -39,39 +39,39 @@ compatible = "gpio-leds"; power1 { - label = "newifi-y1s:yellow:power"; + label = "yellow:power"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; led_power_blue: power2 { - label = "newifi-y1s:blue:power"; + label = "blue:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wlan1 { - label = "newifi-y1s:yellow:wifi"; + label = "yellow:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; wlan2 { - label = "newifi-y1s:blue:wifi"; + label = "blue:wifi"; gpios = <&gpio2 10 GPIO_ACTIVE_LOW>; }; usb1 { - label = "newifi-y1s:yellow:usb"; + label = "yellow:usb"; gpios = <&gpio2 13 GPIO_ACTIVE_LOW>; }; usb2 { - label = "newifi-y1s:blue:usb"; + label = "blue:usb"; gpios = <&gpio2 12 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; internet { - label = "newifi-y1s:blue:internet"; + label = "blue:internet"; gpios = <&gpio2 11 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_linksys_e1700.dts b/target/linux/ramips/dts/mt7620a_linksys_e1700.dts index 2eb3033b44..dad85ecc94 100644 --- a/target/linux/ramips/dts/mt7620a_linksys_e1700.dts +++ b/target/linux/ramips/dts/mt7620a_linksys_e1700.dts @@ -46,12 +46,12 @@ compatible = "gpio-leds"; led_power: power { - label = "e1700:green:power"; + label = "green:power"; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; }; wan { - label = "e1700:green:wps"; + label = "green:wps"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_netgear_ex2700.dts b/target/linux/ramips/dts/mt7620a_netgear_ex2700.dts index 857f2ed220..796ef62e28 100644 --- a/target/linux/ramips/dts/mt7620a_netgear_ex2700.dts +++ b/target/linux/ramips/dts/mt7620a_netgear_ex2700.dts @@ -27,38 +27,38 @@ compatible = "gpio-leds"; led_power_green: power_g { - label = "ex2700:green:power"; + label = "green:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; default-state = "on"; }; power_r { - label = "ex2700:red:power"; + label = "red:power"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; device_g { - label = "ex2700:green:device"; + label = "green:device"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; device_r { - label = "ex2700:red:device"; + label = "red:device"; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; }; router_g { - label = "ex2700:green:router"; + label = "green:router"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; router_r { - label = "ex2700:red:router"; + label = "red:router"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; wps { - label = "ex2700:green:wps"; + label = "green:wps"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_netgear_ex3700.dts b/target/linux/ramips/dts/mt7620a_netgear_ex3700.dts index bcfa696977..7c848e8841 100644 --- a/target/linux/ramips/dts/mt7620a_netgear_ex3700.dts +++ b/target/linux/ramips/dts/mt7620a_netgear_ex3700.dts @@ -7,51 +7,4 @@ / { compatible = "netgear,ex3700", "ralink,mt7620a-soc"; model = "Netgear EX3700/EX3800"; - - aliases { - led-boot = &led_power_amber; - led-failsafe = &led_power_amber; - led-running = &led_power_green; - led-upgrade = &led_power_green; - }; - - leds { - compatible = "gpio-leds"; - - led_power_green: power_green { - label = "ex3700:green:power"; - gpios = <&gpio2 23 GPIO_ACTIVE_LOW>; - default-state = "on"; - }; - - led_power_amber: power_amber { - label = "ex3700:amber:power"; - gpios = <&gpio2 28 GPIO_ACTIVE_LOW>; - }; - - router_green { - label = "ex3700:green:router"; - gpios = <&gpio2 25 GPIO_ACTIVE_LOW>; - }; - - router_red { - label = "ex3700:red:router"; - gpios = <&gpio2 24 GPIO_ACTIVE_LOW>; - }; - - device_green { - label = "ex3700:green:device"; - gpios = <&gpio2 20 GPIO_ACTIVE_LOW>; - }; - - device_red { - label = "ex3700:red:device"; - gpios = <&gpio2 21 GPIO_ACTIVE_LOW>; - }; - - wps { - label = "ex3700:green:wps"; - gpios = <&gpio2 27 GPIO_ACTIVE_LOW>; - }; - }; }; diff --git a/target/linux/ramips/dts/mt7620a_netgear_ex3x00_ex61xx.dtsi b/target/linux/ramips/dts/mt7620a_netgear_ex3x00_ex61xx.dtsi index 0272df5ab8..b766543f6c 100644 --- a/target/linux/ramips/dts/mt7620a_netgear_ex3x00_ex61xx.dtsi +++ b/target/linux/ramips/dts/mt7620a_netgear_ex3x00_ex61xx.dtsi @@ -4,6 +4,13 @@ #include "mt7620a.dtsi" / { + aliases { + led-boot = &led_power_amber; + led-failsafe = &led_power_amber; + led-running = &led_power_green; + led-upgrade = &led_power_green; + }; + keys { compatible = "gpio-keys"; @@ -19,6 +26,46 @@ linux,code = ; }; }; + + leds { + compatible = "gpio-leds"; + + led_power_green: power_green { + label = "green:power"; + gpios = <&gpio2 23 GPIO_ACTIVE_LOW>; + default-state = "on"; + }; + + led_power_amber: power_amber { + label = "amber:power"; + gpios = <&gpio2 28 GPIO_ACTIVE_LOW>; + }; + + router_green { + label = "green:router"; + gpios = <&gpio2 25 GPIO_ACTIVE_LOW>; + }; + + router_red { + label = "red:router"; + gpios = <&gpio2 24 GPIO_ACTIVE_LOW>; + }; + + device_green { + label = "green:device"; + gpios = <&gpio2 20 GPIO_ACTIVE_LOW>; + }; + + device_red { + label = "red:device"; + gpios = <&gpio2 21 GPIO_ACTIVE_LOW>; + }; + + wps { + label = "green:wps"; + gpios = <&gpio2 27 GPIO_ACTIVE_LOW>; + }; + }; }; &gpio0 { diff --git a/target/linux/ramips/dts/mt7620a_netgear_ex6120.dts b/target/linux/ramips/dts/mt7620a_netgear_ex6120.dts index 1f8cc1ae47..cd62fba296 100644 --- a/target/linux/ramips/dts/mt7620a_netgear_ex6120.dts +++ b/target/linux/ramips/dts/mt7620a_netgear_ex6120.dts @@ -6,51 +6,4 @@ / { compatible = "netgear,ex6120", "ralink,mt7620a-soc"; model = "Netgear EX6120"; - - aliases { - led-boot = &led_power_amber; - led-failsafe = &led_power_amber; - led-running = &led_power_green; - led-upgrade = &led_power_green; - }; - - leds { - compatible = "gpio-leds"; - - led_power_green: power_green { - label = "ex6120:green:power"; - gpios = <&gpio2 23 GPIO_ACTIVE_LOW>; - default-state = "on"; - }; - - led_power_amber: power_amber { - label = "ex6120:amber:power"; - gpios = <&gpio2 28 GPIO_ACTIVE_LOW>; - }; - - router_green { - label = "ex6120:green:router"; - gpios = <&gpio2 25 GPIO_ACTIVE_LOW>; - }; - - router_red { - label = "ex6120:red:router"; - gpios = <&gpio2 24 GPIO_ACTIVE_LOW>; - }; - - device_green { - label = "ex6120:green:device"; - gpios = <&gpio2 20 GPIO_ACTIVE_LOW>; - }; - - device_red { - label = "ex6120:red:device"; - gpios = <&gpio2 21 GPIO_ACTIVE_LOW>; - }; - - wps { - label = "ex6120:green:wps"; - gpios = <&gpio2 27 GPIO_ACTIVE_LOW>; - }; - }; }; diff --git a/target/linux/ramips/dts/mt7620a_netgear_ex6130.dts b/target/linux/ramips/dts/mt7620a_netgear_ex6130.dts index c9e6b1763f..61bd8353ee 100644 --- a/target/linux/ramips/dts/mt7620a_netgear_ex6130.dts +++ b/target/linux/ramips/dts/mt7620a_netgear_ex6130.dts @@ -9,50 +9,6 @@ model = "Netgear EX6130"; aliases { - led-boot = &led_power_amber; - led-failsafe = &led_power_amber; - led-running = &led_power_green; - led-upgrade = &led_power_green; label-mac-device = ðernet; }; - - leds { - compatible = "gpio-leds"; - - led_power_green: power_green { - label = "ex6130:green:power"; - gpios = <&gpio2 23 GPIO_ACTIVE_LOW>; - default-state = "on"; - }; - - led_power_amber: power_amber { - label = "ex6130:amber:power"; - gpios = <&gpio2 28 GPIO_ACTIVE_LOW>; - }; - - router_green { - label = "ex6130:green:router"; - gpios = <&gpio2 25 GPIO_ACTIVE_LOW>; - }; - - router_red { - label = "ex6130:red:router"; - gpios = <&gpio2 24 GPIO_ACTIVE_LOW>; - }; - - device_green { - label = "ex6130:green:device"; - gpios = <&gpio2 20 GPIO_ACTIVE_LOW>; - }; - - device_red { - label = "ex6130:red:device"; - gpios = <&gpio2 21 GPIO_ACTIVE_LOW>; - }; - - wps { - label = "ex6130:green:wps"; - gpios = <&gpio2 27 GPIO_ACTIVE_LOW>; - }; - }; }; diff --git a/target/linux/ramips/dts/mt7620a_netgear_wn3000rp-v3.dts b/target/linux/ramips/dts/mt7620a_netgear_wn3000rp-v3.dts index 917db865a6..c4c7089f7d 100644 --- a/target/linux/ramips/dts/mt7620a_netgear_wn3000rp-v3.dts +++ b/target/linux/ramips/dts/mt7620a_netgear_wn3000rp-v3.dts @@ -19,48 +19,48 @@ compatible = "gpio-leds"; led_power_green: power_g { - label = "wn3000rp-v3:green:power"; + label = "green:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; default-state = "on"; }; power_r { - label = "wn3000rp-v3:red:power"; + label = "red:power"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; client_g { - label = "wn3000rp-v3:green:client"; + label = "green:client"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; client_r { - label = "wn3000rp-v3:red:client"; + label = "red:client"; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; }; router_g { - label = "wn3000rp-v3:green:router"; + label = "green:router"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; router_r { - label = "wn3000rp-v3:red:router"; + label = "red:router"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; wps { - label = "wn3000rp-v3:green:wps"; + label = "green:wps"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; l_arrow { - label = "wn3000rp-v3:blue:leftarrow"; + label = "blue:leftarrow"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; r_arrow { - label = "wn3000rp-v3:blue:rightarrow"; + label = "blue:rightarrow"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_netis_wf2770.dts b/target/linux/ramips/dts/mt7620a_netis_wf2770.dts index a0e9cfff10..c1840fc537 100644 --- a/target/linux/ramips/dts/mt7620a_netis_wf2770.dts +++ b/target/linux/ramips/dts/mt7620a_netis_wf2770.dts @@ -14,7 +14,7 @@ compatible = "gpio-leds"; wlan { - label = "wf2770:blue:wlan"; + label = "blue:wlan"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; diff --git a/target/linux/ramips/dts/mt7620a_ohyeah_oy-0001.dts b/target/linux/ramips/dts/mt7620a_ohyeah_oy-0001.dts index 9992bb8b01..42f1c2687e 100644 --- a/target/linux/ramips/dts/mt7620a_ohyeah_oy-0001.dts +++ b/target/linux/ramips/dts/mt7620a_ohyeah_oy-0001.dts @@ -24,12 +24,12 @@ compatible = "gpio-leds"; led_power: powerled { - label = "oy-0001:green:power"; + label = "green:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wifiled { - label = "oy-0001:green:wifi"; + label = "green:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_phicomm_k2g.dts b/target/linux/ramips/dts/mt7620a_phicomm_k2g.dts index a878c43054..30dc2f3e9b 100644 --- a/target/linux/ramips/dts/mt7620a_phicomm_k2g.dts +++ b/target/linux/ramips/dts/mt7620a_phicomm_k2g.dts @@ -21,17 +21,17 @@ compatible = "gpio-leds"; led_blue: blue { - label = "k2g:blue:status"; + label = "blue:status"; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; }; yellow { - label = "k2g:yellow:status"; + label = "yellow:status"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; red { - label = "k2g:red:status"; + label = "red:status"; gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_phicomm_psg1208.dts b/target/linux/ramips/dts/mt7620a_phicomm_psg1208.dts index a0c7fe91bc..420c781f80 100644 --- a/target/linux/ramips/dts/mt7620a_phicomm_psg1208.dts +++ b/target/linux/ramips/dts/mt7620a_phicomm_psg1208.dts @@ -20,12 +20,12 @@ compatible = "gpio-leds"; led_wps: wps { - label = "psg1208:white:wps"; + label = "white:wps"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; wlan { - label = "psg1208:white:wlan2g"; + label = "white:wlan2g"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_phicomm_psg1218.dtsi b/target/linux/ramips/dts/mt7620a_phicomm_psg1218.dtsi index f74506ea61..dbfec00f81 100644 --- a/target/linux/ramips/dts/mt7620a_phicomm_psg1218.dtsi +++ b/target/linux/ramips/dts/mt7620a_phicomm_psg1218.dtsi @@ -6,6 +6,13 @@ / { compatible = "phicomm,psg1218", "ralink,mt7620a-soc"; + aliases { + led-boot = &led_blue; + led-failsafe = &led_blue; + led-running = &led_blue; + led-upgrade = &led_blue; + }; + keys { compatible = "gpio-keys"; @@ -15,6 +22,26 @@ linux,code = ; }; }; + + leds { + compatible = "gpio-leds"; + + led_blue: blue { + label = "blue:status"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + default-state = "on"; + }; + + yellow { + label = "yellow:status"; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + }; + + red { + label = "red:status"; + gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; + }; + }; }; &gpio0 { diff --git a/target/linux/ramips/dts/mt7620a_phicomm_psg1218a.dts b/target/linux/ramips/dts/mt7620a_phicomm_psg1218a.dts index 71cf56c554..16da142f5a 100644 --- a/target/linux/ramips/dts/mt7620a_phicomm_psg1218a.dts +++ b/target/linux/ramips/dts/mt7620a_phicomm_psg1218a.dts @@ -5,33 +5,6 @@ / { compatible = "phicomm,psg1218a", "phicomm,psg1218", "ralink,mt7620a-soc"; model = "Phicomm PSG1218 rev.A"; - - aliases { - led-boot = &led_blue; - led-failsafe = &led_blue; - led-running = &led_blue; - led-upgrade = &led_blue; - }; - - leds { - compatible = "gpio-leds"; - - led_blue: blue { - label = "psg1218a:blue:status"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - default-state = "on"; - }; - - yellow { - label = "psg1218a:yellow:status"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - }; - - red { - label = "psg1218a:red:status"; - gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; - }; - }; }; &state_default { diff --git a/target/linux/ramips/dts/mt7620a_phicomm_psg1218b.dts b/target/linux/ramips/dts/mt7620a_phicomm_psg1218b.dts index f003df6859..374d0634dd 100644 --- a/target/linux/ramips/dts/mt7620a_phicomm_psg1218b.dts +++ b/target/linux/ramips/dts/mt7620a_phicomm_psg1218b.dts @@ -5,33 +5,6 @@ / { compatible = "phicomm,psg1218b", "phicomm,psg1218", "ralink,mt7620a-soc"; model = "Phicomm PSG1218 rev.B"; - - aliases { - led-boot = &led_blue; - led-failsafe = &led_blue; - led-running = &led_blue; - led-upgrade = &led_blue; - }; - - leds { - compatible = "gpio-leds"; - - led_blue: blue { - label = "psg1218b:blue:status"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - default-state = "on"; - }; - - yellow { - label = "psg1218b:yellow:status"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - }; - - red { - label = "psg1218b:red:status"; - gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; - }; - }; }; &state_default { diff --git a/target/linux/ramips/dts/mt7620a_planex_cs-qr10.dts b/target/linux/ramips/dts/mt7620a_planex_cs-qr10.dts index 77a48e8ec1..c361632bf4 100644 --- a/target/linux/ramips/dts/mt7620a_planex_cs-qr10.dts +++ b/target/linux/ramips/dts/mt7620a_planex_cs-qr10.dts @@ -20,7 +20,7 @@ compatible = "gpio-leds"; led_power: power { - label = "cs-qr10:red:power"; + label = "red:power"; gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_planex_db-wrt01.dts b/target/linux/ramips/dts/mt7620a_planex_db-wrt01.dts index 29b235d24c..62dd1d47a2 100644 --- a/target/linux/ramips/dts/mt7620a_planex_db-wrt01.dts +++ b/target/linux/ramips/dts/mt7620a_planex_db-wrt01.dts @@ -20,7 +20,7 @@ compatible = "gpio-leds"; led_power: power { - label = "db-wrt01:orange:power"; + label = "orange:power"; gpios = <&gpio1 1 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_planex_mzk-750dhp.dts b/target/linux/ramips/dts/mt7620a_planex_mzk-750dhp.dts index 87a6f29944..0f1830cd66 100644 --- a/target/linux/ramips/dts/mt7620a_planex_mzk-750dhp.dts +++ b/target/linux/ramips/dts/mt7620a_planex_mzk-750dhp.dts @@ -20,17 +20,17 @@ compatible = "gpio-leds"; wps { - label = "mzk-750dhp:green:wps"; + label = "green:wps"; gpios = <&gpio2 15 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "mzk-750dhp:green:power"; + label = "green:power"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; wlan5g { - label = "mzk-750dhp:green:wlan5g"; + label = "green:wlan5g"; gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_planex_mzk-ex300np.dts b/target/linux/ramips/dts/mt7620a_planex_mzk-ex300np.dts index 05478f5960..a8c7e2a728 100644 --- a/target/linux/ramips/dts/mt7620a_planex_mzk-ex300np.dts +++ b/target/linux/ramips/dts/mt7620a_planex_mzk-ex300np.dts @@ -20,32 +20,32 @@ compatible = "gpio-leds"; wifi { - label = "mzk-ex300np:green:wifi"; + label = "green:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; led_wps: wps { - label = "mzk-ex300np:green:wps"; + label = "green:wps"; gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; }; rep { - label = "mzk-ex300np:blue:rep"; + label = "blue:rep"; gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; }; wifi1 { - label = "mzk-ex300np:blue:wifi1"; + label = "blue:wifi1"; gpios = <&gpio1 1 GPIO_ACTIVE_LOW>; }; wifi2 { - label = "mzk-ex300np:blue:wifi2"; + label = "blue:wifi2"; gpios = <&gpio1 2 GPIO_ACTIVE_LOW>; }; wifi3 { - label = "mzk-ex300np:blue:wifi3"; + label = "blue:wifi3"; gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_planex_mzk-ex750np.dts b/target/linux/ramips/dts/mt7620a_planex_mzk-ex750np.dts index a5e44cff0b..ad8e7160ff 100644 --- a/target/linux/ramips/dts/mt7620a_planex_mzk-ex750np.dts +++ b/target/linux/ramips/dts/mt7620a_planex_mzk-ex750np.dts @@ -20,37 +20,37 @@ compatible = "gpio-leds"; led_power: power { - label = "mzk-ex750np:red:power"; + label = "red:power"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; wifi { - label = "mzk-ex750np:red:wifi"; + label = "red:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; wps { - label = "mzk-ex750np:green:wps"; + label = "green:wps"; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; }; rep { - label = "mzk-ex750np:blue:rep"; + label = "blue:rep"; gpios = <&gpio2 16 GPIO_ACTIVE_LOW>; }; wifi1 { - label = "mzk-ex750np:blue:wifi1"; + label = "blue:wifi1"; gpios = <&gpio2 19 GPIO_ACTIVE_LOW>; }; wifi2 { - label = "mzk-ex750np:blue:wifi2"; + label = "blue:wifi2"; gpios = <&gpio2 18 GPIO_ACTIVE_LOW>; }; wifi3 { - label = "mzk-ex750np:blue:wifi3"; + label = "blue:wifi3"; gpios = <&gpio2 17 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_sanlinking_d240.dts b/target/linux/ramips/dts/mt7620a_sanlinking_d240.dts index 9a9201b6ae..5974611f97 100644 --- a/target/linux/ramips/dts/mt7620a_sanlinking_d240.dts +++ b/target/linux/ramips/dts/mt7620a_sanlinking_d240.dts @@ -74,19 +74,19 @@ compatible = "gpio-leds"; led_power: power { - label = "d240:blue:power"; + label = "blue:power"; gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>; }; usb { - label = "d240:blue:usb"; + label = "blue:usb"; gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; air { - label = "d240:blue:wifi"; + label = "blue:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_sercomm_na930.dts b/target/linux/ramips/dts/mt7620a_sercomm_na930.dts index e90f5a440b..306618e6ae 100644 --- a/target/linux/ramips/dts/mt7620a_sercomm_na930.dts +++ b/target/linux/ramips/dts/mt7620a_sercomm_na930.dts @@ -80,24 +80,24 @@ compatible = "gpio-leds"; zwave { - label = "na930:blue:zwave"; + label = "blue:zwave"; gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; }; status { - label = "na930:blue:status"; + label = "blue:status"; gpios = <&gpio2 26 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; service { - label = "na930:blue:service"; + label = "blue:service"; gpios = <&gpio2 28 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "na930:blue:power"; + label = "blue:power"; gpios = <&gpio2 29 GPIO_ACTIVE_LOW>; }; }; 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 75ddc5fb5d..184988e733 100644 --- a/target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts +++ b/target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts @@ -24,29 +24,29 @@ compatible = "gpio-leds"; lan { - label = "archer-c2-v1:green:lan"; + label = "green:lan"; gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; }; usb { - label = "archer-c2-v1:green:usb"; + label = "green:usb"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; led_wps: wps { - label = "archer-c2-v1:green:wps"; + label = "green:wps"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; wan { - label = "archer-c2-v1:green:wan"; + label = "green:wan"; gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; }; wlan { - label = "archer-c2-v1:green:wlan"; + label = "green:wlan"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1tpt"; }; 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 1d8f3316ad..e4512c52eb 100644 --- a/target/linux/ramips/dts/mt7620a_tplink_archer-c20-v1.dts +++ b/target/linux/ramips/dts/mt7620a_tplink_archer-c20-v1.dts @@ -17,47 +17,47 @@ compatible = "gpio-leds"; lan { - label = "archer-c20-v1:blue:lan"; + label = "blue:lan"; gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "archer-c20-v1:blue:power"; + label = "blue:power"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; default-state = "keep"; }; usb { - label = "archer-c20-v1:blue:usb"; + label = "blue:usb"; gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; wan { - label = "archer-c20-v1:blue:wan"; + label = "blue:wan"; gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>; }; wan_orange { - label = "archer-c20-v1:orange:wan"; + label = "orange:wan"; gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; }; wlan5g { - label = "archer-c20-v1:blue:wlan5g"; + label = "blue:wlan5g"; gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; wlan2g { - label = "archer-c20-v1:blue:wlan2g"; + label = "blue:wlan2g"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1tpt"; }; wps { - label = "archer-c20-v1:blue:wps"; + label = "blue:wps"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_tplink_archer-c20i.dts b/target/linux/ramips/dts/mt7620a_tplink_archer-c20i.dts index b1cde57d77..05d137b09c 100644 --- a/target/linux/ramips/dts/mt7620a_tplink_archer-c20i.dts +++ b/target/linux/ramips/dts/mt7620a_tplink_archer-c20i.dts @@ -18,29 +18,29 @@ compatible = "gpio-leds"; lan { - label = "archer-c20i:blue:lan"; + label = "blue:lan"; gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; }; usb { - label = "archer-c20i:blue:usb"; + label = "blue:usb"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; led_wps: wps { - label = "archer-c20i:blue:wps"; + label = "blue:wps"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; wan { - label = "archer-c20i:blue:wan"; + label = "blue:wan"; gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; }; wlan { - label = "archer-c20i:blue:wlan"; + label = "blue:wlan"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1tpt"; }; 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 eb5d867a19..757bbe253a 100644 --- a/target/linux/ramips/dts/mt7620a_tplink_archer-c50-v1.dts +++ b/target/linux/ramips/dts/mt7620a_tplink_archer-c50-v1.dts @@ -17,47 +17,47 @@ compatible = "gpio-leds"; lan { - label = "archer-c50-v1:green:lan"; + label = "green:lan"; gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "archer-c50-v1:green:power"; + label = "green:power"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; default-state = "on"; }; usb { - label = "archer-c50-v1:green:usb"; + label = "green:usb"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; wan { - label = "archer-c50-v1:green:wan"; + label = "green:wan"; gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; }; wan_orange { - label = "archer-c50-v1:orange:wan"; + label = "orange:wan"; gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; }; wlan5g { - label = "archer-c50-v1:green:wlan5g"; + label = "green:wlan5g"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; wlan2g { - label = "archer-c50-v1:green:wlan2g"; + label = "green:wlan2g"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1tpt"; }; wps { - label = "archer-c50-v1:green:wps"; + label = "green:wps"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_tplink_archer-mr200.dts b/target/linux/ramips/dts/mt7620a_tplink_archer-mr200.dts index 0c0f4bb8e9..4bea73c490 100644 --- a/target/linux/ramips/dts/mt7620a_tplink_archer-mr200.dts +++ b/target/linux/ramips/dts/mt7620a_tplink_archer-mr200.dts @@ -24,52 +24,52 @@ compatible = "gpio-leds"; lan { - label = "archer-mr200:white:lan"; + label = "white:lan"; gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; }; wan { - label = "archer-mr200:white:wan"; + label = "white:wan"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "archer-mr200:white:power"; + label = "white:power"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; 4g { - label = "archer-mr200:white:4g"; + label = "white:4g"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; wps { - label = "archer-mr200:white:wps"; + label = "white:wps"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; signal1 { - label = "archer-mr200:white:signal1"; + label = "white:signal1"; gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; }; signal2 { - label = "archer-mr200:white:signal2"; + label = "white:signal2"; gpios = <&gpio2 2 GPIO_ACTIVE_LOW>; }; signal3 { - label = "archer-mr200:white:signal3"; + label = "white:signal3"; gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; }; signal4 { - label = "archer-mr200:white:signal4"; + label = "white:signal4"; gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; }; wlan { - label = "archer-mr200:white:wlan"; + label = "white:wlan"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1tpt"; }; diff --git a/target/linux/ramips/dts/mt7620a_tplink_re200-v1.dts b/target/linux/ramips/dts/mt7620a_tplink_re200-v1.dts index b6e5518f53..4d858f76e2 100644 --- a/target/linux/ramips/dts/mt7620a_tplink_re200-v1.dts +++ b/target/linux/ramips/dts/mt7620a_tplink_re200-v1.dts @@ -18,32 +18,32 @@ compatible = "gpio-leds"; led_power: power { - label = "re200-v1:green:power"; + label = "green:power"; gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; }; lan { - label = "re200-v1:green:lan"; + label = "green:lan"; gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; }; wlan { - label = "re200-v1:green:wlan"; + label = "green:wlan"; gpios = <&gpio1 3 GPIO_ACTIVE_LOW>; }; qss { - label = "re200-v1:green:qss"; + label = "green:qss"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; wlan2g_red { - label = "re200-v1:red:wlan2g"; + label = "red:wlan2g"; gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; }; wlan2g_green { - label = "re200-v1:green:wlan2g"; + label = "green:wlan2g"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1tpt"; }; diff --git a/target/linux/ramips/dts/mt7620a_tplink_re210-v1.dts b/target/linux/ramips/dts/mt7620a_tplink_re210-v1.dts index a1fa3330d7..77da8cc6e4 100644 --- a/target/linux/ramips/dts/mt7620a_tplink_re210-v1.dts +++ b/target/linux/ramips/dts/mt7620a_tplink_re210-v1.dts @@ -18,28 +18,28 @@ compatible = "gpio-leds"; led_power: power { - label = "re210-v1:green:power"; + label = "green:power"; gpios = <&gpio1 3 GPIO_ACTIVE_LOW>; }; rssi_high { - label = "re210-v1:green:rssi-high"; + label = "green:rssi-high"; gpios = <&gpio1 1 GPIO_ACTIVE_LOW>; }; rssi_low { - label = "re210-v1:red:rssi-low"; + label = "red:rssi-low"; gpios = <&gpio1 2 GPIO_ACTIVE_LOW>; }; wlan2g { - label = "re210-v1:green:wlan2g"; + label = "green:wlan2g"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1tpt"; }; wlan5g { - label = "re210-v1:green:wlan5g"; + label = "green:wlan5g"; gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; diff --git a/target/linux/ramips/dts/mt7620a_trendnet_tew-810dr.dts b/target/linux/ramips/dts/mt7620a_trendnet_tew-810dr.dts index 7437cde073..c5bf93b3db 100644 --- a/target/linux/ramips/dts/mt7620a_trendnet_tew-810dr.dts +++ b/target/linux/ramips/dts/mt7620a_trendnet_tew-810dr.dts @@ -6,43 +6,4 @@ / { compatible = "trendnet,tew-810dr", "ralink,mt7620a-soc"; model = "TRENDnet TEW-810DR"; - - aliases { - led-boot = &led_power_green; - led-failsafe = &led_power_green; - led-running = &led_power_green; - led-upgrade = &led_power_green; - label-mac-device = ðernet; - }; - - leds { - compatible = "gpio-leds"; - - led_power_green: power_green { - label = "tew-810dr:green:power"; - gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; - }; - - wan_orange { - label = "tew-810dr:orange:wan"; - gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; - }; - - wan_green { - label = "tew-810dr:green:wan"; - gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; - }; - - power_orange { - label = "tew-810dr:orange:power"; - gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; - }; - }; -}; - -&state_default { - gpio { - groups = "i2c", "uartf", "ephy"; - function = "gpio"; - }; }; diff --git a/target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts b/target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts index f3340b9f5e..3854b3a560 100644 --- a/target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts +++ b/target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts @@ -25,18 +25,18 @@ compatible = "gpio-leds"; led_blue: blue { - label = "miwifi-mini:blue:status"; + label = "blue:status"; gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; default-state = "on"; }; yellow { - label = "miwifi-mini:yellow:status"; + label = "yellow:status"; gpios = <&gpio1 2 GPIO_ACTIVE_LOW>; }; red { - label = "miwifi-mini:red:status"; + label = "red:status"; gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_youku_yk1.dts b/target/linux/ramips/dts/mt7620a_youku_yk1.dts index f14b70d407..56c5af9df5 100644 --- a/target/linux/ramips/dts/mt7620a_youku_yk1.dts +++ b/target/linux/ramips/dts/mt7620a_youku_yk1.dts @@ -20,24 +20,24 @@ compatible = "gpio-leds"; wan { - label = "yk1:blue:wan"; + label = "blue:wan"; gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; }; air { - label = "yk1:blue:air"; + label = "blue:air"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; usb { - label = "yk1:blue:usb"; + label = "blue:usb"; gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; led_power: power { - label = "yk1:blue:power"; + label = "blue:power"; gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-ape522ii.dts b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-ape522ii.dts index 53d98cf35a..68fd8bb83a 100644 --- a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-ape522ii.dts +++ b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-ape522ii.dts @@ -17,27 +17,27 @@ compatible = "gpio-leds"; sys1 { - label = "zbt-ape522ii:green:sys1"; + label = "green:sys1"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; sys2 { - label = "zbt-ape522ii:green:sys2"; + label = "green:sys2"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; sys3 { - label = "zbt-ape522ii:green:sys3"; + label = "green:sys3"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; sys4 { - label = "zbt-ape522ii:green:sys4"; + label = "green:sys4"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; wlan2g4 { - label = "zbt-ape522ii:green:wlan2g4"; + label = "green:wlan2g4"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we1026-5g.dtsi b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we1026-5g.dtsi index b594cab2c3..4991897ca4 100644 --- a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we1026-5g.dtsi +++ b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we1026-5g.dtsi @@ -10,19 +10,19 @@ compatible = "gpio-leds"; lan { - label = "we1026-5g:green:lan"; + label = "green:lan"; gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; }; usb { - label = "we1026-5g:green:usb"; + label = "green:usb"; gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; wifi { - label = "we1026-5g:green:wifi"; + label = "green:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we1026-h.dtsi b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we1026-h.dtsi index f8f9bc754a..09f0ba773c 100644 --- a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we1026-h.dtsi +++ b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we1026-h.dtsi @@ -10,22 +10,22 @@ compatible = "gpio-leds"; usb { - label = "we1026-h:green:usb"; + label = "green:usb"; gpios = <&gpio2 2 GPIO_ACTIVE_LOW>; }; lan { - label = "we1026-h:green:lan"; + label = "green:lan"; gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; }; wan { - label = "we1026-h:green:wan"; + label = "green:wan"; gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; }; wifi { - label = "we1026-h:green:wifi"; + label = "green:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; 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 40df9424a9..7fccc8744a 100644 --- a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we826-e.dts +++ b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we826-e.dts @@ -13,22 +13,22 @@ compatible = "gpio-leds"; led_power: gsm { - label = "zbt-we826-e:blue:gsm"; + label = "blue:gsm"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; signal { - label = "zbt-we826-e:green:signal"; + label = "green:signal"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; sim { - label = "zbt-we826-e:red:sim"; + label = "red:sim"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; air { - label = "zbt-we826-e:red:wifi"; + label = "red:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we826.dtsi b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we826.dtsi index 0e3d689b4f..3e612badc3 100644 --- a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we826.dtsi +++ b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we826.dtsi @@ -21,19 +21,19 @@ compatible = "gpio-leds"; led_power: power { - label = "zbt-we826:green:power"; + label = "green:power"; gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>; }; usb { - label = "zbt-we826:green:usb"; + label = "green:usb"; gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; air { - label = "zbt-we826:green:wifi"; + label = "green:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_zte_q7.dts b/target/linux/ramips/dts/mt7620a_zte_q7.dts index 6933a86f60..4edfc76d79 100644 --- a/target/linux/ramips/dts/mt7620a_zte_q7.dts +++ b/target/linux/ramips/dts/mt7620a_zte_q7.dts @@ -20,12 +20,12 @@ compatible = "gpio-leds"; statred { - label = "zte-q7:red:status"; + label = "red:status"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; led_status_blue: statblue { - label = "zte-q7:blue:status"; + label = "blue:status"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_zyxel_keenetic-viva.dts b/target/linux/ramips/dts/mt7620a_zyxel_keenetic-viva.dts index 4d4e5878eb..42666e710d 100644 --- a/target/linux/ramips/dts/mt7620a_zyxel_keenetic-viva.dts +++ b/target/linux/ramips/dts/mt7620a_zyxel_keenetic-viva.dts @@ -20,29 +20,29 @@ compatible = "gpio-leds"; wan { - label = "keenetic-viva:green:wan"; + label = "green:wan"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; usb { - label = "keenetic-viva:green:usb"; + label = "green:usb"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; power_alert { - label = "keenetic-viva:red:power"; + label = "red:power"; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; }; wifi { - label = "keenetic-viva:green:wifi"; + label = "green:wifi"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; led_power_green: power { - label = "keenetic-viva:green:power"; + label = "green:power"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620n_asus_rt-n12p.dts b/target/linux/ramips/dts/mt7620n_asus_rt-n12p.dts index 64f32ac5d4..afc1273eb7 100644 --- a/target/linux/ramips/dts/mt7620n_asus_rt-n12p.dts +++ b/target/linux/ramips/dts/mt7620n_asus_rt-n12p.dts @@ -24,22 +24,22 @@ compatible = "gpio-leds"; wan { - label = "rt-n12p:green:wan"; + label = "green:wan"; gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; }; lan { - label = "rt-n12p:green:lan"; + label = "green:lan"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "rt-n12p:green:power"; + label = "green:power"; gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; }; air { - label = "rt-n12p:green:air"; + label = "green:air"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620n_asus_rt-n14u.dts b/target/linux/ramips/dts/mt7620n_asus_rt-n14u.dts index 76f728ea65..8a2e5d7326 100644 --- a/target/linux/ramips/dts/mt7620n_asus_rt-n14u.dts +++ b/target/linux/ramips/dts/mt7620n_asus_rt-n14u.dts @@ -20,29 +20,29 @@ compatible = "gpio-leds"; wan { - label = "rt-n14u:blue:wan"; + label = "blue:wan"; gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; }; lan { - label = "rt-n14u:blue:lan"; + label = "blue:lan"; gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; }; usb { - label = "rt-n14u:blue:usb"; + label = "blue:usb"; gpios = <&gpio2 2 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; led_power: power { - label = "rt-n14u:blue:power"; + label = "blue:power"; gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; }; air { - label = "rt-n14u:blue:air"; + label = "blue:air"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620n_buffalo_wmr-300.dts b/target/linux/ramips/dts/mt7620n_buffalo_wmr-300.dts index f84dda3bf8..a954c2ed6e 100644 --- a/target/linux/ramips/dts/mt7620n_buffalo_wmr-300.dts +++ b/target/linux/ramips/dts/mt7620n_buffalo_wmr-300.dts @@ -20,17 +20,17 @@ compatible = "gpio-leds"; aoss1 { - label = "wmr-300:red:aoss"; + label = "red:aoss"; gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; }; aoss2 { - label = "wmr-300:green:aoss"; + label = "green:aoss"; gpios = <&gpio2 2 GPIO_ACTIVE_LOW>; }; led_status: status { - label = "wmr-300:green:status"; + label = "green:status"; gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620n_comfast_cf-wr800n.dts b/target/linux/ramips/dts/mt7620n_comfast_cf-wr800n.dts index 4da9f1a66d..a64f6377de 100644 --- a/target/linux/ramips/dts/mt7620n_comfast_cf-wr800n.dts +++ b/target/linux/ramips/dts/mt7620n_comfast_cf-wr800n.dts @@ -24,17 +24,17 @@ compatible = "gpio-leds"; ethernet { - label = "cf-wr800n:white:ethernet"; + label = "white:ethernet"; gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; }; wifi { - label = "cf-wr800n:white:wifi"; + label = "white:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; led_wps: wps { - label = "cf-wr800n:white:wps"; + label = "white:wps"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; }; 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 3f75c763f7..dc65412dc9 100644 --- a/target/linux/ramips/dts/mt7620n_dlink_dwr-116-a1.dts +++ b/target/linux/ramips/dts/mt7620n_dlink_dwr-116-a1.dts @@ -36,12 +36,12 @@ compatible = "gpio-leds"; led_status: status { - label = "dwr-116-a1:green:status"; + label = "green:status"; gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; }; wifi { - label = "dwr-116-a1:green:wifi"; + label = "green:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; 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 9103857f7a..58ff3a798b 100644 --- a/target/linux/ramips/dts/mt7620n_dlink_dwr-921-c1.dts +++ b/target/linux/ramips/dts/mt7620n_dlink_dwr-921-c1.dts @@ -34,37 +34,37 @@ compatible = "gpio-leds"; sms { - label = "dwr-921-c1:green:sms"; + label = "green:sms"; gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; }; lan { - label = "dwr-921-c1:green:lan"; + label = "green:lan"; gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; }; led_sstrenghg: sstrengthg { - label = "dwr-921-c1:green:sigstrength"; + label = "green:sigstrength"; gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; }; sstrengthr { - label = "dwr-921-c1:red:sigstrength"; + label = "red:sigstrength"; gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; }; 4g { - label = "dwr-921-c1:green:4g"; + label = "green:4g"; gpios = <&gpio2 2 GPIO_ACTIVE_LOW>; }; 3g { - label = "dwr-921-c1:green:3g"; + label = "green:3g"; gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; }; wifi { - label = "dwr-921-c1:green:wifi"; + label = "green:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; 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 61ef68c025..fbfc44f848 100644 --- a/target/linux/ramips/dts/mt7620n_dlink_dwr-922-e2.dts +++ b/target/linux/ramips/dts/mt7620n_dlink_dwr-922-e2.dts @@ -36,37 +36,37 @@ led-boot = &sstrengthg; sms { - label = "dwr-922-e2:green:sms"; + label = "green:sms"; gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; }; lan { - label = "dwr-922-e2:green:lan"; + label = "green:lan"; gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; }; sstrengthg: sstrengthg { - label = "dwr-922-e2:green:sigstrength"; + label = "green:sigstrength"; gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; }; sstrengthr { - label = "dwr-922-e2:red:sigstrength"; + label = "red:sigstrength"; gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; }; 4g { - label = "dwr-922-e2:green:4g"; + label = "green:4g"; gpios = <&gpio2 2 GPIO_ACTIVE_LOW>; }; 3g { - label = "dwr-922-e2:green:3g"; + label = "green:3g"; gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; }; wifi { - label = "dwr-922-e2:green:wifi"; + label = "green:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620n_elecom_wrh-300cr.dts b/target/linux/ramips/dts/mt7620n_elecom_wrh-300cr.dts index 5a75e5ab96..45667f7d4f 100644 --- a/target/linux/ramips/dts/mt7620n_elecom_wrh-300cr.dts +++ b/target/linux/ramips/dts/mt7620n_elecom_wrh-300cr.dts @@ -20,17 +20,17 @@ compatible = "gpio-leds"; led_wps: wps { - label = "wrh-300cr:green:wps"; + label = "green:wps"; gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; }; ethernet { - label = "wrh-300cr:green:ethernet"; + label = "green:ethernet"; gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; }; wlan { - label = "wrh-300cr:green:wlan"; + label = "green:wlan"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620n_hootoo_ht-tm05.dts b/target/linux/ramips/dts/mt7620n_hootoo_ht-tm05.dts index ce19ef79c2..213eb86b7d 100644 --- a/target/linux/ramips/dts/mt7620n_hootoo_ht-tm05.dts +++ b/target/linux/ramips/dts/mt7620n_hootoo_ht-tm05.dts @@ -18,13 +18,13 @@ compatible = "gpio-leds"; led_power: power { - label = "ht-tm05:blue:power"; + label = "blue:power"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; default-state = "on"; }; wifi { - label = "ht-tm05:green:wifi"; + label = "green:wifi"; gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>; linux,default-trigger = "phy0tpt"; }; diff --git a/target/linux/ramips/dts/mt7620n_kimax_u35wf.dts b/target/linux/ramips/dts/mt7620n_kimax_u35wf.dts index ff63790522..a9081fa973 100644 --- a/target/linux/ramips/dts/mt7620n_kimax_u35wf.dts +++ b/target/linux/ramips/dts/mt7620n_kimax_u35wf.dts @@ -30,12 +30,12 @@ compatible = "gpio-leds"; led_wifi: wifi { - label = "u35wf:blue:wifi"; + label = "blue:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; lan { - label = "u35wf:green:eth"; + label = "green:eth"; gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620n_kingston_mlw221.dts b/target/linux/ramips/dts/mt7620n_kingston_mlw221.dts index fbc751fb48..09e50eba2f 100644 --- a/target/linux/ramips/dts/mt7620n_kingston_mlw221.dts +++ b/target/linux/ramips/dts/mt7620n_kingston_mlw221.dts @@ -20,12 +20,12 @@ compatible = "gpio-leds"; led_system: system { - label = "mlw221:blue:system"; + label = "blue:system"; gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; }; wifi { - label = "mlw221:blue:wifi"; + label = "blue:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620n_kingston_mlwg2.dts b/target/linux/ramips/dts/mt7620n_kingston_mlwg2.dts index a4bc5c71bc..9da1e1f3ae 100644 --- a/target/linux/ramips/dts/mt7620n_kingston_mlwg2.dts +++ b/target/linux/ramips/dts/mt7620n_kingston_mlwg2.dts @@ -20,12 +20,12 @@ compatible = "gpio-leds"; led_system: system { - label = "mlwg2:blue:system"; + label = "blue:system"; gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; }; wifi { - label = "mlwg2:blue:wifi"; + label = "blue:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620n_netgear_jwnr2010-v5.dts b/target/linux/ramips/dts/mt7620n_netgear_jwnr2010-v5.dts index fb84c00203..2313ce449d 100644 --- a/target/linux/ramips/dts/mt7620n_netgear_jwnr2010-v5.dts +++ b/target/linux/ramips/dts/mt7620n_netgear_jwnr2010-v5.dts @@ -19,38 +19,38 @@ compatible = "gpio-leds"; led_power: power { - label = "jwnr2010-v5:green:power"; + label = "green:power"; gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; }; wan { - label = "jwnr2010-v5:green:wan"; + label = "green:wan"; gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>; }; wlan { - label = "jwnr2010-v5:green:wlan"; + label = "green:wlan"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0radio"; }; lan1 { - label = "jwnr2010-v5:green:lan1"; + label = "green:lan1"; gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; }; lan2 { - label = "jwnr2010-v5:green:lan2"; + label = "green:lan2"; gpios = <&gpio2 2 GPIO_ACTIVE_LOW>; }; lan3 { - label = "jwnr2010-v5:green:lan3"; + label = "green:lan3"; gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; }; lan4 { - label = "jwnr2010-v5:green:lan4"; + label = "green:lan4"; gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620n_nexx_wt3020.dtsi b/target/linux/ramips/dts/mt7620n_nexx_wt3020.dtsi index 9762472355..0a724c048b 100644 --- a/target/linux/ramips/dts/mt7620n_nexx_wt3020.dtsi +++ b/target/linux/ramips/dts/mt7620n_nexx_wt3020.dtsi @@ -28,7 +28,7 @@ compatible = "gpio-leds"; led_power: power { - label = "wt3020:blue:power"; + label = "blue:power"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620n_ravpower_rp-wd03.dts b/target/linux/ramips/dts/mt7620n_ravpower_rp-wd03.dts index 305ac0bf20..cea4103973 100644 --- a/target/linux/ramips/dts/mt7620n_ravpower_rp-wd03.dts +++ b/target/linux/ramips/dts/mt7620n_ravpower_rp-wd03.dts @@ -17,12 +17,12 @@ compatible = "gpio-leds"; wifi_green { - label = "rp-wd03:green:wifi"; + label = "green:wifi"; gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>; }; led_wifi_blue: wifi_blue { - label = "rp-wd03:blue:wifi"; + label = "blue:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/mt7620n_vonets_var11n-300.dts b/target/linux/ramips/dts/mt7620n_vonets_var11n-300.dts index 135e048fca..9308f1b4d5 100644 --- a/target/linux/ramips/dts/mt7620n_vonets_var11n-300.dts +++ b/target/linux/ramips/dts/mt7620n_vonets_var11n-300.dts @@ -20,7 +20,7 @@ compatible = "gpio-leds"; led_system: system { - label = "var11n-300:blue:system"; + label = "blue:system"; gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/mt7620n_wrtnode_wrtnode.dts b/target/linux/ramips/dts/mt7620n_wrtnode_wrtnode.dts index 35dc933d99..b0f99d1f74 100644 --- a/target/linux/ramips/dts/mt7620n_wrtnode_wrtnode.dts +++ b/target/linux/ramips/dts/mt7620n_wrtnode_wrtnode.dts @@ -19,7 +19,7 @@ compatible = "gpio-leds"; led_indicator: indicator { - label = "wrtnode:blue:indicator"; + label = "blue:indicator"; gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-cpe102.dts b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-cpe102.dts index eff3842a3e..feb5f34b8f 100644 --- a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-cpe102.dts +++ b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-cpe102.dts @@ -22,17 +22,17 @@ compatible = "gpio-leds"; led_4g_0: 4g-0 { - label = "zbt-cpe102:green:4g-0"; + label = "green:4g-0"; gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; }; 4g-1 { - label = "zbt-cpe102:green:4g-1"; + label = "green:4g-1"; gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; }; 4g-2 { - label = "zbt-cpe102:green:4g-2"; + label = "green:4g-2"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-wa05.dts b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-wa05.dts index 7a111ffac5..81d4f40c81 100644 --- a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-wa05.dts +++ b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-wa05.dts @@ -24,19 +24,19 @@ compatible = "gpio-leds"; led_power: power { - label = "zbt-wa05:blue:power"; + label = "blue:power"; gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; }; usb { - label = "zbt-wa05:blue:usb"; + label = "blue:usb"; gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; air { - label = "zbt-wa05:blue:air"; + label = "blue:air"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-we2026.dts b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-we2026.dts index 5f6925bb88..dba764df9d 100644 --- a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-we2026.dts +++ b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-we2026.dts @@ -24,12 +24,12 @@ compatible = "gpio-leds"; led_power: power { - label = "zbt-we2026:red:power"; + label = "red:power"; gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; }; wlan { - label = "zbt-we2026:green:wlan"; + label = "green:wlan"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-wr8305rt.dts b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-wr8305rt.dts index 675b42671b..66627d3aed 100644 --- a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-wr8305rt.dts +++ b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-wr8305rt.dts @@ -20,19 +20,19 @@ compatible = "gpio-leds"; led_sys: sys { - label = "zbt-wr8305rt:green:sys"; + label = "green:sys"; gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; }; lan { - label = "zbt-wr8305rt:green:usb"; + label = "green:usb"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; wifi { - label = "zbt-wr8305rt:green:wifi"; + label = "green:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; 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 00af10b0c7..b7a12d5bee 100644 --- a/target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni-ii.dts +++ b/target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni-ii.dts @@ -20,24 +20,24 @@ compatible = "gpio-leds"; wan { - label = "keenetic-omni-ii:green:wan"; + label = "green:wan"; gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; }; usb { - label = "keenetic-omni-ii:green:usb"; + label = "green:usb"; gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; wifi { - label = "keenetic-omni-ii:green:wifi"; + label = "green:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "keenetic-omni-ii:green:power"; + label = "green:power"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni.dts b/target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni.dts index cbeabf4ec8..7e54a8cc7f 100644 --- a/target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni.dts +++ b/target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni.dts @@ -20,24 +20,24 @@ compatible = "gpio-leds"; wan { - label = "keenetic-omni:green:wan"; + label = "green:wan"; gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; }; usb { - label = "keenetic-omni:green:usb"; + label = "green:usb"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; wifi { - label = "keenetic-omni:green:wifi"; + label = "green:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "keenetic-omni:green:power"; + label = "green:power"; gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_adslr_g7.dts b/target/linux/ramips/dts/mt7621_adslr_g7.dts index b6af1155c5..f1e352ac55 100644 --- a/target/linux/ramips/dts/mt7621_adslr_g7.dts +++ b/target/linux/ramips/dts/mt7621_adslr_g7.dts @@ -22,7 +22,7 @@ compatible = "gpio-leds"; led_sys: sys { - label = "g7:blue:sys"; + label = "blue:sys"; gpios = <&gpio 7 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_afoundry_ew1200.dts b/target/linux/ramips/dts/mt7621_afoundry_ew1200.dts index 661c7d89de..a79b4c7fee 100644 --- a/target/linux/ramips/dts/mt7621_afoundry_ew1200.dts +++ b/target/linux/ramips/dts/mt7621_afoundry_ew1200.dts @@ -30,12 +30,12 @@ compatible = "gpio-leds"; led_run: run { - label = "ew1200:green:run"; + label = "green:run"; gpios = <&gpio 5 GPIO_ACTIVE_HIGH>; }; usb { - label = "ew1200:green:usb"; + label = "green:usb"; gpios = <&gpio 4 GPIO_ACTIVE_LOW>; trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>; linux,default-trigger = "usbport"; 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 6ac9e337fc..d22c6ca6ee 100644 --- a/target/linux/ramips/dts/mt7621_alfa-network_quad-e4g.dts +++ b/target/linux/ramips/dts/mt7621_alfa-network_quad-e4g.dts @@ -113,28 +113,28 @@ compatible = "gpio-leds"; led_system: system { - label = "quad-e4g:red:system"; + label = "red:system"; gpios = <&gpio 13 GPIO_ACTIVE_LOW>; default-state = "keep"; }; m2 { - label = "quad-e4g:orange:m2"; + label = "orange:m2"; gpios = <&gpio 33 GPIO_ACTIVE_LOW>; }; minipcie0 { - label = "quad-e4g:orange:minipcie0"; + label = "orange:minipcie0"; gpios = <&gpio 26 GPIO_ACTIVE_LOW>; }; minipcie1 { - label = "quad-e4g:orange:minipcie1"; + label = "orange:minipcie1"; gpios = <&gpio 27 GPIO_ACTIVE_LOW>; }; minipcie2 { - label = "quad-e4g:orange:minipcie2"; + label = "orange:minipcie2"; gpios = <&gpio 28 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_asiarf_ap7621.dtsi b/target/linux/ramips/dts/mt7621_asiarf_ap7621.dtsi index bc54d14083..b011c7ae2a 100644 --- a/target/linux/ramips/dts/mt7621_asiarf_ap7621.dtsi +++ b/target/linux/ramips/dts/mt7621_asiarf_ap7621.dtsi @@ -20,12 +20,12 @@ compatible = "gpio-leds"; wlan1 { - label = "ap7621-001:orange:wlan1"; + label = "orange:wlan1"; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; wlan0 { - label = "ap7621-001:orange:wlan0"; + label = "orange:wlan0"; gpios = <&gpio 12 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_asus_rt-ac57u.dts b/target/linux/ramips/dts/mt7621_asus_rt-ac57u.dts index aba7ceda51..41e91a74c4 100644 --- a/target/linux/ramips/dts/mt7621_asus_rt-ac57u.dts +++ b/target/linux/ramips/dts/mt7621_asus_rt-ac57u.dts @@ -21,12 +21,12 @@ compatible = "gpio-leds"; led_power: power { - label = "rt-ac57u:blue:power"; + label = "blue:power"; gpios = <&gpio 48 GPIO_ACTIVE_LOW>; }; usb { - label = "rt-ac57u:blue:usb"; + label = "blue:usb"; gpios = <&gpio 47 GPIO_ACTIVE_LOW>; trigger-sources = <&ehci_port2>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/mt7621_asus_rt-ac65p.dts b/target/linux/ramips/dts/mt7621_asus_rt-ac65p.dts index eaa82012c2..07a714a840 100644 --- a/target/linux/ramips/dts/mt7621_asus_rt-ac65p.dts +++ b/target/linux/ramips/dts/mt7621_asus_rt-ac65p.dts @@ -6,32 +6,4 @@ / { compatible = "asus,rt-ac65p", "mediatek,mt7621-soc"; model = "ASUS RT-AC65P"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "rt-ac65p:blue:power"; - gpios = <&gpio 4 GPIO_ACTIVE_LOW>; - }; - - wlan5g { - label = "rt-ac65p:blue:wlan5g"; - gpios = <&gpio 8 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy1radio"; - }; - - wlan2g { - label = "rt-ac65p:blue:wlan2g"; - gpios = <&gpio 10 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0radio"; - }; - }; }; diff --git a/target/linux/ramips/dts/mt7621_asus_rt-ac85p.dts b/target/linux/ramips/dts/mt7621_asus_rt-ac85p.dts index 28928b1d4c..add33bf2d1 100644 --- a/target/linux/ramips/dts/mt7621_asus_rt-ac85p.dts +++ b/target/linux/ramips/dts/mt7621_asus_rt-ac85p.dts @@ -6,32 +6,4 @@ / { compatible = "asus,rt-ac85p", "mediatek,mt7621-soc"; model = "ASUS RT-AC85P"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "rt-ac85p:blue:power"; - gpios = <&gpio 4 GPIO_ACTIVE_LOW>; - }; - - wlan5g { - label = "rt-ac85p:blue:wlan5g"; - gpios = <&gpio 8 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy1radio"; - }; - - wlan2g { - label = "rt-ac85p:blue:wlan2g"; - gpios = <&gpio 10 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0radio"; - }; - }; }; diff --git a/target/linux/ramips/dts/mt7621_asus_rt-acx5p.dtsi b/target/linux/ramips/dts/mt7621_asus_rt-acx5p.dtsi index f31e74b051..b5e8655cb9 100644 --- a/target/linux/ramips/dts/mt7621_asus_rt-acx5p.dtsi +++ b/target/linux/ramips/dts/mt7621_asus_rt-acx5p.dtsi @@ -6,6 +6,13 @@ #include / { + aliases { + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; + }; + keys { compatible = "gpio-keys"; @@ -21,6 +28,27 @@ linux,code = ; }; }; + + leds { + compatible = "gpio-leds"; + + led_power: power { + label = "blue:power"; + gpios = <&gpio 4 GPIO_ACTIVE_LOW>; + }; + + wlan5g { + label = "blue:wlan5g"; + gpios = <&gpio 8 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy1radio"; + }; + + wlan2g { + label = "blue:wlan2g"; + gpios = <&gpio 10 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy0radio"; + }; + }; }; &i2c { diff --git a/target/linux/ramips/dts/mt7621_buffalo_wsr-1166dhp.dts b/target/linux/ramips/dts/mt7621_buffalo_wsr-1166dhp.dts index 9c82327e34..1e21d51d9b 100644 --- a/target/linux/ramips/dts/mt7621_buffalo_wsr-1166dhp.dts +++ b/target/linux/ramips/dts/mt7621_buffalo_wsr-1166dhp.dts @@ -20,42 +20,42 @@ compatible = "gpio-leds"; internet_g { - label = "wsr-1166:green:internet"; + label = "green:internet"; gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; router_g { - label = "wsr-1166:green:router"; + label = "green:router"; gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; router_o { - label = "wsr-1166:orange:router"; + label = "orange:router"; gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; internet_o { - label = "wsr-1166:orange:internet"; + label = "orange:internet"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; wifi_o { - label = "wsr-1166:orange:wifi"; + label = "orange:wifi"; gpios = <&gpio 45 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "wsr-1166:green:power"; + label = "green:power"; gpios = <&gpio 46 GPIO_ACTIVE_LOW>; }; diag { - label = "wsr-1166:orange:diag"; + label = "orange:diag"; gpios = <&gpio 47 GPIO_ACTIVE_LOW>; }; wifi_g { - label = "wsr-1166:green:wifi"; + label = "green:wifi"; gpios = <&gpio 48 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_buffalo_wsr-2533dhpl.dts b/target/linux/ramips/dts/mt7621_buffalo_wsr-2533dhpl.dts index 570a8d8c2b..dd83988dfe 100644 --- a/target/linux/ramips/dts/mt7621_buffalo_wsr-2533dhpl.dts +++ b/target/linux/ramips/dts/mt7621_buffalo_wsr-2533dhpl.dts @@ -22,42 +22,42 @@ compatible = "gpio-leds"; internet_green { - label = "wsr-2533dhpl:green:internet"; + label = "green:internet"; gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; router_green { - label = "wsr-2533dhpl:green:router"; + label = "green:router"; gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; router_amber { - label = "wsr-2533dhpl:amber:router"; + label = "amber:router"; gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; internet_amber { - label = "wsr-2533dhpl:amber:internet"; + label = "amber:internet"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; wireless_amber { - label = "wsr-2533dhpl:amber:wireless"; + label = "amber:wireless"; gpios = <&gpio 45 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "wsr-2533dhpl:green:power"; + label = "green:power"; gpios = <&gpio 46 GPIO_ACTIVE_LOW>; }; led_diag: diag { - label = "wsr-2533dhpl:amber:diag"; + label = "amber:diag"; gpios = <&gpio 47 GPIO_ACTIVE_LOW>; }; wireless_green { - label = "wsr-2533dhpl:green:wireless"; + label = "green:wireless"; gpios = <&gpio 48 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_buffalo_wsr-600dhp.dts b/target/linux/ramips/dts/mt7621_buffalo_wsr-600dhp.dts index eb42edc952..cfed2d4ed0 100644 --- a/target/linux/ramips/dts/mt7621_buffalo_wsr-600dhp.dts +++ b/target/linux/ramips/dts/mt7621_buffalo_wsr-600dhp.dts @@ -20,42 +20,42 @@ compatible = "gpio-leds"; led_power: power { - label = "wsr-600:green:power"; + label = "green:power"; gpios = <&gpio 12 GPIO_ACTIVE_LOW>; }; wifi_o { - label = "wsr-600:orange:wifi"; + label = "orange:wifi"; gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; diag { - label = "wsr-600:orange:diag"; + label = "orange:diag"; gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; wifi_g { - label = "wsr-600:green:wifi"; + label = "green:wifi"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; router_o { - label = "wsr-600:orange:router"; + label = "orange:router"; gpios = <&gpio 45 GPIO_ACTIVE_LOW>; }; router_g { - label = "wsr-600:green:router"; + label = "green:router"; gpios = <&gpio 46 GPIO_ACTIVE_LOW>; }; internet_o { - label = "wsr-600:orange:internet"; + label = "orange:internet"; gpios = <&gpio 47 GPIO_ACTIVE_LOW>; }; internet_g { - label = "wsr-600:green:internet"; + label = "green:internet"; gpios = <&gpio 48 GPIO_ACTIVE_LOW>; }; }; 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 855dfe68d3..4b57face5f 100644 --- a/target/linux/ramips/dts/mt7621_d-team_newifi-d2.dts +++ b/target/linux/ramips/dts/mt7621_d-team_newifi-d2.dts @@ -25,37 +25,37 @@ compatible = "gpio-leds"; power-amber { - label = "newifi-d2:amber:power"; + label = "amber:power"; gpios = <&gpio 6 GPIO_ACTIVE_LOW>; }; led_power_blue: power-blue { - label = "newifi-d2:blue:power"; + label = "blue:power"; gpios = <&gpio 15 GPIO_ACTIVE_LOW>; }; internet-amber { - label = "newifi-d2:amber:internet"; + label = "amber:internet"; gpios = <&gpio 4 GPIO_ACTIVE_LOW>; }; internet-blue { - label = "newifi-d2:blue:internet"; + label = "blue:internet"; gpios = <&gpio 13 GPIO_ACTIVE_LOW>; }; wlan2g { - label = "newifi-d2:blue:wlan2g"; + label = "blue:wlan2g"; gpios = <&gpio 14 GPIO_ACTIVE_LOW>; }; wlan5g { - label = "newifi-d2:blue:wlan5g"; + label = "blue:wlan5g"; gpios = <&gpio 16 GPIO_ACTIVE_LOW>; }; usb { - label = "newifi-d2:blue:usb"; + label = "blue:usb"; gpios = <&gpio 10 GPIO_ACTIVE_LOW>; trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>; linux,default-trigger = "usbport"; 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 beaa380818..61ecf474fb 100644 --- a/target/linux/ramips/dts/mt7621_d-team_pbr-m1.dts +++ b/target/linux/ramips/dts/mt7621_d-team_pbr-m1.dts @@ -24,28 +24,28 @@ compatible = "gpio-leds"; power { - label = "pbr-m1:blue:power"; + label = "blue:power"; gpios = <&gpio 31 GPIO_ACTIVE_LOW>; default-state = "on"; }; led_sys: sys { - label = "pbr-m1:blue:sys"; + label = "blue:sys"; gpios = <&gpio 32 GPIO_ACTIVE_LOW>; }; internet { - label = "pbr-m1:blue:internet"; + label = "blue:internet"; gpios = <&gpio 29 GPIO_ACTIVE_LOW>; }; wlan2g { - label = "pbr-m1:blue:wlan2g"; + label = "blue:wlan2g"; gpios = <&gpio 33 GPIO_ACTIVE_LOW>; }; wlan5g { - label = "pbr-m1:blue:wlan5g"; + label = "blue:wlan5g"; gpios = <&gpio 28 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_dlink_dir-1960-a1.dts b/target/linux/ramips/dts/mt7621_dlink_dir-1960-a1.dts index ed8b188994..5a992ac867 100644 --- a/target/linux/ramips/dts/mt7621_dlink_dir-1960-a1.dts +++ b/target/linux/ramips/dts/mt7621_dlink_dir-1960-a1.dts @@ -6,43 +6,14 @@ / { compatible = "dlink,dir-1960-a1", "mediatek,mt7621-soc"; model = "D-Link DIR-1960 A1"; +}; - aliases { - led-boot = &led_power_orange; - led-failsafe = &led_power_white; - led-running = &led_power_white; - led-upgrade = &led_net_orange; - }; - - leds { - compatible = "gpio-leds"; - - led_power_orange: power_orange { - label = "dir-1960-a1:orange:power"; - gpios = <&gpio 8 GPIO_ACTIVE_LOW>; - }; - - led_power_white: power_white { - label = "dir-1960-a1:white:power"; - gpios = <&gpio 16 GPIO_ACTIVE_LOW>; - }; - - led_net_orange: net_orange { - label = "dir-1960-a1:orange:net"; - gpios = <&gpio 4 GPIO_ACTIVE_LOW>; - }; - - net_white { - label = "dir-1960-a1:white:net"; - gpios = <&gpio 3 GPIO_ACTIVE_LOW>; - }; - - usb_white { - label = "dir-1960-a1:white:usb"; - gpios = <&gpio 14 GPIO_ACTIVE_LOW>; - trigger-sources = <&xhci_ehci_port1>; - linux,default-trigger = "usbport"; - }; +&leds { + usb_white { + label = "white:usb"; + gpios = <&gpio 14 GPIO_ACTIVE_LOW>; + trigger-sources = <&xhci_ehci_port1>; + linux,default-trigger = "usbport"; }; }; diff --git a/target/linux/ramips/dts/mt7621_dlink_dir-2660-a1.dts b/target/linux/ramips/dts/mt7621_dlink_dir-2660-a1.dts index d15529b0c4..e3303f7eb4 100644 --- a/target/linux/ramips/dts/mt7621_dlink_dir-2660-a1.dts +++ b/target/linux/ramips/dts/mt7621_dlink_dir-2660-a1.dts @@ -6,50 +6,21 @@ / { compatible = "dlink,dir-2660-a1", "mediatek,mt7621-soc"; model = "D-Link DIR-2660 A1"; +}; - aliases { - led-boot = &led_power_orange; - led-failsafe = &led_power_white; - led-running = &led_power_white; - led-upgrade = &led_net_orange; +&leds { + usb2_white { + label = "white:usb2"; + gpios = <&gpio 13 GPIO_ACTIVE_LOW>; + trigger-sources = <&ehci_port2>; + linux,default-trigger = "usbport"; }; - leds { - compatible = "gpio-leds"; - - led_power_orange: power_orange { - label = "dir-2660-a1:orange:power"; - gpios = <&gpio 8 GPIO_ACTIVE_LOW>; - }; - - led_power_white: power_white { - label = "dir-2660-a1:white:power"; - gpios = <&gpio 16 GPIO_ACTIVE_LOW>; - }; - - led_net_orange: net_orange { - label = "dir-2660-a1:orange:net"; - gpios = <&gpio 4 GPIO_ACTIVE_LOW>; - }; - - net_white { - label = "dir-2660-a1:white:net"; - gpios = <&gpio 3 GPIO_ACTIVE_LOW>; - }; - - usb2_white { - label = "dir-2660-a1:white:usb2"; - gpios = <&gpio 13 GPIO_ACTIVE_LOW>; - trigger-sources = <&ehci_port2>; - linux,default-trigger = "usbport"; - }; - - usb3_white { - label = "dir-2660-a1:white:usb3"; - gpios = <&gpio 14 GPIO_ACTIVE_LOW>; - trigger-sources = <&xhci_ehci_port1>; - linux,default-trigger = "usbport"; - }; + usb3_white { + label = "white:usb3"; + gpios = <&gpio 14 GPIO_ACTIVE_LOW>; + trigger-sources = <&xhci_ehci_port1>; + linux,default-trigger = "usbport"; }; }; 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 4aba6b9582..e1e993c79d 100644 --- a/target/linux/ramips/dts/mt7621_dlink_dir-860l-b1.dts +++ b/target/linux/ramips/dts/mt7621_dlink_dir-860l-b1.dts @@ -21,22 +21,22 @@ compatible = "gpio-leds"; power { - label = "dir-860l-b1:orange:power"; + label = "orange:power"; gpios = <&gpio 13 GPIO_ACTIVE_LOW>; }; led_power_green: power2 { - label = "dir-860l-b1:green:power"; + label = "green:power"; gpios = <&gpio 15 GPIO_ACTIVE_LOW>; }; net { - label = "dir-860l-b1:orange:net"; + label = "orange:net"; gpios = <&gpio 14 GPIO_ACTIVE_LOW>; }; net2 { - label = "dir-860l-b1:green:net"; + label = "green:net"; gpios = <&gpio 16 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_dlink_dir-867-a1.dts b/target/linux/ramips/dts/mt7621_dlink_dir-867-a1.dts index 34ddbeaec3..5dd8c09d14 100644 --- a/target/linux/ramips/dts/mt7621_dlink_dir-867-a1.dts +++ b/target/linux/ramips/dts/mt7621_dlink_dir-867-a1.dts @@ -6,35 +6,4 @@ / { compatible = "dlink,dir-867-a1", "mediatek,mt7621-soc"; model = "D-Link DIR-867 A1"; - - aliases { - led-boot = &led_power_orange; - led-failsafe = &led_power_green; - led-running = &led_power_green; - led-upgrade = &led_net_orange; - }; - - leds { - compatible = "gpio-leds"; - - led_power_orange: power_orange { - label = "dir-867-a1:orange:power"; - gpios = <&gpio 8 GPIO_ACTIVE_LOW>; - }; - - led_power_green: power_green { - label = "dir-867-a1:green:power"; - gpios = <&gpio 16 GPIO_ACTIVE_LOW>; - }; - - led_net_orange: net_orange { - label = "dir-867-a1:orange:net"; - gpios = <&gpio 4 GPIO_ACTIVE_LOW>; - }; - - net_green { - label = "dir-867-a1:green:net"; - gpios = <&gpio 3 GPIO_ACTIVE_LOW>; - }; - }; }; diff --git a/target/linux/ramips/dts/mt7621_dlink_dir-878-a1.dts b/target/linux/ramips/dts/mt7621_dlink_dir-878-a1.dts index e2f569f40f..79e363a48d 100644 --- a/target/linux/ramips/dts/mt7621_dlink_dir-878-a1.dts +++ b/target/linux/ramips/dts/mt7621_dlink_dir-878-a1.dts @@ -6,35 +6,4 @@ / { compatible = "dlink,dir-878-a1", "mediatek,mt7621-soc"; model = "D-Link DIR-878 A1"; - - aliases { - led-boot = &led_power_orange; - led-failsafe = &led_power_green; - led-running = &led_power_green; - led-upgrade = &led_net_orange; - }; - - leds { - compatible = "gpio-leds"; - - led_power_orange: power_orange { - label = "dir-878-a1:orange:power"; - gpios = <&gpio 8 GPIO_ACTIVE_LOW>; - }; - - led_power_green: power_green { - label = "dir-878-a1:green:power"; - gpios = <&gpio 16 GPIO_ACTIVE_LOW>; - }; - - led_net_orange: net_orange { - label = "dir-878-a1:orange:net"; - gpios = <&gpio 4 GPIO_ACTIVE_LOW>; - }; - - net_green { - label = "dir-878-a1:green:net"; - gpios = <&gpio 3 GPIO_ACTIVE_LOW>; - }; - }; }; diff --git a/target/linux/ramips/dts/mt7621_dlink_dir-882-a1.dts b/target/linux/ramips/dts/mt7621_dlink_dir-882-a1.dts index 11f70ecf3f..c44f690d49 100644 --- a/target/linux/ramips/dts/mt7621_dlink_dir-882-a1.dts +++ b/target/linux/ramips/dts/mt7621_dlink_dir-882-a1.dts @@ -6,49 +6,20 @@ / { compatible = "dlink,dir-882-a1", "mediatek,mt7621-soc"; model = "D-Link DIR-882 A1"; +}; - aliases { - led-boot = &led_power_orange; - led-failsafe = &led_power_green; - led-running = &led_power_green; - led-upgrade = &led_net_orange; +&leds { + usb2 { + label = "green:usb2"; + gpios = <&gpio 13 GPIO_ACTIVE_LOW>; + trigger-sources = <&ehci_port2>; + linux,default-trigger = "usbport"; }; - leds { - compatible = "gpio-leds"; - - led_power_orange: power_orange { - label = "dir-882-a1:orange:power"; - gpios = <&gpio 8 GPIO_ACTIVE_LOW>; - }; - - led_power_green: power_green { - label = "dir-882-a1:green:power"; - gpios = <&gpio 16 GPIO_ACTIVE_LOW>; - }; - - led_net_orange: net_orange { - label = "dir-882-a1:orange:net"; - gpios = <&gpio 4 GPIO_ACTIVE_LOW>; - }; - - net_green { - label = "dir-882-a1:green:net"; - gpios = <&gpio 3 GPIO_ACTIVE_LOW>; - }; - - usb2 { - label = "dir-882-a1:green:usb2"; - gpios = <&gpio 13 GPIO_ACTIVE_LOW>; - trigger-sources = <&ehci_port2>; - linux,default-trigger = "usbport"; - }; - - usb3 { - label = "dir-882-a1:green:usb3"; - gpios = <&gpio 14 GPIO_ACTIVE_LOW>; - trigger-sources = <&xhci_ehci_port1>; - linux,default-trigger = "usbport"; - }; + usb3 { + label = "green:usb3"; + gpios = <&gpio 14 GPIO_ACTIVE_LOW>; + trigger-sources = <&xhci_ehci_port1>; + linux,default-trigger = "usbport"; }; }; diff --git a/target/linux/ramips/dts/mt7621_dlink_dir-8xx-a1.dtsi b/target/linux/ramips/dts/mt7621_dlink_dir-8xx-a1.dtsi index 9ec433288a..19bbefb71f 100644 --- a/target/linux/ramips/dts/mt7621_dlink_dir-8xx-a1.dtsi +++ b/target/linux/ramips/dts/mt7621_dlink_dir-8xx-a1.dtsi @@ -8,6 +8,10 @@ / { aliases { label-mac-device = &gmac0; + led-boot = &led_power_orange; + led-failsafe = &led_power_green; + led-running = &led_power_green; + led-upgrade = &led_net_orange; }; keys { @@ -31,6 +35,30 @@ linux,code = ; }; }; + + leds: leds { + compatible = "gpio-leds"; + + led_power_orange: power_orange { + label = "orange:power"; + gpios = <&gpio 8 GPIO_ACTIVE_LOW>; + }; + + led_power_green: power_green { + label = "green:power"; + gpios = <&gpio 16 GPIO_ACTIVE_LOW>; + }; + + led_net_orange: net_orange { + label = "orange:net"; + gpios = <&gpio 4 GPIO_ACTIVE_LOW>; + }; + + net_green { + label = "green:net"; + gpios = <&gpio 3 GPIO_ACTIVE_LOW>; + }; + }; }; &spi0 { diff --git a/target/linux/ramips/dts/mt7621_dlink_dir-xx60-a1.dtsi b/target/linux/ramips/dts/mt7621_dlink_dir-xx60-a1.dtsi index e194592b57..96c6921124 100644 --- a/target/linux/ramips/dts/mt7621_dlink_dir-xx60-a1.dtsi +++ b/target/linux/ramips/dts/mt7621_dlink_dir-xx60-a1.dtsi @@ -8,6 +8,10 @@ / { aliases { label-mac-device = &gmac0; + led-boot = &led_power_orange; + led-failsafe = &led_power_white; + led-running = &led_power_white; + led-upgrade = &led_net_orange; }; keys { @@ -25,6 +29,30 @@ linux,code = ; }; }; + + leds: leds { + compatible = "gpio-leds"; + + led_power_orange: power_orange { + label = "orange:power"; + gpios = <&gpio 8 GPIO_ACTIVE_LOW>; + }; + + led_power_white: power_white { + label = "white:power"; + gpios = <&gpio 16 GPIO_ACTIVE_LOW>; + }; + + led_net_orange: net_orange { + label = "orange:net"; + gpios = <&gpio 4 GPIO_ACTIVE_LOW>; + }; + + net_white { + label = "white:net"; + gpios = <&gpio 3 GPIO_ACTIVE_LOW>; + }; + }; }; &nand { diff --git a/target/linux/ramips/dts/mt7621_edimax_ra21s.dts b/target/linux/ramips/dts/mt7621_edimax_ra21s.dts index 7f41bb14e9..7f4afc1e15 100644 --- a/target/linux/ramips/dts/mt7621_edimax_ra21s.dts +++ b/target/linux/ramips/dts/mt7621_edimax_ra21s.dts @@ -6,35 +6,4 @@ / { 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 = <&gpio 7 GPIO_ACTIVE_HIGH>; - }; - - led_2 { - label = "ra21s:red:led2"; - gpios = <&gpio 12 GPIO_ACTIVE_HIGH>; - }; - - led_3 { - label = "ra21s:red:led3"; - gpios = <&gpio 14 GPIO_ACTIVE_HIGH>; - }; - - led_4 { - label = "ra21s:red:led4"; - gpios = <&gpio 15 GPIO_ACTIVE_HIGH>; - }; - }; }; diff --git a/target/linux/ramips/dts/mt7621_edimax_re23s.dts b/target/linux/ramips/dts/mt7621_edimax_re23s.dts index a650ee3c21..9de77fcaaa 100644 --- a/target/linux/ramips/dts/mt7621_edimax_re23s.dts +++ b/target/linux/ramips/dts/mt7621_edimax_re23s.dts @@ -22,22 +22,22 @@ compatible = "gpio-leds"; led_power: power { - label = "re23s:green:power"; + label = "green:power"; gpios = <&gpio 13 GPIO_ACTIVE_HIGH>; }; wifi_green { - label = "re23s:green:wifi"; + label = "green:wifi"; gpios = <&gpio 12 GPIO_ACTIVE_HIGH>; }; wifi_amber { - label = "re23s:amber:wifi"; + label = "amber:wifi"; gpios = <&gpio 7 GPIO_ACTIVE_HIGH>; }; led_wifi_red: wifi_red { - label = "re23s:red:wifi"; + label = "red:wifi"; gpios = <&gpio 6 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/mt7621_edimax_rg21s.dts b/target/linux/ramips/dts/mt7621_edimax_rg21s.dts index f00d0cf859..d71ee030ca 100644 --- a/target/linux/ramips/dts/mt7621_edimax_rg21s.dts +++ b/target/linux/ramips/dts/mt7621_edimax_rg21s.dts @@ -6,35 +6,4 @@ / { compatible = "edimax,rg21s", "mediatek,mt7621-soc"; model = "Edimax RG21S"; - - 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 = "rg21s:red:led1"; - gpios = <&gpio 7 GPIO_ACTIVE_HIGH>; - }; - - led_2 { - label = "rg21s:red:led2"; - gpios = <&gpio 12 GPIO_ACTIVE_HIGH>; - }; - - led_3 { - label = "rg21s:red:led3"; - gpios = <&gpio 14 GPIO_ACTIVE_HIGH>; - }; - - led_4 { - label = "rg21s:red:led4"; - gpios = <&gpio 15 GPIO_ACTIVE_HIGH>; - }; - }; }; diff --git a/target/linux/ramips/dts/mt7621_edimax_rx21s.dtsi b/target/linux/ramips/dts/mt7621_edimax_rx21s.dtsi index f93ae1be04..7a5dfb99db 100644 --- a/target/linux/ramips/dts/mt7621_edimax_rx21s.dtsi +++ b/target/linux/ramips/dts/mt7621_edimax_rx21s.dtsi @@ -9,6 +9,10 @@ / { aliases { label-mac-device = &gmac0; + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; }; keys { @@ -26,6 +30,30 @@ linux,code = ; }; }; + + leds { + compatible = "gpio-leds"; + + led_power: led_1 { + label = "red:led1"; + gpios = <&gpio 7 GPIO_ACTIVE_HIGH>; + }; + + led_2 { + label = "red:led2"; + gpios = <&gpio 12 GPIO_ACTIVE_HIGH>; + }; + + led_3 { + label = "red:led3"; + gpios = <&gpio 14 GPIO_ACTIVE_HIGH>; + }; + + led_4 { + label = "red:led4"; + gpios = <&gpio 15 GPIO_ACTIVE_HIGH>; + }; + }; }; &spi0 { 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 3b127e9223..8853dd528f 100644 --- a/target/linux/ramips/dts/mt7621_elecom_wrc-1167ghbk2-s.dts +++ b/target/linux/ramips/dts/mt7621_elecom_wrc-1167ghbk2-s.dts @@ -20,33 +20,33 @@ compatible = "gpio-leds"; wlan2g { - label = "wrc-1167ghbk2-s:white:wlan2g"; + label = "white:wlan2g"; gpios = <&gpio 3 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0radio"; }; wlan5g { - label = "wrc-1167ghbk2-s:white:wlan5g"; + label = "white:wlan5g"; gpios = <&gpio 4 GPIO_ACTIVE_LOW>; }; led_power_green: power_green { - label = "wrc-1167ghbk2-s:green:power"; + label = "green:power"; gpios = <&gpio 7 GPIO_ACTIVE_HIGH>; }; power_blue { - label = "wrc-1167ghbk2-s:blue:power"; + label = "blue:power"; gpios = <&gpio 8 GPIO_ACTIVE_HIGH>; }; wps { - label = "wrc-1167ghbk2-s:red:wps"; + label = "red:wps"; gpios = <&gpio 15 GPIO_ACTIVE_HIGH>; }; power_red { - label = "wrc-1167ghbk2-s:red:power"; + label = "red:power"; gpios = <&gpio 16 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/mt7621_elecom_wrc-gs.dtsi b/target/linux/ramips/dts/mt7621_elecom_wrc-gs.dtsi index a9ed9f6a41..fd54ead0bc 100644 --- a/target/linux/ramips/dts/mt7621_elecom_wrc-gs.dtsi +++ b/target/linux/ramips/dts/mt7621_elecom_wrc-gs.dtsi @@ -18,22 +18,22 @@ compatible = "gpio-leds"; led_power_green: power_green { - label = "wrc-gst:green:power"; + label = "green:power"; gpios = <&gpio 7 GPIO_ACTIVE_HIGH>; }; power_blue { - label = "wrc-gst:blue:power"; + label = "blue:power"; gpios = <&gpio 8 GPIO_ACTIVE_HIGH>; }; wps { - label = "wrc-gst:red:wps"; + label = "red:wps"; gpios = <&gpio 15 GPIO_ACTIVE_HIGH>; }; power_red { - label = "wrc-gst:red:power"; + label = "red:power"; gpios = <&gpio 16 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/mt7621_firefly_firewrt.dts b/target/linux/ramips/dts/mt7621_firefly_firewrt.dts index e821a3d1d9..697cc069a4 100644 --- a/target/linux/ramips/dts/mt7621_firefly_firewrt.dts +++ b/target/linux/ramips/dts/mt7621_firefly_firewrt.dts @@ -20,7 +20,7 @@ compatible = "gpio-leds"; led_power: power { - label = "firewrt:green:power"; + label = "green:power"; gpios = <&gpio 22 GPIO_ACTIVE_LOW>; }; }; 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 806be92d32..34d31e0f1a 100644 --- a/target/linux/ramips/dts/mt7621_gehua_ghl-r-001.dts +++ b/target/linux/ramips/dts/mt7621_gehua_ghl-r-001.dts @@ -18,12 +18,12 @@ compatible = "gpio-leds"; internet { - label = "ghl-r-001:blue:internet"; + label = "blue:internet"; gpios = <&gpio 16 GPIO_ACTIVE_LOW>; }; usb { - label = "ghl-r-001:blue:usb"; + label = "blue:usb"; gpios = <&gpio 15 GPIO_ACTIVE_LOW>; trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/mt7621_gnubee_gb-pc1.dts b/target/linux/ramips/dts/mt7621_gnubee_gb-pc1.dts index 364a6bc69d..da0da06483 100644 --- a/target/linux/ramips/dts/mt7621_gnubee_gb-pc1.dts +++ b/target/linux/ramips/dts/mt7621_gnubee_gb-pc1.dts @@ -30,22 +30,22 @@ compatible = "gpio-leds"; system { - label = "gb-pc1:green:system"; + label = "green:system"; gpios = <&gpio 6 GPIO_ACTIVE_LOW>; }; led_status: status { - label = "gb-pc1:green:status"; + label = "green:status"; gpios = <&gpio 8 GPIO_ACTIVE_LOW>; }; lan1 { - label = "gb-pc1:green:lan1"; + label = "green:lan1"; gpios = <&gpio 24 GPIO_ACTIVE_LOW>; }; lan2 { - label = "gb-pc1:green:lan2"; + label = "green:lan2"; gpios = <&gpio 25 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts b/target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts index 7b9cb1751f..bea04c3085 100644 --- a/target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts +++ b/target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts @@ -30,32 +30,32 @@ compatible = "gpio-leds"; system { - label = "gb-pc2:green:system"; + label = "green:system"; gpios = <&gpio 6 GPIO_ACTIVE_LOW>; }; led_status: status { - label = "gb-pc2:green:status"; + label = "green:status"; gpios = <&gpio 8 GPIO_ACTIVE_LOW>; }; lan1 { - label = "gb-pc2:green:lan1"; + label = "green:lan1"; gpios = <&gpio 24 GPIO_ACTIVE_LOW>; }; lan2 { - label = "gb-pc2:green:lan2"; + label = "green:lan2"; gpios = <&gpio 25 GPIO_ACTIVE_LOW>; }; lan3-yellow { - label = "gb-pc2:yellow:lan3"; + label = "yellow:lan3"; gpios = <&gpio 13 GPIO_ACTIVE_LOW>; }; lan3-green { - label = "gb-pc2:green:lan3"; + label = "green:lan3"; gpios = <&gpio 15 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_hiwifi_hc5962.dts b/target/linux/ramips/dts/mt7621_hiwifi_hc5962.dts index 1bbfc157ae..72a6e6384f 100644 --- a/target/linux/ramips/dts/mt7621_hiwifi_hc5962.dts +++ b/target/linux/ramips/dts/mt7621_hiwifi_hc5962.dts @@ -24,12 +24,12 @@ compatible = "gpio-leds"; led_status: status { - label = "hc5962:white:status"; + label = "white:status"; gpios = <&gpio 6 GPIO_ACTIVE_LOW>; }; led_system: system { - label = "hc5962:red:system"; + label = "red:system"; gpios = <&gpio 7 GPIO_ACTIVE_LOW>; panic-indicator; }; diff --git a/target/linux/ramips/dts/mt7621_iodata_wn-ax1167gr.dts b/target/linux/ramips/dts/mt7621_iodata_wn-ax1167gr.dts index eaa0fae5bb..33c0220f55 100644 --- a/target/linux/ramips/dts/mt7621_iodata_wn-ax1167gr.dts +++ b/target/linux/ramips/dts/mt7621_iodata_wn-ax1167gr.dts @@ -24,12 +24,12 @@ compatible = "gpio-leds"; led_power: power { - label = "wn-ax1167gr:green:power"; + label = "green:power"; gpios = <&gpio 7 GPIO_ACTIVE_LOW>; }; wps { - label = "wn-ax1167gr:green:wps"; + label = "green:wps"; gpios = <&gpio 17 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_iodata_wn-gx300gr.dts b/target/linux/ramips/dts/mt7621_iodata_wn-gx300gr.dts index cae0d8daf0..72a373b201 100644 --- a/target/linux/ramips/dts/mt7621_iodata_wn-gx300gr.dts +++ b/target/linux/ramips/dts/mt7621_iodata_wn-gx300gr.dts @@ -24,12 +24,12 @@ compatible = "gpio-leds"; led_power: power { - label = "wn-gx300gr:green:power"; + label = "green:power"; gpios = <&gpio 7 GPIO_ACTIVE_LOW>; }; wps { - label = "wn-gx300gr:green:wps"; + label = "green:wps"; gpios = <&gpio 17 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_iodata_wn-xx-xr.dtsi b/target/linux/ramips/dts/mt7621_iodata_wn-xx-xr.dtsi index 1ed9380b37..ff9e525ae2 100644 --- a/target/linux/ramips/dts/mt7621_iodata_wn-xx-xr.dtsi +++ b/target/linux/ramips/dts/mt7621_iodata_wn-xx-xr.dtsi @@ -18,12 +18,12 @@ compatible = "gpio-leds"; wps { - label = "iodata:green:wps"; + label = "green:wps"; gpios = <&gpio 8 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "iodata:green:power"; + label = "green:power"; gpios = <&gpio 9 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/mt7621_iodata_wnpr2600g.dts b/target/linux/ramips/dts/mt7621_iodata_wnpr2600g.dts index b7f6400930..fd9e555ba8 100644 --- a/target/linux/ramips/dts/mt7621_iodata_wnpr2600g.dts +++ b/target/linux/ramips/dts/mt7621_iodata_wnpr2600g.dts @@ -21,24 +21,24 @@ compatible = "gpio-leds"; led_power: power { - label = "wnpr2600g:green:power"; + label = "green:power"; gpios = <&gpio 7 GPIO_ACTIVE_HIGH>; default-state = "on"; }; notification { - label = "wnpr2600g:green:notification"; + label = "green:notification"; gpios = <&gpio 12 GPIO_ACTIVE_HIGH>; }; wlan2g { - label = "wnpr2600g:green:wlan2g"; + label = "green:wlan2g"; gpios = <&gpio 14 GPIO_ACTIVE_HIGH>; linux,default-trigger = "phy0radio"; }; wlan5g { - label = "wnpr2600g:green:wlan5g"; + label = "green:wlan5g"; gpios = <&gpio 15 GPIO_ACTIVE_HIGH>; linux,default-trigger = "phy1radio"; }; diff --git a/target/linux/ramips/dts/mt7621_iptime_a6ns-m.dts b/target/linux/ramips/dts/mt7621_iptime_a6ns-m.dts index 9b5ed5412c..9810655bbd 100644 --- a/target/linux/ramips/dts/mt7621_iptime_a6ns-m.dts +++ b/target/linux/ramips/dts/mt7621_iptime_a6ns-m.dts @@ -22,26 +22,26 @@ compatible = "gpio-leds"; usb { - label = "a6ns-m:blue:usb"; + label = "blue:usb"; gpios = <&gpio 7 GPIO_ACTIVE_LOW>; trigger-sources = <&xhci_ehci_port1>; linux,default-trigger = "usbport"; }; wlan5g { - label = "a6ns-m:blue:wlan5g"; + label = "blue:wlan5g"; gpios = <&gpio 14 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0radio"; }; wlan2g { - label = "a6ns-m:blue:wlan2g"; + label = "blue:wlan2g"; gpios = <&gpio 17 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1radio"; }; led_cpu: cpu { - label = "a6ns-m:blue:cpu"; + label = "blue:cpu"; gpios = <&gpio 18 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_iptime_a8004t.dts b/target/linux/ramips/dts/mt7621_iptime_a8004t.dts index eb437b5528..afbf4fd5c8 100644 --- a/target/linux/ramips/dts/mt7621_iptime_a8004t.dts +++ b/target/linux/ramips/dts/mt7621_iptime_a8004t.dts @@ -21,18 +21,18 @@ compatible = "gpio-leds"; led_cpu: cpu { - label = "a8004t:orange:cpu"; + label = "orange:cpu"; gpios = <&gpio 18 GPIO_ACTIVE_LOW>; }; wlan2g { - label = "a8004t:orange:wlan2g"; + label = "orange:wlan2g"; gpios = <&gpio 17 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0radio"; }; wlan5g { - label = "a8004t:orange:wlan5g"; + label = "orange:wlan5g"; gpios = <&gpio 14 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1radio"; }; diff --git a/target/linux/ramips/dts/mt7621_jcg_jhr-ac876m.dts b/target/linux/ramips/dts/mt7621_jcg_jhr-ac876m.dts index cdf71017ce..7ccaaabda4 100644 --- a/target/linux/ramips/dts/mt7621_jcg_jhr-ac876m.dts +++ b/target/linux/ramips/dts/mt7621_jcg_jhr-ac876m.dts @@ -22,21 +22,21 @@ compatible = "gpio-leds"; usb3 { - label = "jhr-ac876m:blue:usb3"; + label = "blue:usb3"; gpios = <&gpio 3 GPIO_ACTIVE_LOW>; trigger-sources = <&xhci_ehci_port1>; linux,default-trigger = "usbport"; }; usb2 { - label = "jhr-ac876m:blue:usb2"; + label = "blue:usb2"; gpios = <&gpio 6 GPIO_ACTIVE_LOW>; trigger-sources = <&ehci_port2>; linux,default-trigger = "usbport"; }; led_wps: wps { - label = "jhr-ac876m:blue:wps"; + label = "blue:wps"; gpios = <&gpio 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_lenovo_newifi-d1.dts b/target/linux/ramips/dts/mt7621_lenovo_newifi-d1.dts index 0cc22a0fc7..5e364a8bbc 100644 --- a/target/linux/ramips/dts/mt7621_lenovo_newifi-d1.dts +++ b/target/linux/ramips/dts/mt7621_lenovo_newifi-d1.dts @@ -25,17 +25,17 @@ compatible = "gpio-leds"; status-red { - label = "newifi-d1:red:status"; + label = "red:status"; gpios = <&gpio 14 GPIO_ACTIVE_LOW>; }; status-green { - label = "newifi-d1:green:status"; + label = "green:status"; gpios = <&gpio 13 GPIO_ACTIVE_LOW>; }; led_blue: status-blue { - label = "newifi-d1:blue:status"; + label = "blue:status"; gpios = <&gpio 16 GPIO_ACTIVE_LOW>; default-state = "on"; }; diff --git a/target/linux/ramips/dts/mt7621_linksys_ea7300-v1.dts b/target/linux/ramips/dts/mt7621_linksys_ea7300-v1.dts index 67eb31768f..6651e4db7a 100644 --- a/target/linux/ramips/dts/mt7621_linksys_ea7300-v1.dts +++ b/target/linux/ramips/dts/mt7621_linksys_ea7300-v1.dts @@ -6,50 +6,4 @@ / { compatible = "linksys,ea7300-v1", "mediatek,mt7621-soc"; model = "Linksys EA7300 v1"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - leds { - compatible = "gpio-leds"; - - wan_green { - label = "ea7300-v1:green:wan"; - gpios = <&gpio 7 GPIO_ACTIVE_LOW>; - }; - - lan1_green { - label = "ea7300-v1:green:lan1"; - gpios = <&gpio 3 GPIO_ACTIVE_LOW>; - }; - - lan2_green { - label = "ea7300-v1:green:lan2"; - gpios = <&gpio 18 GPIO_ACTIVE_LOW>; - }; - - lan3_green { - label = "ea7300-v1:green:lan3"; - gpios = <&gpio 13 GPIO_ACTIVE_LOW>; - }; - - lan4_green { - label = "ea7300-v1:green:lan4"; - gpios = <&gpio 15 GPIO_ACTIVE_LOW>; - }; - - led_power: power { - label = "ea7300-v1:white:power"; - gpios = <&gpio 10 GPIO_ACTIVE_HIGH>; - }; - - wps { - label = "ea7300-v1:green:wps"; - gpios = <&gpio 5 GPIO_ACTIVE_HIGH>; - }; - }; }; diff --git a/target/linux/ramips/dts/mt7621_linksys_ea7500-v2.dts b/target/linux/ramips/dts/mt7621_linksys_ea7500-v2.dts index bc454f3910..8d4ee1e96d 100644 --- a/target/linux/ramips/dts/mt7621_linksys_ea7500-v2.dts +++ b/target/linux/ramips/dts/mt7621_linksys_ea7500-v2.dts @@ -6,50 +6,4 @@ / { compatible = "linksys,ea7500-v2", "mediatek,mt7621-soc"; model = "Linksys EA7500 v2"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - leds { - compatible = "gpio-leds"; - - wan_green { - label = "ea7500-v2:green:wan"; - gpios = <&gpio 7 GPIO_ACTIVE_LOW>; - }; - - lan1_green { - label = "ea7500-v2:green:lan1"; - gpios = <&gpio 3 GPIO_ACTIVE_LOW>; - }; - - lan2_green { - label = "ea7500-v2:green:lan2"; - gpios = <&gpio 18 GPIO_ACTIVE_LOW>; - }; - - lan3_green { - label = "ea7500-v2:green:lan3"; - gpios = <&gpio 13 GPIO_ACTIVE_LOW>; - }; - - lan4_green { - label = "ea7500-v2:green:lan4"; - gpios = <&gpio 15 GPIO_ACTIVE_LOW>; - }; - - led_power: power { - label = "ea7500-v2:white:power"; - gpios = <&gpio 10 GPIO_ACTIVE_HIGH>; - }; - - wps { - label = "ea7500-v2:green:wps"; - gpios = <&gpio 5 GPIO_ACTIVE_HIGH>; - }; - }; }; diff --git a/target/linux/ramips/dts/mt7621_linksys_ea7xxx.dtsi b/target/linux/ramips/dts/mt7621_linksys_ea7xxx.dtsi index 46b1c9cdfc..ecff6406d5 100644 --- a/target/linux/ramips/dts/mt7621_linksys_ea7xxx.dtsi +++ b/target/linux/ramips/dts/mt7621_linksys_ea7xxx.dtsi @@ -6,6 +6,13 @@ #include / { + aliases { + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; + }; + chosen { bootargs = "console=ttyS0,115200"; }; @@ -25,6 +32,45 @@ linux,code = ; }; }; + + leds { + compatible = "gpio-leds"; + + wan_green { + label = "green:wan"; + gpios = <&gpio 7 GPIO_ACTIVE_LOW>; + }; + + lan1_green { + label = "green:lan1"; + gpios = <&gpio 3 GPIO_ACTIVE_LOW>; + }; + + lan2_green { + label = "green:lan2"; + gpios = <&gpio 18 GPIO_ACTIVE_LOW>; + }; + + lan3_green { + label = "green:lan3"; + gpios = <&gpio 13 GPIO_ACTIVE_LOW>; + }; + + lan4_green { + label = "green:lan4"; + gpios = <&gpio 15 GPIO_ACTIVE_LOW>; + }; + + led_power: power { + label = "white:power"; + gpios = <&gpio 10 GPIO_ACTIVE_HIGH>; + }; + + wps { + label = "green:wps"; + gpios = <&gpio 5 GPIO_ACTIVE_HIGH>; + }; + }; }; &nand { diff --git a/target/linux/ramips/dts/mt7621_linksys_re6500.dts b/target/linux/ramips/dts/mt7621_linksys_re6500.dts index 3cdb1ce7f9..c0e0ef75d7 100644 --- a/target/linux/ramips/dts/mt7621_linksys_re6500.dts +++ b/target/linux/ramips/dts/mt7621_linksys_re6500.dts @@ -20,12 +20,12 @@ compatible = "gpio-leds"; wifi { - label = "re6500:orange:wifi"; + label = "orange:wifi"; gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; }; led_power: power { - label = "re6500:white:power"; + label = "white:power"; gpios = <&gpio 9 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/mt7621_mikrotik_routerboard-750gr3.dts b/target/linux/ramips/dts/mt7621_mikrotik_routerboard-750gr3.dts index baa42ee8ed..816a0ac2a8 100644 --- a/target/linux/ramips/dts/mt7621_mikrotik_routerboard-750gr3.dts +++ b/target/linux/ramips/dts/mt7621_mikrotik_routerboard-750gr3.dts @@ -18,13 +18,13 @@ compatible = "gpio-leds"; pwr { - label = "routerboard-750gr3:blue:pwr"; + label = "blue:pwr"; gpios = <&gpio 16 GPIO_ACTIVE_HIGH>; default-state = "on"; }; led_usr: usr { - label = "routerboard-750gr3:green:usr"; + label = "green:usr"; gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/mt7621_mikrotik_routerboard-760igs.dts b/target/linux/ramips/dts/mt7621_mikrotik_routerboard-760igs.dts index dd2de11dce..31fb5b601e 100644 --- a/target/linux/ramips/dts/mt7621_mikrotik_routerboard-760igs.dts +++ b/target/linux/ramips/dts/mt7621_mikrotik_routerboard-760igs.dts @@ -18,13 +18,13 @@ compatible = "gpio-leds"; led_pwr: pwr { - label = "routerboard-760igs:blue:pwr"; + label = "blue:pwr"; gpios = <&gpio 16 GPIO_ACTIVE_HIGH>; default-state = "on"; }; sfp { - label = "routerboard-760igs:blue:sfp"; + label = "blue:sfp"; gpios = <&gpio 9 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/mt7621_mikrotik_routerboard-m11g.dts b/target/linux/ramips/dts/mt7621_mikrotik_routerboard-m11g.dts index 4e352bb122..71eedcbee6 100644 --- a/target/linux/ramips/dts/mt7621_mikrotik_routerboard-m11g.dts +++ b/target/linux/ramips/dts/mt7621_mikrotik_routerboard-m11g.dts @@ -17,32 +17,32 @@ compatible = "gpio-leds"; led_usr: usr { - label = "routerboard-m11g:green:usr"; + label = "green:usr"; gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; }; rssi0 { - label = "routerboard-m11g:green:rssi0"; + label = "green:rssi0"; gpios = <&gpio 22 GPIO_ACTIVE_LOW>; }; rssi1 { - label = "routerboard-m11g:green:rssi1"; + label = "green:rssi1"; gpios = <&gpio 23 GPIO_ACTIVE_LOW>; }; rssi2 { - label = "routerboard-m11g:green:rssi2"; + label = "green:rssi2"; gpios = <&gpio 24 GPIO_ACTIVE_LOW>; }; rssi3 { - label = "routerboard-m11g:green:rssi3"; + label = "green:rssi3"; gpios = <&gpio 25 GPIO_ACTIVE_LOW>; }; rssi4 { - label = "routerboard-m11g:green:rssi4"; + label = "green:rssi4"; gpios = <&gpio 26 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_mikrotik_routerboard-m33g.dts b/target/linux/ramips/dts/mt7621_mikrotik_routerboard-m33g.dts index 48d368a5a9..4956c8e9d6 100644 --- a/target/linux/ramips/dts/mt7621_mikrotik_routerboard-m33g.dts +++ b/target/linux/ramips/dts/mt7621_mikrotik_routerboard-m33g.dts @@ -17,7 +17,7 @@ compatible = "gpio-leds"; led_usr: usr { - label = "routerboard-m33g:green:usr"; + label = "green:usr"; gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/mt7621_mtc_wr1201.dts b/target/linux/ramips/dts/mt7621_mtc_wr1201.dts index 15e7552e5e..d994e8b39a 100644 --- a/target/linux/ramips/dts/mt7621_mtc_wr1201.dts +++ b/target/linux/ramips/dts/mt7621_mtc_wr1201.dts @@ -21,24 +21,24 @@ compatible = "gpio-leds"; led_power: power { - label = "wr1201:green:power"; + label = "green:power"; gpios = <&gpio 24 GPIO_ACTIVE_LOW>; }; usb { - label = "wr1201:green:usb"; + label = "green:usb"; gpios = <&gpio 22 GPIO_ACTIVE_LOW>; trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>; linux,default-trigger = "usbport"; }; eth_link { - label = "wr1201:green:eth_link"; + label = "green:eth_link"; gpios = <&gpio 26 GPIO_ACTIVE_LOW>; }; wps { - label = "wr1201:green:wps"; + label = "green:wps"; gpios = <&gpio 23 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_netgear_ex6150.dts b/target/linux/ramips/dts/mt7621_netgear_ex6150.dts index 41c18b4c3b..a2d169d3aa 100644 --- a/target/linux/ramips/dts/mt7621_netgear_ex6150.dts +++ b/target/linux/ramips/dts/mt7621_netgear_ex6150.dts @@ -21,49 +21,49 @@ compatible = "gpio-leds"; power_amber: power_amber { - label = "ex6150:amber:power"; + label = "amber:power"; gpios = <&gpio 15 GPIO_ACTIVE_LOW>; }; power_green: power_green { - label = "ex6150:green:power"; + label = "green:power"; gpios = <&gpio 13 GPIO_ACTIVE_LOW>; }; wps { - label = "ex6150:green:wps"; + label = "green:wps"; gpios = <&gpio 16 GPIO_ACTIVE_LOW>; }; rightarrow { - label = "ex6150:blue:rightarrow"; + label = "blue:rightarrow"; gpios = <&gpio 28 GPIO_ACTIVE_LOW>; }; leftarrow { - label = "ex6150:blue:leftarrow"; + label = "blue:leftarrow"; gpios = <&gpio 31 GPIO_ACTIVE_LOW>; }; router_green { - label = "ex6150:green:router"; + label = "green:router"; gpios = <&gpio 29 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1tpt"; }; router_red { - label = "ex6150:red:router"; + label = "red:router"; gpios = <&gpio 30 GPIO_ACTIVE_LOW>; }; client_green { - label = "ex6150:green:client"; + label = "green:client"; gpios = <&gpio 33 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; client_red { - label = "ex6150:red:client"; + label = "red:client"; gpios = <&gpio 32 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_netgear_r6220.dts b/target/linux/ramips/dts/mt7621_netgear_r6220.dts index b4cd44afe8..c9c47be7c1 100644 --- a/target/linux/ramips/dts/mt7621_netgear_r6220.dts +++ b/target/linux/ramips/dts/mt7621_netgear_r6220.dts @@ -8,26 +8,6 @@ model = "Netgear R6220"; }; -&led_power { - label = "r6220:green:power"; -}; - -&led_usb { - label = "r6220:green:usb"; -}; - -&led_internet { - label = "r6220:green:wan"; -}; - -&led_wifi { - label = "r6220:green:wifi"; -}; - -&led_wps { - label = "r6220:green:wps"; -}; - &nand { status = "okay"; diff --git a/target/linux/ramips/dts/mt7621_netgear_r6260.dts b/target/linux/ramips/dts/mt7621_netgear_r6260.dts index e1a7858f11..f41fc52652 100644 --- a/target/linux/ramips/dts/mt7621_netgear_r6260.dts +++ b/target/linux/ramips/dts/mt7621_netgear_r6260.dts @@ -7,19 +7,3 @@ compatible = "netgear,r6260", "mediatek,mt7621-soc"; model = "Netgear R6260"; }; - -&led_power { - label = "r6260:green:power"; -}; - -&led_usb { - label = "r6260:green:usb"; -}; - -&led_internet { - label = "r6260:green:wan"; -}; - -&led_wifi { - label = "r6260:green:wifi"; -}; diff --git a/target/linux/ramips/dts/mt7621_netgear_r6350.dts b/target/linux/ramips/dts/mt7621_netgear_r6350.dts index f25b93f010..d3caaf3650 100644 --- a/target/linux/ramips/dts/mt7621_netgear_r6350.dts +++ b/target/linux/ramips/dts/mt7621_netgear_r6350.dts @@ -7,19 +7,3 @@ compatible = "netgear,r6350", "mediatek,mt7621-soc"; model = "Netgear R6350"; }; - -&led_power { - label = "r6350:green:power"; -}; - -&led_usb { - label = "r6350:green:usb"; -}; - -&led_internet { - label = "r6350:green:wan"; -}; - -&led_wifi { - label = "r6350:green:wifi"; -}; diff --git a/target/linux/ramips/dts/mt7621_netgear_r6700-v2.dts b/target/linux/ramips/dts/mt7621_netgear_r6700-v2.dts index d1a54343bf..72a42fe1da 100644 --- a/target/linux/ramips/dts/mt7621_netgear_r6700-v2.dts +++ b/target/linux/ramips/dts/mt7621_netgear_r6700-v2.dts @@ -6,116 +6,11 @@ / { compatible = "netgear,r6700-v2", "mediatek,mt7621-soc"; model = "Netgear R6700 v2"; - - aliases { - led-boot = &led_power_white; - led-failsafe = &led_power_orange; - led-running = &led_power_white; - led-upgrade = &led_power_orange; - }; - - leds { - compatible = "gpio-leds"; - - led_power_orange: power_orange { - gpios = <&gpio_expander 0 GPIO_ACTIVE_LOW>; - label = "r6700-v2:orange:power"; - }; - - led_power_white: power_white { - gpios = <&gpio_expander 1 GPIO_ACTIVE_LOW>; - label = "r6700-v2:white:power"; - }; - - wan_orange { - gpios = <&gpio_expander 2 GPIO_ACTIVE_LOW>; - label = "r6700-v2:orange:wan"; - }; - - wan_white { - gpios = <&gpio_expander 3 GPIO_ACTIVE_LOW>; - label = "r6700-v2:white:wan"; - }; - - wlan2g { - gpios = <&gpio_expander 4 GPIO_ACTIVE_LOW>; - label = "r6700-v2:white:wlan2g"; - linux,default-trigger = "phy0radio"; - }; - - wlan5g { - gpios = <&gpio_expander 5 GPIO_ACTIVE_LOW>; - label = "r6700-v2:white:wlan5g"; - linux,default-trigger = "phy1radio"; - }; - - guest_wifi { - gpios = <&gpio_expander 6 GPIO_ACTIVE_LOW>; - label = "r6700-v2:white:guest_wifi"; - }; - - usb3 { - gpios = <&gpio_expander 7 GPIO_ACTIVE_LOW>; - label = "r6700-v2:white:usb3"; - linux,default-trigger = "usbport"; - trigger-sources = <&xhci_ehci_port1>; - }; - - lan1_orange { - gpios = <&gpio_expander 8 GPIO_ACTIVE_LOW>; - label = "r6700-v2:orange:lan1"; - }; - - lan1_white { - gpios = <&gpio_expander 9 GPIO_ACTIVE_LOW>; - label = "r6700-v2:white:lan1"; - }; - - lan2_orange { - gpios = <&gpio_expander 10 GPIO_ACTIVE_LOW>; - label = "r6700-v2:orange:lan2"; - }; - - lan2_white { - gpios = <&gpio_expander 11 GPIO_ACTIVE_LOW>; - label = "r6700-v2:white:lan2"; - }; - - lan3_orange { - gpios = <&gpio_expander 12 GPIO_ACTIVE_LOW>; - label = "r6700-v2:orange:lan3"; - }; - - lan3_white { - gpios = <&gpio_expander 13 GPIO_ACTIVE_LOW>; - label = "r6700-v2:white:lan3"; - }; - - lan4_orange { - gpios = <&gpio_expander 14 GPIO_ACTIVE_LOW>; - label = "r6700-v2:orange:lan4"; - }; - - lan4_white { - gpios = <&gpio_expander 15 GPIO_ACTIVE_LOW>; - label = "r6700-v2:white:lan4"; - }; - - wps { - gpios = <&gpio 17 GPIO_ACTIVE_HIGH>; - label = "r6700-v2:white:wps"; - }; - - wlan { - gpios = <&gpio 5 GPIO_ACTIVE_LOW>; - label = "r6700-v2:white:wlan"; - }; - }; }; -&state_default { - gpio { - groups = "uart3", "uart2", "jtag", "wdt"; - function = "gpio"; +&leds { + guest_wifi { + gpios = <&gpio_expander 6 GPIO_ACTIVE_LOW>; + label = "white:guest_wifi"; }; }; diff --git a/target/linux/ramips/dts/mt7621_netgear_r6800.dts b/target/linux/ramips/dts/mt7621_netgear_r6800.dts index 7c038cf5ae..8aae588189 100644 --- a/target/linux/ramips/dts/mt7621_netgear_r6800.dts +++ b/target/linux/ramips/dts/mt7621_netgear_r6800.dts @@ -6,118 +6,13 @@ / { compatible = "netgear,r6800", "mediatek,mt7621-soc"; model = "Netgear R6800"; - - aliases { - led-boot = &led_power_white; - led-failsafe = &led_power_orange; - led-running = &led_power_white; - led-upgrade = &led_power_orange; - }; - - leds { - compatible = "gpio-leds"; - - led_power_orange: power_orange { - gpios = <&gpio_expander 0 GPIO_ACTIVE_LOW>; - label = "r6800:orange:power"; - }; - - led_power_white: power_white { - gpios = <&gpio_expander 1 GPIO_ACTIVE_LOW>; - label = "r6800:white:power"; - }; - - wan_orange { - gpios = <&gpio_expander 2 GPIO_ACTIVE_LOW>; - label = "r6800:orange:wan"; - }; - - wan_white { - gpios = <&gpio_expander 3 GPIO_ACTIVE_LOW>; - label = "r6800:white:wan"; - }; - - wlan2g { - gpios = <&gpio_expander 4 GPIO_ACTIVE_LOW>; - label = "r6800:white:wlan2g"; - linux,default-trigger = "phy0radio"; - }; - - wlan5g { - gpios = <&gpio_expander 5 GPIO_ACTIVE_LOW>; - label = "r6800:white:wlan5g"; - linux,default-trigger = "phy1radio"; - }; - - usb2 { - gpios = <&gpio_expander 6 GPIO_ACTIVE_LOW>; - label = "r6800:white:usb2"; - linux,default-trigger = "usbport"; - trigger-sources = <&ehci_port2>; - }; - - usb3 { - gpios = <&gpio_expander 7 GPIO_ACTIVE_LOW>; - label = "r6800:white:usb3"; - linux,default-trigger = "usbport"; - trigger-sources = <&xhci_ehci_port1>; - }; - - lan1_orange { - gpios = <&gpio_expander 8 GPIO_ACTIVE_LOW>; - label = "r6800:orange:lan1"; - }; - - lan1_white { - gpios = <&gpio_expander 9 GPIO_ACTIVE_LOW>; - label = "r6800:white:lan1"; - }; - - lan2_orange { - gpios = <&gpio_expander 10 GPIO_ACTIVE_LOW>; - label = "r6800:orange:lan2"; - }; - - lan2_white { - gpios = <&gpio_expander 11 GPIO_ACTIVE_LOW>; - label = "r6800:white:lan2"; - }; - - lan3_orange { - gpios = <&gpio_expander 12 GPIO_ACTIVE_LOW>; - label = "r6800:orange:lan3"; - }; - - lan3_white { - gpios = <&gpio_expander 13 GPIO_ACTIVE_LOW>; - label = "r6800:white:lan3"; - }; - - lan4_orange { - gpios = <&gpio_expander 14 GPIO_ACTIVE_LOW>; - label = "r6800:orange:lan4"; - }; - - lan4_white { - gpios = <&gpio_expander 15 GPIO_ACTIVE_LOW>; - label = "r6800:white:lan4"; - }; - - wps { - gpios = <&gpio 17 GPIO_ACTIVE_HIGH>; - label = "r6800:white:wps"; - }; - - wlan { - gpios = <&gpio 5 GPIO_ACTIVE_LOW>; - label = "r6800:white:wlan"; - }; - }; }; -&state_default { - gpio { - groups = "uart3", "uart2", "jtag", "wdt"; - function = "gpio"; +&leds { + usb2 { + gpios = <&gpio_expander 6 GPIO_ACTIVE_LOW>; + label = "white:usb2"; + linux,default-trigger = "usbport"; + trigger-sources = <&ehci_port2>; }; }; diff --git a/target/linux/ramips/dts/mt7621_netgear_r6850.dts b/target/linux/ramips/dts/mt7621_netgear_r6850.dts index 85a00fe479..61e9dd6cd1 100644 --- a/target/linux/ramips/dts/mt7621_netgear_r6850.dts +++ b/target/linux/ramips/dts/mt7621_netgear_r6850.dts @@ -7,19 +7,3 @@ compatible = "netgear,r6850", "mediatek,mt7621-soc"; model = "Netgear R6850"; }; - -&led_power { - label = "r6850:green:power"; -}; - -&led_usb { - label = "r6850:green:usb"; -}; - -&led_internet { - label = "r6850:green:wan"; -}; - -&led_wifi { - label = "r6850:green:wifi"; -}; diff --git a/target/linux/ramips/dts/mt7621_netgear_sercomm_ayx.dtsi b/target/linux/ramips/dts/mt7621_netgear_sercomm_ayx.dtsi index 0ec1a4fb3c..1a19cd048b 100644 --- a/target/linux/ramips/dts/mt7621_netgear_sercomm_ayx.dtsi +++ b/target/linux/ramips/dts/mt7621_netgear_sercomm_ayx.dtsi @@ -42,25 +42,30 @@ compatible = "gpio-leds"; led_power: power { + label = "green:power"; gpios = <&gpio 18 GPIO_ACTIVE_LOW>; }; - led_usb: usb { + usb { + label = "green:usb"; gpios = <&gpio 15 GPIO_ACTIVE_LOW>; trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>; linux,default-trigger = "usbport"; }; - led_internet: internet { + internet { + label = "green:wan"; gpios = <&gpio 13 GPIO_ACTIVE_LOW>; }; - led_wifi: wifi { + wifi { + label = "green:wifi"; gpios = <&gpio 16 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; - led_wps: wps { + wps { + label = "green:wps"; gpios = <&gpio 12 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_netgear_sercomm_bzv.dtsi b/target/linux/ramips/dts/mt7621_netgear_sercomm_bzv.dtsi index eefda07860..71c95e75bd 100644 --- a/target/linux/ramips/dts/mt7621_netgear_sercomm_bzv.dtsi +++ b/target/linux/ramips/dts/mt7621_netgear_sercomm_bzv.dtsi @@ -10,6 +10,10 @@ aliases { label-mac-device = &gmac0; + led-boot = &led_power_white; + led-failsafe = &led_power_orange; + led-running = &led_power_white; + led-upgrade = &led_power_orange; }; keys { @@ -33,6 +37,106 @@ linux,code = ; }; }; + + leds: leds { + compatible = "gpio-leds"; + + led_power_orange: power_orange { + gpios = <&gpio_expander 0 GPIO_ACTIVE_LOW>; + label = "orange:power"; + }; + + led_power_white: power_white { + gpios = <&gpio_expander 1 GPIO_ACTIVE_LOW>; + label = "white:power"; + }; + + wan_orange { + gpios = <&gpio_expander 2 GPIO_ACTIVE_LOW>; + label = "orange:wan"; + }; + + wan_white { + gpios = <&gpio_expander 3 GPIO_ACTIVE_LOW>; + label = "white:wan"; + }; + + wlan2g { + gpios = <&gpio_expander 4 GPIO_ACTIVE_LOW>; + label = "white:wlan2g"; + linux,default-trigger = "phy0radio"; + }; + + wlan5g { + gpios = <&gpio_expander 5 GPIO_ACTIVE_LOW>; + label = "white:wlan5g"; + linux,default-trigger = "phy1radio"; + }; + + usb3 { + gpios = <&gpio_expander 7 GPIO_ACTIVE_LOW>; + label = "white:usb3"; + linux,default-trigger = "usbport"; + trigger-sources = <&xhci_ehci_port1>; + }; + + lan1_orange { + gpios = <&gpio_expander 8 GPIO_ACTIVE_LOW>; + label = "orange:lan1"; + }; + + lan1_white { + gpios = <&gpio_expander 9 GPIO_ACTIVE_LOW>; + label = "white:lan1"; + }; + + lan2_orange { + gpios = <&gpio_expander 10 GPIO_ACTIVE_LOW>; + label = "orange:lan2"; + }; + + lan2_white { + gpios = <&gpio_expander 11 GPIO_ACTIVE_LOW>; + label = "white:lan2"; + }; + + lan3_orange { + gpios = <&gpio_expander 12 GPIO_ACTIVE_LOW>; + label = "orange:lan3"; + }; + + lan3_white { + gpios = <&gpio_expander 13 GPIO_ACTIVE_LOW>; + label = "white:lan3"; + }; + + lan4_orange { + gpios = <&gpio_expander 14 GPIO_ACTIVE_LOW>; + label = "orange:lan4"; + }; + + lan4_white { + gpios = <&gpio_expander 15 GPIO_ACTIVE_LOW>; + label = "white:lan4"; + }; + + wps { + gpios = <&gpio 17 GPIO_ACTIVE_HIGH>; + label = "white:wps"; + }; + + wlan { + gpios = <&gpio 5 GPIO_ACTIVE_LOW>; + label = "white:wlan"; + }; + }; +}; + +&state_default { + gpio { + groups = "uart3", "uart2", "jtag", "wdt"; + function = "gpio"; + }; }; &pcie { diff --git a/target/linux/ramips/dts/mt7621_netgear_sercomm_chj.dtsi b/target/linux/ramips/dts/mt7621_netgear_sercomm_chj.dtsi index f0838936df..79ac46c897 100644 --- a/target/linux/ramips/dts/mt7621_netgear_sercomm_chj.dtsi +++ b/target/linux/ramips/dts/mt7621_netgear_sercomm_chj.dtsi @@ -20,20 +20,24 @@ compatible = "gpio-leds"; led_power: power { + label = "green:power"; gpios = <&gpio 18 GPIO_ACTIVE_LOW>; }; - led_usb: usb { + usb { + label = "green:usb"; gpios = <&gpio 15 GPIO_ACTIVE_LOW>; trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>; linux,default-trigger = "usbport"; }; - led_internet: internet { + internet { + label = "green:wan"; gpios = <&gpio 13 GPIO_ACTIVE_LOW>; }; - led_wifi: wifi { + wifi { + label = "green:wifi"; gpios = <&gpio 16 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; diff --git a/target/linux/ramips/dts/mt7621_netgear_wac104.dts b/target/linux/ramips/dts/mt7621_netgear_wac104.dts index 05d334031f..00b0b4d35f 100644 --- a/target/linux/ramips/dts/mt7621_netgear_wac104.dts +++ b/target/linux/ramips/dts/mt7621_netgear_wac104.dts @@ -44,17 +44,17 @@ compatible = "gpio-leds"; wps { - label = "wac104:green:wps"; + label = "green:wps"; gpios = <&gpio 13 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "wac104:green:power"; + label = "green:power"; gpios = <&gpio 18 GPIO_ACTIVE_LOW>; }; wifi { - label = "wac104:green:wifi"; + label = "green:wifi"; gpios = <&gpio 16 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; diff --git a/target/linux/ramips/dts/mt7621_netgear_wac124.dts b/target/linux/ramips/dts/mt7621_netgear_wac124.dts index b081581a31..b42b065e21 100644 --- a/target/linux/ramips/dts/mt7621_netgear_wac124.dts +++ b/target/linux/ramips/dts/mt7621_netgear_wac124.dts @@ -7,19 +7,3 @@ compatible = "netgear,wac124", "mediatek,mt7621-soc"; model = "Netgear WAC124"; }; - -&led_power { - label = "wac124:green:power"; -}; - -&led_usb { - label = "wac124:green:usb"; -}; - -&led_internet { - label = "wac124:green:wan"; -}; - -&led_wifi { - label = "wac124:green:wifi"; -}; diff --git a/target/linux/ramips/dts/mt7621_netgear_wndr3700-v5.dts b/target/linux/ramips/dts/mt7621_netgear_wndr3700-v5.dts index 41688989dc..f69cffc172 100644 --- a/target/linux/ramips/dts/mt7621_netgear_wndr3700-v5.dts +++ b/target/linux/ramips/dts/mt7621_netgear_wndr3700-v5.dts @@ -8,26 +8,6 @@ model = "Netgear WNDR3700 v5"; }; -&led_power { - label = "wndr3700-v5:green:power"; -}; - -&led_usb { - label = "wndr3700-v5:green:usb"; -}; - -&led_internet { - label = "wndr3700-v5:green:wan"; -}; - -&led_wifi { - label = "wndr3700-v5:green:wifi"; -}; - -&led_wps { - label = "wndr3700-v5:green:wps"; -}; - &spi0 { status = "okay"; diff --git a/target/linux/ramips/dts/mt7621_netis_wf2881.dts b/target/linux/ramips/dts/mt7621_netis_wf2881.dts index cd49f0a6b3..d735099ac9 100644 --- a/target/linux/ramips/dts/mt7621_netis_wf2881.dts +++ b/target/linux/ramips/dts/mt7621_netis_wf2881.dts @@ -21,14 +21,14 @@ compatible = "gpio-leds"; usb { - label = "wf2881:green:usb"; + label = "green:usb"; gpios = <&gpio 6 GPIO_ACTIVE_LOW>; trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>; linux,default-trigger = "usbport"; }; led_wps: wps { - label = "wf2881:green:wps"; + label = "green:wps"; gpios = <&gpio 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_phicomm_k2p.dts b/target/linux/ramips/dts/mt7621_phicomm_k2p.dts index 936d778443..59da511cd0 100644 --- a/target/linux/ramips/dts/mt7621_phicomm_k2p.dts +++ b/target/linux/ramips/dts/mt7621_phicomm_k2p.dts @@ -20,17 +20,17 @@ compatible = "gpio-leds"; stat_r { - label = "k2p:red:status"; + label = "red:status"; gpios = <&gpio 13 GPIO_ACTIVE_HIGH>; }; stat_y { - label = "k2p:yellow:status"; + label = "yellow:status"; gpios = <&gpio 14 GPIO_ACTIVE_LOW>; }; led_blue: stat_b { - label = "k2p:blue:status"; + label = "blue:status"; gpios = <&gpio 15 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_planex_vr500.dts b/target/linux/ramips/dts/mt7621_planex_vr500.dts index 15cf191c5a..eaca1b385b 100644 --- a/target/linux/ramips/dts/mt7621_planex_vr500.dts +++ b/target/linux/ramips/dts/mt7621_planex_vr500.dts @@ -20,7 +20,7 @@ compatible = "gpio-leds"; led_power: power { - label = "vr500:green:power"; + label = "green:power"; gpios = <&gpio 45 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_samknows_whitebox-v8.dts b/target/linux/ramips/dts/mt7621_samknows_whitebox-v8.dts index 2b8f89b876..b6ec87f243 100644 --- a/target/linux/ramips/dts/mt7621_samknows_whitebox-v8.dts +++ b/target/linux/ramips/dts/mt7621_samknows_whitebox-v8.dts @@ -19,12 +19,12 @@ compatible = "gpio-leds"; led_wps: wps { - label = "sk-wb8:green:wps"; + label = "green:wps"; gpios = <&gpio 46 GPIO_ACTIVE_LOW>; }; usb { - label = "sk-wb8:green:usb"; + label = "green:usb"; gpios = <&gpio 47 GPIO_ACTIVE_LOW>; trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/mt7621_storylink_sap-g3200u3.dts b/target/linux/ramips/dts/mt7621_storylink_sap-g3200u3.dts index be6e7ec89d..949b4b59f4 100644 --- a/target/linux/ramips/dts/mt7621_storylink_sap-g3200u3.dts +++ b/target/linux/ramips/dts/mt7621_storylink_sap-g3200u3.dts @@ -13,7 +13,7 @@ compatible = "gpio-leds"; usb { - label = "sap-g3200u3:green:usb"; + label = "green:usb"; gpios = <&gpio 13 GPIO_ACTIVE_LOW>; trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/mt7621_telco-electronics_x1.dts b/target/linux/ramips/dts/mt7621_telco-electronics_x1.dts index f76dc110ac..7e186245b4 100644 --- a/target/linux/ramips/dts/mt7621_telco-electronics_x1.dts +++ b/target/linux/ramips/dts/mt7621_telco-electronics_x1.dts @@ -36,47 +36,47 @@ compatible = "gpio-leds"; system_led: system { - label = "x1:green:system"; + label = "green:system"; gpios = <&gpio 26 GPIO_ACTIVE_LOW>; }; modem_offline { - label = "x1:red:modem-offline"; + label = "red:modem-offline"; gpios = <&gpio 23 GPIO_ACTIVE_HIGH>; }; modem_4g { - label = "x1:blue:modem-4g"; + label = "blue:modem-4g"; gpios = <&gpio 24 GPIO_ACTIVE_LOW>; }; modem_3g { - label = "x1:green:modem-3g"; + label = "green:modem-3g"; gpios = <&gpio 25 GPIO_ACTIVE_LOW>; }; modem_rssi_lowest { - label = "x1:green:modem-rssi-lowest"; + label = "green:modem-rssi-lowest"; gpios = <&gpio 27 GPIO_ACTIVE_LOW>; }; modem_rssi_low { - label = "x1:green:modem-rssi-low"; + label = "green:modem-rssi-low"; gpios = <&gpio 28 GPIO_ACTIVE_LOW>; }; modem_rssi_medium { - label = "x1:green:modem-rssi-medium"; + label = "green:modem-rssi-medium"; gpios = <&gpio 29 GPIO_ACTIVE_LOW>; }; modem_rssi_high { - label = "x1:green:modem-rssi-high"; + label = "green:modem-rssi-high"; gpios = <&gpio 30 GPIO_ACTIVE_LOW>; }; modem_rssi_highest { - label = "x1:green:modem-rssi-highest"; + label = "green:modem-rssi-highest"; gpios = <&gpio 31 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_thunder_timecloud.dts b/target/linux/ramips/dts/mt7621_thunder_timecloud.dts index e77d754f41..af61bccc69 100644 --- a/target/linux/ramips/dts/mt7621_thunder_timecloud.dts +++ b/target/linux/ramips/dts/mt7621_thunder_timecloud.dts @@ -24,12 +24,12 @@ compatible = "gpio-leds"; statw { - label = "timecloud:white:status"; + label = "white:status"; gpios = <&gpio 7 GPIO_ACTIVE_HIGH>; }; led_statuso: stato { - label = "timecloud:orange:status"; + label = "orange:status"; gpios = <&gpio 8 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/mt7621_totolink_a7000r.dts b/target/linux/ramips/dts/mt7621_totolink_a7000r.dts index 93de34489b..ae9c858abb 100644 --- a/target/linux/ramips/dts/mt7621_totolink_a7000r.dts +++ b/target/linux/ramips/dts/mt7621_totolink_a7000r.dts @@ -21,7 +21,7 @@ compatible = "gpio-leds"; led_sys: sys { - label = "a7000r:blue:sys"; + label = "blue:sys"; gpios = <&gpio 18 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_tplink_re350-v1.dts b/target/linux/ramips/dts/mt7621_tplink_re350-v1.dts index 665af89dfe..a1ce256fc1 100644 --- a/target/linux/ramips/dts/mt7621_tplink_re350-v1.dts +++ b/target/linux/ramips/dts/mt7621_tplink_re350-v1.dts @@ -20,37 +20,37 @@ compatible = "gpio-leds"; led_power: power { - label = "re350-v1:blue:power"; + label = "blue:power"; gpios = <&gpio 22 GPIO_ACTIVE_LOW>; }; wifi2g { - label = "re350-v1:blue:wifi2G"; + label = "blue:wifi2G"; gpios = <&gpio 23 GPIO_ACTIVE_LOW>; }; wifi5g { - label = "re350-v1:blue:wifi5G"; + label = "blue:wifi5G"; gpios = <&gpio 24 GPIO_ACTIVE_LOW>; }; wps_r { - label = "re350-v1:red:wps"; + label = "red:wps"; gpios = <&gpio 25 GPIO_ACTIVE_HIGH>; }; wps_b { - label = "re350-v1:blue:wps"; + label = "blue:wps"; gpios = <&gpio 26 GPIO_ACTIVE_HIGH>; }; eth { - label = "re350-v1:green:eth_act"; + label = "green:eth_act"; gpios = <&gpio 28 GPIO_ACTIVE_LOW>; }; eth2 { - label = "re350-v1:green:eth_link"; + label = "green:eth_link"; gpios = <&gpio 29 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_tplink_re500-v1.dts b/target/linux/ramips/dts/mt7621_tplink_re500-v1.dts index 600342a822..c78218ee13 100644 --- a/target/linux/ramips/dts/mt7621_tplink_re500-v1.dts +++ b/target/linux/ramips/dts/mt7621_tplink_re500-v1.dts @@ -6,59 +6,4 @@ / { compatible = "tplink,re500-v1", "mediatek,mt7621-soc"; model = "TP-Link RE500 v1"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "re500-v1:blue:power"; - gpios = <&gpio 22 GPIO_ACTIVE_LOW>; - }; - - wifi2g { - label = "re500-v1:blue:wifi2g"; - gpios = <&gpio 23 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - - wifi5g { - label = "re500-v1:blue:wifi5g"; - gpios = <&gpio 24 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy1tpt"; - }; - - wps_red { - label = "re500-v1:red:wps"; - gpios = <&gpio 26 GPIO_ACTIVE_HIGH>; - }; - - wps_blue { - label = "re500-v1:blue:wps"; - gpios = <&gpio 27 GPIO_ACTIVE_HIGH>; - }; - - eth_act { - label = "re500-v1:green:eth_act"; - gpios = <&gpio 28 GPIO_ACTIVE_LOW>; - }; - - eth_link { - label = "re500-v1:green:eth_link"; - gpios = <&gpio 29 GPIO_ACTIVE_LOW>; - }; - }; -}; - -&state_default { - gpio { - groups = "rgmii2", "wdt"; - 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 b7290635b9..6ab0167d42 100644 --- a/target/linux/ramips/dts/mt7621_tplink_re650-v1.dts +++ b/target/linux/ramips/dts/mt7621_tplink_re650-v1.dts @@ -6,59 +6,4 @@ / { compatible = "tplink,re650-v1", "mediatek,mt7621-soc"; model = "TP-Link RE650 v1"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "re650-v1:blue:power"; - gpios = <&gpio 22 GPIO_ACTIVE_LOW>; - }; - - wifi2g { - label = "re650-v1:blue:wifi2g"; - gpios = <&gpio 23 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - - wifi5g { - label = "re650-v1:blue:wifi5g"; - gpios = <&gpio 24 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy1tpt"; - }; - - wps_red { - label = "re650-v1:red:wps"; - gpios = <&gpio 26 GPIO_ACTIVE_HIGH>; - }; - - wps_blue { - label = "re650-v1:blue:wps"; - gpios = <&gpio 27 GPIO_ACTIVE_HIGH>; - }; - - eth_act { - label = "re650-v1:green:eth_act"; - gpios = <&gpio 28 GPIO_ACTIVE_LOW>; - }; - - eth_link { - label = "re650-v1:green:eth_link"; - gpios = <&gpio 29 GPIO_ACTIVE_LOW>; - }; - }; -}; - -&state_default { - gpio { - groups = "rgmii2", "wdt"; - function = "gpio"; - }; }; diff --git a/target/linux/ramips/dts/mt7621_tplink_rexx0-v1.dtsi b/target/linux/ramips/dts/mt7621_tplink_rexx0-v1.dtsi index 7e860cb00e..45a983098d 100644 --- a/target/linux/ramips/dts/mt7621_tplink_rexx0-v1.dtsi +++ b/target/linux/ramips/dts/mt7621_tplink_rexx0-v1.dtsi @@ -8,6 +8,10 @@ / { aliases { label-mac-device = &gmac0; + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; }; keys { @@ -41,6 +45,47 @@ linux,code = ; }; }; + + leds { + compatible = "gpio-leds"; + + led_power: power { + label = "blue:power"; + gpios = <&gpio 22 GPIO_ACTIVE_LOW>; + }; + + wifi2g { + label = "blue:wifi2g"; + gpios = <&gpio 23 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy0tpt"; + }; + + wifi5g { + label = "blue:wifi5g"; + gpios = <&gpio 24 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy1tpt"; + }; + + wps_red { + label = "red:wps"; + gpios = <&gpio 26 GPIO_ACTIVE_HIGH>; + }; + + wps_blue { + label = "blue:wps"; + gpios = <&gpio 27 GPIO_ACTIVE_HIGH>; + }; + + eth_act { + label = "green:eth_act"; + gpios = <&gpio 28 GPIO_ACTIVE_LOW>; + }; + + eth_link { + label = "green:eth_link"; + gpios = <&gpio 29 GPIO_ACTIVE_LOW>; + }; + }; }; &spi0 { @@ -87,6 +132,13 @@ }; }; +&state_default { + gpio { + groups = "rgmii2", "wdt"; + function = "gpio"; + }; +}; + &pcie { status = "okay"; }; diff --git a/target/linux/ramips/dts/mt7621_ubnt_unifi-nanohd.dts b/target/linux/ramips/dts/mt7621_ubnt_unifi-nanohd.dts index 6292762ea7..2870e2df2f 100644 --- a/target/linux/ramips/dts/mt7621_ubnt_unifi-nanohd.dts +++ b/target/linux/ramips/dts/mt7621_ubnt_unifi-nanohd.dts @@ -26,12 +26,12 @@ compatible = "gpio-leds"; led_blue: dome_blue { - label = "nanohd:blue:dome"; + label = "blue:dome"; gpios = <&gpio 3 GPIO_ACTIVE_HIGH>; }; led_white: dome_white { - label = "nanohd:white:dome"; + label = "white:dome"; gpios = <&gpio 4 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/mt7621_unielec_u7621-06.dtsi b/target/linux/ramips/dts/mt7621_unielec_u7621-06.dtsi index ca0e2d7dcd..ae8f3a5e54 100644 --- a/target/linux/ramips/dts/mt7621_unielec_u7621-06.dtsi +++ b/target/linux/ramips/dts/mt7621_unielec_u7621-06.dtsi @@ -76,17 +76,17 @@ compatible = "gpio-leds"; led_status: status { - label = "u7621-06:green:status"; + label = "green:status"; gpios = <&gpio 10 GPIO_ACTIVE_LOW>; }; led4 { - label = "u7621-06:green:led4"; + label = "green:led4"; gpios = <&gpio 11 GPIO_ACTIVE_HIGH>; }; led5 { - label = "u7621-06:green:led5"; + label = "green:led5"; gpios = <&gpio 12 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/mt7621_wavlink_wl-wn531a6.dts b/target/linux/ramips/dts/mt7621_wavlink_wl-wn531a6.dts index 0f017fd829..c35e6e2470 100644 --- a/target/linux/ramips/dts/mt7621_wavlink_wl-wn531a6.dts +++ b/target/linux/ramips/dts/mt7621_wavlink_wl-wn531a6.dts @@ -49,17 +49,17 @@ compatible = "gpio-leds"; led_status_blue: status_blue { - label = "wl-wn531a6:blue:power"; + label = "blue:power"; gpios = <&gpio 16 GPIO_ACTIVE_HIGH>; }; led_status_red: status_red { - label = "wl-wn531a6:red:power"; + label = "red:power"; gpios = <&gpio 17 GPIO_ACTIVE_HIGH>; }; wifi2g { - label = "wl-wn531a6:blue:wifi2g"; + label = "blue:wifi2g"; gpios = <&gpio 23 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; diff --git a/target/linux/ramips/dts/mt7621_wevo_11acnas.dts b/target/linux/ramips/dts/mt7621_wevo_11acnas.dts index 9c04b5b117..19a9ba08c5 100644 --- a/target/linux/ramips/dts/mt7621_wevo_11acnas.dts +++ b/target/linux/ramips/dts/mt7621_wevo_11acnas.dts @@ -10,7 +10,7 @@ compatible = "gpio-leds"; usb { - label = "11acnas:green:usb"; + label = "green:usb"; gpios = <&gpio 27 GPIO_ACTIVE_LOW>; trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dts b/target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dts index 65000c1ed4..ad6498f113 100644 --- a/target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dts +++ b/target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dts @@ -10,7 +10,7 @@ compatible = "gpio-leds"; usb { - label = "w2914nsv2:green:usb"; + label = "green:usb"; gpios = <&gpio 27 GPIO_ACTIVE_LOW>; trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/mt7621_winstars_ws-wn583a6.dts b/target/linux/ramips/dts/mt7621_winstars_ws-wn583a6.dts index 2897f42f1d..f5e973be60 100644 --- a/target/linux/ramips/dts/mt7621_winstars_ws-wn583a6.dts +++ b/target/linux/ramips/dts/mt7621_winstars_ws-wn583a6.dts @@ -21,22 +21,22 @@ compatible = "gpio-leds"; night_light_white { - label = "ws-wn583a6:white:night_light"; + label = "white:night_light"; gpios = <&gpio 15 GPIO_ACTIVE_HIGH>; }; led_status_blue: status_blue { - label = "ws-wn583a6:blue:status"; + label = "blue:status"; gpios = <&gpio 22 GPIO_ACTIVE_LOW>; }; status_amber { - label = "ws-wn583a6:amber:status"; + label = "amber:status"; gpios = <&gpio 24 GPIO_ACTIVE_LOW>; }; led_status_red: status_red { - label = "ws-wn583a6:red:status"; + label = "red:status"; gpios = <&gpio 25 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_xiaomi_mi-router-ac2100.dts b/target/linux/ramips/dts/mt7621_xiaomi_mi-router-ac2100.dts index 92dc3311cb..290c78d413 100644 --- a/target/linux/ramips/dts/mt7621_xiaomi_mi-router-ac2100.dts +++ b/target/linux/ramips/dts/mt7621_xiaomi_mi-router-ac2100.dts @@ -19,22 +19,22 @@ compatible = "gpio-leds"; wan_yellow { - label = "mi-router-ac2100:yellow:wan"; + label = "yellow:wan"; gpios = <&gpio 6 GPIO_ACTIVE_LOW>; }; wan_blue { - label = "mi-router-ac2100:blue:wan"; + label = "blue:wan"; gpios = <&gpio 8 GPIO_ACTIVE_LOW>; }; led_status_yellow: status_yellow { - label = "mi-router-ac2100:yellow:status"; + label = "yellow:status"; gpios = <&gpio 10 GPIO_ACTIVE_LOW>; }; led_status_blue: status_blue { - label = "mi-router-ac2100:blue:status"; + label = "blue:status"; gpios = <&gpio 12 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_xiaomi_mir3g-v2.dts b/target/linux/ramips/dts/mt7621_xiaomi_mir3g-v2.dts index c307486fc0..517f647b8c 100644 --- a/target/linux/ramips/dts/mt7621_xiaomi_mir3g-v2.dts +++ b/target/linux/ramips/dts/mt7621_xiaomi_mir3g-v2.dts @@ -26,12 +26,12 @@ compatible = "gpio-leds"; led_status_blue: status_blue { - label = "mir3gv2:blue:status"; + label = "blue:status"; gpios = <&gpio 8 GPIO_ACTIVE_LOW>; }; led_status_yellow: status_yellow { - label = "mir3gv2:yellow:status"; + label = "yellow:status"; gpios = <&gpio 10 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_xiaomi_mir3g.dts b/target/linux/ramips/dts/mt7621_xiaomi_mir3g.dts index 60786e421e..37892c9bd4 100644 --- a/target/linux/ramips/dts/mt7621_xiaomi_mir3g.dts +++ b/target/linux/ramips/dts/mt7621_xiaomi_mir3g.dts @@ -25,34 +25,34 @@ compatible = "gpio-leds"; led_status_red: status_red { - label = "mir3g:red:status"; + label = "red:status"; gpios = <&gpio 6 GPIO_ACTIVE_LOW>; }; led_status_blue: status_blue { - label = "mir3g:blue:status"; + label = "blue:status"; gpios = <&gpio 8 GPIO_ACTIVE_LOW>; }; led_status_yellow: status_yellow { - label = "mir3g:yellow:status"; + label = "yellow:status"; gpios = <&gpio 10 GPIO_ACTIVE_LOW>; }; wan_amber { - label = "mir3g:amber:wan"; + label = "amber:wan"; gpios = <&gpio 13 GPIO_ACTIVE_LOW>; linux,default-trigger = "dsa-0.0:01:1Gbps"; }; lan1_amber { - label = "mir3g:amber:lan1"; + label = "amber:lan1"; gpios = <&gpio 14 GPIO_ACTIVE_LOW>; linux,default-trigger = "dsa-0.0:03:1Gbps"; }; lan2_amber { - label = "mir3g:amber:lan2"; + label = "amber:lan2"; gpios = <&gpio 16 GPIO_ACTIVE_LOW>; linux,default-trigger = "dsa-0.0:02:1Gbps"; }; diff --git a/target/linux/ramips/dts/mt7621_xiaomi_mir3p.dts b/target/linux/ramips/dts/mt7621_xiaomi_mir3p.dts index 8a85c8b48d..9f852635da 100644 --- a/target/linux/ramips/dts/mt7621_xiaomi_mir3p.dts +++ b/target/linux/ramips/dts/mt7621_xiaomi_mir3p.dts @@ -26,40 +26,40 @@ compatible = "gpio-leds"; led_status_red: status_red { - label = "mir3p:red:status"; + label = "red:status"; gpios = <&gpio 6 GPIO_ACTIVE_LOW>; }; led_status_blue: status_blue { - label = "mir3p:blue:status"; + label = "blue:status"; gpios = <&gpio 8 GPIO_ACTIVE_LOW>; }; led_status_yellow: status_yellow { - label = "mir3p:yellow:status"; + label = "yellow:status"; gpios = <&gpio 10 GPIO_ACTIVE_LOW>; }; wan_amber { - label = "mir3p:amber:wan"; + label = "amber:wan"; gpios = <&gpio 14 GPIO_ACTIVE_LOW>; linux,default-trigger = "dsa-0.0:04:1Gbps"; }; lan3_amber { - label = "mir3p:amber:lan3"; + label = "amber:lan3"; gpios = <&gpio 13 GPIO_ACTIVE_LOW>; linux,default-trigger = "dsa-0.0:01:1Gbps"; }; lan2_amber { - label = "mir3p:amber:lan2"; + label = "amber:lan2"; gpios = <&gpio 16 GPIO_ACTIVE_LOW>; linux,default-trigger = "dsa-0.0:02:1Gbps"; }; lan1_amber { - label = "mir3p:amber:lan1"; + label = "amber:lan1"; gpios = <&gpio 15 GPIO_ACTIVE_LOW>; linux,default-trigger = "dsa-0.0:03:1Gbps"; }; diff --git a/target/linux/ramips/dts/mt7621_xiaomi_redmi-router-ac2100.dts b/target/linux/ramips/dts/mt7621_xiaomi_redmi-router-ac2100.dts index 8f102310c6..6cc9dfd30c 100644 --- a/target/linux/ramips/dts/mt7621_xiaomi_redmi-router-ac2100.dts +++ b/target/linux/ramips/dts/mt7621_xiaomi_redmi-router-ac2100.dts @@ -19,22 +19,22 @@ compatible = "gpio-leds"; led_status_amber: status_amber { - label = "redmi-router-ac2100:amber:status"; + label = "amber:status"; gpios = <&gpio 6 GPIO_ACTIVE_LOW>; }; led_status_white: status_white { - label = "redmi-router-ac2100:white:status"; + label = "white:status"; gpios = <&gpio 8 GPIO_ACTIVE_LOW>; }; wan_amber { - label = "redmi-router-ac2100:amber:wan"; + label = "amber:wan"; gpios = <&gpio 10 GPIO_ACTIVE_LOW>; }; wan_white { - label = "redmi-router-ac2100:white:wan"; + label = "white:wan"; gpios = <&gpio 12 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_xiaoyu_xy-c5.dts b/target/linux/ramips/dts/mt7621_xiaoyu_xy-c5.dts index 3563090031..e21fb9446e 100644 --- a/target/linux/ramips/dts/mt7621_xiaoyu_xy-c5.dts +++ b/target/linux/ramips/dts/mt7621_xiaoyu_xy-c5.dts @@ -21,12 +21,12 @@ compatible = "gpio-leds"; work { - label = "xy-c5:green:work"; + label = "green:work"; gpios = <&gpio 8 GPIO_ACTIVE_LOW>; }; led_sys: sys { - label = "xy-c5:green:sys"; + label = "green:sys"; gpios = <&gpio 7 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_xzwifi_creativebox-v1.dts b/target/linux/ramips/dts/mt7621_xzwifi_creativebox-v1.dts index 0db8b34474..62769d72a8 100644 --- a/target/linux/ramips/dts/mt7621_xzwifi_creativebox-v1.dts +++ b/target/linux/ramips/dts/mt7621_xzwifi_creativebox-v1.dts @@ -25,29 +25,29 @@ compatible = "gpio-leds"; power { - label = "creativebox-v1:blue:power"; + label = "blue:power"; gpios = <&gpio 31 GPIO_ACTIVE_LOW>; default-state = "on"; }; led_sys: sys { - label = "creativebox-v1:blue:sys"; + label = "blue:sys"; gpios = <&gpio 32 GPIO_ACTIVE_LOW>; }; internet { - label = "creativebox-v1:blue:internet"; + label = "blue:internet"; gpios = <&gpio 29 GPIO_ACTIVE_LOW>; }; wlan2g { - label = "creativebox-v1:blue:wlan2g"; + label = "blue:wlan2g"; gpios = <&gpio 33 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; wlan5g { - label = "creativebox-v1:blue:wlan5g"; + label = "blue:wlan5g"; gpios = <&gpio 28 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1tpt"; }; diff --git a/target/linux/ramips/dts/mt7621_youhua_wr1200js.dts b/target/linux/ramips/dts/mt7621_youhua_wr1200js.dts index 0045c6e879..db64dc6b21 100644 --- a/target/linux/ramips/dts/mt7621_youhua_wr1200js.dts +++ b/target/linux/ramips/dts/mt7621_youhua_wr1200js.dts @@ -22,17 +22,17 @@ compatible = "gpio-leds"; internet { - label = "wr1200js:blue:internet"; + label = "blue:internet"; gpios = <&gpio 6 GPIO_ACTIVE_LOW>; }; led_wps: wps { - label = "wr1200js:blue:wps"; + label = "blue:wps"; gpios = <&gpio 7 GPIO_ACTIVE_LOW>; }; usb { - label = "wr1200js:blue:usb"; + label = "blue:usb"; gpios = <&gpio 8 GPIO_ACTIVE_LOW>; trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/mt7621_youku_yk-l2.dts b/target/linux/ramips/dts/mt7621_youku_yk-l2.dts index e43ee8451a..fcf0f11e26 100644 --- a/target/linux/ramips/dts/mt7621_youku_yk-l2.dts +++ b/target/linux/ramips/dts/mt7621_youku_yk-l2.dts @@ -25,18 +25,18 @@ compatible = "gpio-leds"; led_power: power { - label = "yk-l2:blue:power"; + label = "blue:power"; gpios = <&gpio 13 GPIO_ACTIVE_LOW>; default-state = "on"; }; led_wps: wps { - label = "yk-l2:blue:wps"; + label = "blue:wps"; gpios = <&gpio 14 GPIO_ACTIVE_LOW>; }; usb { - label = "yk-l2:blue:usb"; + label = "blue:usb"; gpios = <&gpio 16 GPIO_ACTIVE_LOW>; trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/mt7621_zbtlink_zbt-wg2626.dts b/target/linux/ramips/dts/mt7621_zbtlink_zbt-wg2626.dts index 8a994fb42e..fe43d86be9 100644 --- a/target/linux/ramips/dts/mt7621_zbtlink_zbt-wg2626.dts +++ b/target/linux/ramips/dts/mt7621_zbtlink_zbt-wg2626.dts @@ -34,7 +34,7 @@ compatible = "gpio-leds"; led_status: status { - label = "zbt-wg2626:green:status"; + label = "green:status"; gpios = <&gpio 24 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_zbtlink_zbt-wg3526.dtsi b/target/linux/ramips/dts/mt7621_zbtlink_zbt-wg3526.dtsi index fe1d660060..515d37ceaa 100644 --- a/target/linux/ramips/dts/mt7621_zbtlink_zbt-wg3526.dtsi +++ b/target/linux/ramips/dts/mt7621_zbtlink_zbt-wg3526.dtsi @@ -32,7 +32,7 @@ compatible = "gpio-leds"; led_status: status { - label = "zbt-wg3526:green:status"; + label = "green:status"; gpios = <&gpio 24 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_zio_freezio.dts b/target/linux/ramips/dts/mt7621_zio_freezio.dts index cf194f1ff5..993ada914d 100644 --- a/target/linux/ramips/dts/mt7621_zio_freezio.dts +++ b/target/linux/ramips/dts/mt7621_zio_freezio.dts @@ -11,7 +11,7 @@ compatible = "gpio-leds"; usb { - label = "freezio:green:usb"; + label = "green:usb"; gpios = <&gpio 27 GPIO_ACTIVE_LOW>; trigger-sources = <&xhci_ehci_port1>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/mt7621_zyxel_wap6805.dts b/target/linux/ramips/dts/mt7621_zyxel_wap6805.dts index aa167df4ef..021a268b9c 100644 --- a/target/linux/ramips/dts/mt7621_zyxel_wap6805.dts +++ b/target/linux/ramips/dts/mt7621_zyxel_wap6805.dts @@ -22,17 +22,17 @@ compatible = "gpio-leds"; led_status_red: status_red { - label = "wap6805:red:status"; + label = "red:status"; gpios = <&gpio 4 GPIO_ACTIVE_HIGH>; }; status_blink { - label = "wap6805:blink:status"; + label = "blink:status"; gpios = <&gpio 7 GPIO_ACTIVE_HIGH>; }; led_status_green: status_green { - label = "wap6805:green:status"; + label = "green:status"; gpios = <&gpio 13 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_alfa-network_awusfree1.dts b/target/linux/ramips/dts/mt7628an_alfa-network_awusfree1.dts index c4a05e87e6..2e54c25ec0 100644 --- a/target/linux/ramips/dts/mt7628an_alfa-network_awusfree1.dts +++ b/target/linux/ramips/dts/mt7628an_alfa-network_awusfree1.dts @@ -66,12 +66,12 @@ compatible = "gpio-leds"; led_system: system { - label = "awusfree1:orange:system"; + label = "orange:system"; gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; wlan { - label = "awusfree1:blue:wlan"; + label = "blue:wlan"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_asus_rt-n10p-v3.dts b/target/linux/ramips/dts/mt7628an_asus_rt-n10p-v3.dts index ef5d1d997f..781c88fd70 100644 --- a/target/linux/ramips/dts/mt7628an_asus_rt-n10p-v3.dts +++ b/target/linux/ramips/dts/mt7628an_asus_rt-n10p-v3.dts @@ -6,29 +6,4 @@ / { compatible = "asus,rt-n10p-v3", "mediatek,mt7628an-soc"; model = "Asus RT-N10P V3"; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "rt-n10p-v3:green:power"; - gpios = <&gpio 37 GPIO_ACTIVE_LOW>; - }; - - wlan { - label = "rt-n10p-v3:green:wlan"; - gpios = <&gpio 44 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - - wan { - label = "rt-n10p-v3:green:wan"; - gpios = <&gpio 43 GPIO_ACTIVE_LOW>; - }; - - lan { - label = "rt-n10p-v3:green:lan"; - gpios = <&gpio 42 GPIO_ACTIVE_LOW>; - }; - }; }; diff --git a/target/linux/ramips/dts/mt7628an_asus_rt-n11p-b1.dts b/target/linux/ramips/dts/mt7628an_asus_rt-n11p-b1.dts index faa7aea025..4c3adc2c32 100644 --- a/target/linux/ramips/dts/mt7628an_asus_rt-n11p-b1.dts +++ b/target/linux/ramips/dts/mt7628an_asus_rt-n11p-b1.dts @@ -6,29 +6,4 @@ / { compatible = "asus,rt-n11p-b1", "mediatek,mt7628an-soc"; model = "Asus RT-N11P B1"; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "rt-n11p-b1:green:power"; - gpios = <&gpio 37 GPIO_ACTIVE_LOW>; - }; - - wlan { - label = "rt-n11p-b1:green:wlan"; - gpios = <&gpio 44 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - - wan { - label = "rt-n11p-b1:green:wan"; - gpios = <&gpio 43 GPIO_ACTIVE_LOW>; - }; - - lan { - label = "rt-n11p-b1:green:lan"; - gpios = <&gpio 42 GPIO_ACTIVE_LOW>; - }; - }; }; diff --git a/target/linux/ramips/dts/mt7628an_asus_rt-n12-vp-b1.dts b/target/linux/ramips/dts/mt7628an_asus_rt-n12-vp-b1.dts index cd8efe9ae4..3c246a76c1 100644 --- a/target/linux/ramips/dts/mt7628an_asus_rt-n12-vp-b1.dts +++ b/target/linux/ramips/dts/mt7628an_asus_rt-n12-vp-b1.dts @@ -6,29 +6,4 @@ / { compatible = "asus,rt-n12-vp-b1", "mediatek,mt7628an-soc"; model = "Asus RT-N12 VP B1"; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "rt-n12-vp-b1:green:power"; - gpios = <&gpio 37 GPIO_ACTIVE_LOW>; - }; - - wlan { - label = "rt-n12-vp-b1:green:wlan"; - gpios = <&gpio 44 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - - wan { - label = "rt-n12-vp-b1:green:wan"; - gpios = <&gpio 43 GPIO_ACTIVE_LOW>; - }; - - lan { - label = "rt-n12-vp-b1:green:lan"; - gpios = <&gpio 42 GPIO_ACTIVE_LOW>; - }; - }; }; diff --git a/target/linux/ramips/dts/mt7628an_asus_rt-n1x.dtsi b/target/linux/ramips/dts/mt7628an_asus_rt-n1x.dtsi index c3f7d80688..239bb08230 100644 --- a/target/linux/ramips/dts/mt7628an_asus_rt-n1x.dtsi +++ b/target/linux/ramips/dts/mt7628an_asus_rt-n1x.dtsi @@ -22,6 +22,31 @@ linux,code = ; }; }; + + leds { + compatible = "gpio-leds"; + + led_power: power { + label = "green:power"; + gpios = <&gpio 37 GPIO_ACTIVE_LOW>; + }; + + wlan { + label = "green:wlan"; + gpios = <&gpio 44 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy0tpt"; + }; + + wan { + label = "green:wan"; + gpios = <&gpio 43 GPIO_ACTIVE_LOW>; + }; + + lan { + label = "green:lan"; + gpios = <&gpio 42 GPIO_ACTIVE_LOW>; + }; + }; }; &spi0 { diff --git a/target/linux/ramips/dts/mt7628an_buffalo_wcr-1166ds.dts b/target/linux/ramips/dts/mt7628an_buffalo_wcr-1166ds.dts index 97f31e4ec0..6e649a50e5 100644 --- a/target/linux/ramips/dts/mt7628an_buffalo_wcr-1166ds.dts +++ b/target/linux/ramips/dts/mt7628an_buffalo_wcr-1166ds.dts @@ -43,42 +43,42 @@ compatible = "gpio-leds"; router_o { - label = "wcr-1166ds:orange:router"; + label = "orange:router"; gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; router_g { - label = "wcr-1166ds:green:router"; + label = "green:router"; gpios = <&gpio 38 GPIO_ACTIVE_LOW>; }; internet_o { - label = "wcr-1166ds:orange:internet"; + label = "orange:internet"; gpios = <&gpio 39 GPIO_ACTIVE_LOW>; }; internet_g { - label = "wcr-1166ds:green:internet"; + label = "green:internet"; gpios = <&gpio 40 GPIO_ACTIVE_LOW>; }; wireless_o { - label = "wcr-1166ds:orange:wireless"; + label = "orange:wireless"; gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; wireless_g { - label = "wcr-1166ds:green:wireless"; + label = "green:wireless"; gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; diag { - label = "wcr-1166ds:orange:diag"; + label = "orange:diag"; gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "wcr-1166ds:green:power"; + label = "green:power"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_cudy_wr1000.dts b/target/linux/ramips/dts/mt7628an_cudy_wr1000.dts index c977d5c993..1b1362b97a 100644 --- a/target/linux/ramips/dts/mt7628an_cudy_wr1000.dts +++ b/target/linux/ramips/dts/mt7628an_cudy_wr1000.dts @@ -37,28 +37,28 @@ compatible = "gpio-leds"; lan1 { - label = "wr1000:blue:lan1"; + label = "blue:lan1"; gpios = <&gpio 40 GPIO_ACTIVE_LOW>; }; lan2 { - label = "wr1000:blue:lan2"; + label = "blue:lan2"; gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; wan { - label = "wr1000:blue:wan"; + label = "blue:wan"; gpios = <&gpio 39 GPIO_ACTIVE_LOW>; }; wlan2g { - label = "wr1000:blue:wlan2g"; + label = "blue:wlan2g"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; led_wps: wps { - label = "wr1000:blue:wps"; + label = "blue:wps"; gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; }; 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 824561c260..8a3bf98dcf 100644 --- a/target/linux/ramips/dts/mt7628an_d-team_pbr-d1.dts +++ b/target/linux/ramips/dts/mt7628an_d-team_pbr-d1.dts @@ -28,14 +28,14 @@ compatible = "gpio-leds"; usb { - label = "pbr-d1:orange:usb"; + label = "orange:usb"; gpios = <&gpio 0 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; led_power: power { - label = "pbr-d1:orange:power"; + label = "orange:power"; gpios = <&gpio 14 GPIO_ACTIVE_LOW>; default-state = "on"; }; 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 4418a9eba2..ed142538d8 100644 --- a/target/linux/ramips/dts/mt7628an_glinet_gl-mt300n-v2.dts +++ b/target/linux/ramips/dts/mt7628an_glinet_gl-mt300n-v2.dts @@ -25,18 +25,18 @@ compatible = "gpio-leds"; led_power: power { - label = "gl-mt300n-v2:green:power"; + label = "green:power"; default-state = "on"; gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; wan { - label = "gl-mt300n-v2:green:wan"; + label = "green:wan"; gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; wlan { - label = "gl-mt300n-v2:red:wlan"; + label = "red:wlan"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_glinet_microuter-n300.dts b/target/linux/ramips/dts/mt7628an_glinet_microuter-n300.dts index 5a965f96bc..647d06e42f 100644 --- a/target/linux/ramips/dts/mt7628an_glinet_microuter-n300.dts +++ b/target/linux/ramips/dts/mt7628an_glinet_microuter-n300.dts @@ -8,14 +8,6 @@ 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 770998a87a..c12f1fd1a9 100644 --- a/target/linux/ramips/dts/mt7628an_glinet_vixmini.dts +++ b/target/linux/ramips/dts/mt7628an_glinet_vixmini.dts @@ -8,14 +8,6 @@ model = "GL.iNet VIXMINI"; }; -&led_power_blue { - label = "vixmini:blue:power"; -}; - -&led_wlan_white { - label = "vixmini:white:wlan"; -}; - &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 index ea43a87372..738968d1f9 100644 --- a/target/linux/ramips/dts/mt7628an_glinet_vixmini_microuter.dtsi +++ b/target/linux/ramips/dts/mt7628an_glinet_vixmini_microuter.dtsi @@ -23,12 +23,12 @@ compatible = "gpio-leds"; led_power_blue: power { - /* Name is set device-specific */ + label = "blue:power"; gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; - led_wlan_white: wlan { - /* Name is set device-specific */ + wlan { + label = "white:wlan"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; diff --git a/target/linux/ramips/dts/mt7628an_hilink_hlk-7628n.dts b/target/linux/ramips/dts/mt7628an_hilink_hlk-7628n.dts index 23a112d168..efaf4dd84c 100644 --- a/target/linux/ramips/dts/mt7628an_hilink_hlk-7628n.dts +++ b/target/linux/ramips/dts/mt7628an_hilink_hlk-7628n.dts @@ -24,7 +24,7 @@ compatible = "gpio-leds"; wlan { - label = "hlk-7628n:green:wlan"; + label = "green:wlan"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_hiwifi_hc5661a.dts b/target/linux/ramips/dts/mt7628an_hiwifi_hc5661a.dts index 4376e4b734..5bce5b9cf9 100644 --- a/target/linux/ramips/dts/mt7628an_hiwifi_hc5661a.dts +++ b/target/linux/ramips/dts/mt7628an_hiwifi_hc5661a.dts @@ -10,17 +10,17 @@ compatible = "gpio-leds"; led_system: system { - label = "hc5661a:blue:system"; + label = "blue:system"; gpios = <&gpio 37 GPIO_ACTIVE_HIGH>; }; internet { - label = "hc5661a:blue:internet"; + label = "blue:internet"; gpios = <&gpio 1 GPIO_ACTIVE_HIGH>; }; wlan2g { - label = "hc5661a:blue:wlan2g"; + label = "blue:wlan2g"; gpios = <&gpio 44 GPIO_ACTIVE_HIGH>; linux,default-trigger = "phy0tpt"; }; diff --git a/target/linux/ramips/dts/mt7628an_hiwifi_hc5761a.dts b/target/linux/ramips/dts/mt7628an_hiwifi_hc5761a.dts index 628602b0c8..5ab59eb756 100644 --- a/target/linux/ramips/dts/mt7628an_hiwifi_hc5761a.dts +++ b/target/linux/ramips/dts/mt7628an_hiwifi_hc5761a.dts @@ -11,23 +11,23 @@ compatible = "gpio-leds"; led_system: system { - label = "hc5761a:blue:system"; + label = "blue:system"; gpios = <&gpio 37 GPIO_ACTIVE_HIGH>; }; internet { - label = "hc5761a:blue:internet"; + label = "blue:internet"; gpios = <&gpio 1 GPIO_ACTIVE_HIGH>; }; wlan2g { - label = "hc5761a:blue:wlan2g"; + label = "blue:wlan2g"; gpios = <&gpio 44 GPIO_ACTIVE_HIGH>; linux,default-trigger = "phy0tpt"; }; wlan5g { - label = "hc5761a:blue:wlan5g"; + label = "blue:wlan5g"; gpios = <&gpio 40 GPIO_ACTIVE_HIGH>; linux,default-trigger = "phy1tpt"; }; diff --git a/target/linux/ramips/dts/mt7628an_hiwifi_hc5861b.dts b/target/linux/ramips/dts/mt7628an_hiwifi_hc5861b.dts index b69214ed5d..6706e123bf 100644 --- a/target/linux/ramips/dts/mt7628an_hiwifi_hc5861b.dts +++ b/target/linux/ramips/dts/mt7628an_hiwifi_hc5861b.dts @@ -10,12 +10,12 @@ compatible = "gpio-leds"; led_system: system { - label = "hc5861b:green:system"; + label = "green:system"; gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; wlan2g { - label = "hc5861b:green:wlan2g"; + label = "green:wlan2g"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; diff --git a/target/linux/ramips/dts/mt7628an_iptime_a3.dts b/target/linux/ramips/dts/mt7628an_iptime_a3.dts index 6b124cc2c8..b7cf2b2207 100644 --- a/target/linux/ramips/dts/mt7628an_iptime_a3.dts +++ b/target/linux/ramips/dts/mt7628an_iptime_a3.dts @@ -18,12 +18,12 @@ compatible = "gpio-leds"; led_cpu: cpu { - label = "a3:blue:cpu"; + label = "blue:cpu"; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; wlan { - label = "a3:blue:wlan"; + label = "blue:wlan"; gpios = <&gpio 46 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; diff --git a/target/linux/ramips/dts/mt7628an_iptime_a604m.dts b/target/linux/ramips/dts/mt7628an_iptime_a604m.dts index 661439f03b..467d45c5ea 100644 --- a/target/linux/ramips/dts/mt7628an_iptime_a604m.dts +++ b/target/linux/ramips/dts/mt7628an_iptime_a604m.dts @@ -18,18 +18,18 @@ compatible = "gpio-leds"; wlan5g { - label = "a604m:blue:wlan5g"; + label = "blue:wlan5g"; gpios = <&gpio 5 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1tpt"; }; led_cpu: cpu { - label = "a604m:blue:cpu"; + label = "blue:cpu"; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; wlan2g { - label = "a604m:blue:wlan2g"; + label = "blue:wlan2g"; gpios = <&gpio 46 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; diff --git a/target/linux/ramips/dts/mt7628an_jotale_js76x8.dtsi b/target/linux/ramips/dts/mt7628an_jotale_js76x8.dtsi index 9bd1da4443..3fd173914e 100644 --- a/target/linux/ramips/dts/mt7628an_jotale_js76x8.dtsi +++ b/target/linux/ramips/dts/mt7628an_jotale_js76x8.dtsi @@ -23,12 +23,12 @@ compatible = "gpio-leds"; led_system: system { - label = "js76x8:green:system"; + label = "green:system"; gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; wifi { - label = "js76x8:green:wifi"; + label = "green:wifi"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; 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 1042defb3f..97fd9bef10 100644 --- a/target/linux/ramips/dts/mt7628an_mediatek_linkit-smart-7688.dts +++ b/target/linux/ramips/dts/mt7628an_mediatek_linkit-smart-7688.dts @@ -34,7 +34,7 @@ compatible = "gpio-leds"; led_wifi: wifi { - label = "linkit-smart-7688:orange:wifi"; + label = "orange:wifi"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_mercury_mac1200r-v2.dts b/target/linux/ramips/dts/mt7628an_mercury_mac1200r-v2.dts index 7c2ebf1b6b..441b2a3b26 100644 --- a/target/linux/ramips/dts/mt7628an_mercury_mac1200r-v2.dts +++ b/target/linux/ramips/dts/mt7628an_mercury_mac1200r-v2.dts @@ -20,7 +20,7 @@ compatible = "gpio-leds"; led_status: status { - label = "mac1200rv2:green:status"; + label = "green:status"; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_netgear_r6020.dts b/target/linux/ramips/dts/mt7628an_netgear_r6020.dts index b0be381eca..16f9cbe82a 100644 --- a/target/linux/ramips/dts/mt7628an_netgear_r6020.dts +++ b/target/linux/ramips/dts/mt7628an_netgear_r6020.dts @@ -6,48 +6,6 @@ / { compatible = "netgear,r6020", "mediatek,mt7628an-soc"; model = "Netgear R6020"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - leds { - compatible = "gpio-leds"; - - lan { - label = "r6020:green:lan"; - gpios = <&gpio 44 GPIO_ACTIVE_LOW>; - }; - - led_power: power { - label = "r6020:green:power"; - gpios = <&gpio 43 GPIO_ACTIVE_LOW>; - }; - - wlan2g_green { - label = "r6020:green:wlan2g"; - gpios = <&gpio 42 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - - wlan2g_orange { - label = "r6020:orange:wlan2g"; - gpios = <&gpio 41 GPIO_ACTIVE_LOW>; - }; - - wan_green { - label = "r6020:green:wan"; - gpios = <&gpio 40 GPIO_ACTIVE_LOW>; - }; - - wan_orange { - label = "r6020:orange:wan"; - gpios = <&gpio 39 GPIO_ACTIVE_LOW>; - }; - }; }; &state_default { diff --git a/target/linux/ramips/dts/mt7628an_netgear_r6080.dts b/target/linux/ramips/dts/mt7628an_netgear_r6080.dts index b56bab8b41..2c218ec8fe 100644 --- a/target/linux/ramips/dts/mt7628an_netgear_r6080.dts +++ b/target/linux/ramips/dts/mt7628an_netgear_r6080.dts @@ -8,47 +8,8 @@ model = "Netgear R6080"; aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; label-mac-device = ðernet; }; - - leds { - compatible = "gpio-leds"; - - lan { - label = "r6080:green:lan"; - gpios = <&gpio 44 GPIO_ACTIVE_LOW>; - }; - - led_power: power { - label = "r6080:green:power"; - gpios = <&gpio 43 GPIO_ACTIVE_LOW>; - }; - - wlan2g_green { - label = "r6080:green:wlan2g"; - gpios = <&gpio 42 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - - wlan2g_orange { - label = "r6080:orange:wlan2g"; - gpios = <&gpio 41 GPIO_ACTIVE_LOW>; - }; - - wan_green { - label = "r6080:green:wan"; - gpios = <&gpio 40 GPIO_ACTIVE_LOW>; - }; - - wan_orange { - label = "r6080:orange:wan"; - gpios = <&gpio 39 GPIO_ACTIVE_LOW>; - }; - }; }; &state_default { diff --git a/target/linux/ramips/dts/mt7628an_netgear_r6120.dts b/target/linux/ramips/dts/mt7628an_netgear_r6120.dts index 51e51db3ec..997075ea58 100644 --- a/target/linux/ramips/dts/mt7628an_netgear_r6120.dts +++ b/target/linux/ramips/dts/mt7628an_netgear_r6120.dts @@ -7,48 +7,9 @@ model = "Netgear R6120"; aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; label-mac-device = ðernet; }; - leds { - compatible = "gpio-leds"; - - lan { - label = "r6120:green:lan"; - gpios = <&gpio 44 GPIO_ACTIVE_LOW>; - }; - - led_power: power { - label = "r6120:green:power"; - gpios = <&gpio 43 GPIO_ACTIVE_LOW>; - }; - - wlan2g_green { - label = "r6120:green:wlan2g"; - gpios = <&gpio 42 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - - wlan2g_orange { - label = "r6120:orange:wlan2g"; - gpios = <&gpio 41 GPIO_ACTIVE_LOW>; - }; - - wan_green { - label = "r6120:green:wan"; - gpios = <&gpio 40 GPIO_ACTIVE_LOW>; - }; - - wan_orange { - label = "r6120:orange:wan"; - gpios = <&gpio 39 GPIO_ACTIVE_LOW>; - }; - }; - usb-regulator { compatible = "regulator-fixed"; diff --git a/target/linux/ramips/dts/mt7628an_netgear_r6xxx.dtsi b/target/linux/ramips/dts/mt7628an_netgear_r6xxx.dtsi index 640591c316..c3d7da2f09 100644 --- a/target/linux/ramips/dts/mt7628an_netgear_r6xxx.dtsi +++ b/target/linux/ramips/dts/mt7628an_netgear_r6xxx.dtsi @@ -6,6 +6,13 @@ #include / { + aliases { + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; + }; + keys { compatible = "gpio-keys"; @@ -15,6 +22,41 @@ linux,code = ; }; }; + + leds { + compatible = "gpio-leds"; + + lan { + label = "green:lan"; + gpios = <&gpio 44 GPIO_ACTIVE_LOW>; + }; + + led_power: power { + label = "green:power"; + gpios = <&gpio 43 GPIO_ACTIVE_LOW>; + }; + + wlan2g_green { + label = "green:wlan2g"; + gpios = <&gpio 42 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy0tpt"; + }; + + wlan2g_orange { + label = "orange:wlan2g"; + gpios = <&gpio 41 GPIO_ACTIVE_LOW>; + }; + + wan_green { + label = "green:wan"; + gpios = <&gpio 40 GPIO_ACTIVE_LOW>; + }; + + wan_orange { + label = "orange:wan"; + gpios = <&gpio 39 GPIO_ACTIVE_LOW>; + }; + }; }; &spi0 { diff --git a/target/linux/ramips/dts/mt7628an_onion_omega2.dts b/target/linux/ramips/dts/mt7628an_onion_omega2.dts index e75abbc1fe..70feb121cb 100644 --- a/target/linux/ramips/dts/mt7628an_onion_omega2.dts +++ b/target/linux/ramips/dts/mt7628an_onion_omega2.dts @@ -10,7 +10,3 @@ &firmware { reg = <0x50000 0xfb0000>; }; - -&system_led { - label = "omega2:amber:system"; -}; diff --git a/target/linux/ramips/dts/mt7628an_onion_omega2.dtsi b/target/linux/ramips/dts/mt7628an_onion_omega2.dtsi index 04187a8353..b6d2df4756 100644 --- a/target/linux/ramips/dts/mt7628an_onion_omega2.dtsi +++ b/target/linux/ramips/dts/mt7628an_onion_omega2.dtsi @@ -7,10 +7,10 @@ compatible = "onion,omega2", "mediatek,mt7628an-soc"; aliases { - led-boot = &system_led; - led-failsafe = &system_led; - led-running = &system_led; - led-upgrade = &system_led; + led-boot = &led_system; + led-failsafe = &led_system; + led-running = &led_system; + led-upgrade = &led_system; }; chosen { @@ -20,7 +20,8 @@ leds { compatible = "gpio-leds"; - system_led: system { + led_system: system { + label = "amber:system"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_onion_omega2p.dts b/target/linux/ramips/dts/mt7628an_onion_omega2p.dts index be753372f7..558254886a 100644 --- a/target/linux/ramips/dts/mt7628an_onion_omega2p.dts +++ b/target/linux/ramips/dts/mt7628an_onion_omega2p.dts @@ -10,7 +10,3 @@ &firmware { reg = <0x50000 0x1fb0000>; }; - -&system_led { - label = "omega2p:amber:system"; -}; diff --git a/target/linux/ramips/dts/mt7628an_rakwireless_rak633.dts b/target/linux/ramips/dts/mt7628an_rakwireless_rak633.dts index 2e8b45a046..6c5e275c23 100644 --- a/target/linux/ramips/dts/mt7628an_rakwireless_rak633.dts +++ b/target/linux/ramips/dts/mt7628an_rakwireless_rak633.dts @@ -14,7 +14,7 @@ compatible = "gpio-leds"; wifi { - label = "rak633:blue:wifi"; + label = "blue:wifi"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_ravpower_rp-wd009.dts b/target/linux/ramips/dts/mt7628an_ravpower_rp-wd009.dts index f592681eb1..e5a6580424 100644 --- a/target/linux/ramips/dts/mt7628an_ravpower_rp-wd009.dts +++ b/target/linux/ramips/dts/mt7628an_ravpower_rp-wd009.dts @@ -25,29 +25,29 @@ compatible = "gpio-leds"; led_globe: globe { - label = "rp-wd009:white:globe"; + label = "white:globe"; gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; wlan2 { - label = "rp-wd009:white:wlan2"; + label = "white:wlan2"; gpios = <&gpio 44 GPIO_ACTIVE_HIGH>; linux,default-trigger = "phy0tpt"; }; wlan5 { - label = "rp-wd009:white:wlan5"; + label = "white:wlan5"; gpios = <&gpio 18 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1tpt"; }; sd_white { - label = "rp-wd009:white:sd"; + label = "white:sd"; gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; sd_red { - label = "rp-wd009:red:sd"; + label = "red:sd"; gpios = <&gpio 3 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_skylab_skw92a.dts b/target/linux/ramips/dts/mt7628an_skylab_skw92a.dts index 5cbfcf8986..491e10514a 100644 --- a/target/linux/ramips/dts/mt7628an_skylab_skw92a.dts +++ b/target/linux/ramips/dts/mt7628an_skylab_skw92a.dts @@ -19,12 +19,12 @@ compatible = "gpio-leds"; led_power: wps { - label = "skw92a:green:wps"; + label = "green:wps"; gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; wlan { - label = "skw92a:green:wlan"; + label = "green:wlan"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tama_w06.dts b/target/linux/ramips/dts/mt7628an_tama_w06.dts index 9412184ac2..3abed2bede 100644 --- a/target/linux/ramips/dts/mt7628an_tama_w06.dts +++ b/target/linux/ramips/dts/mt7628an_tama_w06.dts @@ -13,17 +13,17 @@ compatible = "gpio-leds"; wps { - label = "w06:green:wps"; + label = "green:wps"; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; wan { - label = "w06:green:wan"; + label = "green:wan"; gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; wireless { - label = "w06:green:wlan"; + label = "green:wlan"; gpios = <&gpio 46 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_totolink_a3.dts b/target/linux/ramips/dts/mt7628an_totolink_a3.dts index a5b8d91499..beeb15d6cd 100644 --- a/target/linux/ramips/dts/mt7628an_totolink_a3.dts +++ b/target/linux/ramips/dts/mt7628an_totolink_a3.dts @@ -18,12 +18,12 @@ compatible = "gpio-leds"; led_cpu: cpu { - label = "a3:blue:cpu"; + label = "blue:cpu"; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; wlan { - label = "a3:blue:wlan"; + label = "blue:wlan"; gpios = <&gpio 46 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; diff --git a/target/linux/ramips/dts/mt7628an_totolink_lr1200.dts b/target/linux/ramips/dts/mt7628an_totolink_lr1200.dts index 9fff605717..5331cf722f 100644 --- a/target/linux/ramips/dts/mt7628an_totolink_lr1200.dts +++ b/target/linux/ramips/dts/mt7628an_totolink_lr1200.dts @@ -21,48 +21,48 @@ compatible = "gpio-leds"; led_sys: sys { - label = "lr1200:blue:sys"; + label = "blue:sys"; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; sms { - label = "lr1200:blue:sms"; + label = "blue:sms"; gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; wifi { - label = "lr1200:blue:wifi"; + label = "blue:wifi"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; 3g { - label = "lr1200:blue:3g"; + label = "blue:3g"; gpios = <&gpio 4 GPIO_ACTIVE_LOW>; }; 4g { - label = "lr1200:blue:4g"; + label = "blue:4g"; gpios = <&gpio 5 GPIO_ACTIVE_LOW>; }; rssi1 { - label = "lr1200:blue:rssi1"; + label = "blue:rssi1"; gpios = <&gpio 46 GPIO_ACTIVE_LOW>; }; rssi2 { - label = "lr1200:blue:rssi2"; + label = "blue:rssi2"; gpios = <&gpio 3 GPIO_ACTIVE_LOW>; }; rssi3 { - label = "lr1200:blue:rssi3"; + label = "blue:rssi3"; gpios = <&gpio 2 GPIO_ACTIVE_LOW>; }; rssi4 { - label = "lr1200:blue:rssi4"; + label = "blue:rssi4"; gpios = <&gpio 0 GPIO_ACTIVE_LOW>; }; }; 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 faba69cca4..692abd4630 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v4.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v4.dts @@ -17,39 +17,39 @@ compatible = "gpio-leds"; lan { - label = "archer-c20-v4:green:lan"; + label = "green:lan"; gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "archer-c20-v4:green:power"; + label = "green:power"; gpios = <&gpio 2 GPIO_ACTIVE_LOW>; }; wan { - label = "archer-c20-v4:green:wan"; + label = "green:wan"; gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; wan_orange { - label = "archer-c20-v4:orange:wan"; + label = "orange:wan"; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; wlan5g { - label = "archer-c20-v4:green:wlan5g"; + label = "green:wlan5g"; gpios = <&gpio 40 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1tpt"; }; wlan2g { - label = "archer-c20-v4:green:wlan2g"; + label = "green:wlan2g"; gpios = <&gpio 39 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; wps { - label = "archer-c20-v4:green:wps"; + label = "green:wps"; gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v5.dts b/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v5.dts index 6cff9c4070..2ae629288e 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v5.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v5.dts @@ -34,39 +34,39 @@ compatible = "gpio-leds"; led_power: power { - label = "archer-c20-v5:green:power"; + label = "green:power"; gpios = <&gpio 2 GPIO_ACTIVE_LOW>; }; wlan2g { - label = "archer-c20-v5:green:wlan2g"; + label = "green:wlan2g"; gpios = <&gpio 39 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; wlan5g { - label = "archer-c20-v5:green:wlan5g"; + label = "green:wlan5g"; gpios = <&gpio 40 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1tpt"; }; lan { - label = "archer-c20-v5:green:lan"; + label = "green:lan"; gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; wan_green { - label = "archer-c20-v5:green:wan"; + label = "green:wan"; gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; wan_orange { - label = "archer-c20-v5:orange:wan"; + label = "orange:wan"; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; wps { - label = "archer-c20-v5:green:wps"; + label = "green:wps"; gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; }; 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 49a3bf7c7a..7f28f0cd56 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v3.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v3.dts @@ -33,37 +33,37 @@ compatible = "gpio-leds"; lan { - label = "archer-c50-v3:green:lan"; + label = "green:lan"; gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "archer-c50-v3:green:power"; + label = "green:power"; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; wan { - label = "archer-c50-v3:green:wan"; + label = "green:wan"; gpios = <&gpio 39 GPIO_ACTIVE_LOW>; }; wan_orange { - label = "archer-c50-v3:orange:wan"; + label = "orange:wan"; gpios = <&gpio 40 GPIO_ACTIVE_LOW>; }; wlan { - label = "archer-c50-v3:green:wlan2g"; + label = "green:wlan2g"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; wlan5 { - label = "archer-c50-v3:green:wlan5g"; + label = "green:wlan5g"; gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; wps { - label = "archer-c50-v3:green:wps"; + label = "green:wps"; gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; }; 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 3216d38908..7c941c0e1e 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v4.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v4.dts @@ -34,37 +34,37 @@ compatible = "gpio-leds"; led_power: power { - label = "archer-c50-v4:green:power"; + label = "green:power"; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; wlan2 { - label = "archer-c50-v4:green:wlan2g"; + label = "green:wlan2g"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; wlan5 { - label = "archer-c50-v4:green:wlan5g"; + label = "green:wlan5g"; gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; lan { - label = "archer-c50-v4:green:lan"; + label = "green:lan"; gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; wan { - label = "archer-c50-v4:green:wan"; + label = "green:wan"; gpios = <&gpio 39 GPIO_ACTIVE_LOW>; }; wan_orange { - label = "archer-c50-v4:orange:wan"; + label = "orange:wan"; gpios = <&gpio 40 GPIO_ACTIVE_LOW>; }; wps { - label = "archer-c50-v4:green:wps"; + label = "green:wps"; gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_re200-v2.dts b/target/linux/ramips/dts/mt7628an_tplink_re200-v2.dts index 5b2b36fd4c..51a93f9524 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_re200-v2.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_re200-v2.dts @@ -6,65 +6,4 @@ / { 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 = <&gpio 5 GPIO_ACTIVE_LOW>; - }; - - wifi { - label = "re200-v2:green:wifi"; - gpios = <&gpio 4 GPIO_ACTIVE_LOW>; - }; - - lan { - label = "re200-v2:green:lan"; - gpios = <&gpio 39 GPIO_ACTIVE_LOW>; - }; - - led_power: power { - label = "re200-v2:green:power"; - gpios = <&gpio 44 GPIO_ACTIVE_LOW>; - }; - - wifi2g_green { - label = "re200-v2:green:wifi2g"; - gpios = <&gpio 41 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - - wifi5g_green { - label = "re200-v2:green:wifi5g"; - gpios = <&gpio 42 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy1tpt"; - }; - - wifi2g_red { - label = "re200-v2:red:wifi2g"; - gpios = <&gpio 43 GPIO_ACTIVE_LOW>; - }; - - wifi5g_red { - label = "re200-v2:red:wifi5g"; - gpios = <&gpio 40 GPIO_ACTIVE_LOW>; - }; - }; -}; - -&state_default { - gpio { - groups = "p4led_an", "p3led_an", "p2led_an", "p1led_an", - "p0led_an", "wled_an", "i2c", "wdt", "refclk"; - function = "gpio"; - }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_re200-v3.dts b/target/linux/ramips/dts/mt7628an_tplink_re200-v3.dts index 21d256498e..6e13fe37cf 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_re200-v3.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_re200-v3.dts @@ -6,65 +6,4 @@ / { compatible = "tplink,re200-v3", "mediatek,mt7628an-soc"; model = "TP-Link RE200 v3"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - leds { - compatible = "gpio-leds"; - - wps { - label = "re200-v3:green:wps"; - gpios = <&gpio 5 GPIO_ACTIVE_LOW>; - }; - - wifi { - label = "re200-v3:green:wifi"; - gpios = <&gpio 4 GPIO_ACTIVE_LOW>; - }; - - lan { - label = "re200-v3:green:lan"; - gpios = <&gpio 39 GPIO_ACTIVE_LOW>; - }; - - led_power: power { - label = "re200-v3:green:power"; - gpios = <&gpio 44 GPIO_ACTIVE_LOW>; - }; - - wifi2g_green { - label = "re200-v3:green:wifi2g"; - gpios = <&gpio 41 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - - wifi5g_green { - label = "re200-v3:green:wifi5g"; - gpios = <&gpio 42 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy1tpt"; - }; - - wifi2g_red { - label = "re200-v3:red:wifi2g"; - gpios = <&gpio 43 GPIO_ACTIVE_LOW>; - }; - - wifi5g_red { - label = "re200-v3:red:wifi5g"; - gpios = <&gpio 40 GPIO_ACTIVE_LOW>; - }; - }; -}; - -&state_default { - gpio { - groups = "p4led_an", "p3led_an", "p2led_an", "p1led_an", - "p0led_an", "wled_an", "i2c", "wdt", "refclk"; - function = "gpio"; - }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_re200.dtsi b/target/linux/ramips/dts/mt7628an_tplink_re200.dtsi index 2b06fe77a2..95addff3c0 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_re200.dtsi +++ b/target/linux/ramips/dts/mt7628an_tplink_re200.dtsi @@ -8,6 +8,10 @@ / { aliases { label-mac-device = ðernet; + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; }; chosen { @@ -29,6 +33,52 @@ linux,code = ; }; }; + + leds { + compatible = "gpio-leds"; + + wps { + label = "green:wps"; + gpios = <&gpio 5 GPIO_ACTIVE_LOW>; + }; + + wifi { + label = "green:wifi"; + gpios = <&gpio 4 GPIO_ACTIVE_LOW>; + }; + + lan { + label = "green:lan"; + gpios = <&gpio 39 GPIO_ACTIVE_LOW>; + }; + + led_power: power { + label = "green:power"; + gpios = <&gpio 44 GPIO_ACTIVE_LOW>; + }; + + wifi2g_green { + label = "green:wifi2g"; + gpios = <&gpio 41 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy0tpt"; + }; + + wifi5g_green { + label = "green:wifi5g"; + gpios = <&gpio 42 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy1tpt"; + }; + + wifi2g_red { + label = "red:wifi2g"; + gpios = <&gpio 43 GPIO_ACTIVE_LOW>; + }; + + wifi5g_red { + label = "red:wifi5g"; + gpios = <&gpio 40 GPIO_ACTIVE_LOW>; + }; + }; }; &spi0 { @@ -71,6 +121,14 @@ }; }; +&state_default { + gpio { + groups = "p4led_an", "p3led_an", "p2led_an", "p1led_an", + "p0led_an", "wled_an", "i2c", "wdt", "refclk"; + function = "gpio"; + }; +}; + ðernet { mtd-mac-address = <&config 0x2008>; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_re220-v2.dts b/target/linux/ramips/dts/mt7628an_tplink_re220-v2.dts index 6e95f87349..72fb3e8486 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_re220-v2.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_re220-v2.dts @@ -6,65 +6,4 @@ / { compatible = "tplink,re220-v2", "mediatek,mt7628an-soc"; model = "TP-Link RE220 v2"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - leds { - compatible = "gpio-leds"; - - wps { - label = "re220-v2:green:wps"; - gpios = <&gpio 5 GPIO_ACTIVE_LOW>; - }; - - wifi { - label = "re220-v2:green:wifi"; - gpios = <&gpio 4 GPIO_ACTIVE_LOW>; - }; - - lan { - label = "re220-v2:green:lan"; - gpios = <&gpio 39 GPIO_ACTIVE_LOW>; - }; - - led_power: power { - label = "re220-v2:green:power"; - gpios = <&gpio 44 GPIO_ACTIVE_LOW>; - }; - - wifi2g_green { - label = "re220-v2:green:wifi2g"; - gpios = <&gpio 41 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - - wifi5g_green { - label = "re220-v2:green:wifi5g"; - gpios = <&gpio 42 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy1tpt"; - }; - - wifi2g_red { - label = "re220-v2:red:wifi2g"; - gpios = <&gpio 43 GPIO_ACTIVE_LOW>; - }; - - wifi5g_red { - label = "re220-v2:red:wifi5g"; - gpios = <&gpio 40 GPIO_ACTIVE_LOW>; - }; - }; -}; - -&state_default { - gpio { - groups = "p4led_an", "p3led_an", "p2led_an", "p1led_an", - "p0led_an", "wled_an", "i2c", "wdt", "refclk"; - function = "gpio"; - }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_re305-v1.dts b/target/linux/ramips/dts/mt7628an_tplink_re305-v1.dts index bf199f226c..709d0b7882 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_re305-v1.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_re305-v1.dts @@ -38,29 +38,29 @@ compatible = "gpio-leds"; led_power: power { - label = "re305-v1:blue:power"; + label = "blue:power"; gpios = <&gpio 39 GPIO_ACTIVE_LOW>; }; wlan2g { - label = "re305-v1:blue:wlan2g"; + label = "blue:wlan2g"; gpios = <&gpio 41 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; wlan5g { - label = "re305-v1:blue:wlan5g"; + label = "blue:wlan5g"; gpios = <&gpio 40 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1tpt"; }; rssi1 { - label = "re305-v1:red:rssi"; + label = "red:rssi"; gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; rssi2 { - label = "re305-v1:blue:rssi"; + label = "blue:rssi"; gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; }; 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 c8e54d26fe..763c0140db 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts @@ -46,31 +46,31 @@ compatible = "gpio-leds"; led_power: power { - label = "tl-mr3020-v3:green:power"; + label = "green:power"; gpios = <&gpio 37 GPIO_ACTIVE_LOW>; default-state = "on"; }; wan { - label = "tl-mr3020-v3:green:3g"; + label = "green:3g"; gpios = <&gpio 43 GPIO_ACTIVE_LOW>; trigger-sources = <&ehci_port1>, <&ohci_port1>; linux,default-trigger = "usbport"; }; wlan { - label = "tl-mr3020-v3:green:wlan"; + label = "green:wlan"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; wps { - label = "tl-mr3020-v3:green:wps"; + label = "green:wps"; gpios = <&gpio 2 GPIO_ACTIVE_LOW>; }; lan { - label = "tl-mr3020-v3:green:lan"; + label = "green:lan"; gpios = <&gpio 3 GPIO_ACTIVE_LOW>; }; }; 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 67dfb81376..f18a028be5 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-mr3420-v5.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-mr3420-v5.dts @@ -33,39 +33,39 @@ compatible = "gpio-leds"; lan { - label = "tl-mr3420-v5:green:lan"; + label = "green:lan"; gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "tl-mr3420-v5:green:power"; + label = "green:power"; gpios = <&gpio 2 GPIO_ACTIVE_LOW>; }; usb { - label = "tl-mr3420-v5:green:usb"; + label = "green:usb"; gpios = <&gpio 3 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; wan { - label = "tl-mr3420-v5:green:wan"; + label = "green:wan"; gpios = <&gpio 5 GPIO_ACTIVE_LOW>; }; wan_amber { - label = "tl-mr3420-v5:amber:wan"; + label = "amber:wan"; gpios = <&gpio 4 GPIO_ACTIVE_LOW>; }; wlan { - label = "tl-mr3420-v5:green:wlan"; + label = "green:wlan"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; wps { - label = "tl-mr3420-v5:green:wps"; + label = "green:wps"; gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; }; 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 cc8fd3c352..7f5ee642f5 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-wa801nd-v5.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wa801nd-v5.dts @@ -33,28 +33,28 @@ compatible = "gpio-leds"; led_power: power { - label = "tl-wa801nd-v5:green:power"; + label = "green:power"; gpios = <&gpio 36 GPIO_ACTIVE_LOW>; }; lan { - label = "tl-wa801nd-v5:green:lan"; + label = "green:lan"; gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; wlan { - label = "tl-wa801nd-v5:green:wlan"; + label = "green:wlan"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; wps_red { - label = "tl-wa801nd-v5:red:wps"; + label = "red:wps"; gpios = <&gpio 43 GPIO_ACTIVE_HIGH>; }; wps_green { - label = "tl-wa801nd-v5:green:wps"; + label = "green:wps"; gpios = <&gpio 42 GPIO_ACTIVE_HIGH>; }; }; 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 3b497ef0c9..85e7e970c9 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-wr802n-v4.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr802n-v4.dts @@ -28,7 +28,7 @@ compatible = "gpio-leds"; led_power: power { - label = "tl-wr802n-v4:green:power"; + label = "green:power"; gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; }; 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 c81793e2ef..aaf20c504e 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v4.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v4.dts @@ -27,27 +27,27 @@ compatible = "gpio-leds"; lan { - label = "tl-wr840n-v4:green:lan"; + label = "green:lan"; gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "tl-wr840n-v4:green:power"; + label = "green:power"; gpios = <&gpio 36 GPIO_ACTIVE_LOW>; }; wan { - label = "tl-wr840n-v4:green:wan"; + label = "green:wan"; gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; wlan { - label = "tl-wr840n-v4:green:wlan"; + label = "green:wlan"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; wps { - label = "tl-wr840n-v4:green:wps"; + label = "green:wps"; gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; }; 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 fc39c9dfdb..1c0581a034 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v5.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v5.dts @@ -35,12 +35,12 @@ compatible = "gpio-leds"; led_power_green: power { - label = "tl-wr840n-v5:green:power"; + label = "green:power"; gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; orange { - label = "tl-wr840n-v5:orange:power"; + label = "orange:power"; gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; }; 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 3b12098ada..27424bebcd 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v13.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v13.dts @@ -33,47 +33,47 @@ compatible = "gpio-leds"; led_power: power { - label = "tl-wr841n-v13:green:power"; + label = "green:power"; gpios = <&gpio 36 GPIO_ACTIVE_LOW>; }; wps { - label = "tl-wr841n-v13:green:wps"; + label = "green:wps"; gpios = <&gpio 46 GPIO_ACTIVE_LOW>; }; lan1 { - label = "tl-wr841n-v13:green:lan1"; + label = "green:lan1"; gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; lan2 { - label = "tl-wr841n-v13:green:lan2"; + label = "green:lan2"; gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; lan3 { - label = "tl-wr841n-v13:green:lan3"; + label = "green:lan3"; gpios = <&gpio 40 GPIO_ACTIVE_LOW>; }; lan4 { - label = "tl-wr841n-v13:green:lan4"; + label = "green:lan4"; gpios = <&gpio 39 GPIO_ACTIVE_LOW>; }; wan_green { - label = "tl-wr841n-v13:green:wan"; + label = "green:wan"; gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; wan_orange { - label = "tl-wr841n-v13:orange:wan"; + label = "orange:wan"; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; wlan { - label = "tl-wr841n-v13:green:wlan"; + label = "green:wlan"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; }; 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 9731008aea..228e926624 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v14.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v14.dts @@ -36,23 +36,23 @@ compatible = "gpio-leds"; lan { - label = "tl-wr841n-v14:green:lan"; + label = "green:lan"; gpios = <&gpio 39 GPIO_ACTIVE_LOW>; }; wan_green { - label = "tl-wr841n-v14:green:wan"; + label = "green:wan"; gpios = <&gpio 40 GPIO_ACTIVE_LOW>; }; led_wlan: wlan { - label = "tl-wr841n-v14:green:wlan"; + label = "green:wlan"; gpios = <&gpio 41 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; wan_orange { - label = "tl-wr841n-v14:orange:wan"; + label = "orange:wan"; gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; }; 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 8f818bef62..f20d81d684 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-wr842n-v5.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr842n-v5.dts @@ -33,39 +33,39 @@ compatible = "gpio-leds"; lan { - label = "tl-wr842n-v5:green:lan"; + label = "green:lan"; gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "tl-wr842n-v5:green:power"; + label = "green:power"; gpios = <&gpio 2 GPIO_ACTIVE_LOW>; }; usb { - label = "tl-wr842n-v5:green:usb"; + label = "green:usb"; gpios = <&gpio 3 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; wan { - label = "tl-wr842n-v5:green:wan"; + label = "green:wan"; gpios = <&gpio 5 GPIO_ACTIVE_LOW>; }; wan_amber { - label = "tl-wr842n-v5:amber:wan"; + label = "amber:wan"; gpios = <&gpio 4 GPIO_ACTIVE_LOW>; }; wlan { - label = "tl-wr842n-v5:green:wlan"; + label = "green:wlan"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; wps { - label = "tl-wr842n-v5:green:wps"; + label = "green:wps"; gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wr850n-v2.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wr850n-v2.dts index 192b0aaaf0..0e40159bc0 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-wr850n-v2.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr850n-v2.dts @@ -28,27 +28,27 @@ compatible = "gpio-leds"; led_power: power { - label = "tl-wr850n-v2:green:power"; + label = "green:power"; gpios = <&gpio 36 GPIO_ACTIVE_LOW>; }; wps { - label = "tl-wr850n-v2:green:wps"; + label = "green:wps"; gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; lan { - label = "tl-wr850n-v2:green:lan"; + label = "green:lan"; gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; wan { - label = "tl-wr850n-v2:green:wan"; + label = "green:wan"; gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; wlan { - label = "tl-wr850n-v2:green:wlan"; + label = "green:wlan"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; 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 2f238189d4..24c3e457a4 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-wr902ac-v3.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr902ac-v3.dts @@ -45,34 +45,34 @@ compatible = "gpio-leds"; lan { - label = "tl-wr902ac-v3:green:lan"; + label = "green:lan"; gpios = <&gpio 5 GPIO_ACTIVE_HIGH>; }; led_power: power { - label = "tl-wr902ac-v3:green:power"; + label = "green:power"; gpios = <&gpio 46 GPIO_ACTIVE_LOW>; }; usb { - label = "tl-wr902ac-v3:green:usb"; + label = "green:usb"; gpios = <&gpio 43 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; wan { - label = "tl-wr902ac-v3:green:wan"; + label = "green:wan"; gpios = <&gpio 39 GPIO_ACTIVE_LOW>; }; wlan { - label = "tl-wr902ac-v3:green:wlan"; + label = "green:wlan"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; wps { - label = "tl-wr902ac-v3:green:wps"; + label = "green:wps"; gpios = <&gpio 4 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_unielec_u7628-01.dtsi b/target/linux/ramips/dts/mt7628an_unielec_u7628-01.dtsi index 69f371a724..4facb036fd 100644 --- a/target/linux/ramips/dts/mt7628an_unielec_u7628-01.dtsi +++ b/target/linux/ramips/dts/mt7628an_unielec_u7628-01.dtsi @@ -65,42 +65,42 @@ compatible = "gpio-leds"; led_power: power { - label = "u7628-01:green:power"; + label = "green:power"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; wlan { - label = "u7628-01:green:wlan"; + label = "green:wlan"; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; wan { - label = "u7628-01:green:wan"; + label = "green:wan"; gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; lan1 { - label = "u7628-01:green:lan1"; + label = "green:lan1"; gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; lan2 { - label = "u7628-01:green:lan2"; + label = "green:lan2"; gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; lan3 { - label = "u7628-01:green:lan3"; + label = "green:lan3"; gpios = <&gpio 40 GPIO_ACTIVE_LOW>; }; lan4 { - label = "u7628-01:green:lan4"; + label = "green:lan4"; gpios = <&gpio 39 GPIO_ACTIVE_LOW>; }; usb { - label = "u7628-01:green:usb"; + label = "green:usb"; gpios = <&gpio 37 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/mt7628an_vocore_vocore2-lite.dts b/target/linux/ramips/dts/mt7628an_vocore_vocore2-lite.dts index ee137c58de..f23898cc53 100644 --- a/target/linux/ramips/dts/mt7628an_vocore_vocore2-lite.dts +++ b/target/linux/ramips/dts/mt7628an_vocore_vocore2-lite.dts @@ -17,7 +17,7 @@ compatible = "gpio-leds"; led_status: status { - label = "vocore2lite:green:status"; + label = "green:status"; gpios = <&gpio 44 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_vocore_vocore2.dts b/target/linux/ramips/dts/mt7628an_vocore_vocore2.dts index 213860a258..428dbb64b0 100644 --- a/target/linux/ramips/dts/mt7628an_vocore_vocore2.dts +++ b/target/linux/ramips/dts/mt7628an_vocore_vocore2.dts @@ -17,7 +17,7 @@ compatible = "gpio-leds"; led_status: status { - label = "vocore2:fuchsia:status"; + label = "fuchsia:status"; gpios = <&gpio 44 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn570ha1.dts b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn570ha1.dts index a14f3cbef3..9b1ecca0d3 100644 --- a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn570ha1.dts +++ b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn570ha1.dts @@ -22,33 +22,33 @@ compatible = "gpio-leds"; power { - label = "wl-wn570ha1:green:power"; + label = "green:power"; gpios = <&gpio 37 GPIO_ACTIVE_LOW>; default-state = "keep"; }; wan { - label = "wl-wn570ha1:green:wan"; + label = "green:wan"; gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; wifi-high { - label = "wl-wn570ha1:green:wifi-high"; + label = "green:wifi-high"; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; wifi-med { - label = "wl-wn570ha1:green:wifi-med"; + label = "green:wifi-med"; gpios = <&gpio 5 GPIO_ACTIVE_LOW>; }; wifi-low { - label = "wl-wn570ha1:green:wifi-low"; + label = "green:wifi-low"; gpios = <&gpio 4 GPIO_ACTIVE_LOW>; }; wifi { - label = "wl-wn570ha1:green:wifi"; + label = "green:wifi"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn575a3.dts b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn575a3.dts index 35ef3cbf1a..cb04b6ffc7 100644 --- a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn575a3.dts +++ b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn575a3.dts @@ -28,22 +28,22 @@ compatible = "gpio-leds"; wifi-high { - label = "wl-wn575a3:green:wifi-high"; + label = "green:wifi-high"; gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; wifi-med { - label = "wl-wn575a3:green:wifi-med"; + label = "green:wifi-med"; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; wifi-low { - label = "wl-wn575a3:green:wifi-low"; + label = "green:wifi-low"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; wps { - label = "wl-wn575a3:green:wps"; + label = "green:wps"; gpios = <&gpio 4 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn577a2.dts b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn577a2.dts index 41dfec3275..b9895c2ce7 100644 --- a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn577a2.dts +++ b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn577a2.dts @@ -37,17 +37,17 @@ compatible = "gpio-leds"; lan { - label = "wl-wn577a2:green:lan"; + label = "green:lan"; gpios = <&gpio 40 GPIO_ACTIVE_LOW>; }; wan { - label = "wl-wn577a2:green:wan"; + label = "green:wan"; gpios = <&gpio 39 GPIO_ACTIVE_LOW>; }; led_wps: wps { - label = "wl-wn577a2:green:wps"; + label = "green:wps"; gpios = <&gpio 4 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_widora_neo.dtsi b/target/linux/ramips/dts/mt7628an_widora_neo.dtsi index 252ffd71f5..4c60ad95aa 100644 --- a/target/linux/ramips/dts/mt7628an_widora_neo.dtsi +++ b/target/linux/ramips/dts/mt7628an_widora_neo.dtsi @@ -21,7 +21,7 @@ compatible = "gpio-leds"; led_wifi: wifi { - label = "widora:orange:wifi"; + label = "orange:wifi"; gpios = <&wgpio 0 GPIO_ACTIVE_HIGH>; default-state = "on"; }; diff --git a/target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts b/target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts index 91661bb2b0..413254ab33 100644 --- a/target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts +++ b/target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts @@ -27,22 +27,22 @@ compatible = "gpio-leds"; led_run: run { - label = "wizfi630s:green:run"; + label = "green:run"; gpios = <&gpio 5 GPIO_ACTIVE_LOW>; }; ledwps { - label = "wizfi630s:green:wps"; + label = "green:wps"; gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; leduart1 { - label = "wizfi630s:green:uart1"; + label = "green:uart1"; gpios = <&gpio 0 GPIO_ACTIVE_LOW>; }; leduart2 { - label = "wizfi630s:green:uart2"; + label = "green:uart2"; gpios = <&gpio 3 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2p.dts b/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2p.dts index f2fec2815b..eee408f12a 100644 --- a/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2p.dts +++ b/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2p.dts @@ -17,7 +17,7 @@ compatible = "gpio-leds"; led_indicator: indicator { - label = "wrtnode:blue:indicator"; + label = "blue:indicator"; gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2r.dts b/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2r.dts index a111a67560..1796093cdb 100644 --- a/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2r.dts +++ b/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2r.dts @@ -20,7 +20,7 @@ pinctrl-0 = <&led_pins>; led_indicator: indicator { - label = "wrtnode:blue:indicator"; + label = "blue:indicator"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_xiaomi_mir4a-100m.dts b/target/linux/ramips/dts/mt7628an_xiaomi_mir4a-100m.dts index 009a75a9d0..239095fb2a 100644 --- a/target/linux/ramips/dts/mt7628an_xiaomi_mir4a-100m.dts +++ b/target/linux/ramips/dts/mt7628an_xiaomi_mir4a-100m.dts @@ -25,12 +25,12 @@ compatible = "gpio-leds"; power_blue: power_blue { - label = "mir4a-100m:blue:power"; + label = "blue:power"; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; power_yellow: power_yellow { - label = "mir4a-100m:yellow:power"; + label = "yellow:power"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_xiaomi_miwifi-nano.dts b/target/linux/ramips/dts/mt7628an_xiaomi_miwifi-nano.dts index 398d16817f..984a7254d1 100644 --- a/target/linux/ramips/dts/mt7628an_xiaomi_miwifi-nano.dts +++ b/target/linux/ramips/dts/mt7628an_xiaomi_miwifi-nano.dts @@ -25,17 +25,17 @@ compatible = "gpio-leds"; led_status_blue: status_blue { - label = "miwifi-nano:blue:status"; + label = "blue:status"; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; led_status_red: status_red { - label = "miwifi-nano:red:status"; + label = "red:status"; gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; led_status_amber: status_amber { - label = "miwifi-nano:amber:status"; + label = "amber:status"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_zbtlink_zbt-we1226.dts b/target/linux/ramips/dts/mt7628an_zbtlink_zbt-we1226.dts index 01cdd8ad86..81e76967c1 100644 --- a/target/linux/ramips/dts/mt7628an_zbtlink_zbt-we1226.dts +++ b/target/linux/ramips/dts/mt7628an_zbtlink_zbt-we1226.dts @@ -33,22 +33,22 @@ compatible = "gpio-leds"; wan { - label = "zbt-we1226:green:wan"; + label = "green:wan"; gpios = <&gpio 39 GPIO_ACTIVE_LOW>; }; lan1 { - label = "zbt-we1226:green:lan1"; + label = "green:lan1"; gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; lan2 { - label = "zbt-we1226:green:lan2"; + label = "green:lan2"; gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; led_wlan: wlan { - label = "zbt-we1226:green:wlan"; + label = "green:wlan"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; }; 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 23a700e65b..a386f60ebf 100644 --- a/target/linux/ramips/dts/mt7628an_zyxel_keenetic-extra-ii.dts +++ b/target/linux/ramips/dts/mt7628an_zyxel_keenetic-extra-ii.dts @@ -46,23 +46,23 @@ compatible = "gpio-leds"; led_power: power { - label = "keenetic-extra-ii:green:power"; + label = "green:power"; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; default-state = "keep"; }; internet { - label = "keenetic-extra-ii:green:internet"; + label = "green:internet"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; wifi { - label = "keenetic-extra-ii:green:wifi"; + label = "green:wifi"; gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; usb { - label = "keenetic-extra-ii:green:usb"; + label = "green:usb"; gpios = <&gpio 1 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/rt2880_airlink101_ar670w.dts b/target/linux/ramips/dts/rt2880_airlink101_ar670w.dts index 6c6f58d920..eb808ca47a 100644 --- a/target/linux/ramips/dts/rt2880_airlink101_ar670w.dts +++ b/target/linux/ramips/dts/rt2880_airlink101_ar670w.dts @@ -50,12 +50,12 @@ compatible = "gpio-leds"; led_power: power { - label = "ar670w:green:power"; + label = "green:power"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; wpsblue { - label = "ar670w:blue:wps"; + label = "blue:wps"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt2880_airlink101_ar725w.dts b/target/linux/ramips/dts/rt2880_airlink101_ar725w.dts index f824dc973a..fd6597d713 100644 --- a/target/linux/ramips/dts/rt2880_airlink101_ar725w.dts +++ b/target/linux/ramips/dts/rt2880_airlink101_ar725w.dts @@ -55,17 +55,17 @@ compatible = "gpio-leds"; led_power: power { - label = "ar725w:green:power"; + label = "green:power"; gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; }; wpsred { - label = "ar725w:red:wps"; + label = "red:wps"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; wpsblue { - label = "ar725w:blue:wps"; + label = "blue:wps"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt2880_asus_rt-n15.dts b/target/linux/ramips/dts/rt2880_asus_rt-n15.dts index 2f4c98e944..19410638d5 100644 --- a/target/linux/ramips/dts/rt2880_asus_rt-n15.dts +++ b/target/linux/ramips/dts/rt2880_asus_rt-n15.dts @@ -82,7 +82,7 @@ compatible = "gpio-leds"; led_power: power { - label = "rt-n15:blue:power"; + label = "blue:power"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt2880_belkin_f5d8235-v1.dts b/target/linux/ramips/dts/rt2880_belkin_f5d8235-v1.dts index eecdc89725..3e23dc9011 100644 --- a/target/linux/ramips/dts/rt2880_belkin_f5d8235-v1.dts +++ b/target/linux/ramips/dts/rt2880_belkin_f5d8235-v1.dts @@ -121,69 +121,69 @@ compatible = "gpio-leds"; internet { - label = "f5d8235-v1:blue:internet"; + label = "blue:internet"; gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; }; internet2 { - label = "f5d8235-v1:amber:internet"; + label = "amber:internet"; gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; }; modem { - label = "f5d8235-v1:blue:modem"; + label = "blue:modem"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; modem2 { - label = "f5d8235-v1:amber:modem"; + label = "amber:modem"; gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; }; router { - label = "f5d8235-v1:blue:router"; + label = "blue:router"; gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; }; storage { - label = "f5d8235-v1:blue:storage"; + label = "blue:storage"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; storage2 { - label = "f5d8235-v1:amber:storage"; + label = "amber:storage"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; security { - label = "f5d8235-v1:blue:security"; + label = "blue:security"; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; }; security2 { - label = "f5d8235-v1:amber:security"; + label = "amber:security"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; led_wired_blue: wired { - label = "f5d8235-v1:blue:wired"; + label = "blue:wired"; gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; }; wired2 { - label = "f5d8235-v1:amber:wired"; + label = "amber:wired"; gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; }; wireless { - label = "f5d8235-v1:blue:wireless"; + label = "blue:wireless"; gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; }; wireless2 { - label = "f5d8235-v1:amber:wireless"; + label = "amber:wireless"; gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt2880_buffalo_wli-tx4-ag300n.dts b/target/linux/ramips/dts/rt2880_buffalo_wli-tx4-ag300n.dts index fd082baf8c..0cdaa3d4b2 100644 --- a/target/linux/ramips/dts/rt2880_buffalo_wli-tx4-ag300n.dts +++ b/target/linux/ramips/dts/rt2880_buffalo_wli-tx4-ag300n.dts @@ -82,17 +82,17 @@ compatible = "gpio-leds"; diag { - label = "wli-tx4-ag300n:red:diag"; + label = "red:diag"; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "wli-tx4-ag300n:blue:power"; + label = "blue:power"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; security { - label = "wli-tx4-ag300n:blue:security"; + label = "blue:security"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt2880_buffalo_wzr-agl300nh.dts b/target/linux/ramips/dts/rt2880_buffalo_wzr-agl300nh.dts index 8f5c6d1337..d77be7dd5c 100644 --- a/target/linux/ramips/dts/rt2880_buffalo_wzr-agl300nh.dts +++ b/target/linux/ramips/dts/rt2880_buffalo_wzr-agl300nh.dts @@ -88,22 +88,22 @@ compatible = "gpio-leds"; led_router: router { - label = "wzr-agl300nh:green:router"; + label = "green:router"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; diag { - label = "wzr-agl300nh:red:diag"; + label = "red:diag"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; security_g { - label = "wzr-agl300nh:orange:security_g"; + label = "orange:security_g"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; security_n { - label = "wzr-agl300nh:orange:security_n"; + label = "orange:security_n"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; 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 4cddec0718..6618f73e04 100644 --- a/target/linux/ramips/dts/rt2880_dlink_dap-1522-a1.dts +++ b/target/linux/ramips/dts/rt2880_dlink_dap-1522-a1.dts @@ -88,22 +88,22 @@ compatible = "gpio-leds"; wps { - label = "dap-1522-a1:blue:wps"; + label = "blue:wps"; gpios = <&gpio2 17 GPIO_ACTIVE_LOW>; }; ap { - label = "dap-1522-a1:blue:ap"; + label = "blue:ap"; gpios = <&gpio2 18 GPIO_ACTIVE_LOW>; }; sta { - label = "dap-1522-a1:red:sta"; + label = "red:sta"; gpios = <&gpio2 19 GPIO_ACTIVE_LOW>; }; led_status: status { - label = "dap-1522-a1:blue:status"; + label = "blue:status"; gpios = <&gpio2 20 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt2880_ralink_v11st-fe.dts b/target/linux/ramips/dts/rt2880_ralink_v11st-fe.dts index e8cc182e11..c63f476646 100644 --- a/target/linux/ramips/dts/rt2880_ralink_v11st-fe.dts +++ b/target/linux/ramips/dts/rt2880_ralink_v11st-fe.dts @@ -67,7 +67,7 @@ compatible = "gpio-leds"; led_status: status { - label = "v11st-fe:green:status"; + label = "green:status"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3050_allnet_all0256n.dtsi b/target/linux/ramips/dts/rt3050_allnet_all0256n.dtsi index 40018e5e3f..27d0eb3e4f 100644 --- a/target/linux/ramips/dts/rt3050_allnet_all0256n.dtsi +++ b/target/linux/ramips/dts/rt3050_allnet_all0256n.dtsi @@ -10,17 +10,17 @@ compatible = "gpio-leds"; rssilow { - label = "all0256n:green:rssilow"; + label = "green:rssilow"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; rssimed { - label = "all0256n:green:rssimed"; + label = "green:rssimed"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; rssihigh { - label = "all0256n:green:rssihigh"; + label = "green:rssihigh"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3050_alphanetworks_asl26555.dtsi b/target/linux/ramips/dts/rt3050_alphanetworks_asl26555.dtsi index be57cd8e57..b476fd4fa4 100644 --- a/target/linux/ramips/dts/rt3050_alphanetworks_asl26555.dtsi +++ b/target/linux/ramips/dts/rt3050_alphanetworks_asl26555.dtsi @@ -34,44 +34,44 @@ compatible = "gpio-leds"; eth { - label = "asl26555:green:eth"; + label = "green:eth"; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; }; wan-red { - label = "asl26555:red:wan"; + label = "red:wan"; gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>; }; wan-green { - label = "asl26555:green:wan"; + label = "green:wan"; gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; }; wlan { - label = "asl26555:green:wlan"; + label = "green:wlan"; gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; }; led_power_green: power-green { - label = "asl26555:green:power"; + label = "green:power"; gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; }; power-red { - label = "asl26555:red:power"; + label = "red:power"; gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; }; 3g-green { - label = "asl26555:green:3g"; + label = "green:3g"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; trigger-sources = <&otg_port1>; linux,default-trigger = "usbport"; }; 3g-red { - label = "asl26555:red:3g"; + label = "red:3g"; gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3050_arcwireless_freestation5.dts b/target/linux/ramips/dts/rt3050_arcwireless_freestation5.dts index 8ac118c83f..22f75952af 100644 --- a/target/linux/ramips/dts/rt3050_arcwireless_freestation5.dts +++ b/target/linux/ramips/dts/rt3050_arcwireless_freestation5.dts @@ -72,17 +72,17 @@ * not present in the Freestation5 device. */ wifi { - label = "freestation5:unknown:wifi"; + label = "unknown:wifi"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; powerg { - label = "freestation5:unknown:powerg"; + label = "unknown:powerg"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; usb { - label = "freestation5:unknown:usb"; + label = "unknown:usb"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3050_asus_rt-n10-plus.dts b/target/linux/ramips/dts/rt3050_asus_rt-n10-plus.dts index a08967d7aa..b52da0c175 100644 --- a/target/linux/ramips/dts/rt3050_asus_rt-n10-plus.dts +++ b/target/linux/ramips/dts/rt3050_asus_rt-n10-plus.dts @@ -57,7 +57,7 @@ compatible = "gpio-leds"; led_wps: wps { - label = "rt-n10-plus:green:wps"; + label = "green:wps"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3050_asus_wl-330n.dts b/target/linux/ramips/dts/rt3050_asus_wl-330n.dts index 507ec975c0..3be85c9d16 100644 --- a/target/linux/ramips/dts/rt3050_asus_wl-330n.dts +++ b/target/linux/ramips/dts/rt3050_asus_wl-330n.dts @@ -20,12 +20,12 @@ compatible = "gpio-leds"; link { - label = "wl-330n:blue:link"; + label = "blue:link"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "wl-330n:blue:power"; + label = "blue:power"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3050_asus_wl-330n3g.dts b/target/linux/ramips/dts/rt3050_asus_wl-330n3g.dts index f8487c67f1..ee2710b71c 100644 --- a/target/linux/ramips/dts/rt3050_asus_wl-330n3g.dts +++ b/target/linux/ramips/dts/rt3050_asus_wl-330n3g.dts @@ -20,17 +20,17 @@ compatible = "gpio-leds"; 3g { - label = "wl-330n3g:blue:3g"; + label = "blue:3g"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; 3g2 { - label = "wl-330n3g:red:3g"; + label = "red:3g"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "wl-330n3g:blue:power"; + label = "blue:power"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3050_dlink_dcs-930.dts b/target/linux/ramips/dts/rt3050_dlink_dcs-930.dts index b93c6f1257..6b9dac5762 100644 --- a/target/linux/ramips/dts/rt3050_dlink_dcs-930.dts +++ b/target/linux/ramips/dts/rt3050_dlink_dcs-930.dts @@ -57,17 +57,17 @@ compatible = "gpio-leds"; wifi { - label = "dcs-930:red:alert"; + label = "red:alert"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; led_status: status { - label = "dcs-930:green:status"; + label = "green:status"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wps { - label = "dcs-930:blue:wps"; + label = "blue:wps"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; 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 df108e705e..dcb3da90ae 100644 --- a/target/linux/ramips/dts/rt3050_dlink_dir-300-b1.dts +++ b/target/linux/ramips/dts/rt3050_dlink_dir-300-b1.dts @@ -74,27 +74,27 @@ compatible = "gpio-leds"; status { - label = "dir-300-b1:amber:status"; + label = "amber:status"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; led_status_green: status2 { - label = "dir-300-b1:green:status"; + label = "green:status"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wan { - label = "dir-300-b1:amber:wan"; + label = "amber:wan"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; wan2 { - label = "dir-300-b1:green:wan"; + label = "green:wan"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; wps { - label = "dir-300-b1:blue:wps"; + label = "blue:wps"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; 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 e34acae09d..ffdf4bb454 100644 --- a/target/linux/ramips/dts/rt3050_dlink_dir-600-b1.dts +++ b/target/linux/ramips/dts/rt3050_dlink_dir-600-b1.dts @@ -74,27 +74,27 @@ compatible = "gpio-leds"; status { - label = "dir-600-b1:amber:status"; + label = "amber:status"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; led_status_green: status2 { - label = "dir-600-b1:green:status"; + label = "green:status"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wan { - label = "dir-600-b1:amber:wan"; + label = "amber:wan"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; wan2 { - label = "dir-600-b1:green:wan"; + label = "green:wan"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; wps { - label = "dir-600-b1:blue:wps"; + label = "blue:wps"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; 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 94372b2665..045ba91d88 100644 --- a/target/linux/ramips/dts/rt3050_dlink_dir-615-d.dts +++ b/target/linux/ramips/dts/rt3050_dlink_dir-615-d.dts @@ -75,28 +75,28 @@ compatible = "gpio-leds"; status_amber { - label = "dir-615-d:amber:status"; + label = "amber:status"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; led_status_green: status_green { - label = "dir-615-d:green:status"; + label = "green:status"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; default-state = "on"; }; wan_amber { - label = "dir-615-d:amber:wan"; + label = "amber:wan"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; wan_green { - label = "dir-615-d:green:wan"; + label = "green:wan"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; wps { - label = "dir-615-d:blue:wps"; + label = "blue:wps"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; 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 3f6f175e01..0fc90872ec 100644 --- a/target/linux/ramips/dts/rt3050_dlink_dir-620-a1.dts +++ b/target/linux/ramips/dts/rt3050_dlink_dir-620-a1.dts @@ -74,32 +74,32 @@ compatible = "gpio-leds"; status { - label = "dir-620-a1:amber:status"; + label = "amber:status"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; led_status_green: status2 { - label = "dir-620-a1:green:status"; + label = "green:status"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wan { - label = "dir-620-a1:amber:wan"; + label = "amber:wan"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; wan2 { - label = "dir-620-a1:green:wan"; + label = "green:wan"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; wps { - label = "dir-620-a1:blue:wps"; + label = "blue:wps"; gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; }; wps2 { - label = "dir-620-a1:amber:wps"; + label = "amber:wps"; gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/rt3050_edimax_3g-6200n.dts b/target/linux/ramips/dts/rt3050_edimax_3g-6200n.dts index bb9c1dbf61..e83b19b05b 100644 --- a/target/linux/ramips/dts/rt3050_edimax_3g-6200n.dts +++ b/target/linux/ramips/dts/rt3050_edimax_3g-6200n.dts @@ -63,17 +63,17 @@ compatible = "gpio-leds"; led_power: power { - label = "3g-6200n:green:power"; + label = "green:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wlan { - label = "3g-6200n:amber:wlan"; + label = "amber:wlan"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; 3g { - label = "3g-6200n:blue:3g"; + label = "blue:3g"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; trigger-sources = <&otg_port1>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/rt3050_edimax_3g-6200nl.dts b/target/linux/ramips/dts/rt3050_edimax_3g-6200nl.dts index c3e7a44f06..5775d464d3 100644 --- a/target/linux/ramips/dts/rt3050_edimax_3g-6200nl.dts +++ b/target/linux/ramips/dts/rt3050_edimax_3g-6200nl.dts @@ -63,12 +63,12 @@ compatible = "gpio-leds"; led_internet: internet { - label = "3g-6200nl:green:internet"; + label = "green:internet"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wlan { - label = "3g-6200nl:green:wlan"; + label = "green:wlan"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3050_huawei_d105.dts b/target/linux/ramips/dts/rt3050_huawei_d105.dts index 565f7da737..99288ac03c 100644 --- a/target/linux/ramips/dts/rt3050_huawei_d105.dts +++ b/target/linux/ramips/dts/rt3050_huawei_d105.dts @@ -57,12 +57,12 @@ compatible = "gpio-leds"; led_power: power { - label = "d105:red:power"; + label = "red:power"; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; }; usb { - label = "d105:green:usb"; + label = "green:usb"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; trigger-sources = <&otg_port1>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/rt3050_jcg_jhr-n805r.dts b/target/linux/ramips/dts/rt3050_jcg_jhr-n805r.dts index a81112c1e2..e104628bbc 100644 --- a/target/linux/ramips/dts/rt3050_jcg_jhr-n805r.dts +++ b/target/linux/ramips/dts/rt3050_jcg_jhr-n805r.dts @@ -20,7 +20,7 @@ compatible = "gpio-leds"; led_system: system { - label = "jhr-n805r:blue:system"; + label = "blue:system"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3050_netcore_nw718.dts b/target/linux/ramips/dts/rt3050_netcore_nw718.dts index 8c8d8ebcd1..c0773bd2a8 100644 --- a/target/linux/ramips/dts/rt3050_netcore_nw718.dts +++ b/target/linux/ramips/dts/rt3050_netcore_nw718.dts @@ -20,19 +20,19 @@ compatible = "gpio-leds"; led_cpu: cpu { - label = "nw718:amber:cpu"; + label = "amber:cpu"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; usb { - label = "nw718:amber:usb"; + label = "amber:usb"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; trigger-sources = <&otg_port1>; linux,default-trigger = "usbport"; }; wps { - label = "nw718:amber:wps"; + label = "amber:wps"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3050_sparklan_wcr-150gn.dts b/target/linux/ramips/dts/rt3050_sparklan_wcr-150gn.dts index 035516e0c1..1cac4e000b 100644 --- a/target/linux/ramips/dts/rt3050_sparklan_wcr-150gn.dts +++ b/target/linux/ramips/dts/rt3050_sparklan_wcr-150gn.dts @@ -57,14 +57,14 @@ compatible = "gpio-leds"; user { - label = "wcr-150gn:amber:user"; + label = "amber:user"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; trigger-sources = <&otg_port1>; linux,default-trigger = "usbport"; }; led_power: power { - label = "wcr-150gn:amber:power"; + label = "amber:power"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3050_teltonika_rut5xx.dts b/target/linux/ramips/dts/rt3050_teltonika_rut5xx.dts index 669b18ce51..62b5218b55 100644 --- a/target/linux/ramips/dts/rt3050_teltonika_rut5xx.dts +++ b/target/linux/ramips/dts/rt3050_teltonika_rut5xx.dts @@ -20,7 +20,7 @@ compatible = "gpio-leds"; led_status: status { - label = "rut5xx:green:status"; + label = "green:status"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3050_tenda_w150m.dts b/target/linux/ramips/dts/rt3050_tenda_w150m.dts index 5341d02a1a..66064ef5e2 100644 --- a/target/linux/ramips/dts/rt3050_tenda_w150m.dts +++ b/target/linux/ramips/dts/rt3050_tenda_w150m.dts @@ -57,32 +57,32 @@ compatible = "gpio-leds"; 3grouter { - label = "w150m:blue:3grouter"; + label = "blue:3grouter"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; led_ap: ap { - label = "w150m:blue:ap"; + label = "blue:ap"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; wisprouter { - label = "w150m:blue:wisprouter"; + label = "blue:wisprouter"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wirelessrouter { - label = "w150m:blue:wirelessrouter"; + label = "blue:wirelessrouter"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; 3g { - label = "w150m:blue:3g"; + label = "blue:3g"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; wpsreset { - label = "w150m:blue:wpsreset"; + label = "blue:wpsreset"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; 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 6533ed4108..b0f0b9cd6b 100644 --- a/target/linux/ramips/dts/rt3050_trendnet_tew-638apb-v2.dts +++ b/target/linux/ramips/dts/rt3050_trendnet_tew-638apb-v2.dts @@ -74,12 +74,12 @@ compatible = "gpio-leds"; wps { - label = "tew-638apb-v2:orange:wps"; + label = "orange:wps"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; led_wps_green: wps2 { - label = "tew-638apb-v2:green:wps"; + label = "green:wps"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_accton_wr6202.dts b/target/linux/ramips/dts/rt3052_accton_wr6202.dts index e0d4573809..7afb95a2d9 100644 --- a/target/linux/ramips/dts/rt3052_accton_wr6202.dts +++ b/target/linux/ramips/dts/rt3052_accton_wr6202.dts @@ -17,12 +17,12 @@ compatible = "gpio-leds"; wps { - label = "wr6202:blue:wps"; + label = "blue:wps"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; 3g { - label = "wr6202:blue:3g"; + label = "blue:3g"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_alfa-network_w502u.dts b/target/linux/ramips/dts/rt3052_alfa-network_w502u.dts index 3a1287d326..8a10ee697b 100644 --- a/target/linux/ramips/dts/rt3052_alfa-network_w502u.dts +++ b/target/linux/ramips/dts/rt3052_alfa-network_w502u.dts @@ -61,14 +61,14 @@ compatible = "gpio-leds"; usb { - label = "w502u:blue:usb"; + label = "blue:usb"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; trigger-sources = <&otg_port1>; linux,default-trigger = "usbport"; }; led_wps: wps { - label = "w502u:blue:wps"; + label = "blue:wps"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_argus_atp-52b.dts b/target/linux/ramips/dts/rt3052_argus_atp-52b.dts index b7a7dcedf0..f57d3de237 100644 --- a/target/linux/ramips/dts/rt3052_argus_atp-52b.dts +++ b/target/linux/ramips/dts/rt3052_argus_atp-52b.dts @@ -55,12 +55,12 @@ compatible = "gpio-leds"; led_run: run { - label = "atp-52b:green:run"; + label = "green:run"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; net { - label = "atp-52b:amber:net"; + label = "amber:net"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_asiarf_awapn2403.dts b/target/linux/ramips/dts/rt3052_asiarf_awapn2403.dts index 313d866a73..d1c22ea862 100644 --- a/target/linux/ramips/dts/rt3052_asiarf_awapn2403.dts +++ b/target/linux/ramips/dts/rt3052_asiarf_awapn2403.dts @@ -20,7 +20,7 @@ compatible = "gpio-leds"; led_wps: wps { - label = "awapn2403:green:wps"; + label = "green:wps"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_asus_rt-n13u.dts b/target/linux/ramips/dts/rt3052_asus_rt-n13u.dts index 02d9e9001f..80faea1d77 100644 --- a/target/linux/ramips/dts/rt3052_asus_rt-n13u.dts +++ b/target/linux/ramips/dts/rt3052_asus_rt-n13u.dts @@ -57,12 +57,12 @@ compatible = "gpio-leds"; led_power: power { - label = "rt-n13u:blue:power"; + label = "blue:power"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; wifi { - label = "rt-n13u:blue:wifi"; + label = "blue:wifi"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_aximcom_mr-102n.dts b/target/linux/ramips/dts/rt3052_aximcom_mr-102n.dts index 6ca5e93bdb..c9b84a5fd9 100644 --- a/target/linux/ramips/dts/rt3052_aximcom_mr-102n.dts +++ b/target/linux/ramips/dts/rt3052_aximcom_mr-102n.dts @@ -67,19 +67,19 @@ compatible = "gpio-leds"; usb { - label = "mr-102n:green:usb"; + label = "green:usb"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; trigger-sources = <&otg_port1>; linux,default-trigger = "usbport"; }; led_status: status { - label = "mr-102n:amber:status"; + label = "amber:status"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wlan { - label = "mr-102n:green:wlan"; + label = "green:wlan"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_aztech_hw550-3g.dts b/target/linux/ramips/dts/rt3052_aztech_hw550-3g.dts index 918b78be53..8d178f86dd 100644 --- a/target/linux/ramips/dts/rt3052_aztech_hw550-3g.dts +++ b/target/linux/ramips/dts/rt3052_aztech_hw550-3g.dts @@ -57,24 +57,24 @@ compatible = "gpio-leds"; usb { - label = "hw550-3g:green:usb"; + label = "green:usb"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; trigger-sources = <&otg_port1>; linux,default-trigger = "usbport"; }; 3g { - label = "hw550-3g:green:3g"; + label = "green:3g"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; led_status: status { - label = "hw550-3g:green:status"; + label = "green:status"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; wps { - label = "hw550-3g:green:wps"; + label = "green:wps"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_belkin_f5d8235-v2.dts b/target/linux/ramips/dts/rt3052_belkin_f5d8235-v2.dts index 5933a8dd9e..fc35f77e8f 100644 --- a/target/linux/ramips/dts/rt3052_belkin_f5d8235-v2.dts +++ b/target/linux/ramips/dts/rt3052_belkin_f5d8235-v2.dts @@ -61,49 +61,49 @@ compatible = "gpio-leds"; internet { - label = "f5d8235-v2:blue:internet"; + label = "blue:internet"; gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; }; internet2 { - label = "f5d8235-v2:amber:internet"; + label = "amber:internet"; gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; }; modem { - label = "f5d8235-v2:blue:modem"; + label = "blue:modem"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; modem2 { - label = "f5d8235-v2:amber:modem"; + label = "amber:modem"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; led_router: router { - label = "f5d8235-v2:blue:router"; + label = "blue:router"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; storage { - label = "f5d8235-v2:blue:storage"; + label = "blue:storage"; gpios = <&gpio0 23 GPIO_ACTIVE_LOW>; trigger-sources = <&otg_port1>; linux,default-trigger = "usbport"; }; storage2 { - label = "f5d8235-v2:amber:storage"; + label = "amber:storage"; gpios = <&gpio0 22 GPIO_ACTIVE_LOW>; }; security { - label = "f5d8235-v2:blue:security"; + label = "blue:security"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; security2 { - label = "f5d8235-v2:amber:security"; + label = "amber:security"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_buffalo_whr-g300n.dts b/target/linux/ramips/dts/rt3052_buffalo_whr-g300n.dts index 4dd9ee93a3..29ff632b0a 100644 --- a/target/linux/ramips/dts/rt3052_buffalo_whr-g300n.dts +++ b/target/linux/ramips/dts/rt3052_buffalo_whr-g300n.dts @@ -62,17 +62,17 @@ compatible = "gpio-leds"; led_diag: diag { - label = "whr-g300n:red:diag"; + label = "red:diag"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; router { - label = "whr-g300n:green:router"; + label = "green:router"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; security { - label = "whr-g300n:amber:security"; + label = "amber:security"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_dlink_dap-1350.dts b/target/linux/ramips/dts/rt3052_dlink_dap-1350.dts index eceec6f9b8..23b4fb2252 100644 --- a/target/linux/ramips/dts/rt3052_dlink_dap-1350.dts +++ b/target/linux/ramips/dts/rt3052_dlink_dap-1350.dts @@ -67,17 +67,17 @@ compatible = "gpio-leds"; led_power_blue: power { - label = "dap-1350:blue:power"; + label = "blue:power"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; power2 { - label = "dap-1350:red:power"; + label = "red:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wps { - label = "dap-1350:blue:wps"; + label = "blue:wps"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_engenius_esr-9753.dts b/target/linux/ramips/dts/rt3052_engenius_esr-9753.dts index 11895643f0..e795553543 100644 --- a/target/linux/ramips/dts/rt3052_engenius_esr-9753.dts +++ b/target/linux/ramips/dts/rt3052_engenius_esr-9753.dts @@ -57,12 +57,12 @@ compatible = "gpio-leds"; led_power: power { - label = "esr-9753:orange:power"; + label = "orange:power"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; wps { - label = "esr-9753:orange:wps"; + label = "orange:wps"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_fon_fonera-20n.dts b/target/linux/ramips/dts/rt3052_fon_fonera-20n.dts index 60ae701276..dc6138e6d8 100644 --- a/target/linux/ramips/dts/rt3052_fon_fonera-20n.dts +++ b/target/linux/ramips/dts/rt3052_fon_fonera-20n.dts @@ -57,17 +57,17 @@ compatible = "gpio-leds"; wifi { - label = "fonera-20n:orange:wifi"; + label = "orange:wifi"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "fonera-20n:green:power"; + label = "green:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; usb { - label = "fonera-20n:orange:usb"; + label = "orange:usb"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; trigger-sources = <&otg_port1>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/rt3052_hauppauge_broadway.dts b/target/linux/ramips/dts/rt3052_hauppauge_broadway.dts index 6fe6e152c4..17eaf23c98 100644 --- a/target/linux/ramips/dts/rt3052_hauppauge_broadway.dts +++ b/target/linux/ramips/dts/rt3052_hauppauge_broadway.dts @@ -50,14 +50,14 @@ compatible = "gpio-leds"; diskmounted { - label = "broadway:red:diskmounted"; + label = "red:diskmounted"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; trigger-sources = <&otg_port1>; linux,default-trigger = "usbport"; }; wps_active { - label = "broadway:red:wps_active"; + label = "red:wps_active"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_huawei_hg255d.dts b/target/linux/ramips/dts/rt3052_huawei_hg255d.dts index 909a9f8530..b2794cab30 100644 --- a/target/linux/ramips/dts/rt3052_huawei_hg255d.dts +++ b/target/linux/ramips/dts/rt3052_huawei_hg255d.dts @@ -63,34 +63,34 @@ compatible = "gpio-leds"; led_power: power { - label = "hg255d:green:power"; + label = "green:power"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; internet { - label = "hg255d:green:internet"; + label = "green:internet"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; wifi { - label = "hg255d:green:wlan"; + label = "green:wlan"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; usb { - label = "hg255d:green:usb"; + label = "green:usb"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; trigger-sources = <&otg_port1>; linux,default-trigger = "usbport"; }; wps { - label = "hg255d:green:wps"; + label = "green:wps"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; voice { - label = "hg255d:green:voice"; + label = "green:voice"; gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_jcg_jhr-n825r.dts b/target/linux/ramips/dts/rt3052_jcg_jhr-n825r.dts index e86910009e..10513ff54d 100644 --- a/target/linux/ramips/dts/rt3052_jcg_jhr-n825r.dts +++ b/target/linux/ramips/dts/rt3052_jcg_jhr-n825r.dts @@ -56,7 +56,7 @@ leds { compatible = "gpio-leds"; led_system: system { - label = "jhr-n825r:red:power"; + label = "red:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_jcg_jhr-n926r.dts b/target/linux/ramips/dts/rt3052_jcg_jhr-n926r.dts index f39948f220..14120fabcd 100644 --- a/target/linux/ramips/dts/rt3052_jcg_jhr-n926r.dts +++ b/target/linux/ramips/dts/rt3052_jcg_jhr-n926r.dts @@ -57,22 +57,22 @@ compatible = "gpio-leds"; wlan1 { - label = "jhr-n926r:red:wlan"; + label = "red:wlan"; gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; }; wlan2 { - label = "jhr-n926r:yellow:wlan"; + label = "yellow:wlan"; gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; }; wlan3 { - label = "jhr-n926r:green:wlan"; + label = "green:wlan"; gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; }; led_system: system { - label = "jhr-n926r:blue:system"; + label = "blue:system"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_mofinetwork_mofi3500-3gn.dts b/target/linux/ramips/dts/rt3052_mofinetwork_mofi3500-3gn.dts index 169fc17df8..8a4bd050db 100644 --- a/target/linux/ramips/dts/rt3052_mofinetwork_mofi3500-3gn.dts +++ b/target/linux/ramips/dts/rt3052_mofinetwork_mofi3500-3gn.dts @@ -57,24 +57,24 @@ compatible = "gpio-leds"; usb { - label = "mofi3500-3gn:green:usb"; + label = "green:usb"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; trigger-sources = <&otg_port1>; linux,default-trigger = "usbport"; }; 3g { - label = "mofi3500-3gn:green:3g"; + label = "green:3g"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; led_status: status { - label = "mofi3500-3gn:green:status"; + label = "green:status"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; wps { - label = "mofi3500-3gn:green:wps"; + label = "green:wps"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_netgear_wnce2001.dts b/target/linux/ramips/dts/rt3052_netgear_wnce2001.dts index b7bdb98d3c..685e68cd0c 100644 --- a/target/linux/ramips/dts/rt3052_netgear_wnce2001.dts +++ b/target/linux/ramips/dts/rt3052_netgear_wnce2001.dts @@ -24,22 +24,22 @@ compatible = "gpio-leds"; led_power_green: power-green { - label = "wnce2001:green:power"; + label = "green:power"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; power-red { - label = "wnce2001:red:power"; + label = "red:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wlan-green { - label = "wnce2001:green:wlan"; + label = "green:wlan"; gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; }; wlan-red { - label = "wnce2001:red:wlan"; + label = "red:wlan"; gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/rt3052_nexaira_bc2.dts b/target/linux/ramips/dts/rt3052_nexaira_bc2.dts index 5cf163f151..82e0123b2c 100644 --- a/target/linux/ramips/dts/rt3052_nexaira_bc2.dts +++ b/target/linux/ramips/dts/rt3052_nexaira_bc2.dts @@ -50,7 +50,7 @@ compatible = "gpio-leds"; usb { - label = "bc2:blue:usb"; + label = "blue:usb"; gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; trigger-sources = <&otg_port1>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/rt3052_omnima_miniembwifi.dts b/target/linux/ramips/dts/rt3052_omnima_miniembwifi.dts index 391e2694e1..864b9d7eae 100644 --- a/target/linux/ramips/dts/rt3052_omnima_miniembwifi.dts +++ b/target/linux/ramips/dts/rt3052_omnima_miniembwifi.dts @@ -20,12 +20,12 @@ compatible = "gpio-leds"; led_status: status { - label = "miniembwifi:green:status"; + label = "green:status"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wlan { - label = "miniembwifi:green:wlan"; + label = "green:wlan"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_petatel_psr-680w.dts b/target/linux/ramips/dts/rt3052_petatel_psr-680w.dts index 64b7f53786..8256eeba07 100644 --- a/target/linux/ramips/dts/rt3052_petatel_psr-680w.dts +++ b/target/linux/ramips/dts/rt3052_petatel_psr-680w.dts @@ -61,7 +61,7 @@ compatible = "gpio-leds"; led_wan: wan { - label = "psr-680w:red:wan"; + label = "red:wan"; gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_planex_mzk-w300nh2.dts b/target/linux/ramips/dts/rt3052_planex_mzk-w300nh2.dts index eb56552742..30a3bd59af 100644 --- a/target/linux/ramips/dts/rt3052_planex_mzk-w300nh2.dts +++ b/target/linux/ramips/dts/rt3052_planex_mzk-w300nh2.dts @@ -63,17 +63,17 @@ compatible = "gpio-leds"; led_power: power { - label = "mzk-w300nh2:green:power"; + label = "green:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wlan { - label = "mzk-w300nh2:amber:wlan"; + label = "amber:wlan"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; wps { - label = "mzk-w300nh2:amber:wps"; + label = "amber:wps"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_poray_ip2202.dts b/target/linux/ramips/dts/rt3052_poray_ip2202.dts index d8595c7667..26d1c2b9b3 100644 --- a/target/linux/ramips/dts/rt3052_poray_ip2202.dts +++ b/target/linux/ramips/dts/rt3052_poray_ip2202.dts @@ -57,12 +57,12 @@ compatible = "gpio-leds"; led_run: run { - label = "ip2202:green:run"; + label = "green:run"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; net { - label = "ip2202:amber:net"; + label = "amber:net"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_prolink_pwh2004.dts b/target/linux/ramips/dts/rt3052_prolink_pwh2004.dts index e15617a021..5bc107a933 100644 --- a/target/linux/ramips/dts/rt3052_prolink_pwh2004.dts +++ b/target/linux/ramips/dts/rt3052_prolink_pwh2004.dts @@ -57,12 +57,12 @@ compatible = "gpio-leds"; wifi { - label = "pwh2004:red:wifi"; + label = "red:wifi"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "pwh2004:green:power"; + label = "green:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_ralink_v22rw-2x2.dts b/target/linux/ramips/dts/rt3052_ralink_v22rw-2x2.dts index cfea590667..f482634ba7 100644 --- a/target/linux/ramips/dts/rt3052_ralink_v22rw-2x2.dts +++ b/target/linux/ramips/dts/rt3052_ralink_v22rw-2x2.dts @@ -57,12 +57,12 @@ compatible = "gpio-leds"; led_security: security { - label = "v22rw-2x2:green:security"; + label = "green:security"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; wps { - label = "v22rw-2x2:red:wps"; + label = "red:wps"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_sitecom_wl-351.dts b/target/linux/ramips/dts/rt3052_sitecom_wl-351.dts index 632ed3ed04..b51cddf13e 100644 --- a/target/linux/ramips/dts/rt3052_sitecom_wl-351.dts +++ b/target/linux/ramips/dts/rt3052_sitecom_wl-351.dts @@ -57,17 +57,17 @@ compatible = "gpio-leds"; led_power: power { - label = "wl-351:amber:power"; + label = "amber:power"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; unpopulated { - label = "wl-351:amber:unpopulated"; + label = "amber:unpopulated"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; unpopulated2 { - label = "wl-351:blue:unpopulated"; + label = "blue:unpopulated"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_skyline_sl-r7205.dts b/target/linux/ramips/dts/rt3052_skyline_sl-r7205.dts index a1649b695b..fe1e7eb952 100644 --- a/target/linux/ramips/dts/rt3052_skyline_sl-r7205.dts +++ b/target/linux/ramips/dts/rt3052_skyline_sl-r7205.dts @@ -57,7 +57,7 @@ compatible = "gpio-leds"; led_wifi: wifi { - label = "sl-r7205:green:wifi"; + label = "green:wifi"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_tenda_3g300m.dts b/target/linux/ramips/dts/rt3052_tenda_3g300m.dts index 24cf58df2d..acadd29e45 100644 --- a/target/linux/ramips/dts/rt3052_tenda_3g300m.dts +++ b/target/linux/ramips/dts/rt3052_tenda_3g300m.dts @@ -20,34 +20,34 @@ compatible = "gpio-leds"; 3grouter { - label = "3g300m:blue:3grouter"; + label = "blue:3grouter"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; led_ap: ap { - label = "3g300m:blue:ap"; + label = "blue:ap"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; wisprouter { - label = "3g300m:blue:wisprouter"; + label = "blue:wisprouter"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wirelessrouter { - label = "3g300m:blue:wirelessrouter"; + label = "blue:wirelessrouter"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; 3g { - label = "3g300m:blue:3g"; + label = "blue:3g"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; trigger-sources = <&otg_port1>; linux,default-trigger = "usbport"; }; wpsreset { - label = "3g300m:blue:wpsreset"; + label = "blue:wpsreset"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_tenda_w306r-v2.dts b/target/linux/ramips/dts/rt3052_tenda_w306r-v2.dts index 3602fa2648..6ee55c411b 100644 --- a/target/linux/ramips/dts/rt3052_tenda_w306r-v2.dts +++ b/target/linux/ramips/dts/rt3052_tenda_w306r-v2.dts @@ -57,12 +57,12 @@ compatible = "gpio-leds"; led_sys: sys { - label = "w306r-v20:green:sys"; + label = "green:sys"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wps { - label = "w306r-v20:green:wps"; + label = "green:wps"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_unbranded_wr512-3gn.dtsi b/target/linux/ramips/dts/rt3052_unbranded_wr512-3gn.dtsi index f62c18b0e2..dad0da16d5 100644 --- a/target/linux/ramips/dts/rt3052_unbranded_wr512-3gn.dtsi +++ b/target/linux/ramips/dts/rt3052_unbranded_wr512-3gn.dtsi @@ -17,27 +17,27 @@ compatible = "gpio-leds"; 3g { - label = "wr512-3gn:green:3g"; + label = "green:3g"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; gateway { - label = "wr512-3gn:green:gateway"; + label = "green:gateway"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; ap { - label = "wr512-3gn:green:ap"; + label = "green:ap"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; led_wps: wps { - label = "wr512-3gn:green:wps"; + label = "green:wps"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; station { - label = "wr512-3gn:green:station"; + label = "green:station"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_unbranded_xdx-rn502j.dts b/target/linux/ramips/dts/rt3052_unbranded_xdx-rn502j.dts index b35b604557..d7282e94df 100644 --- a/target/linux/ramips/dts/rt3052_unbranded_xdx-rn502j.dts +++ b/target/linux/ramips/dts/rt3052_unbranded_xdx-rn502j.dts @@ -57,12 +57,12 @@ compatible = "gpio-leds"; wifi { - label = "xdxrn502j:green:wifi"; + label = "green:wifi"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "xdxrn502j:green:power"; + label = "green:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_upvel_ur-326n4g.dts b/target/linux/ramips/dts/rt3052_upvel_ur-326n4g.dts index 64cfd3d21f..6973a7836a 100644 --- a/target/linux/ramips/dts/rt3052_upvel_ur-326n4g.dts +++ b/target/linux/ramips/dts/rt3052_upvel_ur-326n4g.dts @@ -57,27 +57,27 @@ compatible = "gpio-leds"; 3g { - label = "ur-326n4g:green:3g"; + label = "green:3g"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; gateway { - label = "ur-326n4g:green:gateway"; + label = "green:gateway"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; ap { - label = "ur-326n4g:green:ap"; + label = "green:ap"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; led_wps: wps { - label = "ur-326n4g:green:wps"; + label = "green:wps"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; station { - label = "ur-326n4g:green:station"; + label = "green:station"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_upvel_ur-336un.dts b/target/linux/ramips/dts/rt3052_upvel_ur-336un.dts index 5ce0765be2..89d0a12e5c 100644 --- a/target/linux/ramips/dts/rt3052_upvel_ur-336un.dts +++ b/target/linux/ramips/dts/rt3052_upvel_ur-336un.dts @@ -57,27 +57,27 @@ compatible = "gpio-leds"; 3g { - label = "ur-336un:green:3g"; + label = "green:3g"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; gateway { - label = "ur-336un:green:gateway"; + label = "green:gateway"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; ap { - label = "ur-336un:green:ap"; + label = "green:ap"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; led_wps: wps { - label = "ur-336un:green:wps"; + label = "green:wps"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; station { - label = "ur-336un:green:station"; + label = "green:station"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_zyxel_keenetic.dts b/target/linux/ramips/dts/rt3052_zyxel_keenetic.dts index a1030c452a..f5923b1574 100644 --- a/target/linux/ramips/dts/rt3052_zyxel_keenetic.dts +++ b/target/linux/ramips/dts/rt3052_zyxel_keenetic.dts @@ -57,19 +57,19 @@ compatible = "gpio-leds"; led_power: power { - label = "kn:green:power"; + label = "green:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; usb { - label = "kn:green:usb"; + label = "green:usb"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; trigger-sources = <&otg_port1>; linux,default-trigger = "usbport"; }; wps { - label = "kn:green:wps"; + label = "green:wps"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_zyxel_nbg-419n.dts b/target/linux/ramips/dts/rt3052_zyxel_nbg-419n.dts index 5f6347392a..021863a252 100644 --- a/target/linux/ramips/dts/rt3052_zyxel_nbg-419n.dts +++ b/target/linux/ramips/dts/rt3052_zyxel_nbg-419n.dts @@ -57,12 +57,12 @@ compatible = "gpio-leds"; led_power: power { - label = "nbg-419n:green:power"; + label = "green:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wps { - label = "nbg-419n:green:wps"; + label = "green:wps"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3352_allnet_all5002.dts b/target/linux/ramips/dts/rt3352_allnet_all5002.dts index 3e372087c4..e0cdeb34da 100644 --- a/target/linux/ramips/dts/rt3352_allnet_all5002.dts +++ b/target/linux/ramips/dts/rt3352_allnet_all5002.dts @@ -34,12 +34,12 @@ compatible = "gpio-leds"; ld1 { - label = "all5002:green:ld1"; + label = "green:ld1"; gpios = <&pcf0 0 GPIO_ACTIVE_LOW>; }; ld2 { - label = "all5002:green:ld2"; + label = "green:ld2"; gpios = <&pcf0 1 GPIO_ACTIVE_LOW>; }; }; 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 cb3be20c20..b1719402e5 100644 --- a/target/linux/ramips/dts/rt3352_dlink_dir-615-h1.dts +++ b/target/linux/ramips/dts/rt3352_dlink_dir-615-h1.dts @@ -21,28 +21,28 @@ compatible = "gpio-leds"; status { - label = "dir-615-h1:amber:status"; + label = "amber:status"; gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; }; led_status_green: status2 { - label = "dir-615-h1:green:status"; + label = "green:status"; gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; default-state = "on"; }; wan { - label = "dir-615-h1:amber:wan"; + label = "amber:wan"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; wan2 { - label = "dir-615-h1:green:wan"; + label = "green:wan"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; wps { - label = "dir-615-h1:blue:wps"; + label = "blue:wps"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; 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 8757ca52b1..975010765a 100644 --- a/target/linux/ramips/dts/rt3352_dlink_dir-620-d1.dts +++ b/target/linux/ramips/dts/rt3352_dlink_dir-620-d1.dts @@ -20,12 +20,12 @@ compatible = "gpio-leds"; led_status: status { - label = "dir-620-d1:green:status"; + label = "green:status"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wifi { - label = "dir-620-d1:green:wifi"; + label = "green:wifi"; gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; }; }; 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 3738bbca9f..eb3066279d 100644 --- a/target/linux/ramips/dts/rt3352_zyxel_nbg-419n-v2.dts +++ b/target/linux/ramips/dts/rt3352_zyxel_nbg-419n-v2.dts @@ -20,17 +20,17 @@ compatible = "gpio-leds"; led_power: power { - label = "nbg-419n2:green:power"; + label = "green:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wps { - label = "nbg-419n2:green:wps"; + label = "green:wps"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; usb { - label = "nbg-419n2:green:usb"; + label = "green:usb"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/rt3662_asus_rt-n56u.dts b/target/linux/ramips/dts/rt3662_asus_rt-n56u.dts index efebcdd071..c834874b9b 100644 --- a/target/linux/ramips/dts/rt3662_asus_rt-n56u.dts +++ b/target/linux/ramips/dts/rt3662_asus_rt-n56u.dts @@ -80,22 +80,22 @@ compatible = "gpio-leds"; led_power: power { - label = "rt-n56u:blue:power"; + label = "blue:power"; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; }; lan { - label = "rt-n56u:blue:lan"; + label = "blue:lan"; gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; }; wan { - label = "rt-n56u:blue:wan"; + label = "blue:wan"; gpios = <&gpio1 3 GPIO_ACTIVE_LOW>; }; usb { - label = "rt-n56u:blue:usb"; + label = "blue:usb"; gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3662_dlink_dir-645.dts b/target/linux/ramips/dts/rt3662_dlink_dir-645.dts index 1159c26eaf..31e4caed10 100644 --- a/target/linux/ramips/dts/rt3662_dlink_dir-645.dts +++ b/target/linux/ramips/dts/rt3662_dlink_dir-645.dts @@ -44,12 +44,12 @@ compatible = "gpio-leds"; inet { - label = "dir-645:green:inet"; + label = "green:inet"; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; }; led_wps: wps { - label = "dir-645:green:wps"; + label = "green:wps"; gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/rt3662_edimax_br-6475nd.dts b/target/linux/ramips/dts/rt3662_edimax_br-6475nd.dts index 86f724e871..08238419a2 100644 --- a/target/linux/ramips/dts/rt3662_edimax_br-6475nd.dts +++ b/target/linux/ramips/dts/rt3662_edimax_br-6475nd.dts @@ -38,17 +38,17 @@ compatible = "gpio-leds"; led_power: power { - label = "br-6475nd:green:power"; + label = "green:power"; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; }; wlan { - label = "br-6475nd:amber:wlan"; + label = "amber:wlan"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; wlan_5ghz { - label = "br-6475nd:amber:wlan_5ghz"; + label = "amber:wlan_5ghz"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3662_omnima_hpm.dts b/target/linux/ramips/dts/rt3662_omnima_hpm.dts index ac2e524caa..3fbfe51a8c 100644 --- a/target/linux/ramips/dts/rt3662_omnima_hpm.dts +++ b/target/linux/ramips/dts/rt3662_omnima_hpm.dts @@ -35,34 +35,34 @@ compatible = "gpio-leds"; power { - label = "hpm:orange:power"; + label = "orange:power"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; default-state = "on"; }; led_status: status { - label = "hpm:green:status"; + label = "green:status"; gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; default-state = "on"; }; eth { - label = "hpm:green:eth"; + label = "green:eth"; gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; }; eth2 { - label = "hpm:red:eth"; + label = "red:eth"; gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; }; wifi { - label = "hpm:green:wifi"; + label = "green:wifi"; gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; }; wifi2 { - label = "hpm:red:wifi"; + label = "red:wifi"; gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3662_samsung_cy-swr1100.dts b/target/linux/ramips/dts/rt3662_samsung_cy-swr1100.dts index 38aed8672a..7e87bfef20 100644 --- a/target/linux/ramips/dts/rt3662_samsung_cy-swr1100.dts +++ b/target/linux/ramips/dts/rt3662_samsung_cy-swr1100.dts @@ -91,19 +91,19 @@ compatible = "gpio-leds"; wps { - label = "cy-swr1100:blue:wps"; + label = "blue:wps"; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; }; usb { - label = "cy-swr1100:blue:usb"; + label = "blue:usb"; gpios = <&gpio1 1 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; led_power: power { - label = "cy-swr1100:blue:power"; + label = "blue:power"; gpios = <&gpio1 2 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3883_belkin_f9k1109v1.dts b/target/linux/ramips/dts/rt3883_belkin_f9k1109v1.dts index 05afd8af3a..8c93d8d01d 100644 --- a/target/linux/ramips/dts/rt3883_belkin_f9k1109v1.dts +++ b/target/linux/ramips/dts/rt3883_belkin_f9k1109v1.dts @@ -18,36 +18,36 @@ compatible = "gpio-leds"; led_status_amber: internet_amber { - label = "f9k1109v1:amber:internet"; + label = "amber:internet"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; led_status_blue: internet_blue { - label = "f9k1109v1:blue:internet"; + label = "blue:internet"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; usb1 { - label = "f9k1109v1:green:usb1"; + label = "green:usb1"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; usb2 { - label = "f9k1109v1:green:usb2"; + label = "green:usb2"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port2>, <&ehci_port2>; linux,default-trigger = "usbport"; }; wps_amber { - label = "f9k1109v1:amber:wps"; + label = "amber:wps"; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; }; wps_blue { - label = "f9k1109v1:blue:wps"; + label = "blue:wps"; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3883_sitecom_wlr-6000.dts b/target/linux/ramips/dts/rt3883_sitecom_wlr-6000.dts index b42f36a9e6..ab61a25a5f 100644 --- a/target/linux/ramips/dts/rt3883_sitecom_wlr-6000.dts +++ b/target/linux/ramips/dts/rt3883_sitecom_wlr-6000.dts @@ -31,12 +31,12 @@ compatible = "gpio-leds"; led_power: power { - label = "wlr-6000:red:power"; + label = "red:power"; gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; }; ops { - label = "wlr-6000:white:ops"; + label = "white:ops"; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts b/target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts index 671ed72630..028bd6fd69 100644 --- a/target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts +++ b/target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts @@ -79,7 +79,7 @@ compatible = "gpio-leds"; led_wps: wps { - label = "tew-691gr:green:wps"; + label = "green:wps"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3883_trendnet_tew-692gr.dts b/target/linux/ramips/dts/rt3883_trendnet_tew-692gr.dts index 5f9565ed84..39cb2ef307 100644 --- a/target/linux/ramips/dts/rt3883_trendnet_tew-692gr.dts +++ b/target/linux/ramips/dts/rt3883_trendnet_tew-692gr.dts @@ -73,12 +73,12 @@ compatible = "gpio-leds"; wps { - label = "tew-692gr:orange:wps"; + label = "orange:wps"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; led_wps_green: wps2 { - label = "tew-692gr:green:wps"; + label = "green:wps"; gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt5350_7links_px-4885.dtsi b/target/linux/ramips/dts/rt5350_7links_px-4885.dtsi index a4a520cdcb..a15d140f3e 100644 --- a/target/linux/ramips/dts/rt5350_7links_px-4885.dtsi +++ b/target/linux/ramips/dts/rt5350_7links_px-4885.dtsi @@ -28,12 +28,12 @@ compatible = "gpio-leds"; led_wifi: wifi { - label = "px-4885:orange:wifi"; + label = "orange:wifi"; gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; }; storage { - label = "px-4885:blue:storage"; + label = "blue:storage"; gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/rt5350_airlive_air3gii.dts b/target/linux/ramips/dts/rt5350_airlive_air3gii.dts index 56ae5276b3..afec53b1bc 100644 --- a/target/linux/ramips/dts/rt5350_airlive_air3gii.dts +++ b/target/linux/ramips/dts/rt5350_airlive_air3gii.dts @@ -13,12 +13,12 @@ compatible = "gpio-leds"; wlan { - label = "air3gii:green:wlan"; + label = "green:wlan"; gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; }; mobile { - label = "air3gii:green:mobile"; + label = "green:mobile"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/rt5350_allnet_all5003.dts b/target/linux/ramips/dts/rt5350_allnet_all5003.dts index 86b68bc6bc..25181f97b2 100644 --- a/target/linux/ramips/dts/rt5350_allnet_all5003.dts +++ b/target/linux/ramips/dts/rt5350_allnet_all5003.dts @@ -34,12 +34,12 @@ compatible = "gpio-leds"; ld1 { - label = "all5003:green:ld1"; + label = "green:ld1"; gpios = <&pcf0 0 GPIO_ACTIVE_LOW>; }; ld2 { - label = "all5003:green:ld2"; + label = "green:ld2"; gpios = <&pcf0 1 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt5350_asiarf_awm002-evb.dtsi b/target/linux/ramips/dts/rt5350_asiarf_awm002-evb.dtsi index 840db54670..07e088652c 100644 --- a/target/linux/ramips/dts/rt5350_asiarf_awm002-evb.dtsi +++ b/target/linux/ramips/dts/rt5350_asiarf_awm002-evb.dtsi @@ -10,17 +10,17 @@ compatible = "gpio-leds"; tx { - label = "awm002-evb:green:tx"; + label = "green:tx"; gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; }; rx { - label = "awm002-evb:green:rx"; + label = "green:rx"; gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; }; wps { - label = "awm002-evb:green:wps"; + label = "green:wps"; gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt5350_belkin_f7c027.dts b/target/linux/ramips/dts/rt5350_belkin_f7c027.dts index cb8a451075..0eff9a0617 100644 --- a/target/linux/ramips/dts/rt5350_belkin_f7c027.dts +++ b/target/linux/ramips/dts/rt5350_belkin_f7c027.dts @@ -20,22 +20,22 @@ compatible = "gpio-leds"; status { - label = "f7c027:blue:status"; + label = "blue:status"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; power { - label = "f7c027:blue:power"; + label = "blue:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; led_status_orange: orange { - label = "f7c027:orange:status"; + label = "orange:status"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; relay { - label = "f7c027:device:relay"; + label = "device:relay"; gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; }; }; 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 026609cf84..f13715a7bd 100644 --- a/target/linux/ramips/dts/rt5350_dlink_dcs-930l-b1.dts +++ b/target/linux/ramips/dts/rt5350_dlink_dcs-930l-b1.dts @@ -20,12 +20,12 @@ compatible = "gpio-leds"; led_power: power { - label = "dcs-930l-b1:red:power"; + label = "red:power"; gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; }; wps { - label = "dcs-930l-b1:blue:wps"; + label = "blue:wps"; gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; }; }; 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 cedf02989a..9d190e230f 100644 --- a/target/linux/ramips/dts/rt5350_dlink_dir-300-b7.dts +++ b/target/linux/ramips/dts/rt5350_dlink_dir-300-b7.dts @@ -20,12 +20,12 @@ compatible = "gpio-leds"; led_status: status { - label = "dir-300-b7:green:status"; + label = "green:status"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wps { - label = "dir-300-b7:blue:wps"; + label = "blue:wps"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; 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 659cf598e5..e03bd7dd8d 100644 --- a/target/linux/ramips/dts/rt5350_dlink_dir-320-b1.dts +++ b/target/linux/ramips/dts/rt5350_dlink_dir-320-b1.dts @@ -20,17 +20,17 @@ compatible = "gpio-leds"; led_status: status { - label = "dir-320-b1:green:status"; + label = "green:status"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; usb { - label = "dir-320-b1:green:usb"; + label = "green:usb"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; wps { - label = "dir-320-b1:green:wps"; + label = "green:wps"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; 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 9fc36ce802..510cfa2253 100644 --- a/target/linux/ramips/dts/rt5350_dlink_dir-610-a1.dts +++ b/target/linux/ramips/dts/rt5350_dlink_dir-610-a1.dts @@ -20,12 +20,12 @@ compatible = "gpio-leds"; led_status: status { - label = "dir-610-a1:green:status"; + label = "green:status"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wps { - label = "dir-610-a1:green:wps"; + label = "green:wps"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; 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 e467c82688..3214f3e4e1 100644 --- a/target/linux/ramips/dts/rt5350_dlink_dwr-512-b.dts +++ b/target/linux/ramips/dts/rt5350_dlink_dwr-512-b.dts @@ -37,27 +37,27 @@ compatible = "gpio-leds"; sms { - label = "dwr-512-b:green:sms"; + label = "green:sms"; gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; }; led_status: status { - label = "dwr-512-b:green:status"; + label = "green:status"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; 2g { - label = "dwr-512-b:green:2g"; + label = "green:2g"; gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; }; 3g { - label = "dwr-512-b:green:3g"; + label = "green:3g"; gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; }; sstrengthr { - label = "dwr-512-b:red:sigstrength"; + label = "red:sigstrength"; gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; }; sstrengthg { - label = "dwr-512-b:green:sigstrength"; + label = "green:sigstrength"; gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt5350_hame_mpr-a1.dts b/target/linux/ramips/dts/rt5350_hame_mpr-a1.dts index faf867c057..2b76dd1893 100644 --- a/target/linux/ramips/dts/rt5350_hame_mpr-a1.dts +++ b/target/linux/ramips/dts/rt5350_hame_mpr-a1.dts @@ -20,12 +20,12 @@ compatible = "gpio-leds"; led_system: system { - label = "mpr-a1:blue:system"; + label = "blue:system"; gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; }; power { - label = "mpr-a1:red:power"; + label = "red:power"; gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt5350_hame_mpr-a2.dts b/target/linux/ramips/dts/rt5350_hame_mpr-a2.dts index 679213448a..af2f394316 100644 --- a/target/linux/ramips/dts/rt5350_hame_mpr-a2.dts +++ b/target/linux/ramips/dts/rt5350_hame_mpr-a2.dts @@ -20,12 +20,12 @@ compatible = "gpio-leds"; led_system: system { - label = "mpr-a2:blue:system"; + label = "blue:system"; gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; }; power { - label = "mpr-a2:red:power"; + label = "red:power"; gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt5350_hootoo_ht-tm02.dts b/target/linux/ramips/dts/rt5350_hootoo_ht-tm02.dts index 824030c14c..8b9d6b12b5 100644 --- a/target/linux/ramips/dts/rt5350_hootoo_ht-tm02.dts +++ b/target/linux/ramips/dts/rt5350_hootoo_ht-tm02.dts @@ -20,12 +20,12 @@ compatible = "gpio-leds"; led_wlan: wlan { - label = "ht-tm02:blue:wlan"; + label = "blue:wlan"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; lan { - label = "ht-tm02:green:lan"; + label = "green:lan"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt5350_intenso_memory2move.dts b/target/linux/ramips/dts/rt5350_intenso_memory2move.dts index dff7a13705..587cbffd34 100644 --- a/target/linux/ramips/dts/rt5350_intenso_memory2move.dts +++ b/target/linux/ramips/dts/rt5350_intenso_memory2move.dts @@ -24,12 +24,12 @@ compatible = "gpio-leds"; led_wifi: wifi { - label = "memory2move:blue:wifi"; + label = "blue:wifi"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; wan { - label = "memory2move:green:wan"; + label = "green:wan"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt5350_omnima_miniembplug.dts b/target/linux/ramips/dts/rt5350_omnima_miniembplug.dts index c5841749f2..4c53a89310 100644 --- a/target/linux/ramips/dts/rt5350_omnima_miniembplug.dts +++ b/target/linux/ramips/dts/rt5350_omnima_miniembplug.dts @@ -13,12 +13,12 @@ compatible = "gpio-leds"; wlan { - label = "miniembplug:red:wlan"; + label = "red:wlan"; gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; }; mobile { - label = "miniembplug:green:mobile"; + label = "green:mobile"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/rt5350_planex_mzk-dp150n.dts b/target/linux/ramips/dts/rt5350_planex_mzk-dp150n.dts index 510755e155..8eea8d3f3f 100644 --- a/target/linux/ramips/dts/rt5350_planex_mzk-dp150n.dts +++ b/target/linux/ramips/dts/rt5350_planex_mzk-dp150n.dts @@ -20,7 +20,7 @@ compatible = "gpio-leds"; led_power: power { - label = "mzk-dp150n:green:power"; + label = "green:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt5350_poray_m3.dts b/target/linux/ramips/dts/rt5350_poray_m3.dts index 99fa33c34e..727971c942 100644 --- a/target/linux/ramips/dts/rt5350_poray_m3.dts +++ b/target/linux/ramips/dts/rt5350_poray_m3.dts @@ -20,7 +20,7 @@ compatible = "gpio-leds"; led_status: status { - label = "m3:blue:status"; + label = "blue:status"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt5350_poray_m4.dtsi b/target/linux/ramips/dts/rt5350_poray_m4.dtsi index 2413de2889..c4ca6ab6cd 100644 --- a/target/linux/ramips/dts/rt5350_poray_m4.dtsi +++ b/target/linux/ramips/dts/rt5350_poray_m4.dtsi @@ -17,7 +17,7 @@ compatible = "gpio-leds"; led_status: status { - label = "m4:blue:status"; + label = "blue:status"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt5350_poray_x5.dts b/target/linux/ramips/dts/rt5350_poray_x5.dts index e4e1a73e07..85a8e9c4eb 100644 --- a/target/linux/ramips/dts/rt5350_poray_x5.dts +++ b/target/linux/ramips/dts/rt5350_poray_x5.dts @@ -20,22 +20,22 @@ compatible = "gpio-leds"; led_power: power { - label = "x5:green:power"; + label = "green:power"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; 20 { - label = "x5:green:20"; + label = "green:20"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; 50 { - label = "x5:green:50"; + label = "green:50"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; 80 { - label = "x5:green:80"; + label = "green:80"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt5350_poray_x8.dts b/target/linux/ramips/dts/rt5350_poray_x8.dts index 5d9e6cae49..64af07d584 100644 --- a/target/linux/ramips/dts/rt5350_poray_x8.dts +++ b/target/linux/ramips/dts/rt5350_poray_x8.dts @@ -20,7 +20,7 @@ compatible = "gpio-leds"; led_power: power { - label = "x8:green:power"; + label = "green:power"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt5350_tenda_3g150b.dts b/target/linux/ramips/dts/rt5350_tenda_3g150b.dts index 9569ac31e3..0d34936ba8 100644 --- a/target/linux/ramips/dts/rt5350_tenda_3g150b.dts +++ b/target/linux/ramips/dts/rt5350_tenda_3g150b.dts @@ -20,12 +20,12 @@ compatible = "gpio-leds"; led_ap: ap { - label = "3g150b:blue:ap"; + label = "blue:ap"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; 3g { - label = "3g150b:blue:3g"; + label = "blue:3g"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/rt5350_trendnet_tew-714tru.dts b/target/linux/ramips/dts/rt5350_trendnet_tew-714tru.dts index 28a42dac36..ce179f5e6b 100644 --- a/target/linux/ramips/dts/rt5350_trendnet_tew-714tru.dts +++ b/target/linux/ramips/dts/rt5350_trendnet_tew-714tru.dts @@ -13,14 +13,14 @@ compatible = "gpio-leds"; usb { - label = "tew-714tru:red:usb"; + label = "red:usb"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; wifi { - label = "tew-714tru:green:wifi"; + label = "green:wifi"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt5350_unbranded_a5-v11.dts b/target/linux/ramips/dts/rt5350_unbranded_a5-v11.dts index 820256187f..ea30748cb6 100644 --- a/target/linux/ramips/dts/rt5350_unbranded_a5-v11.dts +++ b/target/linux/ramips/dts/rt5350_unbranded_a5-v11.dts @@ -21,12 +21,12 @@ compatible = "gpio-leds"; system { - label = "a5-v11:blue:system"; + label = "blue:system"; gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "a5-v11:red:power"; + label = "red:power"; gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt5350_vocore_vocore.dtsi b/target/linux/ramips/dts/rt5350_vocore_vocore.dtsi index 791b69448a..a905e023cb 100644 --- a/target/linux/ramips/dts/rt5350_vocore_vocore.dtsi +++ b/target/linux/ramips/dts/rt5350_vocore_vocore.dtsi @@ -144,13 +144,13 @@ led_status: status { /* UARTF_RXD */ - label = "vocore:green:status"; + label = "green:status"; gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>; }; eth { /* UARTF_DTR_N */ - label = "vocore:orange:eth"; + label = "orange:eth"; gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/rt5350_wiznet_wizfi630a.dts b/target/linux/ramips/dts/rt5350_wiznet_wizfi630a.dts index c9d0dc0499..fa95e1b107 100644 --- a/target/linux/ramips/dts/rt5350_wiznet_wizfi630a.dts +++ b/target/linux/ramips/dts/rt5350_wiznet_wizfi630a.dts @@ -24,22 +24,22 @@ compatible = "gpio-leds"; led_run: run { - label = "wizfi630a::run"; + label = ":run"; gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; }; wps { - label = "wizfi630a::wps"; + label = ":wps"; gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; }; uart1 { - label = "wizfi630a::uart1"; + label = ":uart1"; gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; }; uart2 { - label = "wizfi630a::uart2"; + label = ":uart2"; gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt5350_zorlik_zl5900v2.dts b/target/linux/ramips/dts/rt5350_zorlik_zl5900v2.dts index cfc4931000..67e602ad12 100644 --- a/target/linux/ramips/dts/rt5350_zorlik_zl5900v2.dts +++ b/target/linux/ramips/dts/rt5350_zorlik_zl5900v2.dts @@ -20,12 +20,12 @@ compatible = "gpio-leds"; lan { - label = "zl5900v2:green:lan"; + label = "green:lan"; gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; }; led_power: power { - label = "zl5900v2:blue:power"; + label = "blue:power"; gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/rt5350_zyxel_keenetic-lite-b.dts b/target/linux/ramips/dts/rt5350_zyxel_keenetic-lite-b.dts index 74c7fa920f..34ef8ca0f1 100644 --- a/target/linux/ramips/dts/rt5350_zyxel_keenetic-lite-b.dts +++ b/target/linux/ramips/dts/rt5350_zyxel_keenetic-lite-b.dts @@ -21,12 +21,12 @@ compatible = "gpio-leds"; led_power: power { - label = "keenetic-lite-b:green:power"; + label = "green:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wps { - label = "keenetic-lite-b:green:wps"; + label = "green:wps"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt5350_zyxel_keenetic-start.dts b/target/linux/ramips/dts/rt5350_zyxel_keenetic-start.dts index 20c0dad4bb..d62c0144dd 100644 --- a/target/linux/ramips/dts/rt5350_zyxel_keenetic-start.dts +++ b/target/linux/ramips/dts/rt5350_zyxel_keenetic-start.dts @@ -22,12 +22,12 @@ compatible = "gpio-leds"; led_power: power { - label = "zyxel:green:power"; + label = "green:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; internet { - label = "zyxel:green:internet"; + label = "green:internet"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; 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 581f613b2b..f352c780fb 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 @@ -7,9 +7,7 @@ set_wifi_led() { ucidef_set_led_netdev "wifi_led" "wifi" "${1}" "${2:-wlan0}" } - board=$(board_name) -boardname="${board##*,}" board_config_update @@ -18,181 +16,180 @@ led_wlan="$(get_dt_led wlan)" case $board in aigale,ai-br100) - ucidef_set_led_netdev "wan" "wan" "$boardname:blue:wan" "eth0.2" - set_wifi_led "$boardname:blue:wlan" + ucidef_set_led_netdev "wan" "wan" "blue:wan" "eth0.2" + set_wifi_led "blue:wlan" ;; alfa-network,ac1200rm) - set_wifi_led "$boardname:green:wlan2g" "wlan1" + set_wifi_led "green:wlan2g" "wlan1" ;; alfa-network,r36m-e4g) - ucidef_set_led_netdev "4g" "4g" "$boardname:orange:4g" "wwan0" - ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x8" - ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x10" + ucidef_set_led_netdev "4g" "4g" "orange:4g" "wwan0" + ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x8" + ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x10" ;; alfa-network,tube-e4g) - ucidef_set_led_netdev "4g" "4g" "$boardname:green:4g" "wwan0" - ucidef_set_led_netdev "lan" "lan" "$boardname:blue:lan" "eth0" + ucidef_set_led_netdev "4g" "4g" "green:4g" "wwan0" + ucidef_set_led_netdev "lan" "lan" "blue:lan" "eth0" ;; asus,rp-n53) - ucidef_set_led_netdev "eth" "Network" "$boardname:white:back" "eth0" - set_wifi_led "$boardname:blue:wifi" + ucidef_set_led_netdev "eth" "Network" "white:back" "eth0" + set_wifi_led "blue:wifi" ;; asus,rt-n12p) - ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" eth0.1 - ucidef_set_led_netdev "wan" "wan" "$boardname:green:wan" eth0.2 - set_wifi_led "$boardname:green:air" + ucidef_set_led_netdev "lan" "lan" "green:lan" eth0.1 + ucidef_set_led_netdev "wan" "wan" "green:wan" eth0.2 + set_wifi_led "green:air" ;; asus,rt-n14u) - ucidef_set_led_netdev "lan" "lan" "$boardname:blue:lan" eth0.1 - ucidef_set_led_netdev "wan" "wan" "$boardname:blue:wan" eth0.2 - set_wifi_led "$boardname:blue:air" + ucidef_set_led_netdev "lan" "lan" "blue:lan" eth0.1 + ucidef_set_led_netdev "wan" "wan" "blue:wan" eth0.2 + set_wifi_led "blue:air" ;; bdcom,wap2100-sk) - set_wifi_led "$boardname:green:wlan2g" + set_wifi_led "green:wlan2g" ;; comfast,cf-wr800n) - ucidef_set_led_netdev "lan" "lan" "$boardname:white:ethernet" eth0.1 - set_wifi_led "$boardname:white:wifi" + ucidef_set_led_netdev "lan" "lan" "white:ethernet" eth0.1 + set_wifi_led "white:wifi" ;; dlink,dir-810l|\ trendnet,tew-810dr) - ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x10" + ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x10" ;; dlink,dwr-116-a1|\ head-weblink,hdrm200|\ ohyeah,oy-0001|\ planex,mzk-ex300np|\ +zbtlink,zbt-we826-16m|\ +zbtlink,zbt-we826-32m|\ zbtlink,zbt-wr8305rt|\ zyxel,keenetic-omni|\ zyxel,keenetic-omni-ii|\ zyxel,keenetic-viva) - set_wifi_led "$boardname:green:wifi" + set_wifi_led "green:wifi" ;; dlink,dwr-118-a1) - ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1f" - ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x20" - set_wifi_led "$boardname:green:wlan2g" "wlan1" + ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x1f" + ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x20" + set_wifi_led "green:wlan2g" "wlan1" ;; dlink,dwr-118-a2) - ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e" - ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01" - set_wifi_led "$boardname:green:wlan2g" "wlan1" + ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x1e" + ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x01" + set_wifi_led "green:wlan2g" "wlan1" ;; dlink,dwr-921-c1|\ dlink,dwr-922-e2) - set_wifi_led "$boardname:green:wifi" - ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x0f" - ucidef_set_led_netdev "signalstrength" "signalstrength" "$boardname:green:sigstrength" "wwan0" "link" - ucidef_set_led_netdev "4g" "4g" "$boardname:green:4g" "wwan0" "tx rx" + ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x0f" + ucidef_set_led_netdev "signalstrength" "signalstrength" "green:sigstrength" "wwan0" "link" + ucidef_set_led_netdev "4g" "4g" "green:4g" "wwan0" "tx rx" + set_wifi_led "green:wifi" ;; dlink,dwr-960) - ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x2e" - ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01" + ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x2e" + ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x01" ;; dovado,tiny-ac) - set_wifi_led "$boardname:orange:wifi" + set_wifi_led "orange:wifi" ;; edimax,br-6478ac-v2|\ edimax,ew-7478apc) - set_wifi_led "$boardname:blue:wlan" + set_wifi_led "blue:wlan" ;; edimax,ew-7476rpc|\ edimax,ew-7478ac) - ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x20" + ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x20" ;; elecom,wrh-300cr) - set_wifi_led "$boardname:green:wlan" - ucidef_set_led_netdev "lan" "lan" "$boardname:green:ethernet" "eth0" + ucidef_set_led_netdev "lan" "lan" "green:ethernet" "eth0" + set_wifi_led "green:wlan" ;; engenius,esr600) - ucidef_set_led_netdev "wlan5g" "5.0GHz" "$boardname:blue:wlan5g" "wlan0" - ucidef_set_led_netdev "wlan2g" "2.4GHz" "$boardname:blue:wlan2g" "wlan1" + ucidef_set_led_netdev "wlan5g" "5.0GHz" "blue:wlan5g" "wlan0" + ucidef_set_led_netdev "wlan2g" "2.4GHz" "blue:wlan2g" "wlan1" ;; glinet,gl-mt300a|\ glinet,gl-mt300n|\ glinet,gl-mt750) - set_wifi_led "$boardname:wlan" + set_wifi_led "wlan" ;; hiwifi,hc5661|\ hiwifi,hc5761) - ucidef_set_led_switch "internet" "internet" "$boardname:blue:internet" "switch0" "0x01" + ucidef_set_led_switch "internet" "internet" "blue:internet" "switch0" "0x01" ;; hiwifi,hc5861) - ucidef_set_led_switch "internet" "internet" "$boardname:blue:internet" "switch0" "0x20" + ucidef_set_led_switch "internet" "internet" "blue:internet" "switch0" "0x20" ;; hnet,c108) - ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" "eth0" - ucidef_set_led_netdev "modem" "modem" "$boardname:green:modem" "wwan0" + ucidef_set_led_netdev "lan" "lan" "green:lan" "eth0" + ucidef_set_led_netdev "modem" "modem" "green:modem" "wwan0" ;; iodata,wn-ac1167gr|\ iodata,wn-ac733gr3) - ucidef_set_led_wlan "wlan5g" "WLAN5G" "$boardname:green:wlan5g" "phy0radio" - ucidef_set_led_wlan "wlan2g" "WLAN2G" "$boardname:green:wlan2g" "phy1radio" + ucidef_set_led_wlan "wlan5g" "WLAN5G" "green:wlan5g" "phy0radio" + ucidef_set_led_wlan "wlan2g" "WLAN2G" "green:wlan2g" "phy1radio" ;; kimax,u25awf-h1) - set_wifi_led "u25awf:red:wifi" - ucidef_set_led_netdev "eth" "eth" "u25awf:green:lan" "eth0" + ucidef_set_led_netdev "eth" "eth" "green:lan" "eth0" + set_wifi_led "red:wifi" ;; kimax,u35wf) - set_wifi_led "$boardname:blue:wifi" - ucidef_set_led_netdev "eth" "ETH" "$boardname:green:eth" "eth0" + ucidef_set_led_netdev "eth" "ETH" "green:eth" "eth0" + set_wifi_led "blue:wifi" ;; kingston,mlw221|\ kingston,mlwg2|\ sanlinking,d240) - set_wifi_led "$boardname:blue:wifi" + set_wifi_led "blue:wifi" ;; lava,lr-25g001) - ucidef_set_led_netdev "wlan2g" "WiFi 2.4GHz" "$boardname:green:wlan2g" "wlan1" - ucidef_set_led_netdev "wlan5g" "WiFi 5GHz" "$boardname:green:wlan5g" "wlan0" + ucidef_set_led_netdev "wlan2g" "WiFi 2.4GHz" "green:wlan2g" "wlan1" + ucidef_set_led_netdev "wlan5g" "WiFi 5GHz" "green:wlan5g" "wlan0" ;; lenovo,newifi-y1) - ucidef_set_led_netdev "wifi" "WIFI" "$boardname:blue:wifi" "wlan1" - ucidef_set_led_netdev "wifi5g" "WIFI5G" "$boardname:blue:wifi5g" "wlan0" - ucidef_set_led_switch "lan" "LAN" "$boardname:blue:lan" "switch0" "0x03" + ucidef_set_led_netdev "wifi" "WIFI" "blue:wifi" "wlan1" + ucidef_set_led_netdev "wifi5g" "WIFI5G" "blue:wifi5g" "wlan0" + ucidef_set_led_switch "lan" "LAN" "blue:lan" "switch0" "0x03" ;; lenovo,newifi-y1s) - ucidef_set_led_netdev "wifi" "WIFI" "$boardname:yellow:wifi" "wlan1" - ucidef_set_led_netdev "wifi5g" "WIFI5G" "$boardname:blue:wifi" "wlan0" - ucidef_set_led_netdev "wan" "WAN" "$boardname:blue:internet" "eth0.2" "tx rx" + ucidef_set_led_netdev "wifi" "WIFI" "yellow:wifi" "wlan1" + ucidef_set_led_netdev "wifi5g" "WIFI5G" "blue:wifi" "wlan0" + ucidef_set_led_netdev "wan" "WAN" "blue:internet" "eth0.2" "tx rx" ;; netgear,ex2700|\ netgear,wn3000rp-v3) - set_wifi_led "$boardname:green:router" + set_wifi_led "green:router" ;; netgear,ex3700|\ netgear,ex6130) - ucidef_set_led_netdev "wlan5g" "ROUTER (green)" "$boardname:green:router" "wlan0" - ucidef_set_led_netdev "wlan2g" "DEVICE (green)" "$boardname:green:device" "wlan1" + ucidef_set_led_netdev "wlan5g" "ROUTER (green)" "green:router" "wlan0" + ucidef_set_led_netdev "wlan2g" "DEVICE (green)" "green:device" "wlan1" ;; netgear,jwnr2010-v5) - ucidef_set_led_switch "lan1" "lan1" "$boardname:green:lan1" "switch0" "0x08" - ucidef_set_led_switch "lan2" "lan2" "$boardname:green:lan2" "switch0" "0x04" - ucidef_set_led_switch "lan3" "lan3" "$boardname:green:lan3" "switch0" "0x02" - ucidef_set_led_switch "lan4" "lan4" "$boardname:green:lan4" "switch0" "0x01" - ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x10" + ucidef_set_led_switch "lan1" "lan1" "green:lan1" "switch0" "0x08" + ucidef_set_led_switch "lan2" "lan2" "green:lan2" "switch0" "0x04" + ucidef_set_led_switch "lan3" "lan3" "green:lan3" "switch0" "0x02" + ucidef_set_led_switch "lan4" "lan4" "green:lan4" "switch0" "0x01" + ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x10" ;; phicomm,psg1208) - set_wifi_led "$boardname:white:wlan2g" + set_wifi_led "white:wlan2g" ;; planex,mzk-ex750np|\ zbtlink,zbt-we826-e) - set_wifi_led "$boardname:red:wifi" + set_wifi_led "red:wifi" ;; ravpower,rp-wd03) - ucidef_set_led_netdev "internet" "internet" "$boardname:green:wifi" "eth0" + ucidef_set_led_netdev "internet" "internet" "green:wifi" "eth0" ;; 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" - ;; -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_switch "lan" "lan" "green:lan" "switch1" "0x1e" + ucidef_set_led_switch "wan" "wan" "green:wan" "switch1" "0x01" ;; +tplink,archer-c20-v1|\ 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_switch "lan" "lan" "blue:lan" "switch0" "0x1e" + ucidef_set_led_switch "wan" "wan" "blue:wan" "switch0" "0x01" ;; tplink,archer-c5-v4) ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch1" "0x0f" @@ -200,43 +197,39 @@ tplink,archer-c5-v4) ucidef_set_led_netdev "wlan2g" "wlan2g" "$boardname:green:wlan2g" "wlan1" ;; 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_switch "lan" "lan" "green:lan" "switch0" "0x1e" + ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x01" ;; tplink,archer-mr200) - ucidef_set_led_netdev "lan" "lan" "$boardname:white:lan" "eth0.1" - ucidef_set_led_netdev "wan" "wan" "$boardname:white:wan" "usb0" + ucidef_set_led_netdev "lan" "lan" "white:lan" "eth0.1" + ucidef_set_led_netdev "wan" "wan" "white:wan" "usb0" ;; tplink,re200-v1) - ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" "eth0" + ucidef_set_led_netdev "lan" "lan" "green:lan" "eth0" ;; youku,yk1) - set_wifi_led "$boardname:blue:air" - ucidef_set_led_switch "wan" "wan" "$boardname:blue:wan" "switch0" "0x10" + ucidef_set_led_switch "wan" "wan" "blue:wan" "switch0" "0x10" + set_wifi_led "blue:air" ;; zbtlink,zbt-ape522ii) - ucidef_set_led_netdev "wlan2g4" "wlan1-link" "$boardname:green:wlan2g4" "wlan1" - ucidef_set_led_netdev "sys1" "wlan1" "$boardname:green:sys1" "wlan1" "tx rx" - ucidef_set_led_netdev "sys2" "wlan0" "$boardname:green:sys2" "wlan0" "tx rx" + ucidef_set_led_netdev "wlan2g4" "wlan1-link" "green:wlan2g4" "wlan1" + ucidef_set_led_netdev "sys1" "wlan1" "green:sys1" "wlan1" "tx rx" + ucidef_set_led_netdev "sys2" "wlan0" "green:sys2" "wlan0" "tx rx" ;; zbtlink,zbt-wa05) - set_wifi_led "$boardname:blue:air" - ;; -zbtlink,zbt-we826-16m|\ -zbtlink,zbt-we826-32m) - set_wifi_led "zbt-we826:green:wifi" + set_wifi_led "blue:air" ;; zbtlink,zbt-we1026-5g-16m) - ucidef_set_led_netdev "lan" "LAN" "we1026-5g:green:lan" "eth0" - set_wifi_led "we1026-5g:green:wifi" + ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0" + set_wifi_led "green:wifi" ;; zbtlink,zbt-we1026-h-32m) - set_wifi_led "we1026-h:green:wifi" - ucidef_set_led_switch "lan" "lan" "we1026-h:green:lan" "switch0" "0x8" - ucidef_set_led_switch "wan" "wan" "we1026-h:green:wan" "switch0" "0x10" + ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x8" + ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x10" + set_wifi_led "green:wifi" ;; zbtlink,zbt-we2026) - set_wifi_led "$boardname:green:wlan" + set_wifi_led "green:wlan" ;; esac diff --git a/target/linux/ramips/mt7620/base-files/etc/uci-defaults/04_led_migration b/target/linux/ramips/mt7620/base-files/etc/uci-defaults/04_led_migration deleted file mode 100644 index 0f2e08cf7f..0000000000 --- a/target/linux/ramips/mt7620/base-files/etc/uci-defaults/04_led_migration +++ /dev/null @@ -1,50 +0,0 @@ -. /lib/functions.sh -. /lib/functions/migrations.sh - -board=$(board_name) - -case "$board" in -lenovo,newifi-y1) - migrate_leds "^y1:=newifi-y1:" - ;; -lenovo,newifi-y1s) - migrate_leds "^y1s:=newifi-y1s:" - ;; -netgear,wn3000rp-v3) - migrate_leds "^wn3000rpv3:=wn3000rp-v3:" - ;; -ravpower,rp-wd03) - migrate_leds "^wd03:=rp-wd03:" - ;; -tplink,archer-c2-v1) - migrate_leds "^c2-v1:=archer-c2-v1:" - ;; -tplink,archer-c20-v1) - migrate_leds "^c20-v1:=archer-c20-v1:" - ;; -tplink,archer-c20i) - migrate_leds "^c20i:=archer-c20i:" - ;; -tplink,archer-c50-v1) - migrate_leds "^c50:=archer-c50-v1:" - ;; -tplink,archer-mr200) - migrate_leds "^mr200:=archer-mr200:" - ;; -youku,yk1) - migrate_leds "^youku-yk1:=yk1:" - ;; -zyxel,keenetic-omni) - migrate_leds "^kn_rc:=keenetic-omni:" - ;; -zyxel,keenetic-omni-ii) - migrate_leds "^kn_rc:=keenetic-omni-ii:" - ;; -zyxel,keenetic-viva) - migrate_leds "^kng_rc:=keenetic-viva:" - ;; -esac - -migrations_apply system - -exit 0 diff --git a/target/linux/ramips/mt7621/base-files/etc/board.d/01_leds b/target/linux/ramips/mt7621/base-files/etc/board.d/01_leds index e61c5b72ee..15e525b547 100755 --- a/target/linux/ramips/mt7621/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/mt7621/base-files/etc/board.d/01_leds @@ -18,58 +18,58 @@ led_wlan="$(get_dt_led wlan)" case $board in d-team,newifi-d2) - ucidef_set_led_switch "internet" "internet" "$boardname:amber:internet" "switch0" "0x10" - ucidef_set_led_netdev "wlan2g" "WiFi 2.4GHz" "$boardname:blue:wlan2g" "ra0" - ucidef_set_led_netdev "wlan5g" "WiFi 5GHz" "$boardname:blue:wlan5g" "rai0" + ucidef_set_led_switch "internet" "internet" "amber:internet" "switch0" "0x10" + ucidef_set_led_netdev "wlan2g" "WiFi 2.4GHz" "blue:wlan2g" "ra0" + ucidef_set_led_netdev "wlan5g" "WiFi 5GHz" "blue:wlan5g" "rai0" ;; d-team,pbr-m1) - ucidef_set_led_netdev "internet" "internet" "$boardname:blue:internet" "wan" + ucidef_set_led_netdev "internet" "internet" "blue:internet" "wan" ;; dlink,dir-1960-a1|\ dlink,dir-2660-a1) - ucidef_set_led_netdev "wan" "wan" "$boardname:white:net" "wan" + ucidef_set_led_netdev "wan" "wan" "white:net" "wan" ;; dlink,dir-860l-b1) - ucidef_set_led_netdev "wan" "wan" "$boardname:green:net" "wan" + ucidef_set_led_netdev "wan" "wan" "green:net" "wan" ;; dlink,dir-867-a1|\ dlink,dir-878-a1|\ dlink,dir-882-a1|\ motorola,mr2600) - ucidef_set_led_netdev "wan" "wan" "$boardname:green:net" "wan" - ucidef_set_led_netdev "wlan2g" "WiFi 2.4GHz" "$boardname:green:wlan2g" "ra0" - ucidef_set_led_netdev "wlan5g" "WiFi 5GHz" "$boardname:green:wlan5g" "rai0" + ucidef_set_led_netdev "wan" "wan" "green:net" "wan" + ucidef_set_led_netdev "wlan2g" "WiFi 2.4GHz" "green:wlan2g" "ra0" + ucidef_set_led_netdev "wlan5g" "WiFi 5GHz" "green:wlan5g" "rai0" ;; gehua,ghl-r-001|\ jcg,y2) - ucidef_set_led_switch "internet" "internet" "$boardname:blue:internet" "switch0" "0x10" + ucidef_set_led_switch "internet" "internet" "blue:internet" "switch0" "0x10" ;; gnubee,gb-pc1|\ gnubee,gb-pc2) - ucidef_set_led_netdev "lan1" "lan1" "$boardname:green:lan1" "lan1" - ucidef_set_led_netdev "lan2" "lan2" "$boardname:green:lan2" "lan2" + ucidef_set_led_netdev "lan1" "lan1" "green:lan1" "lan1" + ucidef_set_led_netdev "lan2" "lan2" "green:lan2" "lan2" ;; linksys,ea7300-v1|\ linksys,ea7500-v2) - ucidef_set_led_netdev "lan1" "lan1 link" "$boardname:green:lan1" "lan1" "link" - ucidef_set_led_netdev "lan2" "lan2 link" "$boardname:green:lan2" "lan2" "link" - ucidef_set_led_netdev "lan3" "lan3 link" "$boardname:green:lan3" "lan3" "link" - ucidef_set_led_netdev "lan4" "lan4 link" "$boardname:green:lan4" "lan4" "link" - ucidef_set_led_netdev "wan" "wan link" "$boardname:green:wan" "wan" "link" + ucidef_set_led_netdev "lan1" "lan1 link" "green:lan1" "lan1" "link" + ucidef_set_led_netdev "lan2" "lan2 link" "green:lan2" "lan2" "link" + ucidef_set_led_netdev "lan3" "lan3 link" "green:lan3" "lan3" "link" + ucidef_set_led_netdev "lan4" "lan4 link" "green:lan4" "lan4" "link" + ucidef_set_led_netdev "wan" "wan link" "green:wan" "wan" "link" ;; mikrotik,routerboard-760igs) - ucidef_set_led_netdev "sfp" "SFP" "$boardname:blue:sfp" "sfp" + ucidef_set_led_netdev "sfp" "SFP" "blue:sfp" "sfp" ;; mikrotik,routerboard-m11g) ucidef_set_rssimon "wlan0" "200000" "1" - ucidef_set_led_rssi "rssilow" "RSSILOW" "$boardname:green:rssi0" "wlan0" "1" "100" - ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "$boardname:green:rssi1" "wlan0" "20" "100" - ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "$boardname:green:rssi2" "wlan0" "40" "100" - ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "$boardname:green:rssi3" "wlan0" "60" "100" - ucidef_set_led_rssi "rssiveryhigh" "RSSIVERYHIGH" "$boardname:green:rssi4" "wlan0" "80" "100" + ucidef_set_led_rssi "rssilow" "RSSILOW" "green:rssi0" "wlan0" "1" "100" + ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "green:rssi1" "wlan0" "20" "100" + ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:rssi2" "wlan0" "40" "100" + ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssi3" "wlan0" "60" "100" + ucidef_set_led_rssi "rssiveryhigh" "RSSIVERYHIGH" "green:rssi4" "wlan0" "80" "100" ;; mtc,wr1201) - ucidef_set_led_netdev "eth_link" "LAN link" "$boardname:green:eth_link" "br-lan" + ucidef_set_led_netdev "eth_link" "LAN link" "green:eth_link" "br-lan" ;; netgear,r6220|\ netgear,r6260|\ @@ -77,38 +77,38 @@ netgear,r6350|\ netgear,r6850|\ netgear,wac124|\ netgear,wndr3700-v5) - ucidef_set_led_netdev "wan" "wan" "$boardname:green:wan" "wan" + ucidef_set_led_netdev "wan" "wan" "green:wan" "wan" ;; netgear,r6700-v2|\ netgear,r6800) - ucidef_set_led_netdev "wan" "WAN" "$boardname:white:wan" "wan" - ucidef_set_led_netdev "lan1" "LAN1" "$boardname:white:lan1" "lan1" - ucidef_set_led_netdev "lan2" "LAN2" "$boardname:white:lan2" "lan2" - ucidef_set_led_netdev "lan3" "LAN3" "$boardname:white:lan3" "lan3" - ucidef_set_led_netdev "lan4" "LAN4" "$boardname:white:lan4" "lan4" + ucidef_set_led_netdev "wan" "WAN" "white:wan" "wan" + ucidef_set_led_netdev "lan1" "LAN1" "white:lan1" "lan1" + ucidef_set_led_netdev "lan2" "LAN2" "white:lan2" "lan2" + ucidef_set_led_netdev "lan3" "LAN3" "white:lan3" "lan3" + ucidef_set_led_netdev "lan4" "LAN4" "white:lan4" "lan4" ;; tplink,re350-v1) - ucidef_set_led_netdev "wifi2g" "Wifi 2.4G" "$boardname:blue:wifi2G" "wlan0" - ucidef_set_led_netdev "wifi5g" "Wifi 5G" "$boardname:blue:wifi5G" "wlan1" - ucidef_set_led_netdev "eth_act" "LAN act" "$boardname:green:eth_act" "lan" "tx rx" - ucidef_set_led_netdev "eth_link" "LAN link" "$boardname:green:eth_link" "lan" "link" + ucidef_set_led_netdev "wifi2g" "Wifi 2.4G" "blue:wifi2G" "wlan0" + ucidef_set_led_netdev "wifi5g" "Wifi 5G" "blue:wifi5G" "wlan1" + ucidef_set_led_netdev "eth_act" "LAN act" "green:eth_act" "lan" "tx rx" + ucidef_set_led_netdev "eth_link" "LAN link" "green:eth_link" "lan" "link" ;; tplink,re500-v1|\ tplink,re650-v1) - ucidef_set_led_netdev "eth_act" "LAN act" "$boardname:green:eth_act" "lan" "tx rx" - ucidef_set_led_netdev "eth_link" "LAN link" "$boardname:green:eth_link" "lan" "link" + ucidef_set_led_netdev "eth_act" "LAN act" "green:eth_act" "lan" "tx rx" + ucidef_set_led_netdev "eth_link" "LAN link" "green:eth_link" "lan" "link" ;; xzwifi,creativebox-v1) - ucidef_set_led_netdev "internet" "internet" "$boardname:blue:internet" "wan" + ucidef_set_led_netdev "internet" "internet" "blue:internet" "wan" ;; xiaomi,mi-router-ac2100) - ucidef_set_led_switch "wan" "wan" "$boardname:blue:wan" "switch0" "0x1" + ucidef_set_led_switch "wan" "wan" "blue:wan" "switch0" "0x1" ;; xiaomi,redmi-router-ac2100) - ucidef_set_led_switch "wan" "wan" "$boardname:white:wan" "switch0" "0x1" + ucidef_set_led_switch "wan" "wan" "white:wan" "switch0" "0x1" ;; youhua,wr1200js) - ucidef_set_led_netdev "internet" "INTERNET" "$boardname:green:wan" "wan" + ucidef_set_led_netdev "internet" "INTERNET" "green:wan" "wan" ;; esac diff --git a/target/linux/ramips/mt7621/base-files/etc/uci-defaults/04_led_migration b/target/linux/ramips/mt7621/base-files/etc/uci-defaults/04_led_migration deleted file mode 100644 index 4b298654b6..0000000000 --- a/target/linux/ramips/mt7621/base-files/etc/uci-defaults/04_led_migration +++ /dev/null @@ -1,27 +0,0 @@ -. /lib/functions.sh -. /lib/functions/migrations.sh - -board=$(board_name) -boardonly="${board##*,}" - -case "$board" in -asus,rt-ac65p) - migrate_leds "^rt-ac85p:=rt-ac65p:" - ;; -mikrotik,routerboard-750gr3) - migrate_leds "^rb750gr3:=$boardonly:" - ;; -mikrotik,routerboard-m11g) - migrate_leds "^rbm11g:=$boardonly:" - ;; -mikrotik,routerboard-m33g) - migrate_leds "^rbm33g:=$boardonly:" - ;; -netgear,wndr3700-v5) - migrate_leds "^wndr3700v5:=$boardonly:" - ;; -esac - -migrations_apply system - -exit 0 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 745ee1ede5..58af7977b2 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 @@ -7,9 +7,7 @@ set_wifi_led() { ucidef_set_led_netdev "wifi_led" "wifi" "${1}" "${2:-wlan0}" } - board=$(board_name) -boardname="${board##*,}" board_config_update @@ -18,7 +16,7 @@ led_wlan="$(get_dt_led wlan)" case $board in alfa-network,awusfree1) - set_wifi_led "$boardname:blue:wlan" + set_wifi_led "blue:wlan" ;; asus,rt-n10p-v3|\ asus,rt-n11p-b1|\ @@ -26,47 +24,49 @@ asus,rt-n12-vp-b1|\ netgear,r6020|\ netgear,r6080|\ netgear,r6120) - ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0xf" - ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x10" + ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0xf" + ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x10" ;; cudy,wr1000) - ucidef_set_led_switch "wan" "wan" "$boardname:blue:wan" "switch0" "0x10" - ucidef_set_led_switch "lan1" "lan1" "$boardname:blue:lan1" "switch0" "0x08" - ucidef_set_led_switch "lan2" "lan2" "$boardname:blue:lan2" "switch0" "0x04" + ucidef_set_led_switch "wan" "wan" "blue:wan" "switch0" "0x10" + ucidef_set_led_switch "lan1" "lan1" "blue:lan1" "switch0" "0x08" + ucidef_set_led_switch "lan2" "lan2" "blue:lan2" "switch0" "0x04" ;; glinet,gl-mt300n-v2) - set_wifi_led "$boardname:red:wlan" - ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x1" + set_wifi_led "red:wlan" + ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x1" ;; hilink,hlk-7628n|\ skylab,skw92a) - set_wifi_led "$boardname:green:wlan" + set_wifi_led "green:wlan" ;; hiwifi,hc5661a|\ hiwifi,hc5761a) - ucidef_set_led_switch "internet" "internet" "$boardname:blue:internet" "switch0" "0x10" + ucidef_set_led_switch "internet" "internet" "blue:internet" "switch0" "0x10" ;; mediatek,linkit-smart-7688) - ucidef_set_led_wlan "wifi" "wifi" "linkit-smart-7688:orange:wifi" "phy0tpt" + ucidef_set_led_wlan "wifi" "wifi" "orange:wifi" "phy0tpt" ;; rakwireless,rak633) - set_wifi_led "$boardname:blue:wifi" + set_wifi_led "blue:wifi" ;; tama,w06) - ucidef_set_led_netdev "wan" "WAN" "$boardname:green:wan" "eth0" - ucidef_set_led_wlan "wlan" "WLAN" "$boardname:green:wlan" "phy0tpt" + ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth0" + ucidef_set_led_wlan "wlan" "WLAN" "green:wlan" "phy0tpt" ;; 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" +tplink,archer-c20-v5|\ +tplink,tl-wr841n-v14|\ +tplink,tl-wr850n-v2) + ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x1e" + ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x01" ;; tplink,archer-c50-v3|\ tplink,archer-c50-v4) - 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_wlan "wlan2g" "wlan2g" "$boardname:green:wlan2g" "phy0tpt" - ucidef_set_led_wlan "wlan5g" "wlan5g" "$boardname:green:wlan5g" "phy1tpt" + ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x1e" + ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x01" + ucidef_set_led_wlan "wlan2g" "wlan2g" "green:wlan2g" "phy0tpt" + ucidef_set_led_wlan "wlan5g" "wlan5g" "green:wlan5g" "phy1tpt" ;; tplink,re200-v2|\ tplink,re200-v3|\ @@ -74,72 +74,63 @@ tplink,re200-v4|\ tplink,re220-v2|\ tplink,tl-mr3020-v3|\ tplink,tl-wa801nd-v5) - ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" "eth0" + ucidef_set_led_netdev "lan" "lan" "green:lan" "eth0" ;; tplink,tl-mr3420-v5|\ +tplink,tl-wr840n-v4|\ tplink,tl-wr842n-v5) - ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan" "phy0tpt" - ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e" - ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01" - ;; -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" - ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01" + ucidef_set_led_wlan "wlan2g" "wlan2g" "green:wlan" "phy0tpt" + ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x1e" + ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x01" ;; tplink,tl-wr841n-v13) - ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan" "phy0tpt" - ucidef_set_led_switch "lan1" "lan1" "$boardname:green:lan1" "switch0" "0x2" - ucidef_set_led_switch "lan2" "lan2" "$boardname:green:lan2" "switch0" "0x4" - ucidef_set_led_switch "lan3" "lan3" "$boardname:green:lan3" "switch0" "0x8" - ucidef_set_led_switch "lan4" "lan4" "$boardname:green:lan4" "switch0" "0x10" - ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01" - ;; -tplink,tl-wr841n-v14|\ -tplink,tl-wr850n-v2) - 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_wlan "wlan2g" "wlan2g" "green:wlan" "phy0tpt" + ucidef_set_led_switch "lan1" "lan1" "green:lan1" "switch0" "0x2" + ucidef_set_led_switch "lan2" "lan2" "green:lan2" "switch0" "0x4" + ucidef_set_led_switch "lan3" "lan3" "green:lan3" "switch0" "0x8" + ucidef_set_led_switch "lan4" "lan4" "green:lan4" "switch0" "0x10" + ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x01" ;; 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" + ucidef_set_led_wlan "wlan2g" "wlan2g" "green:wlan" "phy0tpt" + ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x10" + ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x10" ;; unielec,u7628-01-16m) - ucidef_set_led_switch "lan1" "lan1" "u7628-01:green:lan1" "switch0" "0x2" - ucidef_set_led_switch "lan2" "lan2" "u7628-01:green:lan2" "switch0" "0x4" - ucidef_set_led_switch "lan3" "lan3" "u7628-01:green:lan3" "switch0" "0x8" - ucidef_set_led_switch "lan4" "lan4" "u7628-01:green:lan4" "switch0" "0x10" - ucidef_set_led_switch "wan" "wan" "u7628-01:green:wan" "switch0" "0x01" - set_wifi_led "u7628-01:green:wlan" + ucidef_set_led_switch "lan1" "lan1" "green:lan1" "switch0" "0x2" + ucidef_set_led_switch "lan2" "lan2" "green:lan2" "switch0" "0x4" + ucidef_set_led_switch "lan3" "lan3" "green:lan3" "switch0" "0x8" + ucidef_set_led_switch "lan4" "lan4" "green:lan4" "switch0" "0x10" + ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x01" + set_wifi_led "green:wlan" ;; wavlink,wl-wn570ha1) - ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01" + ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x01" ucidef_set_rssimon "wlan0" "200000" "1" - ucidef_set_led_rssi "wifi-low" "wifi-low" "$boardname:green:wifi-low" "wlan0" "1" "49" - ucidef_set_led_rssi "wifi-med" "wifi-med" "$boardname:green:wifi-med" "wlan0" "50" "84" - ucidef_set_led_rssi "wifi-high" "wifi-high" "$boardname:green:wifi-high" "wlan0" "85" "100" - set_wifi_led "$boardname:green:wifi" + ucidef_set_led_rssi "wifi-low" "wifi-low" "green:wifi-low" "wlan0" "1" "49" + ucidef_set_led_rssi "wifi-med" "wifi-med" "green:wifi-med" "wlan0" "50" "84" + ucidef_set_led_rssi "wifi-high" "wifi-high" "green:wifi-high" "wlan0" "85" "100" + set_wifi_led "green:wifi" ;; wavlink,wl-wn575a3) ucidef_set_rssimon "wlan1" "200000" "1" - ucidef_set_led_rssi "wifi-low" "wifi-low" "$boardname:green:wifi-low" "wlan1" "1" "49" - ucidef_set_led_rssi "wifi-med" "wifi-med" "$boardname:green:wifi-med" "wlan1" "50" "84" - ucidef_set_led_rssi "wifi-high" "wifi-high" "$boardname:green:wifi-high" "wlan1" "85" "100" + ucidef_set_led_rssi "wifi-low" "wifi-low" "green:wifi-low" "wlan1" "1" "49" + ucidef_set_led_rssi "wifi-med" "wifi-med" "green:wifi-med" "wlan1" "50" "84" + ucidef_set_led_rssi "wifi-high" "wifi-high" "green:wifi-high" "wlan1" "85" "100" ;; wavlink,wl-wn577a2) - ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x8" - ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x10" + ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x8" + ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x10" ;; zbtlink,zbt-we1226) - set_wifi_led "$boardname:green:wlan" - ucidef_set_led_switch "lan1" "LAN1" "$boardname:green:lan1" "switch0" "0x01" - ucidef_set_led_switch "lan2" "LAN2" "$boardname:green:lan2" "switch0" "0x02" - ucidef_set_led_switch "wan" "WAN" "$boardname:green:wan" "switch0" "0x10" + set_wifi_led "green:wlan" + ucidef_set_led_switch "lan1" "LAN1" "green:lan1" "switch0" "0x01" + ucidef_set_led_switch "lan2" "LAN2" "green:lan2" "switch0" "0x02" + ucidef_set_led_switch "wan" "WAN" "green:wan" "switch0" "0x10" ;; zyxel,keenetic-extra-ii) - set_wifi_led "$boardname:green:wifi" - ucidef_set_led_switch "internet" "internet" "$boardname:green:internet" "switch0" "0x01" + set_wifi_led "green:wifi" + ucidef_set_led_switch "internet" "internet" "green:internet" "switch0" "0x01" ;; esac diff --git a/target/linux/ramips/mt76x8/base-files/etc/uci-defaults/04_led_migration b/target/linux/ramips/mt76x8/base-files/etc/uci-defaults/04_led_migration deleted file mode 100644 index 44815b2ddc..0000000000 --- a/target/linux/ramips/mt76x8/base-files/etc/uci-defaults/04_led_migration +++ /dev/null @@ -1,20 +0,0 @@ -. /lib/functions.sh -. /lib/functions/migrations.sh - -board=$(board_name) - -case "$board" in -tplink,archer-c20-v4) - migrate_leds "^c20-v4:=archer-c20-v4:" - ;; -tplink,archer-c50-v3) - migrate_leds "^c50-v3:=archer-c50-v3:" - ;; -tplink,archer-c50-v4) - migrate_leds "^c50-v4:=archer-c50-v4:" - ;; -esac - -migrations_apply system - -exit 0 diff --git a/target/linux/ramips/rt288x/base-files/etc/board.d/01_leds b/target/linux/ramips/rt288x/base-files/etc/board.d/01_leds index a042ecfbda..2a3cf53c99 100755 --- a/target/linux/ramips/rt288x/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/rt288x/base-files/etc/board.d/01_leds @@ -7,9 +7,7 @@ set_wifi_led() { ucidef_set_led_netdev "wifi_led" "wifi" "${1}" "${2:-wlan0}" } - board=$(board_name) -boardname="${board##*,}" board_config_update @@ -22,7 +20,7 @@ airlink101,ar725w) set_wifi_led "rt2800soc-phy0::radio" ;; belkin,f5d8235-v1) - set_wifi_led "$boardname:blue:wireless" + set_wifi_led "blue:wireless" ;; ralink,v11st-fe) set_wifi_led "rt2800pci-phy0::radio" diff --git a/target/linux/ramips/rt305x/base-files/etc/board.d/01_leds b/target/linux/ramips/rt305x/base-files/etc/board.d/01_leds index 8260b09821..3f6b70341c 100755 --- a/target/linux/ramips/rt305x/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/rt305x/base-files/etc/board.d/01_leds @@ -7,9 +7,7 @@ set_wifi_led() { ucidef_set_led_netdev "wifi_led" "wifi" "${1}" "${2:-wlan0}" } - board=$(board_name) -boardname="${board##*,}" board_config_update @@ -18,14 +16,15 @@ led_wlan="$(get_dt_led wlan)" case $board in 7links,px-4885-4m|\ -7links,px-4885-8m) - set_wifi_led "px-4885:orange:wifi" +7links,px-4885-8m|\ +fon,fonera-20n) + set_wifi_led "orange:wifi" ;; airlive,air3gii|\ aximcom,mr-102n|\ edimax,3g-6200nl|\ netgear,wnce2001) - set_wifi_led "$boardname:green:wlan" + set_wifi_led "green:wlan" ;; alfa-network,w502u|\ dlink,dir-300-b1|\ @@ -49,61 +48,58 @@ zyxel,nbg-419n-v2) allnet,all0256n-4m|\ allnet,all0256n-8m) ucidef_set_rssimon "wlan0" "200000" "1" - ucidef_set_led_rssi "rssilow" "RSSILOW" "all0256n:green:rssilow" "wlan0" "1" "40" "0" "6" - ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "all0256n:green:rssimed" "wlan0" "30" "80" "-29" "5" - ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "all0256n:green:rssihigh" "wlan0" "70" "100" "-69" "8" + ucidef_set_led_rssi "rssilow" "RSSILOW" "green:rssilow" "wlan0" "1" "40" "0" "6" + ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "green:rssimed" "wlan0" "30" "80" "-29" "5" + ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssihigh" "wlan0" "70" "100" "-69" "8" set_wifi_led "rt2800pci-phy0::radio" ;; alphanetworks,asl26555-8m|\ alphanetworks,asl26555-16m) - ucidef_set_led_netdev "eth" "ETH" "asl26555:green:eth" "eth0" - set_wifi_led "asl26555:green:wlan" + ucidef_set_led_netdev "eth" "ETH" "green:eth" "eth0" + set_wifi_led "green:wlan" ;; asiarf,awapn2403) set_wifi_led "rt2800soc-phy0::radio" ;; dlink,dcs-930l-b1) - ucidef_set_led_netdev "wifi" "WiFi" "$boardname:blue:wps" + ucidef_set_led_netdev "wifi" "WiFi" "blue:wps" ;; dlink,dir-615-d) - ucidef_set_led_netdev "wan" "WAN (green)" "$boardname:green:wan" "eth0.2" + ucidef_set_led_netdev "wan" "WAN (green)" "green:wan" "eth0.2" set_wifi_led "rt2800soc-phy0::radio" ;; dlink,dir-620-d1|\ trendnet,tew-714tru) - set_wifi_led "$boardname:green:wifi" + set_wifi_led "green:wifi" ;; edimax,3g-6200n|\ planex,mzk-w300nh2) - set_wifi_led "$boardname:amber:wlan" - ;; -fon,fonera-20n) - set_wifi_led "$boardname:orange:wifi" + set_wifi_led "amber:wlan" ;; hauppauge,broadway) - set_wifi_led "$boardname:red:wps_active" + set_wifi_led "red:wps_active" ;; hootoo,ht-tm02) - ucidef_set_led_netdev "eth" "Ethernet" "$boardname:green:lan" "eth0" - set_wifi_led "$boardname:blue:wlan" + ucidef_set_led_netdev "eth" "Ethernet" "green:lan" "eth0" + set_wifi_led "blue:wlan" ;; huawei,hg255d) - set_wifi_led "$boardname:green:wlan" - ucidef_set_led_netdev "internet" "internet" "$boardname:green:internet" "eth0.2" + set_wifi_led "green:wlan" + ucidef_set_led_netdev "internet" "internet" "green:internet" "eth0.2" ;; intenso,memory2move) - set_wifi_led "$boardname:blue:wifi" - ucidef_set_led_netdev "eth" "Ethernet" "$boardname:green:wan" "eth0" + set_wifi_led "blue:wifi" + ucidef_set_led_netdev "eth" "Ethernet" "green:wan" "eth0" ;; omnima,miniembplug) - set_wifi_led "$boardname:red:wlan" + set_wifi_led "red:wlan" ;; vocore,vocore-8m|\ vocore,vocore-16m) - ucidef_set_led_netdev "eth" "ETH" "vocore:orange:eth" "eth0" + ucidef_set_led_netdev "eth" "ETH" "orange:eth" "eth0" ;; zorlik,zl5900v2) - ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" eth0 + ucidef_set_led_netdev "lan" "lan" "green:lan" "eth0" ;; esac diff --git a/target/linux/ramips/rt305x/base-files/etc/uci-defaults/04_led_migration b/target/linux/ramips/rt305x/base-files/etc/uci-defaults/04_led_migration deleted file mode 100644 index 1009154cac..0000000000 --- a/target/linux/ramips/rt305x/base-files/etc/uci-defaults/04_led_migration +++ /dev/null @@ -1,17 +0,0 @@ -. /lib/functions.sh -. /lib/functions/migrations.sh - -board=$(board_name) - -case "$board" in -fon,fonera-20n) - migrate_leds "^fonera20n:=fonera-20n:" - ;; -intenso,memory2move) - migrate_leds "^m2m:=memory2move:" - ;; -esac - -migrations_apply system - -exit 0 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 1a72112c6f..d06d47336b 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 @@ -7,9 +7,7 @@ set_wifi_led() { ucidef_set_led_netdev "wifi_led" "wifi" "${1}" "${2:-wlan0}" } - board=$(board_name) -boardname="${board##*,}" board_config_update @@ -18,14 +16,14 @@ led_wlan="$(get_dt_led wlan)" case $board in belkin,f9k1109v1) - ucidef_set_led_netdev "lan" "lan" "$boardname:blue:wps" "eth0" + ucidef_set_led_netdev "lan" "lan" "blue:wps" "eth0" ;; edimax,br-6475nd) - set_wifi_led "$boardname:amber:wlan" + set_wifi_led "amber:wlan" ;; omnima,hpm) - ucidef_set_led_netdev "eth" "ETH" "$boardname:green:eth" "eth0" - set_wifi_led "$boardname:green:wifi" + ucidef_set_led_netdev "eth" "ETH" "green:eth" "eth0" + set_wifi_led "green:wifi" ;; esac