ath79: convert to new LED color/function format where possible
authorChristian Marangi <ansuelsmth@gmail.com>
Wed, 7 Feb 2024 13:48:34 +0000 (14:48 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Wed, 7 Feb 2024 13:48:34 +0000 (14:48 +0100)
Initial conversion to new LED color/function format
and drop label format where possible. The same label
is composed at runtime.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
287 files changed:
target/linux/ath79/dts/ar1022_sitecom_wlr-7100.dts
target/linux/ath79/dts/ar7161_adtran_bsap1880.dtsi
target/linux/ath79/dts/ar7161_aruba_ap-105.dts
target/linux/ath79/dts/ar7161_aruba_ap-175.dts
target/linux/ath79/dts/ar7161_buffalo_wzr-hp-ag300h.dtsi
target/linux/ath79/dts/ar7161_dlink_dir-825-b1.dts
target/linux/ath79/dts/ar7161_fortinet_fap-220-b.dts
target/linux/ath79/dts/ar7161_meraki_mr16.dts
target/linux/ath79/dts/ar7161_netgear_wndap360.dts
target/linux/ath79/dts/ar7161_netgear_wndr.dtsi
target/linux/ath79/dts/ar7161_ruckus_gd11.dtsi
target/linux/ath79/dts/ar7161_siemens_ws-ap3610.dts
target/linux/ath79/dts/ar7161_trendnet_tew-673gru.dts
target/linux/ath79/dts/ar7240_buffalo_whr-g301n.dts
target/linux/ath79/dts/ar7240_dlink_dir-615-e4.dts
target/linux/ath79/dts/ar7240_engenius_enh202-v1.dts
target/linux/ath79/dts/ar7240_netgear_wnr1000-v2.dts
target/linux/ath79/dts/ar7240_netgear_wnr612-v2.dtsi
target/linux/ath79/dts/ar7240_openmesh_om2p-v1.dts
target/linux/ath79/dts/ar7240_ruckus_zf7025.dts
target/linux/ath79/dts/ar7240_tplink.dtsi
target/linux/ath79/dts/ar7240_tplink_tl-wa.dtsi
target/linux/ath79/dts/ar7240_tplink_tl-wr.dtsi
target/linux/ath79/dts/ar7241_netgear_wnr2000-v3.dts
target/linux/ath79/dts/ar7241_netgear_wnr2200.dtsi
target/linux/ath79/dts/ar7241_tplink_tl-mr3220-v1.dts
target/linux/ath79/dts/ar7241_tplink_tl-mr3420-v1.dts
target/linux/ath79/dts/ar7241_tplink_tl-wr841-v7.dts
target/linux/ath79/dts/ar7241_tplink_tl-wr842n-v1.dts
target/linux/ath79/dts/ar7241_ubnt_airrouter.dts
target/linux/ath79/dts/ar7242_avm_fritz300e.dts
target/linux/ath79/dts/ar7242_buffalo_wzr-bhr.dtsi
target/linux/ath79/dts/ar7242_buffalo_wzr-hp-g302h-a1a0.dts
target/linux/ath79/dts/ar7242_engenius_eap350-v1.dts
target/linux/ath79/dts/ar7242_engenius_ecb350-v1.dts
target/linux/ath79/dts/ar7242_meraki_mr12.dts
target/linux/ath79/dts/ar7242_tplink_tl-wr2543-v1.dts
target/linux/ath79/dts/ar9132_buffalo_wzr-hp-g300nh.dtsi
target/linux/ath79/dts/ar9132_tplink_tl-wa901nd-v2.dts
target/linux/ath79/dts/ar9132_tplink_tl-wr1043nd-v1.dts
target/linux/ath79/dts/ar9132_tplink_tl-wr941-v2.dts
target/linux/ath79/dts/ar9330_dlink_dir-505.dts
target/linux/ath79/dts/ar9330_glinet_gl-ar150.dts
target/linux/ath79/dts/ar9330_openmesh_om2p.dtsi
target/linux/ath79/dts/ar9330_pqi_air-pen.dts
target/linux/ath79/dts/ar9330_ziking_cpe46b.dts
target/linux/ath79/dts/ar9331_8dev_carambola2.dts
target/linux/ath79/dts/ar9331_alfa-network_ap121f.dtsi
target/linux/ath79/dts/ar9331_arduino_yun.dts
target/linux/ath79/dts/ar9331_embeddedwireless_dorin.dts
target/linux/ath79/dts/ar9331_etactica_eg200.dts
target/linux/ath79/dts/ar9331_glinet_64xx.dtsi
target/linux/ath79/dts/ar9331_glinet_gl-mifi.dts
target/linux/ath79/dts/ar9331_glinet_gl-usb150.dts
target/linux/ath79/dts/ar9331_hiwifi_hc6361.dts
target/linux/ath79/dts/ar9331_teltonika_rut230-v1.dts
target/linux/ath79/dts/ar9331_tplink_tl-mr3020-v1.dts
target/linux/ath79/dts/ar9331_tplink_tl-mr3040-v2.dts
target/linux/ath79/dts/ar9331_tplink_tl-wr741nd-v4.dtsi
target/linux/ath79/dts/ar9341_engenius_eap300-v2.dts
target/linux/ath79/dts/ar9341_engenius_ens202ext-v1.dts
target/linux/ath79/dts/ar9341_openmesh_om2p-hs.dtsi
target/linux/ath79/dts/ar9341_pcs_cr3000.dts
target/linux/ath79/dts/ar9341_tplink.dtsi
target/linux/ath79/dts/ar9341_tplink_tl-mr3420-v2.dts
target/linux/ath79/dts/ar9341_tplink_tl-wa850re-v1.dts
target/linux/ath79/dts/ar9341_tplink_tl-wa860re-v1.dts
target/linux/ath79/dts/ar9341_tplink_tl-wa901nd-v3.dts
target/linux/ath79/dts/ar9341_tplink_tl-wr842n-v2.dts
target/linux/ath79/dts/ar9342_iodata_etg3-r.dts
target/linux/ath79/dts/ar9342_mikrotik_routerboard-911g.dtsi
target/linux/ath79/dts/ar9342_ruckus_zf7321.dts
target/linux/ath79/dts/ar9342_zyxel_nwa1100-nh.dts
target/linux/ath79/dts/ar9342_zyxel_nwa1121-ni.dts
target/linux/ath79/dts/ar9342_zyxel_nwa1123-ac.dts
target/linux/ath79/dts/ar9342_zyxel_nwa1123-ni.dts
target/linux/ath79/dts/ar9344_aerohive_hiveap-121.dts
target/linux/ath79/dts/ar9344_alfa-network_n5q.dts
target/linux/ath79/dts/ar9344_araknis_an-300-ap-i-n.dts
target/linux/ath79/dts/ar9344_atheros_db120.dts
target/linux/ath79/dts/ar9344_comfast_cf-e120a-v3.dts
target/linux/ath79/dts/ar9344_compex_wpj344-16m.dts
target/linux/ath79/dts/ar9344_devolo_dlan_wifi.dtsi
target/linux/ath79/dts/ar9344_dlink_dir-825-c1.dts
target/linux/ath79/dts/ar9344_dlink_dir-835-a1.dts
target/linux/ath79/dts/ar9344_engenius_eap600.dts
target/linux/ath79/dts/ar9344_engenius_ecb600.dts
target/linux/ath79/dts/ar9344_enterasys_ws-ap3705i.dts
target/linux/ath79/dts/ar9344_fortinet_fap-221-b.dts
target/linux/ath79/dts/ar9344_mikrotik_routerboard-911-lite.dts
target/linux/ath79/dts/ar9344_mikrotik_routerboard-lhg-5nd.dts
target/linux/ath79/dts/ar9344_mikrotik_routerboard-sxt-5nd-r2.dts
target/linux/ath79/dts/ar9344_netgear_r6100.dts
target/linux/ath79/dts/ar9344_netgear_wndr.dtsi
target/linux/ath79/dts/ar9344_netgear_wndr_usb.dtsi
target/linux/ath79/dts/ar9344_netgear_wndr_wan.dtsi
target/linux/ath79/dts/ar9344_ocedo_raccoon.dts
target/linux/ath79/dts/ar9344_openmesh_mr600-v1.dts
target/linux/ath79/dts/ar9344_openmesh_mr600-v2.dts
target/linux/ath79/dts/ar9344_openmesh_om5p-an.dts
target/linux/ath79/dts/ar9344_openmesh_om5p.dts
target/linux/ath79/dts/ar9344_pcs_cap324.dts
target/linux/ath79/dts/ar9344_pcs_cr5000.dts
target/linux/ath79/dts/ar9344_qihoo_c301.dts
target/linux/ath79/dts/ar9344_qxwlan_e750a-v4-16m.dts
target/linux/ath79/dts/ar9344_qxwlan_e750a-v4-8m.dts
target/linux/ath79/dts/ar9344_qxwlan_e750x.dtsi
target/linux/ath79/dts/ar9344_ruckus_zf7372.dts
target/linux/ath79/dts/ar9344_samsung_wam250.dts
target/linux/ath79/dts/ar9344_tplink_cpe605-v1.dts
target/linux/ath79/dts/ar9344_tplink_cpe610-v1.dts
target/linux/ath79/dts/ar9344_tplink_cpe610-v2.dts
target/linux/ath79/dts/ar9344_tplink_cpe_1port.dtsi
target/linux/ath79/dts/ar9344_tplink_tl-wdr3500-v1.dts
target/linux/ath79/dts/ar9344_tplink_tl-wr841hp-v2.dts
target/linux/ath79/dts/ar9344_watchguard_ap100.dts
target/linux/ath79/dts/ar9344_watchguard_ap200.dts
target/linux/ath79/dts/ar9344_wd_mynet-n750.dts
target/linux/ath79/dts/ar9344_wd_mynet-wifi-rangeextender.dts
target/linux/ath79/dts/ar9344_winchannel_wb2000.dts
target/linux/ath79/dts/ar934x_ruckus_zf73xx.dtsi
target/linux/ath79/dts/qca9531_alcatel_hh40v.dts
target/linux/ath79/dts/qca9531_alfa-network_n2q.dts
target/linux/ath79/dts/qca9531_alfa-network_pi-wifi4.dts
target/linux/ath79/dts/qca9531_alfa-network_r36a.dts
target/linux/ath79/dts/qca9531_alfa-network_tube-2hq.dts
target/linux/ath79/dts/qca9531_asus_rp-ac51.dts
target/linux/ath79/dts/qca9531_comfast_cf-e130n-v2.dts
target/linux/ath79/dts/qca9531_comfast_cf-e313ac.dts
target/linux/ath79/dts/qca9531_comfast_cf-e314n-v2.dts
target/linux/ath79/dts/qca9531_comfast_cf-e5.dts
target/linux/ath79/dts/qca9531_comfast_cf-e560ac.dts
target/linux/ath79/dts/qca9531_comfast_cf-ew72.dts
target/linux/ath79/dts/qca9531_comfast_cf-wr752ac-v1.dts
target/linux/ath79/dts/qca9531_dlink_dch-g020-a1.dts
target/linux/ath79/dts/qca9531_engenius_ews511ap.dts
target/linux/ath79/dts/qca9531_glinet_gl-ar300m-lite.dts
target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi
target/linux/ath79/dts/qca9531_glinet_gl-ar750.dts
target/linux/ath79/dts/qca9531_glinet_gl-x300b.dts
target/linux/ath79/dts/qca9531_glinet_gl-x750.dts
target/linux/ath79/dts/qca9531_glinet_gl-xe300.dts
target/linux/ath79/dts/qca9531_joyit_jt-or750i.dts
target/linux/ath79/dts/qca9531_qxwlan_e600g-v2-16m.dts
target/linux/ath79/dts/qca9531_qxwlan_e600g-v2-8m.dts
target/linux/ath79/dts/qca9531_qxwlan_e600g.dtsi
target/linux/ath79/dts/qca9531_telco_t1.dts
target/linux/ath79/dts/qca9531_teltonika_rut300.dts
target/linux/ath79/dts/qca9531_tplink_archer-d50-v1.dts
target/linux/ath79/dts/qca9531_tplink_tl-mr3420-v3.dts
target/linux/ath79/dts/qca9531_tplink_tl-mr6400-v1.dts
target/linux/ath79/dts/qca9531_tplink_tl-wr902ac-v1.dts
target/linux/ath79/dts/qca9531_wallys_dr531.dts
target/linux/ath79/dts/qca9531_yuncore_a770.dts
target/linux/ath79/dts/qca9533_comfast_cf-e110n-v2.dts
target/linux/ath79/dts/qca9533_dlink_dap-13xx.dtsi
target/linux/ath79/dts/qca9533_dlink_dap-2230-a1.dts
target/linux/ath79/dts/qca9533_dlink_dap-3320-a1.dts
target/linux/ath79/dts/qca9533_kuwfi_c910.dts
target/linux/ath79/dts/qca9533_mikrotik_routerboard-lhg-hb.dtsi
target/linux/ath79/dts/qca9533_mikrotik_routerboard-map-2nd.dts
target/linux/ath79/dts/qca9533_mikrotik_routerboard-mapl-2nd.dts
target/linux/ath79/dts/qca9533_mikrotik_routerboard-wap-2nd.dts
target/linux/ath79/dts/qca9533_mikrotik_routerboard-wapr-2nd.dts
target/linux/ath79/dts/qca9533_openmesh_om2p-v4.dtsi
target/linux/ath79/dts/qca9533_plasmacloud_pa300.dtsi
target/linux/ath79/dts/qca9533_qca_ap143.dtsi
target/linux/ath79/dts/qca9533_tplink_cpe210.dtsi
target/linux/ath79/dts/qca9533_tplink_tl-wa801nd.dtsi
target/linux/ath79/dts/qca9533_tplink_tl-wa850re-v2.dts
target/linux/ath79/dts/qca9533_tplink_tl-wr841-v11.dtsi
target/linux/ath79/dts/qca9533_tplink_tl-wr841.dtsi
target/linux/ath79/dts/qca9533_tplink_tl-wr841hp-v3.dts
target/linux/ath79/dts/qca9533_tplink_tl-wr842n-v3.dts
target/linux/ath79/dts/qca9556_avm_fritz1750e.dts
target/linux/ath79/dts/qca9556_avm_fritz450e.dts
target/linux/ath79/dts/qca9556_avm_fritzdvbc.dts
target/linux/ath79/dts/qca9557_araknis_an-500-ap-i-ac.dts
target/linux/ath79/dts/qca9557_buffalo_bhr-4grv2.dts
target/linux/ath79/dts/qca9557_dlink_dap-2660-a1.dts
target/linux/ath79/dts/qca9557_dongwon_dw02-412h.dtsi
target/linux/ath79/dts/qca9557_engenius_eap1200h.dts
target/linux/ath79/dts/qca9557_engenius_enstationac-v1.dts
target/linux/ath79/dts/qca9557_engenius_esr1200.dts
target/linux/ath79/dts/qca9557_extreme-networks_ws-ap3805i.dts
target/linux/ath79/dts/qca9557_iodata_wn-ac-dgr.dtsi
target/linux/ath79/dts/qca9557_meraki_mr18.dts
target/linux/ath79/dts/qca9557_zyxel_nbg6616.dts
target/linux/ath79/dts/qca9558_allnet_all-wap02860ac.dts
target/linux/ath79/dts/qca9558_araknis_an-700-ap-i-ac.dts
target/linux/ath79/dts/qca9558_aruba_ap-115.dts
target/linux/ath79/dts/qca9558_belkin_f9x-v2.dtsi
target/linux/ath79/dts/qca9558_comfast_cf-e380ac-v2.dts
target/linux/ath79/dts/qca9558_comfast_cf-wr650ac.dtsi
target/linux/ath79/dts/qca9558_devolo_dvl1200e.dts
target/linux/ath79/dts/qca9558_devolo_dvl1200i.dts
target/linux/ath79/dts/qca9558_devolo_dvl1750c.dts
target/linux/ath79/dts/qca9558_devolo_dvl1750e.dts
target/linux/ath79/dts/qca9558_devolo_dvl1750i.dts
target/linux/ath79/dts/qca9558_devolo_dvl1750x.dts
target/linux/ath79/dts/qca9558_dlink_dap-2680-a1.dts
target/linux/ath79/dts/qca9558_dlink_dap-2695-a1.dts
target/linux/ath79/dts/qca9558_dlink_dap-3662-a1.dts
target/linux/ath79/dts/qca9558_domywifi_dw33d.dts
target/linux/ath79/dts/qca9558_engenius_eap1750h.dts
target/linux/ath79/dts/qca9558_engenius_epg5000.dts
target/linux/ath79/dts/qca9558_engenius_esr1750.dts
target/linux/ath79/dts/qca9558_engenius_esr900.dts
target/linux/ath79/dts/qca9558_librerouter_librerouter-v1.dts
target/linux/ath79/dts/qca9558_netgear_ex7300.dts
target/linux/ath79/dts/qca9558_ocedo_koala.dts
target/linux/ath79/dts/qca9558_openmesh_a60.dtsi
target/linux/ath79/dts/qca9558_openmesh_mr.dtsi
target/linux/ath79/dts/qca9558_openmesh_om5p-ac-v1.dts
target/linux/ath79/dts/qca9558_openmesh_om5p-ac-v2.dts
target/linux/ath79/dts/qca9558_qxwlan_e558.dtsi
target/linux/ath79/dts/qca9558_sitecom_wlr-8100.dts
target/linux/ath79/dts/qca9558_sophos_ap.dtsi
target/linux/ath79/dts/qca9558_sophos_ap15.dts
target/linux/ath79/dts/qca9558_tplink_archer-d7.dtsi
target/linux/ath79/dts/qca9558_tplink_re350k-v1.dts
target/linux/ath79/dts/qca9558_tplink_rex5x.dtsi
target/linux/ath79/dts/qca9558_tplink_tl-wr1043nd.dtsi
target/linux/ath79/dts/qca9558_tplink_tl-wr941n-v7-cn.dts
target/linux/ath79/dts/qca9558_trendnet_tew-823dru.dts
target/linux/ath79/dts/qca9558_ubnt_nanobeam-ac-xc.dts
target/linux/ath79/dts/qca9558_watchguard_ap300.dts
target/linux/ath79/dts/qca9558_zyxel_nbg6716.dts
target/linux/ath79/dts/qca955x_engenius_ecb1xxx.dtsi
target/linux/ath79/dts/qca9561_avm_fritz4020.dts
target/linux/ath79/dts/qca9561_nec_wf1200cr.dts
target/linux/ath79/dts/qca9561_tplink_archer-c25-v1.dts
target/linux/ath79/dts/qca9561_tplink_archer-c59-v1.dts
target/linux/ath79/dts/qca9561_tplink_archer-c5x.dtsi
target/linux/ath79/dts/qca9561_tplink_archer-c60-v1.dts
target/linux/ath79/dts/qca9561_tplink_archer-c60-v2.dts
target/linux/ath79/dts/qca9561_tplink_archer-c60-v3.dts
target/linux/ath79/dts/qca9561_tplink_archer-c6x.dtsi
target/linux/ath79/dts/qca9561_tplink_eap225-wall-v2.dts
target/linux/ath79/dts/qca9561_tplink_tl-wdr6500-v2.dts
target/linux/ath79/dts/qca9563_asus_pl-ac56.dts
target/linux/ath79/dts/qca9563_asus_rp-ac66.dts
target/linux/ath79/dts/qca9563_comfast_cf-e375ac.dts
target/linux/ath79/dts/qca9563_dlink_covr-p2500-a1.dts
target/linux/ath79/dts/qca9563_dlink_dir-842-c.dtsi
target/linux/ath79/dts/qca9563_dlink_dir-859-a1.dts
target/linux/ath79/dts/qca9563_dlink_dir-869-a1.dts
target/linux/ath79/dts/qca9563_elecom_wrc-1750ghbk2-i.dts
target/linux/ath79/dts/qca9563_elecom_wrc-300ghbk2-i.dts
target/linux/ath79/dts/qca9563_elecom_wrc-ghbk2-i.dtsi
target/linux/ath79/dts/qca9563_glinet_gl-ar750s.dtsi
target/linux/ath79/dts/qca9563_nec_wg1200cr.dts
target/linux/ath79/dts/qca9563_nec_wg800hp.dts
target/linux/ath79/dts/qca9563_netgear_wndr.dtsi
target/linux/ath79/dts/qca9563_netgear_wndr4300-v2.dts
target/linux/ath79/dts/qca9563_phicomm_k2t.dts
target/linux/ath79/dts/qca9563_qxwlan_e1700ac.dtsi
target/linux/ath79/dts/qca9563_tplink_archer-c2-v3.dts
target/linux/ath79/dts/qca9563_tplink_archer-c6-v2-us.dts
target/linux/ath79/dts/qca9563_tplink_archer-c6-v2.dts
target/linux/ath79/dts/qca9563_tplink_archer-c7-v4.dts
target/linux/ath79/dts/qca9563_tplink_archer-x7-v5.dtsi
target/linux/ath79/dts/qca9563_tplink_cpe710-v1.dts
target/linux/ath79/dts/qca9563_tplink_deco-m4r-v1.dts
target/linux/ath79/dts/qca9563_tplink_deco-s4-v2.dts
target/linux/ath79/dts/qca9563_tplink_eap225-outdoor-v1.dts
target/linux/ath79/dts/qca9563_tplink_eap225-outdoor-v3.dts
target/linux/ath79/dts/qca9563_tplink_eap225-v3.dts
target/linux/ath79/dts/qca9563_tplink_eap225-v4.dts
target/linux/ath79/dts/qca9563_tplink_eap245-v1.dts
target/linux/ath79/dts/qca9563_tplink_eap245-v3.dts
target/linux/ath79/dts/qca9563_tplink_re450.dtsi
target/linux/ath79/dts/qca9563_tplink_tl-wa1201-v2.dts
target/linux/ath79/dts/qca9563_tplink_tl-wpa8630.dtsi
target/linux/ath79/dts/qca9563_tplink_tl-wr1043n.dtsi
target/linux/ath79/dts/qca9563_tplink_tl-wr1043nd-v4.dts
target/linux/ath79/dts/qca9563_xiaomi_aiot-ac2350.dts
target/linux/ath79/dts/qca9563_zte_mf286.dts
target/linux/ath79/dts/qca9563_zte_mf286ar.dtsi
target/linux/ath79/dts/qcn5502_asus_rt-ac59u.dtsi
target/linux/ath79/dts/qcn5502_netgear_ex7300-v2.dts
target/linux/ath79/dts/qcn5502_tplink_archer-a9-v6.dts
target/linux/ath79/dts/tp9343_tplink_tl-wa901nd.dtsi
target/linux/ath79/dts/tp9343_tplink_tl-wr940n-v3.dtsi
target/linux/ath79/dts/tp9343_tplink_tl-wr940n-v4.dts
target/linux/ath79/dts/tp9343_tplink_tl-wr940n-v6.dts
target/linux/ath79/dts/tp9343_tplink_tl-wr941hp-v1.dts

index b45d6bd77f394609a8a92d5a26a8731cc55df943..d2161e4a74e1d04d101281128c58ff656cca3ad8 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "Sitecom WLR-7100 (X7 AC1200)";
@@ -41,7 +42,8 @@
                };
 
                led_power: power {
-                       label = "amber:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
index d7b961d8f6308797fb669a0fa31040957a667c9f..3075179b10c09456b598f6e035184e1f632b3719 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        chosen {
                };
 
                led_status_green: status_green {
-                       label = "green:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
                };
 
                led_status_yellow: status_yellow {
-                       label = "yellow:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_YELLOW>;
                        gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
                };
        };
index dd110fc18591f05a4644bf127cfe63a7f3c4df6f..5e727596439d3fa9cdd4f091cdf6316ecd2cbff3 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "aruba,ap-105", "qca,ar7161";
                compatible = "gpio-leds";
 
                led_power_green: power_green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
                };
 
                led_power_red: power_red {
-                       label = "red:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
                        panic-indicator;
                };
index 62a2083d20c4bd957084d62c8d7583c896a679a6..3ec3a4fe6193b3ab2859a964b9a42384d4c4f24b 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "aruba,ap-175", "qca,ar7161";
@@ -37,7 +38,8 @@
         /* These external LEDs are visible from the bottom panel */
 
                led_power_amber: power_amber {
-                       label = "amber:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio_ext 5 GPIO_ACTIVE_HIGH>;
                        panic-indicator;
                };
index 50c0748a384151099c48e6cc3899a431fb239e52..7219b0dacf234b1245996cd04bef85f0fc06662d 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        aliases {
@@ -30,7 +31,8 @@
                };
 
                usb {
-                       label = "green:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&ath9k0 3 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&usb_ohci_port>, <&usb_ehci_port>;
                        linux,default-trigger = "usbport";
index 639736d9c45320d2922e745eab1bf2dc0f5a6641..e6d2db57c080b5026880ede158f0d6bfdefc6867 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "dlink,dir-825-b1", "qca,ar7161";
                compatible = "gpio-leds";
 
                usb {
-                       label = "blue:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&usb_ohci_port>, <&usb_ehci_port>;
                        linux,default-trigger = "usbport";
                };
 
                led_power_orange: power_orange {
-                       label = "orange:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                led_power_blue: power_blue {
-                       label = "blue:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
                };
 
                wps {
-                       label = "blue:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
                };
 
index e0aa5704cddc3d6e799fc45fbd362460c062efe3..b98239915edbfe5e3185345f76972e89a24318e1 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "fortinet,fap-220-b", "qca,ar7161";
                compatible = "gpio-leds";
 
                led_power: power-green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
                        default-state = "on";
                };
 
                status-green {
-                       label = "green:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
                };
 
                status-yellow {
-                       label = "yellow:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_YELLOW>;
                        gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
                        panic-indicator;
                };
index b732010446f220c214a769c6b21b4a9169a29a76..0353a558f98e02c06156f87083362a2954707d1d 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "meraki,mr16", "qca,ar7161";
                };
 
                wan {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
                };
 
                led_power_orange: power_orange {
-                       label = "orange:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
                        panic-indicator;
                };
 
                led_power_green: power_green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
                };
        };
index 020b45d9e1d7bcb89e41468b902dcb639eab59b5..2acdba1c86de5aa0cef1702f00186477adf8d98a 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "netgear,wndap360", "qca,ar7161";
@@ -20,7 +21,8 @@
                compatible = "gpio-leds";
 
                led_power_orange: power_orange {
-                       label = "orange:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
                };
        };
index d30b4dad3080570af6e4a9eeed9fa9d683034fe4..bc280976cb5ab8cdf9a28a82d6fad7fd8ea5594d 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/mtd/partitions/uimage.h>
 
 / {
@@ -18,7 +19,8 @@
                compatible = "reset-leds";
 
                usb_led {
-                       label = "green:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_GREEN>;
                        resets = <&rst 12>;
                        trigger-sources = <&usb_ohci_port>, <&usb_ehci_port>;
                        linux,default-trigger = "usbport";
                compatible = "gpio-leds";
 
                wps {
-                       label = "orange:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
                };
 
                led_power_green: power_green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
                };
 
                led_power_orange: power_orange {
-                       label = "orange:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                wps_green {
-                       label = "green:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
                };
 
                wan_green {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
                };
        };
index 54a15c49c1bd3c6e5ce48762698e8406ad77db85..a80b6045b4ef3ee34405d547815e3e01a3157147 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "ruckus,gd11", "qca,ar7161";
                };
 
                led_power_green: power-green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
                        default-state = "on";
                };
 
                led_power_red: power-red {
-                       label = "red:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
                        panic-indicator;
                };
index 56a2cfab67b9161e2fd731059a539ac41d3d8dbf..a8ee7df0da3e9e7f57fa97a3e7cd3cf2928b261c 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "siemens,ws-ap3610", "qca,ar7161";
                compatible = "gpio-leds";
 
                led_power_green: led_power_green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
                };
 
                led_power_red: led_power_red {
-                       label = "red:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
                };
 
index 7508be1df1d9ec501cf56d4a241d9af4ae8ed34e..d10c75c0d6708e36348799fe885557c275afb0f1 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "trendnet,tew-673gru", "qca,ar7161";
@@ -20,7 +21,8 @@
                compatible = "gpio-leds";
 
                led_wps: wps {
-                       label = "blue:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
                };
        };
index ad42e0a05fd2108cafddcaff663eccd0b6c5f53e..d5ceb8b44ae20b9beaef81c53e0927fd039e4efc 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "buffalo,whr-g301n", "qca,ar7240";
@@ -90,7 +91,8 @@
                };
 
                wan {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
                };
        };
                compatible = "gpio-leds";
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index abd298449b5a36f8d92782ce88fc22aec4f05f50..4a709395e968a7a60e7a94f8405d8dc991df5783 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "D-Link DIR-615 E4";
                pinctrl-0 = <&switch_led_pins>;
 
                led_power_green: power_green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
                };
 
                led_power_amber: power_amber {
-                       label = "amber:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
                };
 
                wps {
-                       label = "blue:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
                };
 
                };
 
                wan_amber {
-                       label = "amber:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
                };
 
                wan_green {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
                };
        };
@@ -89,7 +95,8 @@
                compatible = "gpio-leds";
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index ec3a3718506d0649e1066f105bf29a3839d5308d..11e9c6853fd4aa8555b072bdea5ea21b160f1aba 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "engenius,enh202-v1", "qca,ar7240";
                };
 
                lan {
-                       label = "amber:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
                };
 
                wan {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
                };
        };
@@ -64,7 +67,8 @@
                compatible = "gpio-leds";
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index 32903c2e8ff42cbfbd971278760e998d9669687b..bfee490051a13850011dac00f725d17f2ce386af 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/mtd/partitions/uimage.h>
 
 / {
                pinctrl-0 = <&jtag_disable_pins &switch_led_disable_pins &clks_disable_pins>;
 
                led_power_green: power_green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
                };
 
                led_power_amber: power_amber {
-                       label = "amber:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
                        default-state = "keep";
                };
 
                wan_green {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
                };
 
                wan_amber {
-                       label = "amber:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
                };
 
                compatible = "gpio-leds";
 
                wps_green {
-                       label = "green:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&ath9k 5 GPIO_ACTIVE_LOW>;
                };
 
                wlan_blue {
-                       label = "blue:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index ac27874c68ab7be6d8472870b63f57f898c9fb14..c197a90ec5aaacb3dc4af7948cfe57352642cc9c 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/mtd/partitions/uimage.h>
 
 / {
@@ -34,7 +35,8 @@
                pinctrl-0 = <&jtag_disable_pins &switch_led_disable_pins &clks_disable_pins>;
 
                led_power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
                };
 
@@ -49,7 +51,8 @@
                };
 
                wan {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
                };
        };
@@ -58,7 +61,8 @@
                compatible = "gpio-leds";
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index 17a57446618712256639308e7a770702b466bf8a..673e9b740b6f06ba8b284e0dfd756638db62b0f0 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "openmesh,om2p-v1", "qca,ar7240";
@@ -38,7 +39,8 @@
                pinctrl-0 = <&switch_led_disable_pins>;
 
                led_power_blue: power_blue {
-                       label = "blue:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
                };
 
                lan_blue {
-                       label = "blue:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
                };
 
                wan_blue {
-                       label = "blue:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
                };
        };
index f5d0a9e3b074412878ffba473fd9af410b338722..887f5f7b29d6c6e7dfe19a823ad6bacd09117728 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 
 / {
                };
 
                led_power_red: power-red {
-                       label = "red:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
                        panic-indicator;
                };
 
                led_power_green: power-green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                wlan-green {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0assoc";
                };
 
                wlan-yellow {
-                       label = "yellow:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_YELLOW>;
                        gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index 5bcfb54bfce298f3f6eca87c24287d63af7a9ec1..17c826c6c0f17b8dfcd599747ac74271ec544b54 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        aliases {
@@ -53,7 +54,8 @@
                compatible = "gpio-leds";
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index 2bded28ea4233f4ce923c2bfea927670350d3f1b..1f46e77423cd245a368f244ce9d02444c874a4cd 100644 (file)
@@ -1,10 +1,13 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "ar7240_tplink.dtsi"
 
 &leds {
        lan {
-               label = "green:lan";
+               function = LED_FUNCTION_LAN;
+               color = <LED_COLOR_ID_GREEN>;
                gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
        };
 };
index 6c090fb437e82475577591c9a3c75309ec44112a..e0c625e23955af7b3d5aecb6a4d026379247dbb4 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "ar7240_tplink.dtsi"
 
 &leds {
@@ -24,7 +26,8 @@
        };
 
        wan {
-               label = "green:wan";
+               function = LED_FUNCTION_WAN;
+               color = <LED_COLOR_ID_GREEN>;
                gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
        };
 };
index 0a6936c5bfd57513a8298b930f7afc7ee557e082..d8baa071112369ed1a6d27954790fded5c2f87cf 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/mtd/partitions/uimage.h>
 
 / {
                pinctrl-0 = <&jtag_disable_pins &switch_led_disable_pins &clks_disable_pins>;
 
                wan_green {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
                };
 
                wan_amber {
-                       label = "amber:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
                };
 
                };
 
                wps_green {
-                       label = "green:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
                };
        };
                compatible = "gpio-leds";
 
                led_power_green: power_green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&ath9k 3 GPIO_ACTIVE_LOW>;
                };
 
                led_power_amber: power_amber {
-                       label = "amber:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&ath9k 2 GPIO_ACTIVE_LOW>;
                        default-state = "keep";
                };
 
                wlan_blue {
-                       label = "blue:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index e17a485396ff2c7bc6537a406699e9491bc8a1ce..2c1dd064fecf1d69742b1d1dfa354da16e615143 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/mtd/partitions/uimage.h>
 
 / {
                pinctrl-0 = <&jtag_disable_pins &switch_led_disable_pins &clks_disable_pins>;
 
                wan_green {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
                };
 
                wan_amber {
-                       label = "amber:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                };
 
                };
 
                wps_green {
-                       label = "green:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
                };
 
                usb_green {
-                       label = "green:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&hub_port>;
                        linux,default-trigger = "usbport";
                compatible = "gpio-leds";
 
                led_power_green: power_green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&ath9k 2 GPIO_ACTIVE_LOW>;
                };
 
                led_power_amber: power_amber {
-                       label = "amber:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
                        default-state = "keep";
                };
 
                wlan_blue {
-                       label = "blue:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index af8e297b1df842e5ab33bc089d31ac3ee38732f8..c9f696234bf8e58182b47443c950c123284a2aad 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "ar7241_tplink_tl-mr3x20.dtsi"
 
 / {
@@ -10,7 +12,8 @@
                compatible = "gpio-leds";
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index cae2f5477d652c9c5800026fa66909b24f6939d1..539a5952b30efe5c347e86517632ccb3ce3faf85 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "ar7241_tplink_tl-mr3x20.dtsi"
 
 / {
@@ -10,7 +12,8 @@
                compatible = "gpio-leds";
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index 17e06dfac7d6e7609eefdb4fd77ffb85b68b74f8..c9543afed397e345647bf31a66bd1a8f57fad63c 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "ar7241_tplink.dtsi"
 
 / {
@@ -10,7 +12,8 @@
                compatible = "gpio-leds";
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index e7fe31f36d0db2db25b7a1d6dd82432bd6744dd4..b0edbf4d06f319c580b91c98f7554f1e1f20b1f4 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "tplink,tl-wr842n-v1", "qca,ar7241";
@@ -60,7 +61,8 @@
                compatible = "gpio-leds";
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index fcc66c018c7eca5c71ab17fc1fb06c789ac85beb..4fa0c704a600d06684a14a80ab52bdaabebfc4cf 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "ar7241.dtsi"
 #include "ar724x_ubnt_xm.dtsi"
 
@@ -24,7 +26,8 @@
                };
 
                power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
                };
        };
index 7a0d7dd2689bfebc5484438d6a70f86dbd22b0cb..f8ca3ed5639e57353f27f2e3320da601c6eb7024 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "avm,fritz300e", "qca,ar7242";
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index 15a808ad2ac96617b26c94c9df7ab5260362a0e9..f14053b0459174cd8928d1b4c5ae4b2933fe9714 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        aliases {
@@ -39,7 +40,8 @@
                };
 
                usb {
-                       label = "green:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&hub_port>;
                        linux,default-trigger = "usbport";
index ac4c096961badf87e6bbbdf86e5f95c27c46e67e..abb39e119b94f92927f4368634087e69fd845264 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "buffalo,wzr-hp-g302h-a1a0", "qca,ar7242";
@@ -69,7 +70,8 @@
                compatible = "gpio-leds";
 
                usb {
-                       label = "blue:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&ath9k 4 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&hub_port>;
                        linux,default-trigger = "usbport";
index 861964fdfcdc7ae009165f2075e4893e927ea6cb..4c618956ac7ef81faf676615e17e34765a5aba51 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "engenius,eap350-v1", "qca,ar7242";
@@ -33,7 +34,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "blue:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
                        default-state = "on";
                };
@@ -43,7 +45,8 @@
                compatible = "gpio-leds";
 
                wlan {
-                       label = "blue:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index a7def14c738a720a012cb6e74b3240b9de3ed38b..024cce6f0f4e2605a20945f7d2238561b20ada4e 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "engenius,ecb350-v1", "qca,ar7242";
@@ -33,7 +34,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
                        default-state = "on";
                };
@@ -43,7 +45,8 @@
                compatible = "gpio-leds";
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index 5218a5ce27649b798931150be4062fd9378c1a80..2ab6f8aaf3453237d70471b345a49e7c3673e904 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "meraki,mr12", "qca,ar7242";
                };
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                };
 
                led_power_orange: power_orange {
-                       label = "orange:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
                        panic-indicator;
                };
 
                led_power_green: power_green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
                };
        };
index 8df1fdb4ddbe0870e134c6607f6593cd56fb7606..efedf2a31bb9f30d3a8ee448edae6c3272a0c831 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "tplink,tl-wr2543-v1", "qca,ar7242";
                compatible = "gpio-leds";
 
                led_wps: wps {
-                       label = "green:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
                };
 
                usb {
-                       label = "green:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&hub_port>;
                        linux,default-trigger = "usbport";
index 0eb38b5712effa99d8908bb25606cc251d0dbbab..77e7925715a3fcc4c1c3e8b133162fb1f9783756 100644 (file)
@@ -3,6 +3,7 @@
 #include "ar9132.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        aliases {
                compatible = "gpio-leds";
 
                usb {
-                       label = "blue:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&hub_port>;
                        linux,default-trigger = "usbport";
index 476f3e18a3f45f20624c54150aa426758d78cdc1..1857b2b4a6cc86ddb7fca42a183be6d068313efc 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "tplink,tl-wa901nd-v2", "qca,ar9132";
@@ -49,7 +50,8 @@
                };
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index a4d19ce970a1c992b0225594a9828cc0977bd724..7957c438d6a3a7ac855818b9dd4aba5671853b85 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "tplink,tl-wr1043nd-v1", "qca,ar9132";
@@ -39,7 +40,8 @@
                compatible = "gpio-leds";
 
                usb {
-                       label = "green:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&hub_port>;
                        linux,default-trigger = "usbport";
@@ -57,7 +59,8 @@
                };
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index 41e53e1fc8d921069e029423cb61badd56a6ab45..e786ad2760eeb88baf6c3395c126fd33739d7d85 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "tplink,tl-wr941-v2", "qca,ar9132";
@@ -54,7 +55,8 @@
                };
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index ad48e07701de93c2dd659ee2bc7937661ea66f66..c5109ff8000e15cb2cbba001da2f370d4d770cac 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "D-Link DIR-505";
                pinctrl-0 = <&jtag_disable_pins>;
 
                led_power_green: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
                };
 
                led_status_red: status {
-                       label = "red:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
                };
        };
index 7401cd053a70a6091523d367ece2ae09df460ff3..088973048d818961fda90041bd683bf3f0b4184f 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "GL.iNet GL-AR150";
@@ -21,7 +22,8 @@
                compatible = "gpio-leds";
 
                wlan {
-                       label = "orange:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "phy0tpt";
                };
@@ -32,7 +34,8 @@
                };
 
                led_power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
                        default-state = "on";
                };
index a7fd10bd7320668dd48714a766b0aeafb5757237..38704f91697164cabd901f92ad2ff3f33d845de1 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        chosen {
                };
 
                led_power_blue: power_blue {
-                       label = "blue:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                lan_blue {
-                       label = "blue:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                };
 
@@ -62,7 +65,8 @@
                };
 
                wan_blue {
-                       label = "blue:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
                };
        };
index a2665519f4622403748bcb6eb82a19e87d265823..98ef9abcc020ed81c0eb19fa2165a37690a359e6 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "PQI Air-Pen";
                compatible = "gpio-leds";
 
                led_wlan: wlan {
-                       label = "blue:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "phy0tpt";
                };
 
                wps {
-                       label = "blue:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 23 GPIO_ACTIVE_HIGH>;
                };
        };
index 256fe5f6154cfa49df834ef2958d7dd540dbe519..ebd6d5384fc6bceaa5bf3d819023edb88c3358e9 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "ZiKing CPE46B";
@@ -17,7 +18,8 @@
                compatible = "gpio-leds";
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "phy0tpt";
                };
index f786f425f05abf1a7374bacb8df0743b40ded65d..73699d9bfabf16211b76ecd89f6448c2ffee98f9 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "8devices Carambola2";
@@ -17,7 +18,8 @@
                compatible = "gpio-leds";
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index 98de255332d6f9d8a65bde3caa3f2f384d0cb7f0..ca0b4131acffdfd798ee00cf72c9af66a423e9e5 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        aliases {
@@ -35,7 +36,8 @@
                compatible = "gpio-leds";
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
                };
 
@@ -45,7 +47,8 @@
                };
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "phy0tpt";
                };
index bf3a46f96261caa9cdaed270cb16a195f6028b06..c866889ce4b6cad462fbc2415ebe2325352ce107 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "Arduino Yun";
                compatible = "gpio-leds";
 
                wlan {
-                       label = "blue:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "phy0tpt";
                };
 
                usb {
-                       label = "white:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
                        trigger-sources = <&hub_port>;
                        linux,default-trigger = "usbport";
index 6286f203efc2aee5bf3e34b4e9b53f33d2870897..ee9061716017496a07ee9c8780f8144483cbf487 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "Embedded Wireless Dorin";
@@ -20,7 +21,8 @@
                compatible = "gpio-leds";
 
                led_status: status {
-                       label = "green:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
                };
        };
index 5a96d50940283f49d8b116698a15f2647c20b443..ad3b88ab2b9788d185b6c2f2f6bc8835ef4f91c3 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "eTactica EG200";
@@ -45,7 +46,8 @@
                };
 
                wlan {
-                       label = "red:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index 8d003ce0903222ec87c3a7d5f0ba518d48d43c3d..be199b5e4fa1a8b223a44c3a26428a69487e5805 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        keys {
                compatible = "gpio-leds";
 
                wlan {
-                       label = "red:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "phy0tpt";
                };
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
                };
        };
index e4d2ff1e11d012dec6a0633fbc8d0338d41b8e2a..37418bfc4ad946b0d51d5088886729d71402507c 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "glinet,gl-mifi", "qca,ar9331";
                compatible = "gpio-leds";
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "phy0tpt";
                };
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
                };
 
                wan {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 27 GPIO_ACTIVE_HIGH>;
                };
 
index 541b73850a059930c86e9c4d0d523d2636b53a10..e9b1c1892490375aa668a3837e102e4cd6060bc6 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "glinet,gl-usb150", "qca,ar9331";
                compatible = "gpio-leds";
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "phy0tpt";
                };
 
                led_power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
                        default-state = "on";
                };
index b10f7fc965f24e0c075a6a6fcfbf68e5bd642993..5d0c02a64992c38f82517279a41331f2e7b9bb06 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "HiWiFi HC6361";
                        default-state = "on";
                };
                wlan {
-                       label = "blue:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
                };
                wan {
-                       label = "blue:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
                };
        };
index ad987dbca1db5c5f75ae4ec6fa37bce4ebb95cf9..054ccea52276bbeabe166ec23be639ed36cd5f39 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "Teltonika RUT230 v1";
                };
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                        /* GPIO 13 - ACTIVE HIGH for hwrev 0 */
                };
 
                wan {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
                        /* GPIO 14 - ACTIVE HIGH for hwrev 0 */
                };
index 7b307cd6d072dc0d4558fdf70bfdfc1e7bd6c614..0a965c2fa92520f19ea3a391e5d8edbb1e260caf 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "TP-Link TL-MR3020 V1";
                compatible = "gpio-leds";
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "phy0tpt";
                };
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
                };
 
                led_wps: wps {
-                       label = "green:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
                };
 
index 91023111a681d316ad7ee266e3738dc4fd4a9175..df39577110e52f2eb28a686859bb3ff29cca582f 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "TP-Link TL-MR3040 V2";
                pinctrl-0 = <&switch_led_disable_pins>;
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
 
                led_lan: lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
                };
 
index 613b357dc872d2ff66dc69602b9a2ab27b220f1f..04537fd33aa24ad7476b910fd0388f4384ac8e5a 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "tplink,tl-wr741n-v4", "qca,ar9331";
                };
 
                wan {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
                };
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "phy0tpt";
                };
index 9ba89324223ba946fc1eee0319d1ffe94c7df206..30f42862b22218217fd6b9b0826c85fdabde86a2 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "Engenius EAP300 v2";
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "blue:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                wlan {
-                       label = "blue:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index eb304db8a380d80df12006649100201bf25a4506..1b90deace53cf62136eebef4d50b302ea1c6be2c 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "Engenius ENS202EXT v1";
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "amber:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                wlan {
-                       label = "amber:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index bb6af232fd2e690f11d4234e0abcf03b1395511a..d41dcaa3289cee1b7092ef4278fa986d9b582118 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        chosen {
@@ -35,7 +36,8 @@
                compatible = "gpio-leds";
 
                led_power_blue: power_blue {
-                       label = "blue:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
                };
 
                lan_blue {
-                       label = "blue:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
                };
 
                wan_blue {
-                       label = "blue:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
                };
        };
index 5ec17034d17b6d6269c311c40778200639cb252a..1011ab4980ea22bc885babb7bd7463d7a5365cc5 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "PowerCloud Systems CR3000";
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "amber:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                wlan2g {
-                       label = "blue:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
 
                wan {
-                       label = "blue:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
                };
 
index 9c505f2785c5e256cb6c262b2c4a59063325b4bd..5dff908129a9c5b90d6208ab98c269ecbc03d3f5 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        aliases {
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
@@ -34,7 +37,8 @@
                };
 
                wan {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
                };
 
index 3971df17f81fec4b314b20b74208d16858801d38..5a5e785d9270e859d65a92df82c91433a455ab5c 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "ar9341_tplink.dtsi"
 
 / {
@@ -31,7 +33,8 @@
 
 &leds {
        usb {
-               label = "green:usb";
+               function = LED_FUNCTION_USB;
+               color = <LED_COLOR_ID_GREEN>;
                gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
                trigger-sources = <&hub_port>;
                linux,default-trigger = "usbport";
index 12755aea2fa85df4479892b00f6136e875355bff..08f14f5cc1b6fe925372dbc5802018cce95af1eb 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "ar9341_tplink_tl-wa.dtsi"
 
 / {
                compatible = "gpio-leds";
 
                lan {
-                       label = "blue:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
-                       label = "blue:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index 9f540f82d959119e9414ed561f4a9f75573317d5..e1ed0c29359687452da1fa8204e5664d5c2113f0 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "ar9341_tplink_tl-wa.dtsi"
 
 / {
                compatible = "gpio-leds";
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
                };
 
                led_power_green: power_green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                led_power_orange: power_orange {
-                       label = "orange:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                };
 
                wlan_green {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
 
                wlan_orange {
-                       label = "orange:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
                };
        };
index 4a4e51f4b8acccb444013837ae8cd5b7b67eb992..696e8f6391ebd29cf5062e83ba11a4519bc1e113 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "ar9341_tplink_tl-wa.dtsi"
 
 / {
                compatible = "gpio-leds";
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index d0f4c2e1f5aab52e309b5f2d863e31f7c686cac0..3efd8242469b0b8d35986bf20e26081cf39b1c32 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "ar9341_tplink.dtsi"
 
 / {
@@ -41,7 +43,8 @@
 
 &leds {
        usb {
-               label = "green:usb";
+               function = LED_FUNCTION_USB;
+               color = <LED_COLOR_ID_GREEN>;
                gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
                trigger-sources = <&hub_port>;
                linux,default-trigger = "usbport";
index 8b354d6015348ea508fdcdc738203aac5d1b39c3..21c5d6bc17837af8324e921c643dceebf2294980 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "iodata,etg3-r", "qca,ar9344";
@@ -20,7 +21,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
index 86b4bc358b4c8857d153f9683b54aa7f9050ec92..5f9d8e42fb8015545197d866cd1c4b8aeea8ace3 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        aliases {
@@ -85,7 +86,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio_latch 1 GPIO_ACTIVE_HIGH>;
                        default-state = "on";
                };
index 917dc297fe12378b8dc71f39e79f6a1f186893b1..83d29c90eae0ad5ae3633d378cf44485298dc91f 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "ar934x_ruckus_zf73xx.dtsi"
 
 / {
@@ -18,7 +20,8 @@
                };
 
                power_red: power-red {
-                       label = "red:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
                        panic-indicator;
                };
index fd438059e555cf712bcd27966eae640579ad4ac6..028171abaa5b1e110e14cbd85d4355e6d65544a8 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "ar9342_zyxel_nwa11xx.dtsi"
 
 / {
                compatible = "gpio-leds";
 
                led_status_green: status_green {
-                       label = "green:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
                        default-state = "on";
                };
 
                led_status_red: status_red {
-                       label = "red:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
                };
 
                led_wlan_green: wlan_green {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
 
                led_lan_green: lan_green {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                };
 
                led_lan_amber: lan_amber {
-                       label = "amber:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
                };
        };
index 65dc8c0440a14aa3b7d5425dac747710e1e9c49c..b28f8e5cf6f80014b3eb83c0824155838977e742 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "ar9342_zyxel_nwa11xx.dtsi"
 
 / {
                compatible = "gpio-leds";
 
                led_status_green: status_green {
-                       label = "green:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                led_status_amber: status_amber {
-                       label = "amber:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
                };
        };
index 68d49308137f6fa366ed328b0e90c5685ba493f5..e3164259dfe9d8b3b7ae7ccb7a02c5136ec9b759 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "ar9342_zyxel_nwa11xx.dtsi"
 
 / {
                compatible = "gpio-leds";
 
                led_status_green: status_green {
-                       label = "green:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                led_status_amber: status_amber {
-                       label = "amber:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
                };
        };
index b999c960c4a0bfa314ffd9c33f1804ea604d996d..cb5588c12231ee0d2d2345660db23a0cf91017f0 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "ar9342_zyxel_nwa11xx.dtsi"
 
 / {
                compatible = "gpio-leds";
 
                led_status_green: status_green {
-                       label = "green:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                led_status_amber: status_amber {
-                       label = "amber:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
                };
        };
index 2a2036201e6239f384300375a76b80fc767cb335..300b3b39bfaa6aa4596cfea5e1077e9337956d9a 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "aerohive,hiveap-121", "qca,ar9344";
                compatible = "gpio-leds";
 
                led_power_orange: power_orange {
-                       label = "orange:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                };
 
                led_power_white: power_white {
-                       label = "white:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
                };
        };
index 789bd6df149083e33463ede403ff7d9386fc8326..9f4c95c3d46ef282462d56ff0ee65c3ec776bffc 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "ALFA Network N5Q";
@@ -72,7 +73,8 @@
                };
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index c2c7cbb960c797aeed4a9b8c83064be391388777..86e990ffc7deb6975b9de0b78f6b204ad0e375fa 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "araknis,an-300-ap-i-n", "qca,ar9344";
@@ -31,7 +32,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "amber:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                        default-state = "off";
                };
@@ -43,7 +45,8 @@
                };
 
                wps {
-                       label = "blue:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                };
        };
index 9d5044141245c60a0586901c7cf632cd0e25d89c..5004f4034148cc2ca4addc9563363cd99ef7b816 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/mtd/partitions/uimage.h>
 
 / {
@@ -39,7 +40,8 @@
                };
 
                usb {
-                       label = "green:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&hub_port>;
                        linux,default-trigger = "usbport";
index c53f03235fcbd0ba82aa989449fc94bcef76f00b..6bfa82356bfce92c55af3b614ff66c1148071d3a 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "comfast,cf-e120a-v3", "qca,ar9344";
                pinctrl-0 = <&led_rssimediumhigh_pin>;
 
                wan {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
                };
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index 21329db2584241ed93a4b4b675c2030b8a6a098d..8a354dfe374d4168479717aa88964d4252b93ab6 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "compex,wpj344-16m", "qca,ar9344";
@@ -21,7 +22,8 @@
                compatible = "gpio-leds";
 
                led_status: status {
-                       label = "green:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                };
 
index fc8ac9ce8a9652109fbe395ba750d0c9627fd155..e503be08ce0f5bd680ebf1097d769c6f65956c79 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        aliases {
@@ -17,7 +18,8 @@
                compatible = "gpio-leds";
 
                wlan {
-                       label = "white:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy1tpt";
                };
index 35d0e26d8530d952b0d90a4149aa3565c977f072..f0ca94f2317d772855af2dede1d4d622015ac2e6 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "ar9344_dlink_dir-8x5.dtsi"
 
 / {
                pinctrl-0 = <&enable_gpio_11>;
 
                led_power_blue: power_blue {
-                       label = "blue:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
                };
 
                usb {
-                       label = "blue:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "usbport";
                        trigger-sources = <&hub_port>;
                };
 
                wan_blue {
-                       label = "blue:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
                };
 
                };
 
                wps {
-                       label = "blue:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                };
 
                led_power_orange: power_orange {
-                       label = "orange:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                };
 
                wan_orange {
-                       label = "orange:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
                };
        };
index b2fcf71bd8265f11d0ccf95ee7cafb962fb2f33e..8ecea4d6c070b75ff88b1ec09c705cb23b979d34 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "ar9344_dlink_dir-8x5.dtsi"
 
 / {
                compatible = "gpio-leds";
 
                led_power_green: power_green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
                };
 
                wan_green {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
                };
 
                wps {
-                       label = "green:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                };
 
                led_power_orange: power_orange {
-                       label = "orange:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                };
 
                wan_orange {
-                       label = "orange:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
                };
        };
index 4d3a149e3ee26f0ce2d0296819b9cc5ae771c625..94543cd25574fd8999e252a983a6645d5705e15d 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "ar9344_senao_ap-dual.dtsi"
 
 / {
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "amber:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                wps {
-                       label = "blue:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                };
 
index e7b8b9c3ce239a83fd506475e48e8966a4b16903..1b75d887f298aec722041214c176bb665ce45450 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "ar9344_senao_ap-dual.dtsi"
 
 / {
@@ -10,7 +12,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "amber:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
index 8f8276255a30377032846ac3eeb974a4a9b4d9d6..0605baa58e7f01d23474e13a834f8941c247c845 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "enterasys,ws-ap3705i", "qca,ar9344";
                pinctrl-0 = <&enable_gpio_11 &enable_gpio_16>;
 
                led_power_green: power_green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                };
 
                led_power_red: power_red {
-                       label = "red:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
                };
 
                lan_blue {
-                       label = "blue:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
                };
 
                lan_green {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
                };
 
index 0cad9b76d15e6a4d976584f40d6843d1347e15db..f97ca429558a4f56ffd36ed0827d31bc5580aaa8 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "ar9344_fortinet_ap-dual.dtsi"
 
 / {
                compatible = "gpio-leds";
 
                led_power: power_green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                power_amber {
-                       label = "amber:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                };
 
index 0315f49d07480d9348a1025f160da69dc4c40a95..b815291e70cc98a92905acfaf22f6e2bd1b95d7a 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "ar9344_mikrotik_routerboard.dtsi"
 #include "ar9344_mikrotik_routerboard-16m-nor.dtsi"
 
        pinctrl-0 = <&enable_gpio_20>;
 
        lan {
-               label = "green:lan";
+               function = LED_FUNCTION_LAN;
+               color = <LED_COLOR_ID_GREEN>;
                gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
        };
 
        power {
-               label = "green:power";
+               function = LED_FUNCTION_POWER;
+               color = <LED_COLOR_ID_GREEN>;
                gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
                default-state = "on";
        };
index b6de8c4b7b119f411b1e5303f8469f74aa87fef0..fd07858b6b69d624fac1c9c62ae20c8f835adbe6 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "ar9344_mikrotik_routerboard.dtsi"
 #include "ar9344_mikrotik_routerboard-16m-nor.dtsi"
 
@@ -10,7 +12,8 @@
 
 &leds {
        power {
-               label = "blue:power";
+               function = LED_FUNCTION_POWER;
+               color = <LED_COLOR_ID_BLUE>;
                gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
                default-state = "on";
        };
@@ -21,7 +24,8 @@
        };
 
        lan {
-               label = "green:lan";
+               function = LED_FUNCTION_LAN;
+               color = <LED_COLOR_ID_GREEN>;
                gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
        };
 };
index a4485320345c1a9c77b9c3ce572c226a1e778319..0f86ad7903e6508764c00192afeb6708fc6fed0f 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "ar9344_mikrotik_routerboard.dtsi"
 
 / {
@@ -24,7 +26,8 @@
 
 &leds {
        power {
-               label = "green:power";
+               function = LED_FUNCTION_POWER;
+               color = <LED_COLOR_ID_GREEN>;
                gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
                default-state = "on";
        };
index 5952e0140fa0c5b9b10dc3731d811c41787b4966..d0535251bdc2a37e2873b8b2692328953e5ea222 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "Netgear R6100";
                compatible = "gpio-leds";
 
                led_power_amber: power_amber {
-                       label = "amber:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                };
 
                led_power_green: power_green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
                };
 
                usb {
-                       label = "blue:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&hub_port>;
                        linux,default-trigger = "usbport";
                };
 
                wan_amber {
-                       label = "amber:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                };
 
                wan_green {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
-                       label = "blue:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy1tpt";
                };
index 49057548f89dc8b797e1a40dad1f603ef4d804a5..64ceb875d07cbd337b4075839687e957f1c70a74 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/mtd/partitions/uimage.h>
 
 / {
                pinctrl-0 = <&enable_gpio_11>;
 
                led_power_green: power_green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
                };
 
                led_power_amber: power_amber {
-                       label = "amber:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
                        default-state = "keep";
                };
                };
 
                wps_green {
-                       label = "green:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
                };
 
                wps_amber {
-                       label = "amber:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
                };
        };
index bd1eb59f4faba33b68437de92ee23211daa878b9..165c5bdf4d3e45d30d222d82770439a811ab4174 100644 (file)
@@ -1,8 +1,11 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 &leds {
        usb_green {
-               label = "green:usb";
+               function = LED_FUNCTION_USB;
+               color = <LED_COLOR_ID_GREEN>;
                gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                trigger-sources = <&hub_port>;
                linux,default-trigger = "usbport";
index da6020769f189b5604ff06356accc6f0054ce93c..f11314694ab7e39bdba28149dc41da58faede053 100644 (file)
@@ -1,13 +1,17 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 &leds {
        wan_green {
-               label = "green:wan";
+               function = LED_FUNCTION_WAN;
+               color = <LED_COLOR_ID_GREEN>;
                gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
        };
 
        wan_amber {
-               label = "amber:wan";
+               function = LED_FUNCTION_WAN;
+               color = <LED_COLOR_ID_AMBER>;
                gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
        };
 };
index 39ba2ffc3aff4c8d4d6be65863daac2a9e8c0845..d4ab23ed43ca38178498b08a5d2fc63aa06073ce 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "OCEDO Raccoon";
@@ -24,7 +25,8 @@
                compatible = "gpio-leds";
 
                power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
index 6c20f2715f0ee1040fdec4d4fcd5fbb2ab270d1d..f7985629bb2585e4e1897860bff2372ff6542d3a 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "ar9344_openmesh_mr600.dtsi"
 
 / {
                };
 
                wps_blue {
-                       label = "blue:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                };
 
                led_power_orange: power_orange {
-                       label = "orange:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
index 988066798f5e86e942aeaaeba8c794ab6cc439c0..b6bec0a4385f63777446174223c02455ce0aef01 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "ar9344_openmesh_mr600.dtsi"
 
 / {
                };
 
                wps_blue {
-                       label = "blue:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                };
 
                led_power_blue: power_blue {
-                       label = "blue:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
index 38153d9dc068c87294fab8bebe19a5e4062dad14..d15acfc7ca2eb883c82377be818baa874bbe0d42 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "openmesh,om5p-an", "qca,ar9344";
                pinctrl-0 = <&led_lan_wan_blue_pin>;
 
                led_power_blue: power_blue {
-                       label = "blue:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                wan_blue {
-                       label = "blue:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                };
 
                lan_blue {
-                       label = "blue:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                };
 
index e3aa19c82de6ff0f9fb77eacd8828dcc12f6de1e..739ba583a800034e44b030ea73847c6110bae28c 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "openmesh,om5p", "qca,ar9344";
                pinctrl-0 = <&led_lan_wan_blue_pin>;
 
                led_power_blue: power_blue {
-                       label = "blue:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                wan_blue {
-                       label = "blue:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                };
 
                lan_blue {
-                       label = "blue:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                };
 
index aab04b080a89cbf4f04803079d0b03e9f8b3e606..f7f3ef06c971e7491c3eb8be3400b8e6beb6ee30 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "PowerCloud Systems CAP324";
                compatible = "gpio-leds";
 
                led_power_amber: power_amber {
-                       label = "amber:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                };
 
                led_power_green: power_green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                wlan_amber {
-                       label = "amber:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy1tpt";
                };
 
                wlan_green {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
 
                lan_amber {
-                       label = "amber:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                };
 
                lan_green {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                };
        };
index a5fc1160c2ce883ea0d807e275b595a62c0afe5f..6f35bd2c1e51c4f00f04f2e0161f9829b07ce6a4 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "PowerCloud Systems CR5000";
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "amber:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 2 GPIO_ACTIVE_LOW>,
                                <&gpio 4 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                wlan2g {
-                       label = "blue:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
 
                wps_white {
-                       label = "white:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                };
        };
index 8241c21dd07fda3396775e3a8590e1abeaa171ac..1d9c6ca9a431349a0634297df1bfb23f5186a0c7 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "Qihoo 360 C301";
                pinctrl-0 = <&jtag_disable_pins>;
 
                led_wlan_g: wlan_g {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
                };
 
                led_wlan_o: wlan_o {
-                       label = "orange:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy1tpt";
                };
index 33e2990284e22696e3913ea408c8a788c802c8b9..6762264d35828eaf4b1efc95a28574460f6b175c 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "ar9344_qxwlan_e750x.dtsi"
 
 / {
 
 &leds {
        lan {
-               label = "green:lan";
+               function = LED_FUNCTION_LAN;
+               color = <LED_COLOR_ID_GREEN>;
                gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
        };
 
        wan {
-               label = "green:wan";
+               function = LED_FUNCTION_WAN;
+               color = <LED_COLOR_ID_GREEN>;
                gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
        };
 };
index b20d187941da86b1e0403e133bbf6e24cfca7a1f..999030a9cdd77d119dde687f8da765769ff40d02 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "ar9344_qxwlan_e750x.dtsi"
 
 / {
 
 &leds {
        lan {
-               label = "green:lan";
+               function = LED_FUNCTION_LAN;
+               color = <LED_COLOR_ID_GREEN>;
                gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
        };
 
        wan {
-               label = "green:wan";
+               function = LED_FUNCTION_WAN;
+               color = <LED_COLOR_ID_GREEN>;
                gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
        };
 };
index 238a59cbe8d54360f70561016a7403bf2180b26e..df8f28c7d748b8ec9a95bd41185aeb3c926c8174 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        aliases {
@@ -45,7 +46,8 @@
                };
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index dbccbef023b7f00964e48b16d9241a988fa5c856..b60dc61c74a791e6f140d7ab5c3f8c7581e0c236 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "ar934x_ruckus_zf73xx.dtsi"
 
 / {
@@ -28,7 +30,8 @@
                };
 
                power_red: power-red {
-                       label = "red:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
                        panic-indicator;
                };
index 0bbd5c92fe9e59e3930ad1825a226b6ad6252109..da8c9ac165d7e2d4ebfcccb3df85bf7d15c04b50 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "Samsung WAM250";
                compatible = "gpio-leds";
 
                lan {
-                       label = "white:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                };
 
                led_power: power {
-                       label = "white:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                        default-state = "keep";
                };
@@ -54,7 +57,8 @@
                };
 
                wlan {
-                       label = "white:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index 0c6eee7ba6347ed871edf40725a2cd445e889f93..1b762896a14d790fd8e5b96e8dee02feae72aaf0 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "ar9344_tplink_cpe.dtsi"
 
 / {
@@ -16,7 +18,8 @@
                compatible = "gpio-leds";
 
                led_lan: lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
                };
 
index c495eb298c8cfa172ae41d083148c6f1a9e2f419..c44ad29ccf907a63d23cf28d07c52e17d960622f 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "ar9344_tplink_cpe.dtsi"
 
 / {
@@ -16,7 +18,8 @@
                compatible = "gpio-leds";
 
                led_lan: lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
                };
 
index fa533d9f504a9c89c63d5feb4ba64e4bbb249cf0..7228ca9f49c860775f4d86d70fb7c3f5defcd149 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "ar9344_tplink_cpe.dtsi"
 
 / {
@@ -16,7 +18,8 @@
                compatible = "gpio-leds";
 
                led_lan: lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
                };
 
index a1dca810936f179d87e7267d43fb74f4af715527..27f425fa6d0704a1eb2d22ffc1b9020d0b877c6f 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "ar9344_tplink_cpe.dtsi"
 
 / {
@@ -14,7 +16,8 @@
                compatible = "gpio-leds";
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
                };
 
index a66e1fefa25eed20bf3094581c41cc581ce4245a..013b44a1239e43c8e8bf2a1df6193ffadac16c82 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "ar9344_tplink_tl-wdrxxxx.dtsi"
 
 / {
@@ -13,7 +15,8 @@
 
 &leds {
        usb {
-               label = "green:usb";
+               function = LED_FUNCTION_USB;
+               color = <LED_COLOR_ID_GREEN>;
                gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
                linux,default-trigger = "usbport";
                trigger-sources = <&hub_port>;
index 6649e2477b25bf6db2b68a6eb996e37f188cbc42..456efc8b75966a29b80c8c6f42300060de32f547 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "TP-Link TL-WR841HP v2";
@@ -31,7 +32,8 @@
                compatible = "gpio-leds";
 
                wan {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
                };
 
                };
 
                wps {
-                       label = "green:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index e09d539c5644e4bd920c1b736aa9ef9b2bb0a76b..6f560166965c3878962bf9cb04aaaa8e0c2b061a 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "ar9344_senao_ap-dual.dtsi"
 
 / {
                compatible = "gpio-leds";
 
                led_power_amber: power_amber {
-                       label = "amber:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                };
 
                led_power_green: power_green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
index c3d7c50813ab9abcb6070bf82cad15e0f4e31be5..cb69bd9da96b88d71968dd1f87b4777a1d072241 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "ar9344_senao_ap-dual.dtsi"
 
 / {
                compatible = "gpio-leds";
 
                led_power_amber: power_amber {
-                       label = "amber:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                };
 
                led_power_green: power_green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
index d18ffff34d03e1a31402dfd263187be8408e2ec4..ecc1d182d15d6d4a7895069fddc0fc8155388004 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "ar9344_wd_mynet-nxxx.dtsi"
 
 / {
                };
 
                wps {
-                       label = "blue:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
                };
 
                led_power: power {
-                       label = "blue:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
                };
        };
index 20dad6a675f9aad980ab9f528a06eceb3ff17ad3..1b531aa03598b6a7c0aa96f13bfb7f86c1a71b84 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "Western Digital My Net Wi-Fi Range Extender";
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "blue:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
                        /* LED has no off state. It's either on or it blinks */
                };
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                };
 
index 4b692b6d9bb3ab4183065e00af3bea3b865b4bb8..145ff0418ed722855f8b801c9a94bd860fa81f44 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "Winchannel WB2000";
@@ -44,7 +45,8 @@
                };
 
                usb {
-                       label = "green:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
                        trigger-sources = <&hub_port>;
                        linux,default-trigger = "usbport";
index d494f9b1ed86f6102020502383007b4a0766694d..2164ce95991e9423210061d549c83af00d519d0c 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/mtd/partitions/uimage.h>
 
 / {
@@ -51,7 +52,8 @@
                            <&clks_disable_pins>;
 
                power_green: power-green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
index 072a0fa27c2a5fc8ef9a73af510b129a9e7f2d0c..9c801d8b606286740e079a119660bf5345cc36f0 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "alcatel,hh40v", "qca,qca9531";
                pinctrl-0 = <&jtag_disable_pins>;
 
                lan_active {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
                };
 
                led_lan_link: lan_link {
-                       label = "orange:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                };
 
                wan_active {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                };
 
                wan_link {
-                       label = "orange:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                };
 
index c9cd7038a5d90d5526dec308b1a682c387716eb9..2175c72692ae0beb5a0fa28fbbc9159d6ec2afb8 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca9531_alfa-network_r36a.dtsi"
 
 / {
@@ -62,7 +64,8 @@
                };
 
                led_usb: usb {
-                       label = "green:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "usbport";
                        trigger-sources = <&hub_port0>;
@@ -74,7 +77,8 @@
                };
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index 52a6b5431f3c86b5beb1af2ec0b40674227ed423..fc2aa19324fbf8e9c47a250dd3186f53cabf1ee6 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca9531_alfa-network_r36a.dtsi"
 
 / {
@@ -29,7 +31,8 @@
                };
 
                led_usb: usb {
-                       label = "green:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "usbport";
                        trigger-sources = <&gl850g_port1>, <&gl850g_port2>,
@@ -37,7 +40,8 @@
                };
 
                wlan {
-                       label = "blue:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index 943731e69eb8d33ca584babc5b4338b45847112f..698f028df8157ba2cafca38601f26b13fdb1f13b 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca9531_alfa-network_r36a.dtsi"
 
 / {
                pinctrl-0 = <&enable_gpio4 &enable_gpio16>;
 
                lan {
-                       label = "blue:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
                };
 
                led_status: status {
-                       label = "blue:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                };
 
                usb {
-                       label = "blue:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&hub_port0>;
                        linux,default-trigger = "usbport";
                };
 
                wan {
-                       label = "blue:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
-                       label = "blue:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index 9b35e471e5922f96f334d10839c894e1f69a7504..774d864964c68d1ef6b7a2000f997be7be6ef253 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca9531_alfa-network_r36a.dtsi"
 
 / {
@@ -19,7 +21,8 @@
                pinctrl-0 = <&enable_gpio4 &enable_gpio16>;
 
                lan {
-                       label = "blue:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
                };
 
index cdc365beb77c4bce977b5e877b5cea9081d8c1b7..e24ef541126301b3b7519912e08e10b95c9e34f3 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "ASUS RP-AC51";
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "blue:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
                };
 
                led_wps: wps {
-                       label = "red:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
                };
 
                lan {
-                       label = "blue:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
                };
 
index d0d2a07c2b46e7a7b862781964119d991850673c..1c96bd9a6ac31b757b8f57cdadb87ecfece3d71d 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "comfast,cf-e130n-v2", "qca,qca9531";
                pinctrl-names = "default";
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
                };
 
index 40aa19a66f00c2d0dfc7c37820b990efb1d17657..08a0a99c2b8f54f23aa41abdbf2c406aadeef76c 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "comfast,cf-e313ac", "qca,qca9531";
                pinctrl-names = "default";
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
                };
 
                wan {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
                };
 
index ff053d628e471ee42f208df17f77c87813935e79..9a616921e5392fe3a0234d5752e497e4e07d824b 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "comfast,cf-e314n-v2", "qca,qca9531";
                pinctrl-0 = <&jtag_disable_pins &led_rssilow_pin &led_rssimediumhigh_pin &led_rssihigh_pin>;
 
                wan {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
                };
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
                };
 
@@ -53,7 +56,8 @@
                };
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index 73d45f9b7cc0bf4524350643f9f53abb597fd507..ec99ee0c4f5e2a6cafc83084573d7590cb330161 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "comfast,cf-e5", "qca,qca9531";
                pinctrl-0 = <&jtag_disable_pins &led_wan_pin>;
 
                wan {
-                       label = "blue:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
                };
 
                lan {
-                       label = "blue:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
-                       label = "blue:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index b68ef442df85b81212b57b515dd6d71e0ebeaf7b..535676aab2128661e70a8d203c498a3a540852bd 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "comfast,cf-e560ac", "qca,qca9531";
                };
 
                wan {
-                       label = "blue:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
-                       label = "blue:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index 88a3eccb2b3cc0ad9b84daae2f40914cf5cc14e8..5f9240d6c1fea6d0351ac3bf18ef9602e501d970 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "comfast,cf-ew72", "qca,qca9531";
                pinctrl-0 = <&jtag_disable_pins>;
 
                lan {
-                       label = "blue:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
                };
 
                led_wan: wan {
-                       label = "blue:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
-                       label = "blue:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index 6fcda9fbe3579a076db2010fcecfd8de039935ba..d13e4966ae45862f3bc2c9b4ef0d940119156394 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "comfast,cf-wr752ac-v1", "qca,qca9531";
@@ -23,7 +24,8 @@
                pinctrl-0 = <&jtag_disable_pins &pinmux_led_rssihigh &pinmux_led_rssilow>;
 
                led_lan: lan {
-                       label = "blue:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                };
 
index 9a4db6f9fcdc41425072196f647876c5d45cfd2e..8f2027f25020e34d15a497ee6ce148f55bcdf701 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "dlink,dch-g020-a1", "qca,qca9531";
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                };
 
                status {
-                       label = "red:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                };
        };
index 07b0655e354a9e8ebfcfccce207b48187514d605..29886a4d3ec8ebbed03ab75a0e74b90f53473e34 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "engenius,ews511ap", "qca,qca9531";
@@ -33,7 +34,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "amber:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
index c712236114cc3d0637f0c4fbc6318fd610f409ac..f83618aface5750fdf605ff27c101f09f4aac207 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca9531_glinet_gl-ar300m.dtsi"
 
 / {
 };
 
 &led_status {
-       label = "red:status";
+       function = LED_FUNCTION_STATUS;
+       color = <LED_COLOR_ID_RED>;
 };
 
 &led_wlan {
-       label = "green:wlan";
+       function = LED_FUNCTION_WLAN;
+       color = <LED_COLOR_ID_GREEN>;
 };
 
index 652ffb9c698b810faf1e07f4b85f7f17136c5e94..461392660f99c6aa232cf948c7cccc2038c0dce5 100644 (file)
@@ -2,6 +2,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        aliases {
                // Colors for non-Lite versions
 
                led_status: status {
-                       label = "green:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                };
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                };
 
                led_wlan: wlan {
-                       label = "red:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index e5d7cd04c1ace6b349526c87260ec67935c342c3..b6a37754fab7f454545693633d4aa868138dc9e8 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "glinet,gl-ar750", "qca,qca9531";
@@ -40,7 +41,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "white:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
index 104ed3c72df44c5306f696f6d1f25073929b3a66..75a8dca7d201fc3bb9eb213eaecc073e2be9d853 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "glinet,gl-x300b", "qca,qca9531";
@@ -32,7 +33,8 @@
                };
 
                wan {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                };
 
index 0ed3f805c7e289c376f922725aa74c8dd29697ed..106d81ff113e47e15abf368676fca0e3874db28a 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "glinet,gl-x750", "qca,qca9531";
@@ -26,7 +27,8 @@
                compatible = "gpio-leds";
 
                power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
@@ -44,7 +46,8 @@
                };
 
                wan {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                };
 
index 37830c4f7d048446fb03ec450f5121c8b9c0df7d..2e7137bc3a9273d79f3150bec346027caf665115 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "glinet,gl-xe300", "qca,qca9531";
 
                lan {
                        gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                };
 
                wan {
                        gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                };
 
                wlan {
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        linux,default-trigger = "phy0tpt";
                };
 
index f599f5b77cddd6d726d2cafe83780fe1ae06ade9..d4e35c84b343b74e74f4f77811cf808187f82a22 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "joyit,jt-or750i", "qca,qca9531";
                pinctrl-0 = <&jtag_disable_pins &pinmux_led_eth_pins>;
 
                led_status_green: status_green {
-                       label = "green:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                led_status_red: status_red {
-                       label = "red:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                };
        };
index d6e23bef12067f4038c053171b318d3c72600c85..c3c313f3c67eda19fad5ed0a822659bd6ae93ef4 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca9531_qxwlan_e600g.dtsi"
 
 / {
@@ -9,7 +11,8 @@
 
 &leds {
        wlan {
-               label = "blue:wlan";
+               function = LED_FUNCTION_WLAN;
+               color = <LED_COLOR_ID_BLUE>;
                gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
                linux,default-trigger = "phy0tpt";
        };
index ff6bdd481520491294f5274a953dc9b68c75e30c..c417a8ff4cbb6a1ff769a66fdca7495f0ff6f682 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca9531_qxwlan_e600g.dtsi"
 
 / {
@@ -9,7 +11,8 @@
 
 &leds {
        wlan {
-               label = "blue:wlan";
+               function = LED_FUNCTION_WLAN;
+               color = <LED_COLOR_ID_BLUE>;
                gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
                linux,default-trigger = "phy0tpt";
        };
index 383b2e67c5e5f1903c6c8370fdda20ed92a430fc..ddc3e0f3c6e29d06f1988c395851e3bc56ebe724 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        aliases {
                };
 
                wan {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                };
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
                };
        };
index 1748d9e1c9cf0b3faf62fca80c7567aa9289e274..543fad3c4fc46637f24984d3031f453aa27964bf 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "telco,t1", "qca,qca9531";
                pinctrl-0 = <&jtag_disable_pins &pinmux_led_wan_pin>;
 
                wan {
-                       label = "blue:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
                };
 
                lan {
-                       label = "blue:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
-                       label = "blue:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index f01bcafbad333c4cceb606c6b1c4562ba919cf59..497cb6f43c00534e9ad452b2d82f22438bf13f8a 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include "qca953x.dtsi"
 
 / {
@@ -24,7 +25,8 @@
                pinctrl-0 = <&pmx_leds_switch>, <&jtag_disable_pins>;
 
                led_wan: wan {
-                       label = "yellow:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_YELLOW>;
                        gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
                };
 
index 37353ce1005d486bec9c963579f57d45880e0650..fa17cd3ce33a3390f44f73e3b135fc5126126e03 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "tplink,archer-d50-v1", "qca,qca9531";
                };
 
                wan {
-                       label = "white:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                };
 
                lan {
-                       label = "white:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
                };
 
                usb {
-                       label = "white:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&hub_port0>;
                        linux,default-trigger = "usbport";
index f288317c2c374fb4283763543e115c4c09f27dbf..be1dc66aff6f4ea78ba7b5fce2bc951791a16471 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "tplink,tl-mr3420-v3", "qca,qca9531";
                };
 
                wan {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
                };
 
                wan_fail {
-                       label = "orange:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
 
                usb {
-                       label = "green:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&led_gpio 7 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&hub_port0>;
                        linux,default-trigger = "usbport";
index 76f12887386c4228064d6cebc183a0396cb8da49..fb9fb12b6b78f846523f6299937a81575330a664 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "tplink,tl-mr6400-v1", "qca,qca9531";
@@ -22,7 +23,8 @@
 
                /* D12 */
                wan {
-                       label = "white:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
                };
 
 
                /* D5 */
                wps {
-                       label = "white:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
                };
 
                /* D3 */
                wlan {
-                       label = "white:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "phy0tpt";
                };
 
                /* D2 */
                led_power: power {
-                       label = "white:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
                };
 
                /* D4 */
                lan {
-                       label = "white:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
                };
        };
index a31694effdc3129ab49bbaecc61190d56a51b409..676f8adf1fce8bbd620bfb73a7997b7e47650167 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "tplink,tl-wr902ac-v1", "qca,qca9531";
@@ -21,7 +22,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
                        default-state = "on";
                };
                };
 
                usb {
-                       label = "green:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
                        trigger-sources = <&hub_port0>;
                        linux,default-trigger = "usbport";
                };
 
                wps {
-                       label = "green:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
                };
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
                };
        };
index 59f86170c98f193e4e48b494d2f057740ca5cbd1..9e90f99728ff83c31f373c00f1d0d1ffdb211e59 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "Wallys DR531";
@@ -41,7 +42,8 @@
                compatible = "gpio-leds";
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                };
 
@@ -66,7 +68,8 @@
                };
 
                wan {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
                };
        };
index 0385d73a7a125ba5e8184348f55b50e2dce73dc9..4ad19fe600ebc7d4dd96054d1608bd1961bb5e4e 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "YunCore A770";
                compatible = "gpio-leds";
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
                };
 
                led_status: status {
-                       label = "green:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                        default-state = "keep";
                };
 
                wan {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
                };
 
index f4422e2242903dca56ea4cd2852f93b0d2299021..e4b6f5fc68ad8eaf6c647d82b1d700ec97285a29 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "comfast,cf-e110n-v2", "qca,qca9533";
                pinctrl-0 = <&jtag_disable_pins &led_rssilow_pin &led_rssimediumhigh_pin &led_rssihigh_pin>;
 
                wan {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
                };
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
                };
 
@@ -57,7 +60,8 @@
                compatible = "gpio-leds";
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index f1eef86a9b58f4f121bb1f1e3809ecfaf1e4cbb1..d5609f7af10c4056aa2788dfee965e9fb316a10c 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        aliases {
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                };
 
                led_status: status {
-                       label = "red:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
                };
 
index 90383690b9721b55ea2e5a36ba924eec38399096..796451768f2f07066b4c991e2cb6d04d6bda5246 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca953x_dlink_dap-2xxx.dtsi"
 
 / {
@@ -27,7 +29,8 @@
                compatible = "gpio-leds";
 
                led_power_green: power_green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
index 5758b0d2a31cfd6d83359915adb0d6350b10eed7..20002aaba85988492d30cdec30ba76037389c803 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca953x_dlink_dap-2xxx.dtsi"
 
 / {
@@ -27,7 +29,8 @@
                compatible = "gpio-leds";
 
                led_power_green: power_green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
index 487bbf9d4c70819fcfc64357f11e22bcb9f1c184..b1d40ddc05b0857a71bd63dfe155804ce1591b7f 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/mtd/partitions/uimage.h>
 
 / {
@@ -66,7 +67,8 @@
                };
 
                wan {
-                       label = "white:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
                };
 
index aa5c57b27891d6b3da97fbd2456d0f578bdb2fca..a65c4fd8ed4c205837e11e33e061a342da3108cf 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca9533_mikrotik_routerboard-16m.dtsi"
 
 / {
@@ -19,7 +21,8 @@
                pinctrl-0 = <&led_wan_pin>;
 
                power {
-                       label = "blue:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
                        default-state = "on";
                };
                };
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index 062c3bd061a617b10c8dc78bfe02243d247b0b76..7b7477c506f1a1f430ef42b65419cd34491327ad 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca9533_mikrotik_routerboard-16m.dtsi"
 
 / {
@@ -17,7 +19,8 @@
                compatible = "gpio-leds";
 
                power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
@@ -43,7 +46,8 @@
                };
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio_ext 4 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index e337bcc70db878fc04a4b0acd86e33a00a09e509..8d18df8abbdcfdb863c4b053945c0033af51f713 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca9533_mikrotik_routerboard-16m.dtsi"
 
 / {
                pinctrl-0 = <&led_power_pin &led_lan_pin>;
 
                power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
                        default-state = "on";
                };
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
                };
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "phy0tpt";
                };
index d4d049920c7f3d2fafa442e752f971715555f2d3..10841591b5deea0edf249c460779252f6df8fa21 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca9533_mikrotik_routerboard-16m.dtsi"
 
 / {
                pinctrl-0 = <&led_lan_pin>;
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index 19ada708d99083a3658b09e7de82a57b792069c4..942030e4c9a6f3182366652e37c0bf27ac062600 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca9533_mikrotik_routerboard-16m.dtsi"
 
 / {
@@ -33,7 +35,8 @@
                };
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "phy0tpt";
                };
index 1f3bf68f69c5932523fc5db725cd18f2854af31b..c78f52152d53cca1ef2c7e5acb8ae11b6c2da2f9 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        chosen {
@@ -35,7 +36,8 @@
                compatible = "gpio-leds";
 
                led_power_blue: power_blue {
-                       label = "blue:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
                };
 
                wan_blue {
-                       label = "blue:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                };
 
                lan_blue {
-                       label = "blue:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                };
        };
index 66ede5554d0839631b7251e36fbba4b440185c5f..010b752995b8153616ae9d3b8a54faa31fb9b36e 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        chosen {
                compatible = "gpio-leds";
 
                status_red {
-                       label = "red:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
                };
 
                led_status_green: status_green {
-                       label = "green:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
                };
 
                status_blue {
-                       label = "blue:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
                };
        };
index 2836234b4c7ae0644e31f41206793fbc6f32536e..e7cb1f605d7601131044c32707f394c3c77097f1 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/mtd/partitions/uimage.h>
 
 / {
                compatible = "gpio-leds";
 
                wan {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
@@ -49,7 +52,8 @@
                };
 
                led_wps: wps {
-                       label = "green:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                };
        };
index 3295776bf93e48efbc906d68f4a2f06bea687844..e976566f4fcad32f68ca4a7568a86afd48ff97f5 100644 (file)
@@ -1,10 +1,13 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca9533_tplink_cpexxx.dtsi"
 
 &leds {
        lan {
-               label = "green:lan";
+               function = LED_FUNCTION_LAN;
+               color = <LED_COLOR_ID_GREEN>;
                gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
        };
 };
index 5a05869a1c03671343bf662c2f2c346985926592..7bad615a6c4ac756d9a8c1dac83c9d73d02e1721 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        aliases {
@@ -18,7 +19,8 @@
                compatible = "gpio-leds";
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
                };
 
@@ -28,7 +30,8 @@
                };
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index c3d42a8b35024f84666b38b8fb5513c07befbd2e..f1cdde13a2d4cbeaab515a317fcb09a7dd9236af 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "tplink,tl-wa850re-v2", "qca,qca9533";
@@ -24,7 +25,8 @@
                pinctrl-0 = <&jtag_disable_pins>;
 
                lan {
-                       label = "blue:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                };
 
@@ -59,7 +61,8 @@
                };
 
                wlan {
-                       label = "blue:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index 027ed82cbe16b60813103990e1d289268824e683..035d968cb2a0954c952b6e59902b0e8ca7aa370b 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca9533_tplink_tl-wr841.dtsi"
 
 / {
@@ -18,7 +20,8 @@
        };
 
        wan_orange {
-               label = "orange:wan";
+               function = LED_FUNCTION_WAN;
+               color = <LED_COLOR_ID_ORANGE>;
                gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
        };
 };
index c0e23f6d62e4f1c6f6812abcf4337811d8cd04c5..9487e67e99bb851446eea4be1d69f6296c46c4a9 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        aliases {
@@ -14,7 +15,8 @@
                compatible = "gpio-leds";
 
                wifi {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
@@ -25,7 +27,8 @@
                };
 
                wan {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
                };
 
index c11f11ae185255cbff9e953b3fe4d74e108c12c4..d6768e1af2da88a9b20eca5f33067806d2d4dce0 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "tplink,tl-wr841hp-v3", "qca,qca9533";
                };
 
                led_power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                wan_green {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                };
 
                wan_amber {
-                       label = "amber:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
                };
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                };
 
                wps {
-                       label = "green:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
                };
 
index 33234fcb9f7a79d4f7cf2297287e044c3ebc7eef..4d4acd202ce15a327b96c419e70ed46ff98bcca8 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "tplink,tl-wr842n-v3", "qca,qca9533";
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                wifi {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
                };
 
                wan_green {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
                };
 
                wan_red {
-                       label = "red:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
                };
 
@@ -68,7 +73,8 @@
                };
 
                usb {
-                       label = "green:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "usbport";
                        trigger-sources = <&hub_port0>;
index 05b76ecadba030b2c938f42786e668258bb8a54b..9dafaaa9a4fb56d39270507c9ab98fbd19bf58cc 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca9556_avm_fritz-repeater.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&spi_gpio 6 GPIO_ACTIVE_HIGH>;
                };
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&spi_gpio 5 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "phy1tpt";
                };
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
                };
 
index 0d3053597656830905d1f4a5b4be1860b2475757..9123ae34b2396f0f5d1db2600f34f8bb37fe6e82 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca9556_avm_fritz-repeater.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
                };
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                };
 
index 355f0850c4bf020f9b62654c55c7f30387e91967..a746b95922f75441ed1c6101e06a4eae64adf7a0 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca9556_avm_fritz-repeater.dtsi"
 
 / {
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&spi_gpio 6 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&spi_gpio 7 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy1tpt";
                };
index 941d87657fc854bee1ec2dc23f3a888a5f1d4d89..8cf1f00255edb6a6cdb854dc963f290e63902a9d 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "araknis,an-500-ap-i-ac", "qca,qca9557";
@@ -30,7 +31,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "amber:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
                        default-state = "off";
                };
@@ -48,7 +50,8 @@
                };
 
                wps {
-                       label = "blue:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
                };
        };
index f17af66cdf9df6460e19e2afd450a79a1baf60aa..62c1124cb6df054e1cf0776159e937a442cc37d4 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "buffalo,bhr-4grv2", "qca,qca9557";
@@ -20,7 +21,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
index b380fef5152ce48ab28e0f5c2b88865e154a70ac..2b5294fe965c7b1679b41f663b8505aca85a5a5c 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca955x_dlink_dap-2xxx.dtsi"
 
 / {
                compatible = "gpio-leds";
 
                led_power_red: power_red {
-                       label = "red:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                };
 
                led_power_green: power_green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
index 31d86b1cf07f93464d46fc3cbdeae81ce2cdf39d..c7dd3cea99621fccd0d80d29bed888e71cc53cc8 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        aliases {
                compatible = "gpio-leds";
 
                led_wan: wan {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                };
        };
index da159caa20cc26397788862967175b7470d1aad1..6fe518cbabe2e13d34141d86f6f733341987af28 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "engenius,eap1200h", "qca,qca9557";
@@ -32,7 +33,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "amber:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
@@ -50,7 +52,8 @@
                };
 
                wps {
-                       label = "blue:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
                };
        };
index b9338f55db002da844d6e05c0dd8bf69a9e5bd18..c81d17d20a1e5c19fd0f965e5cb571ef8b689a19 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "engenius,enstationac-v1", "qca,qca9557";
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "amber:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index a70dc4739dfc74cabd5014922c106429a2e1e095..fd805fa13f67da4b0b1c4d7377422bd87f0f44a4 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca955x_senao_router-dual.dtsi"
 
 / {
@@ -17,7 +19,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "amber:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
                };
 
                wps_amber {
-                       label = "amber:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
                };
 
                wps_blue {
-                       label = "blue:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
                };
        };
index 686a4745175f7291a1fe03b59f6c6a5f064d0423..9df72df66ec7d5634f7e162bbb2f6e8a797c0337 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "extreme-networks,ws-ap3805i", "qca,qca9557";
                compatible = "gpio-leds";
 
                led_power_green: power_green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
                };
 
                led_power_amber: power_amber {
-                       label = "amber:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
                };
 
index 76932be64a20552be13a64d6ea7aea392badf060..097e1a87beb37d4cce96b5ddbe2cf5df028a661a 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        aliases {
@@ -17,7 +18,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
index 9189c6e55161c739ec55aa25d760ee3efeb10f61..1df5d6125cc4c51025e7535e2cdbeb7dd6606da7 100644 (file)
                compatible = "gpio-leds";
 
                white: white {
-                       label = "white:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
                };
 
                orange: orange {
-                       label = "orange:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
                        panic-indicator;
                };
index 25b36e50be31ea4e9d32e787779b410f9e949bda..33fc3f1a070f4f602ee7fe96b3477580ac02f7a4 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca955x_zyxel_nbg6x16.dtsi"
 
 / {
@@ -17,7 +19,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                };
 
@@ -48,7 +51,8 @@
                };
 
                wps {
-                       label = "green:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
                };
        };
index 9001e3fb866dbefc23cae32e81af845591b222ad..c6620969d100479ee3a41e2c12abd291bf574cf6 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "allnet,all-wap02860ac", "qca,qca9558";
@@ -32,7 +33,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "amber:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
@@ -50,7 +52,8 @@
                };
 
                wps {
-                       label = "blue:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
                };
        };
index 778710eb9192cbf61ffdf8cd2e2d519ccfc78c7a..3906b82776b9c78bb4c0e1268a40bd9b9418dde5 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "araknis,an-700-ap-i-ac", "qca,qca9558";
@@ -30,7 +31,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "amber:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
                        default-state = "off";
                };
@@ -48,7 +50,8 @@
                };
 
                wps {
-                       label = "blue:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
                };
        };
index 9d9528245131f5ff46042703b1de05d2be723c09..a5318b6cdd1876b36daf4664ec548956aaa2cbfd 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "aruba,ap-115", "qca,qca9558";
                compatible = "gpio-leds";
 
                led_power_green: power-green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
                };
                
                led_power_red: power-red {
-                       label = "red:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
                };
 
index b20a36a031900f9afa473bb38298e915666dec91..9048fd3e2f0523631fdba39bd72f15eacba072fe 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/mtd/partitions/uimage.h>
 
 / {
                };
 
                status {
-                       label = "amber:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                };
 
                wps-amber {
-                       label = "amber:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                };
 
                wps-blue {
-                       label = "blue:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
                };
 
index 281559ac128dd777f93e8f50146742229c60aba7..febbccb4cb4ba0e132e1b4ee9edcea49bfd0694d 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "comfast,cf-e380ac-v2", "qca,qca9558";
@@ -35,7 +36,8 @@
                pinctrl-0 = <&jtag_disable_pins>;
 
                led_lan: lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
                };
 
index 4daad4b0b012cb35cb4d3a6b4ebc89cffa3e72b1..7bcadb2adaf4cd132f57caff1fdb3db4e7b1dd6d 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        keys {
@@ -21,7 +22,8 @@
                compatible = "gpio-leds";
 
                wps {
-                       label = "blue:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
                };
 
index d98600934ad60dc590dcc8a2d355037571f1f012..ec9d5cc6557d23a3e97839c2c3ec64145b347003 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca9558_devolo_dvl1xxx.dtsi"
 
 / {
                compatible = "gpio-leds";
 
                led_status_blue: status_blue {
-                       label = "blue:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                led_status_red: status_red {
-                       label = "red:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                };
        };
index 97687f1ce3ad13d415a158050fb055c961efabda..dfef71e6d7c5cf0c3fc711f7c7e8cab43a51dba5 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca9558_devolo_dvl1xxx.dtsi"
 
 / {
                compatible = "gpio-leds";
 
                led_status_blue: status_blue {
-                       label = "blue:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                led_status_red: status_red {
-                       label = "red:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                };
        };
index ee6d35685eff81a686495c2bdcd507a6528b6ef9..8d4bbe3ef2da202182fe34198195b66fbd0cbc9b 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca9558_devolo_dvl1xxx.dtsi"
 
 / {
                compatible = "gpio-leds";
 
                led_status_blue: status_blue {
-                       label = "blue:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                led_status_red: status_red {
-                       label = "red:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                };
        };
index c5209046173f01e6eac5509cc936cc07c9a1f7d5..25760c8ccfa56938f6570e267acd729a678f8c45 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca9558_devolo_dvl1xxx.dtsi"
 
 / {
                compatible = "gpio-leds";
 
                led_status_blue: status_blue {
-                       label = "blue:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                led_status_red: status_red {
-                       label = "red:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                };
        };
index 2b808ce9213b8ebc7cde00b561dff7c31d6a708b..aac5d4612fdf016eb6471364fdca793f6ea78c7c 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca9558_devolo_dvl1xxx.dtsi"
 
 / {
                compatible = "gpio-leds";
 
                led_status_blue: status_blue {
-                       label = "blue:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                led_status_red: status_red {
-                       label = "red:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                };
        };
index 747a1a46d303c9014dd971491c5e23f2d0ee2b95..4db10ac776ca2fc075ca158a51345ccadf2d9b39 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca9558_devolo_dvl1xxx.dtsi"
 
 / {
 
                led_status_red: status_red {
                        /* This LED is not visible on the external casing. */
-                       label = "red:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index d32329b3660dcee3df2bf275e1fb70fe3937fb83..4cee284f31fa94508c941fcf22797b9f04e36b64 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca955x_dlink_dap-2xxx.dtsi"
 
 / {
                compatible = "gpio-leds";
 
                led_power_red: power_red {
-                       label = "red:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
                };
 
                led_power_green: power_green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
index 3ca641a550700c3b92366353593a33304945fd2b..6f23fbec46489c059aaa6966f8fcb644522cff01 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca955x_dlink_dap-2xxx.dtsi"
 
 / {
                compatible = "gpio-leds";
 
                led_power_green: power_green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                led_power_red: power_red {
-                       label = "red:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                };
 
index e72af99da24341d308a4b7719db244d42f6bcc37..2cdfd2cff93f793125786f0e49fb7df8ff7a17f6 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca955x_dlink_dap-2xxx.dtsi"
 
 / {
                compatible = "gpio-leds";
 
                led_power_red: power_red {
-                       label = "red:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                };
 
                led_power_green: power_green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
index de44aec47d7b3223ddf8d2dca4c7112d5f25f109..765cfafe15ea832a3a3f18763ee842a30ff20be7 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "domywifi,dw33d", "qca,qca9558";
@@ -32,7 +33,8 @@
                };
 
                usb {
-                       label = "blue:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&hub_port1>;
                        linux,default-trigger = "usbport";
index 56c08621a7465b87baf6fcfaffe7cf868853eb2d..ea43eb0e6754ae9773c7fff66ea592a47897c58b 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "engenius,eap1750h", "qca,qca9558";
@@ -32,7 +33,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "amber:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
@@ -50,7 +52,8 @@
                };
 
                wps {
-                       label = "blue:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
                };
        };
index 36aba0714e4e13cee0b5291a38a794818298721c..52708f3c6b20153e7e2a7e04183a1fe52d258954 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca955x_senao_router-dual.dtsi"
 
 / {
@@ -17,7 +19,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "amber:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
                };
 
                wps_amber {
-                       label = "amber:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
                };
 
                wps_blue {
-                       label = "blue:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
                };
        };
index 4cfdfc1f2802796a6120f0ca5cff0c50d8d80dd2..0aae9b5187c2e4549140131248152c7f940cc066 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca955x_senao_router-dual.dtsi"
 
 / {
@@ -17,7 +19,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "amber:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
                };
 
                wps_amber {
-                       label = "amber:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
                };
 
                wps_blue {
-                       label = "blue:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
                };
        };
index ef0e21a3b59ff1c21b56521132e482128facf579..39a0790f121e15997b447ba7d520c42d87a59c92 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca955x_senao_router-dual.dtsi"
 
 / {
@@ -17,7 +19,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "amber:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
                };
 
                wps_amber {
-                       label = "amber:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
                };
 
                wps_blue {
-                       label = "blue:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
                };
        };
index 5ee38b2e884c788d897a36881994982beafff0b7..333b52f4d9150e63533ac0dadb452d3857a69f23 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "librerouter,librerouter-v1", "qca,qca9558";
@@ -32,7 +33,8 @@
                };
 
                status_blue {
-                       label = "blue:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
                };
        };
index 81898e972f095fa150e66b514030bf734fa1d2f9..3c9141fcba6d5e4da497572889591cfed2b973c6 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "Netgear EX7300";
                compatible = "gpio-leds";
 
                led_power_green: power_green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
                };
 
                led_power_amber: power_amber {
-                       label = "amber:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
                };
 
@@ -67,7 +70,8 @@
                };
 
                wps_green {
-                       label = "green:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
                };
 
index ad5a378e9320890c45cd2b48bd077b9206ddee8a..891bdd95c43c5252aabafe900ef7b2b19f37284e 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "ocedo,koala", "qca,qca9558";
@@ -21,7 +22,8 @@
                compatible = "gpio-leds";
 
                power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
index cfceb9e6981474bd72472417b5526790b782d68f..11a6e81f9f28f4cab2f62323cdb07719f374e688 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        chosen {
                compatible = "gpio-leds";
 
                status_blue {
-                       label = "blue:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
                };
 
                status_red {
-                       label = "red:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
                };
 
                led_status_green: status_green {
-                       label = "green:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 23 GPIO_ACTIVE_HIGH>;
                };
        };
index 3bb793db7fd42e6aae6bed799a175cd956b8e52b..a5d3d3798788cb78a557469d5842307a3ff0f222 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        chosen {
@@ -33,7 +34,8 @@
                compatible = "gpio-leds";
 
                lan_blue {
-                       label = "blue:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                };
 
                };
 
                status_green {
-                       label = "green:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
                };
 
                status_red {
-                       label = "red:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
                };
 
                led_power_blue: power_blue {
-                       label = "blue:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
index d8b6b5d98f8a54d725433bc29866017321aa5630..f7c51578ba9aa69d1965e225fe7bcadb4a22b3b0 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "openmesh,om5p-ac-v1", "qca,qca9558";
                compatible = "gpio-leds";
 
                led_power_blue: power_blue {
-                       label = "blue:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                wan_blue {
-                       label = "blue:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
                };
 
                lan_blue {
-                       label = "blue:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
                };
 
index 0d9053e43f2a0587a576ea81eeddb4582a94f786..b9eb0e91a9b6ad2cc1e0cb446ae28e955f8fc96c 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "openmesh,om5p-ac-v2", "qca,qca9558";
@@ -32,7 +33,8 @@
                };
 
                led_power_blue: power_blue {
-                       label = "blue:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
index 716bc0d77b60c737f895fe1d4f18bd97a7dc581f..9cbdca234d9bd68d1f1ba13ef91e82316ce77b32 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        aliases {
@@ -29,7 +30,8 @@
                compatible = "gpio-leds";
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index ba7feeab5a17af7b67dca2938e2d031d4267c862..2a57eeec775211c2bfbf3ac1fda28a21504a3a52 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "Sitecom WLR-8100 (X8 AC1750)";
@@ -36,7 +37,8 @@
                compatible = "gpio-leds";
 
                led_status_amber: status_amber {
-                       label = "amber:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
index 70d9e9d148ba9dc1b41c0121fbab951068daa7e9..92e89ff3aa797e5f81925b74c341919566e31003 100644 (file)
@@ -17,6 +17,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        aliases {
                compatible = "gpio-leds";
 
                led_status_green: status_green {
-                       label = "green:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                led_status_red: status_red {
-                       label = "red:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                };
        };
index 69a0af972ef953da0554e3bedc189ef7362d8953..5801303040f9ce29e13e5ade6b9357b411fa2472 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "sophos,ap15", "qca,qca9558";
                compatible = "gpio-leds";
 
                led_status_green: status_green {
-                       label = "green:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                led_status_yellow: status_yellow {
-                       label = "yellow:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_YELLOW>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                };
        };
index 35532f42c8b630d12106c22e234e12c41e594103..b4f32b9fc7c9ceb8641d30fb0db900fe1126671e 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        aliases {
                };
 
                wlan {
-                       label = "white:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                };
 
                lan {
-                       label = "white:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
                };
 
                usb {
-                       label = "white:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&hub_port1>, <&hub_port0>;
                        linux,default-trigger = "usbport";
index 5205426f8e69c42c7d569c69fafa225b981dbe79..a3fb9b22d227921586710704eb605901dad43644 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "TP-Link RE350K v1";
@@ -46,7 +47,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
index e8ab6ff5125d51d75f392829351b32129d2e52d0..3061ae07c7cba1c5a102832316239a08c6a8ec80 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        aliases {
@@ -19,7 +20,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "blue:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                };
 
                };
 
                wps_blue {
-                       label = "blue:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
                };
 
                wps_red {
-                       label = "red:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
                };
        };
index f4390f46568102c422636a4f47ab9007ab7e7813..a72b6e6050d195445594122b06cad5e502c29e2f 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        aliases {
                };
 
                usb {
-                       label = "green:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&hub_port0>;
                        linux,default-trigger = "usbport";
                };
 
                wifi_green {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
 
                wifi_wps {
-                       label = "green:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
                };
        };
index 9d329000c9bd99fbbeed408e7ef7ba187fdde84d..f51b89206d627920ac0c47276eef2bb5f84a8976 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "tplink,tl-wr941n-v7-cn", "qca,qca9558";
@@ -27,7 +28,8 @@
                };
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index 176fe97cc0a96e0054063af93d3cfdff79e14370..23b484cdf58eb3d2da63573369743b49a6e76d6c 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "trendnet,tew-823dru", "qca,qca9558";
                compatible = "gpio-leds";
 
                power_orange {
-                       label = "orange:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                };
 
                led_power_green: power_green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
                };
 
index 09e7e1bf8d9d35d36b6c0802f8437f950009690f..b42ea4dbc272e99784ac9c4d2cb795295ab96768 100644 (file)
@@ -6,6 +6,8 @@
  * based on device tree from qca9558_ubnt_powerbeam-5ac-500.dts
  */
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca955x_ubnt_xc.dtsi"
 
 / {
@@ -71,7 +73,8 @@
                        gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
                };
                led_power: power {
-                       label = "blue:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
index 68cd2777198591d08180247d138f63f7a0d2e5c9..e3431330de0f1f6b6f7bb1e4a170fb4eecdf5cd7 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "watchguard,ap300", "qca,qca9558";
@@ -31,7 +32,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
index 27341a88e67b12b0c92596b54cec51e33c441fb8..76ae8a99a691b5a21fc589f9d2ae2d30788df674 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca955x_zyxel_nbg6x16.dtsi"
 
 / {
@@ -17,7 +19,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "white:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                };
 
@@ -53,7 +56,8 @@
                };
 
                wps {
-                       label = "white:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
                };
        };
index 9d591bd6b3638524bde5debede948c760f390610..2a00985ba75b3a98da562cae543f045cdd65c3dc 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        aliases {
@@ -28,7 +29,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "amber:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
index 7c220baddd33d93ea81b648bb4c4131fc3be1ad2..b3b8d01986dbe6237a73bdac2df8e69be190b9c1 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "avm,fritz4020", "qca,qca9560";
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
                };
 
                wan {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
                };
 
index 8f67299c4892c8c01f038c29e05559d3de99f276..c4671bf57f2fb6b36fceb94e0f6e1e75c1040aa4 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "NEC Aterm WF1200CR";
                /* other LEDs are connected to ath10k (QCA9888) gpiochip */
 
                led_power_green: power_green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                };
 
                led_power_red: power_red {
-                       label = "red:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
                };
        };
index 3e87bebd1468279a177cc322df4b3f4e9e867cf7..97e9ebf0b64911b2c69c4725a20094ab81e02108 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "tplink,archer-c25-v1", "qca,qca9561";
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                wps {
-                       label = "green:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
                };
 
                };
 
                wan_green {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
                };
 
                wan_amber {
-                       label = "amber:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
                };
 
index 397e81d17b397f1838358bc5b47b55359cd7604f..e8b282b9c207a69000c49f57df1e0d08e58e0d23 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca9561_tplink_archer-c5x.dtsi"
 
 / {
@@ -13,7 +15,8 @@
 
 &leds {
        usb {
-               label = "green:usb";
+               function = LED_FUNCTION_USB;
+               color = <LED_COLOR_ID_GREEN>;
                gpios = <&led_gpio 7 GPIO_ACTIVE_LOW>;
                linux,default-trigger = "usbport";
                trigger-sources = <&hub_port0>;
index bb942078dc41c90a08eb0db80a3e04d17a2767cd..80e5db55e4ac5ded1f8588c92475dc7768710306 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "tplink,archer-c5x", "qca,qca9560";
@@ -39,7 +40,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
                };
 
                wan_green {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
                };
 
                wan_amber {
-                       label = "amber:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
                };
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
                };
 
                wps {
-                       label = "green:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
                };
        };
index 9e437b6f00f64e3777c679d45f86631fc161ff04..eb21394d046fd93f18fddeca259d562588dd2e35 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca9561_tplink_archer-c6x.dtsi"
 
 / {
 
 &leds {
        wan_amber {
-               label = "amber:wan";
+               function = LED_FUNCTION_WAN;
+               color = <LED_COLOR_ID_AMBER>;
                gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
        };
 
        wps {
-               label = "green:wps";
+               function = LED_FUNCTION_WPS;
+               color = <LED_COLOR_ID_GREEN>;
                gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
        };
 };
index e71fc9eb7abecfccf52cd0c33bac684143d92e90..aa4a7da10cf42f42de833acd53d33e19823b664c 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca9561_tplink_archer-c6x.dtsi"
 
 / {
 
 &leds {
        wan_amber {
-               label = "amber:wan";
+               function = LED_FUNCTION_WAN;
+               color = <LED_COLOR_ID_AMBER>;
                gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
        };
 
        wps {
-               label = "green:wps";
+               function = LED_FUNCTION_WPS;
+               color = <LED_COLOR_ID_GREEN>;
                gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
        };
 };
index d84ba25db4ab7749c5b01f9e42ee39ba63fbfc61..ede6878d5c1607f5dc80cd6d8f35cef2deb9222c 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca9561_tplink_archer-c6x.dtsi"
 
 / {
@@ -13,7 +15,8 @@
 
 &leds {
        wan_amber {
-               label = "amber:wan";
+               function = LED_FUNCTION_WAN;
+               color = <LED_COLOR_ID_AMBER>;
                gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
        };
 };
index e5f9d0bcc591c145967b257b56a4f197208d47dc..b3fdc03de47e0e693dc937824b701f73094ce884 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        aliases {
@@ -33,7 +34,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
                };
 
                wan_green {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
                };
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
                };
        };
index cf5f3a3a4e045d2a7d5f6cfd83cdcb88e53a8799..0e5c1fdc43c6685cdddaaf1b24cd854843d8891c 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "tplink,eap225-wall-v2", "qca,qca9561";
@@ -39,7 +40,8 @@
                compatible = "gpio-leds";
 
                led_status: status {
-                       label = "white:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
index 8767693c82e559182a432e023dd979b0c61f0c42..f12043540741fae6d527a451ceeca18d34b5d324 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "tplink,tl-wdr6500-v2", "qca,qca9561";
@@ -51,7 +52,8 @@
                };
 
                wan {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
                };
 
index 4510872e278f8966580345a8f3695f442bf98807..752ecb27980a2af5b13650feb1e902630a5f346f 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "ASUS PL-AC56";
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "red:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                };
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
                };
 
index 71c95ad3322113e76d5bf5c3eb4dd09b91d6b263..763ba431ef39aea698ac6c4f1b5910ce6e2fe8bd 100644 (file)
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
                };
 
                led_orange: wps {
-                       label = "orange:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
                };
 
index 15b8b819581e7415d8cb9a68a8b424560afdf7fe..ebcaeb6ddc96d637e47d0d74b75e394afae68e8f 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "COMFAST CF-E375AC";
                compatible = "gpio-leds";
 
                led_lan: lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
                };
 
                wan {
-                       label = "red:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
                };
 
index 3047c6f4794544ee93b4147740a5f165296e421d..3b0c2afb50d08a39b996b0fec153fc820b9a3553 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/mtd/partitions/uimage.h>
 
 / {
                pinctrl-0 = <&jtag_disable_pins>;
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
                };
 
                led_power_green: power_green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
@@ -56,7 +59,8 @@
                };
 
                led_power_red: power_red {
-                       label = "red:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                };
 
index a42deaddafd37c3646561cf58a0e20b567cb995b..34961c94c4adbc5be40c346b9547787139411481 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        aliases {
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
                };
 
                wps {
-                       label = "green:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index 93bd8e363e85e7102076c9de679007512beaf167..320181c2b398de973ecf8afdfe240793051fa32a 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca9563_dlink_dir-8x9-a1.dtsi"
 
 / {
                compatible = "gpio-leds";
 
                wps {
-                       label = "green:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
                };
 
                led_power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                };
 
@@ -32,7 +36,8 @@
                };
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index 5afe683613b42cab72099a2ec3c959c408182d52..60777ea9002cb6b2fac6ea03b1377fe19fee2372 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca9563_dlink_dir-8x9-a1.dtsi"
 
 / {
                compatible = "gpio-leds";
 
                led_power_orange: power_orange {
-                       label = "orange:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                };
 
                led_power_white: power_white {
-                       label = "white:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
                };
        };
index a69b9d54e8b8434d00e073329ac6e580a482ba96..e7cdcad9c3a3384d217bca973dcf45f7dc53f4cc 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca9563_elecom_wrc-ghbk2-i.dtsi"
 
 / {
@@ -9,7 +11,8 @@
 
 &leds {
        led_power: power {
-               label = "blue:power";
+               function = LED_FUNCTION_POWER;
+               color = <LED_COLOR_ID_BLUE>;
                gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
                default-state = "on";
        };
index 51800820542359812292659ffe7480b8a5187c84..8b64d8d2ff37ff0801bf2111d6b3b552c38530bf 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca9563_elecom_wrc-ghbk2-i.dtsi"
 
 / {
@@ -9,7 +11,8 @@
 
 &leds {
        led_power: power {
-               label = "white:power";
+               function = LED_FUNCTION_POWER;
+               color = <LED_COLOR_ID_WHITE>;
                gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
                default-state = "on";
        };
index a6706da1a50007e3028d6f713379eb7d34b9fb05..f63edb09cf9ba1a85621b710e227c58bcd3fd9be 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        aliases {
@@ -17,7 +18,8 @@
                compatible = "gpio-leds";
 
                wps {
-                       label = "red:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
                };
        };
index da9e7ee867e4899eac4e8179da4a8d4263445dd4..0624d88d8a132c5bb113adfdd45b21b8865cac2d 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "glinet,gl-ar750s", "qca,qca9563";
@@ -41,7 +42,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
                        default-state = "keep";
                };
index 22ba567694ac9937795e669e1f8c3e7e2df62d1f..7f8866bd36a66ed801817ea69252ef0c1bdbbe52 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "NEC Aterm WG1200CR";
                /* other LEDs are connected to ath10k (QCA9888) gpiochip */
 
                led_power_green: power_green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                led_power_red: power_red {
-                       label = "red:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
                };
        };
index a7390573cd642f1758194c92760b4d5626851d2c..fdcca64a0c88ed921d423294ef4f1699e57eef07 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "NEC Aterm WG800HP";
                };
 
                led_power_red: power_red {
-                       label = "red:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                };
 
                led_power_green: power_green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
index c4faec8ef140db5c76bff5f6a6884d3d64cde0ae..757fdfe650ae21573220bb605b9bb00ec00ed275 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        aliases {
                pinctrl-0 = <&jtag_disable_pins>;
 
                led_power_green: power_green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
                };
 
                led_power_amber: power_amber {
-                       label = "amber:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
                        default-state = "keep";
                };
 
                wan_green {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
                };
 
                wan_amber {
-                       label = "amber:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
                };
 
@@ -76,7 +81,8 @@
                };
 
                wps_green {
-                       label = "green:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                };
        };
index 8682413b0b0076807fae903b1e48cb182a1a7932..60b65a4fcbfc5b95c358f759eb45f6d5df6ad5c9 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca9563_netgear_wndr.dtsi"
 
 / {
@@ -9,7 +11,8 @@
 
 &leds {
        usb_green {
-               label = "green:usb";
+               function = LED_FUNCTION_USB;
+               color = <LED_COLOR_ID_GREEN>;
                gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
                trigger-sources = <&hub_port0>;
                linux,default-trigger = "usbport";
index 5befbb16086d0f6bbc5e15fd70be591735c6d3f4..614d88d3830f4880f5e16a41ed47bc163dceda03 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "Phicomm K2T";
                compatible = "gpio-leds";
 
                status_blue {
-                       label = "blue:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
                };
 
                led_status_red: status_red {
-                       label = "red:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
                };
 
                status_yellow {
-                       label = "yellow:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_YELLOW>;
                        gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
                };
        };
index 0861821f44a2c8a1e30afdab13e77a64bce64d1a..a0e64899187965560c6b80af428339c60c0503f1 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        aliases {
@@ -35,7 +36,8 @@
                };
 
                usb {
-                       label = "green:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&hub_port0>;
                        linux,default-trigger = "usbport";
index 57db3cfa9aca3436b9cb9e5af6c4988a235db817..907eda94007e23ac4bdd76550342b289ea0101bd 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "tplink,archer-c2-v3", "qca,qca9563";
                };
 
                wifi_wps {
-                       label = "green:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
                };
 
                wan {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
                };
 
                wan_fail {
-                       label = "orange:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                };
 
index 61c52943de0ae1122a255087f794790dd893ca95..f78a52a1208ffa075de31ee2bbfad3722f70eb65 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca9563_tplink_archer-x6-v2.dtsi"
 
 / {
@@ -19,7 +21,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
                };
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                };
 
                wan {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
                };
 
                wan_fail {
-                       label = "amber:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
                };
 
                wps {
-                       label = "green:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
                };
        };
index 4a69d29b3157fd601ba1e8a1b1954144857729a3..fc7814a97ec5b367caabb36b6f30da918b9b541c 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca9563_tplink_archer-x6-v2.dtsi"
 
 / {
@@ -19,7 +21,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
                };
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
                };
 
                wan {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
                };
 
                wan_fail {
-                       label = "amber:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
                };
 
                wps {
-                       label = "green:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
                };
        };
index 929e8dc1bbcfbd0b2c041b963d68dfd332aea1e3..611cb8953ed589f2465f00a705e2df08088b4097 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "tplink,archer-c7-v4", "qca,qca9563";
                };
 
                wan {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
                };
 
                wan_fail {
-                       label = "orange:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
                };
 
                };
 
                wps {
-                       label = "green:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
                };
        };
index f6a959903fb91635f558f97d1c379a8d2e69927e..c1000f52a3bdf288bd13759e9b19d948307f14a5 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        aliases {
@@ -23,7 +24,8 @@
                };
 
                usb {
-                       label = "green:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&hub_port0>;
                        linux,default-trigger = "usbport";
                };
 
                wan {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
                };
 
                wan_fail {
-                       label = "orange:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
                };
 
@@ -72,7 +76,8 @@
                };
 
                wps {
-                       label = "green:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
                };
        };
index 5439adaacb62b34ea9f611874bc98bbc181af8ab..3a0c16d4a34b301fa1ba466acf0fd1d1c7a7be6d 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "TP-Link CPE710 v1";
@@ -20,7 +21,8 @@
                compatible = "gpio-leds";
 
                led_lan: lan {
-                       label = "blue:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
                };
 
index 989a21b1f1914e8d2125bdb1c61c1db49d889461..7968bdbf6da8207c889a56384bff5a520a2ab083 100644 (file)
@@ -2,6 +2,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 #include "qca956x.dtsi"
 
@@ -26,7 +27,8 @@
                };
 
                led_power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
index 9c731ad99692a4c59f96f3d540914d31a993b791..29d0d8868dfcf5ebafcfab4bd7e6fad871634e89 100644 (file)
@@ -2,6 +2,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 #include "qca956x.dtsi"
 
@@ -26,7 +27,8 @@
                };
 
                led_power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
index c3f1a130eb02f5cce7dd7f15a27c65e7eb8401e2..4d5d75a8e0f5a2dae594ae919c5b6588436f49f7 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca9563_tplink_eap2x5-1port.dtsi"
 
 / {
                compatible = "gpio-leds";
 
                led_status_green: status_green {
-                       label = "green:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                led_status_amber: status_amber {
-                       label = "amber:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
                };
        };
index 1fac6082cf241b729176b8284f2f1ab40949dee1..916d30d3c62f657141ad8bdf6380de211cd7189d 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca9563_tplink_eap2x5-1port.dtsi"
 
 / {
                compatible = "gpio-leds";
 
                led_status_green: status_green {
-                       label = "green:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                led_status_amber: status_amber {
-                       label = "amber:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
                };
        };
index 5139bc767029479e86d0f5b111a0383e46cb17b4..75b28f93a5008e0ee13b3d8464e14d27e1f20c21 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca9563_tplink_eap2x5-1port.dtsi"
 
 / {
                compatible = "gpio-leds";
 
                led_status_green: status_green {
-                       label = "green:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
                        default-state = "on";
                };
 
                led_status_amber: status_amber {
-                       label = "amber:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
                };
        };
index 6e7ba5fede45e16d5096b04e3d06e2f164c11e0a..82da14faad668b7f51e87bd53e289a4571051851 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca9563_tplink_eap2x5-1port.dtsi"
 
 / {
                compatible = "gpio-leds";
 
                led_status_green: status_green {
-                       label = "green:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
                        default-state = "on";
                };
 
                led_status_amber: status_amber {
-                       label = "amber:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
                };
        };
index af133813e71e6c36834a2e7c529d94f31b098af0..b44facf3f67a383a1c34c6395b595aff0f50c86b 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca9563_tplink_eap2x5-1port.dtsi"
 
 / {
                compatible = "gpio-leds";
 
                led_status_green: status_green {
-                       label = "green:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
                        default-state = "on";
                };
 
                led_status_amber: status_amber {
-                       label = "amber:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
                };
 
                led_status_red: status_red {
-                       label = "red:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
                };
        };
index 1e37db82bce497b34ba02658c8378d4399e6c953..38edffc529be968dcbd72d691a7ea3a355327a9b 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "tplink,eap245-v3", "qca,qca9563";
                compatible = "gpio-leds";
 
                led_status_green: status_green {
-                       label = "green:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
                        default-state = "on";
                };
 
                led_status_amber: status_amber {
-                       label = "amber:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
                };
        };
index 3841a4c8fd7c4a708c1ed5d48b49043eff348c93..2e9ef99cd0d9f723737519c31cbf4ce147d4cad5 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        aliases {
@@ -18,7 +19,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "blue:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
                };
 
                };
 
                wps_blue {
-                       label = "blue:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
                };
 
                wps_red {
-                       label = "red:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
                };
        };
index 0629a639550cef04d83d558fbb6ba3e2d73fd49a..b1d564be155692a394efedac628d3369b1e344e7 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "tplink,tl-wa1201-v2", "qca,qca9563";
@@ -22,7 +23,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
@@ -40,7 +42,8 @@
                };
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
                };
        };
index 560aae9694b92504c530a22980cf11fd3db50342..81fb6ce097fd1cdc8c28912292d08ea8b708a648 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        aliases {
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
                };
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
                };
 
index 2e3ac952e290a2a1d80f4ba486885dc86b1ad874..e54003cb7a85d95b3fe29477555271e889c48488 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        aliases {
                };
 
                wifi_green {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
 
                wifi_wps {
-                       label = "green:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
                };
 
                wan {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                };
 
                wan_fail {
-                       label = "orange:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
                };
 
index 4aa0ef572f632b15386627a8249ab7272dfcf304..6db4653f69fe6cdf284c3715aa912f2da5977700 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca9563_tplink_tl-wr1043n.dtsi"
 
 / {
@@ -92,7 +94,8 @@
 
 &leds {
        usb {
-               label = "green:usb";
+               function = LED_FUNCTION_USB;
+               color = <LED_COLOR_ID_GREEN>;
                gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
                trigger-sources = <&hub_port0>;
                linux,default-trigger = "usbport";
index 6dfc885bc0a637beea0d3f3444a1aa0cfba1f0cf..27e3436f8f215df2a761df7b2e6a433532198a3c 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "Xiaomi AIoT AC2350";
                };
 
                wan_blue {
-                       label = "blue:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
                };
 
                wan_orange {
-                       label = "orange:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                };
        };
index e64680e11215411c2cf24f1ee9d8e54909bbc36b..4b92239666123cd6fde63510fb2a781338c94890 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 // Copyright (c) 2021 Cezary Jackiewicz
+
+#include <dt-bindings/leds/common.h>
 // Copyright (c) 2021, 2022 Lech Perczak
 #include "qca9563_zte_mf286.dtsi"
 
@@ -30,7 +32,8 @@
         * and slightly through the case below signal state LEDs
         */
        color = <LED_COLOR_ID_GREEN>;
-       label = "green:debug";
+       function = LED_FUNCTION_DEBUG;
+       color = <LED_COLOR_ID_GREEN>;
 };
 
 &boot_flash {
index 89177ef2d350274a0a845d48a7ebb5abf5df87fb..9a42ea668ac6dbdc730d985dd254169ff1fe96f7 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 // Copyright (c) 2021 Cezary Jackiewicz
+
+#include <dt-bindings/leds/common.h>
 // Copyright (c) 2021, 2022 Lech Perczak
 #include "qca9563_zte_mf286.dtsi"
 
@@ -27,7 +29,8 @@
         * and slightly through the case below signal state LEDs
         */
        color = <LED_COLOR_ID_BLUE>;
-       label = "blue:debug";
+       function = LED_FUNCTION_DEBUG;
+       color = <LED_COLOR_ID_BLUE>;
 };
 
 &boot_flash {
index ffc2b8934516e5a8f6f4d233188ce45403eb6aca..3d3df1adccaa53347e92e44e9fde9649cfa2c629 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        aliases {
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "blue:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
                };
 
                usb {
-                       label = "blue:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&hub_port0>;
                        linux,default-trigger = "usbport";
index 32b97a4601371ad7cd2d7553c240c2ddce2a5e38..24a54834fd36a66025061ee92a446688aec09703 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "Netgear EX7300 v2";
                compatible = "gpio-leds";
 
                led_power_green: power_green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
                };
 
                led_power_amber: power_amber {
-                       label = "amber:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&led_gpio 7 GPIO_ACTIVE_LOW>;
                };
 
                wps_green {
-                       label = "green:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
                };
 
index 6266f5561be39ccbc7d20f1a146af02315e70e46..76137c73c4e87d9e155cc1cf447825f9f679cf45 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "TP-Link Archer A9 v6";
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                usb {
-                       label = "green:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
                        trigger-sources = <&hub_port0>;
                        linux,default-trigger = "usbport";
                };
 
                wan {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
                };
 
                wan_orange {
-                       label = "orange:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
                };
 
@@ -74,7 +79,8 @@
                };
 
                wps {
-                       label = "green:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
                };
        };
index 6b27468551e22f54070fef45327deeb83a31cebb..1cf74619260ed0fca27fd497f24a6af57646e4a5 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "tp9343_tplink_tl-wx.dtsi"
 
 / {
                };
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
index b38cd418176af3be8fc15ef8285e167603fde878..7780e0172c3370986d048bb52df8a891fd0f3641 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "tp9343_tplink_tl-wr94x.dtsi"
 
 / {
                };
 
                wlan {
-                       label = "blue:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
 
                wan_blue {
-                       label = "blue:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                };
 
                wan_red {
-                       label = "red:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
                };
 
index f837dccff9af14105b589f5b378c5ad74c695c11..549bf4fea420300778098ef23d65549ae9f9e3ce 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "tp9343_tplink_tl-wr94x.dtsi"
 
 / {
                };
 
                wlan {
-                       label = "blue:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
 
                wan_blue {
-                       label = "blue:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                };
 
                wan_red {
-                       label = "red:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
                };
 
index ccb3bb167090b12af14fe2f165d6c4cf3db172d3..04517cffd4927fb85d0f8309fd9427080e796daa 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "tp9343_tplink_tl-wr94x.dtsi"
 
 / {
@@ -17,7 +19,8 @@
                compatible = "gpio-leds";
 
                wan_blue {
-                       label = "blue:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                };
 
index 61adc08289a985e32700bc6feaf2c4593c08d577..aaca7fa531b9fd82b3a0642f39f45e6f291def98 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "tplink,tl-wr941hp-v1", "qca,tp9343";
                };
 
                led_power: power {
-                       label = "blue:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                wan_blue {
-                       label = "blue:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                };
 
                wan_red {
-                       label = "red:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                };
 
                lan {
-                       label = "blue:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
                };
 
                wps {
-                       label = "blue:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
                };
        };