mirror of
				git://git.openwrt.org/openwrt/openwrt.git
				synced 2025-10-30 05:24:26 -04:00 
			
		
		
		
	ramips: Use dts alias based status led
Also fix several typos in led node name. Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
This commit is contained in:
		
							parent
							
								
									1ef65ceeaf
								
							
						
					
					
						commit
						c9c4b2116c
					
				| @ -4,353 +4,7 @@ | |||||||
| . /lib/functions.sh | . /lib/functions.sh | ||||||
| . /lib/functions/leds.sh | . /lib/functions/leds.sh | ||||||
| 
 | 
 | ||||||
| get_status_led() { | status_led="$(get_dt_led status)" | ||||||
| 	board=$(board_name) |  | ||||||
| 	boardname="${board##*,}" |  | ||||||
| 
 |  | ||||||
| 	case $board in |  | ||||||
| 	3g150b|\ |  | ||||||
| 	3g300m|\ |  | ||||||
| 	w150m) |  | ||||||
| 		status_led="$boardname:blue:ap" |  | ||||||
| 		;; |  | ||||||
| 	3g-6200n|\ |  | ||||||
| 	ar670w|\ |  | ||||||
| 	ar725w|\ |  | ||||||
| 	br-6475nd|\ |  | ||||||
| 	c50|\ |  | ||||||
| 	dch-m225|\ |  | ||||||
| 	dir-860l-b1|\ |  | ||||||
| 	e1700|\ |  | ||||||
| 	elecom,wrc-1167ghbk2-s|\ |  | ||||||
| 	ex2700|\ |  | ||||||
| 	ex3700|\ |  | ||||||
| 	fonera20n|\ |  | ||||||
| 	firewrt|\ |  | ||||||
| 	hg255d|\ |  | ||||||
| 	iodata,wn-ax1167gr|\ |  | ||||||
| 	iodata,wn-gx300gr|\ |  | ||||||
| 	kn|\ |  | ||||||
| 	kn_rc|\ |  | ||||||
| 	kn_rf|\ |  | ||||||
| 	kng_rc|\ |  | ||||||
| 	mzk-750dhp|\ |  | ||||||
| 	mzk-dp150n|\ |  | ||||||
| 	mzk-w300nh2|\ |  | ||||||
| 	nbg-419n|\ |  | ||||||
| 	nbg-419n2|\ |  | ||||||
| 	pwh2004|\ |  | ||||||
| 	r6220|\ |  | ||||||
| 	tplink,c20-v4|\ |  | ||||||
| 	tplink,c50-v3|\ |  | ||||||
| 	tplink,tl-wa801nd-v5|\ |  | ||||||
| 	tplink,tl-mr3420-v5|\ |  | ||||||
| 	tplink,tl-wr842n-v5|\ |  | ||||||
| 	tplink,tl-wr902ac-v3|\ |  | ||||||
| 	tl-wr840n-v4|\ |  | ||||||
| 	tl-wr840n-v5|\ |  | ||||||
| 	tl-wr841n-v13|\ |  | ||||||
| 	vr500|\ |  | ||||||
| 	wnce2001|\ |  | ||||||
| 	wndr3700v5|\ |  | ||||||
| 	x5|\ |  | ||||||
| 	x8|\ |  | ||||||
| 	xdxrn502j|\ |  | ||||||
| 	wn3000rpv3|\ |  | ||||||
| 	zyxel,keenetic-extra-ii) |  | ||||||
| 		status_led="$boardname:green:power" |  | ||||||
| 		;; |  | ||||||
| 	3g-6200nl) |  | ||||||
| 		status_led="$boardname:green:internet" |  | ||||||
| 		;; |  | ||||||
| 	a5-v11|\ |  | ||||||
| 	cs-qr10|\ |  | ||||||
| 	d105|\ |  | ||||||
| 	dcs-930l-b1|\ |  | ||||||
| 	hlk-rm04|\ |  | ||||||
| 	jhr-n825r|\ |  | ||||||
| 	mpr-a1|\ |  | ||||||
| 	mpr-a2|\ |  | ||||||
| 	mzk-ex750np) |  | ||||||
| 		status_led="$boardname:red:power" |  | ||||||
| 		;; |  | ||||||
| 	ai-br100|\ |  | ||||||
| 	ht-tm02) |  | ||||||
| 		status_led="$boardname:blue:wlan" |  | ||||||
| 		;; |  | ||||||
| 	alfa-network,ac1200rm|\ |  | ||||||
| 	awapn2403|\ |  | ||||||
| 	dir-645|\ |  | ||||||
| 	sk-wb8|\ |  | ||||||
| 	tplink,c2-v1|\ |  | ||||||
| 	wrh-300cr) |  | ||||||
| 		status_led="$boardname:green:wps" |  | ||||||
| 		;; |  | ||||||
| 	alfa-network,awusfree1) |  | ||||||
| 		status_led="$boardname:orange:system" |  | ||||||
| 		;; |  | ||||||
| 	all0239-3g|\ |  | ||||||
| 	dcs-930|\ |  | ||||||
| 	dir-300-b1|\ |  | ||||||
| 	dir-300-b7|\ |  | ||||||
| 	dir-320-b1|\ |  | ||||||
| 	dir-600-b1|\ |  | ||||||
| 	dir-610-a1|\ |  | ||||||
| 	dir-615-d|\ |  | ||||||
| 	dir-615-h1|\ |  | ||||||
| 	dir-620-a1|\ |  | ||||||
| 	dir-620-d1|\ |  | ||||||
| 	dwr-512-b|\ |  | ||||||
| 	dlink,dwr-116-a1|\ |  | ||||||
| 	gnubee,gb-pc1|\ |  | ||||||
| 	gnubee,gb-pc2|\ |  | ||||||
| 	hpm|\ |  | ||||||
| 	hw550-3g|\ |  | ||||||
| 	mac1200rv2|\ |  | ||||||
| 	miniembwifi|\ |  | ||||||
| 	mofi3500-3gn|\ |  | ||||||
| 	rut5xx|\ |  | ||||||
| 	v11st-fe|\ |  | ||||||
| 	wmr-300|\ |  | ||||||
| 	zbt-wg2626) |  | ||||||
| 		status_led="$boardname:green:status" |  | ||||||
| 		;; |  | ||||||
| 	dlink,dwr-921-c1) |  | ||||||
| 		status_led="$boardname:green:sigstrength" |  | ||||||
| 		;; |  | ||||||
| 	asl26555-8M|\ |  | ||||||
| 	asl26555-16M) |  | ||||||
| 		status_led="asl26555:green:power" |  | ||||||
| 		;; |  | ||||||
| 	atp-52b|\ |  | ||||||
| 	ew1200|\ |  | ||||||
| 	ip2202) |  | ||||||
| 		status_led="$boardname:green:run" |  | ||||||
| 		;; |  | ||||||
| 	c108) |  | ||||||
| 		status_led="$boardname:green:lan" |  | ||||||
| 		;; |  | ||||||
| 	cf-wr800n|\ |  | ||||||
| 	psg1208) |  | ||||||
| 		status_led="$boardname:white:wps" |  | ||||||
| 		;; |  | ||||||
| 	psg1218a|\ |  | ||||||
| 	psg1218b) |  | ||||||
| 		status_led="$boardname:yellow:status" |  | ||||||
| 		;; |  | ||||||
| 	cy-swr1100|\ |  | ||||||
| 	w502u|\ |  | ||||||
| 	youhua,wr1200js) |  | ||||||
| 		status_led="$boardname:blue:wps" |  | ||||||
| 		;; |  | ||||||
| 	d240|\ |  | ||||||
| 	dap-1350|\ |  | ||||||
| 	na930|\ |  | ||||||
| 	d-team,newifi-d2|\ |  | ||||||
| 	pbr-m1|\ |  | ||||||
| 	re350-v1|\ |  | ||||||
| 	rt-ac51u|\ |  | ||||||
| 	rt-n13u|\ |  | ||||||
| 	rt-n14u|\ |  | ||||||
| 	rt-n15|\ |  | ||||||
| 	rt-n56u|\ |  | ||||||
| 	tplink,c20-v1|\ |  | ||||||
| 	wl-330n|\ |  | ||||||
| 	wl-330n3g|\ |  | ||||||
| 	wli-tx4-ag300n|\ |  | ||||||
| 	y1|\ |  | ||||||
| 	y1s|\ |  | ||||||
| 	youku-yk1|\ |  | ||||||
| 	zorlik,zl5900v2) |  | ||||||
| 		status_led="$boardname:blue:power" |  | ||||||
| 		;; |  | ||||||
| 	dlink,dap-1522-a1|\ |  | ||||||
| 	phicomm,k2g|\ |  | ||||||
| 	k2p|\ |  | ||||||
| 	m3|\ |  | ||||||
| 	mir3g|\ |  | ||||||
| 	miwifi-nano) |  | ||||||
| 		status_led="$boardname:blue:status" |  | ||||||
| 		;; |  | ||||||
| 	db-wrt01|\ |  | ||||||
| 	esr-9753|\ |  | ||||||
| 	pbr-d1) |  | ||||||
| 		status_led="$boardname:orange:power" |  | ||||||
| 		;; |  | ||||||
| 	f5d8235-v1) |  | ||||||
| 		status_led="$boardname:blue:wired" |  | ||||||
| 		;; |  | ||||||
| 	f5d8235-v2) |  | ||||||
| 		status_led="$boardname:blue:router" |  | ||||||
| 		;; |  | ||||||
| 	f7c027|\ |  | ||||||
| 	timecloud) |  | ||||||
| 		status_led="$boardname:orange:status" |  | ||||||
| 		;; |  | ||||||
| 	hc5*61|\ |  | ||||||
| 	hc5661a|\ |  | ||||||
| 	jhr-n805r|\ |  | ||||||
| 	jhr-n926r|\ |  | ||||||
| 	mlw221|\ |  | ||||||
| 	mlwg2|\ |  | ||||||
| 	vonets,var11n-300) |  | ||||||
| 		status_led="$boardname:blue:system" |  | ||||||
| 		;; |  | ||||||
| 	hc5962) |  | ||||||
| 		status_led="$boardname:white:status" |  | ||||||
| 		;; |  | ||||||
| 	kimax,u35wf|\ |  | ||||||
| 	m2m) |  | ||||||
| 		status_led="$boardname:blue:wifi" |  | ||||||
| 		;; |  | ||||||
| 	linkits7688) |  | ||||||
| 		status_led="linkit-smart-7688:orange:wifi" |  | ||||||
| 		;; |  | ||||||
| 	gl-mt300n-v2) |  | ||||||
| 		status_led="$boardname:green:power" |  | ||||||
| 		;; |  | ||||||
| 	m4-4M|\ |  | ||||||
| 	m4-8M) |  | ||||||
| 		status_led="m4:blue:status" |  | ||||||
| 		;; |  | ||||||
| 	mikrotik,rbm11g|\ |  | ||||||
| 	mikrotik,rbm33g) |  | ||||||
| 		status_led="$boardname:green:usr" |  | ||||||
| 		;; |  | ||||||
| 	miwifi-mini|\ |  | ||||||
| 	zte-q7) |  | ||||||
| 		status_led="$boardname:red:status" |  | ||||||
| 		;; |  | ||||||
| 	mr-102n) |  | ||||||
| 		status_led="$boardname:amber:status" |  | ||||||
| 		;; |  | ||||||
| 	mr200) |  | ||||||
| 		status_led="$boardname:white:power" |  | ||||||
| 		;; |  | ||||||
| 	nw718) |  | ||||||
| 		status_led="$boardname:amber:cpu" |  | ||||||
| 		;; |  | ||||||
| 	newifi-d1) |  | ||||||
| 		status_led="$boardname:blue:status" |  | ||||||
| 		;; |  | ||||||
| 	omega2| \ |  | ||||||
| 	omega2p) |  | ||||||
| 		status_led="$boardname:amber:system" |  | ||||||
| 		;; |  | ||||||
| 	oy-0001|\ |  | ||||||
| 	sl-r7205) |  | ||||||
| 		status_led="$boardname:green:wifi" |  | ||||||
| 		;; |  | ||||||
| 	psr-680w) |  | ||||||
| 		status_led="$boardname:red:wan" |  | ||||||
| 		;; |  | ||||||
| 	px-4885-4M|\ |  | ||||||
| 	px-4885-8M) |  | ||||||
| 		status_led="px-4885:orange:wifi" |  | ||||||
| 		;; |  | ||||||
| 	re6500|\ |  | ||||||
| 	whr-1166d|\ |  | ||||||
| 	whr-600d) |  | ||||||
| 		status_led="$boardname:orange:wifi" |  | ||||||
| 		;; |  | ||||||
| 	mzk-ex300np|\ |  | ||||||
| 	rt-n10-plus|\ |  | ||||||
| 	tew-638apb-v2|\ |  | ||||||
| 	tew-691gr|\ |  | ||||||
| 	tew-692gr|\ |  | ||||||
| 	ur-326n4g|\ |  | ||||||
| 	ur-336un|\ |  | ||||||
| 	wf-2881) |  | ||||||
| 		status_led="$boardname:green:wps" |  | ||||||
| 		;; |  | ||||||
| 	rb750gr3) |  | ||||||
| 		status_led="$boardname:blue:pwr" |  | ||||||
| 		;; |  | ||||||
| 	sap-g3200u3) |  | ||||||
| 		status_led="$boardname:green:usb" |  | ||||||
| 		;; |  | ||||||
| 	u25awf-h1) |  | ||||||
| 		status_led="u25awf:red:wifi" |  | ||||||
| 		;; |  | ||||||
| 	u7621-06-256M-16M) |  | ||||||
| 		status_led="u7621-06:green:status" |  | ||||||
| 		;; |  | ||||||
| 	u7628-01-128M-16M) |  | ||||||
| 		status_led="u7628-01:green:power" |  | ||||||
| 		;; |  | ||||||
| 	v22rw-2x2) |  | ||||||
| 		status_led="$boardname:green:security" |  | ||||||
| 		;; |  | ||||||
| 	vocore-8M|\ |  | ||||||
| 	vocore-16M) |  | ||||||
| 		status_led="vocore:green:status" |  | ||||||
| 		;; |  | ||||||
| 	vocore2) |  | ||||||
| 		status_led="$boardname:fuchsia:status" |  | ||||||
| 		;; |  | ||||||
| 	vocore2lite) |  | ||||||
| 		status_led="$boardname:green:status" |  | ||||||
| 		;; |  | ||||||
| 	w306r-v20|\ |  | ||||||
| 	mqmaker,witi-256m|\ |  | ||||||
| 	mqmaker,witi-512m|\ |  | ||||||
| 	zbt-wr8305rt) |  | ||||||
| 		status_led="$boardname:green:sys" |  | ||||||
| 		;; |  | ||||||
| 	wcr-1166ds|\ |  | ||||||
| 	whr-300hp2|\ |  | ||||||
| 	wsr-1166|\ |  | ||||||
| 	wsr-600) |  | ||||||
| 		status_led="$boardname:green:power" |  | ||||||
| 		;; |  | ||||||
| 	wcr-150gn|\ |  | ||||||
| 	wl-351) |  | ||||||
| 		status_led="$boardname:amber:power" |  | ||||||
| 		;; |  | ||||||
| 	whr-g300n|\ |  | ||||||
| 	wlr-6000|\ |  | ||||||
| 	zbt-we2026) |  | ||||||
| 		status_led="$boardname:red:power" |  | ||||||
| 		;; |  | ||||||
| 	widora,neo-16m|\ |  | ||||||
| 	widora,neo-32m) |  | ||||||
| 		status_led="widora:orange:wifi" |  | ||||||
| 		;; |  | ||||||
| 	wzr-agl300nh) |  | ||||||
| 		status_led="$boardname:green:router" |  | ||||||
| 		;; |  | ||||||
| 	wizfi630a) |  | ||||||
| 		status_led="$boardname::run" |  | ||||||
| 		;; |  | ||||||
| 	wr512-3gn-4M|\ |  | ||||||
| 	wr512-3gn-8M) |  | ||||||
| 		status_led="wr512-3gn:green:wps" |  | ||||||
| 		;; |  | ||||||
| 	wrtnode2r | \ |  | ||||||
| 	wrtnode2p | \ |  | ||||||
| 	wrtnode) |  | ||||||
| 		status_led="wrtnode:blue:indicator" |  | ||||||
| 		;; |  | ||||||
| 	wt3020-4M|\ |  | ||||||
| 	wt3020-8M) |  | ||||||
| 		status_led="wt3020:blue:power" |  | ||||||
| 		;; |  | ||||||
| 	zbt-cpe102) |  | ||||||
| 		status_led="$boardname:green:4g-0" |  | ||||||
| 		;; |  | ||||||
| 	zbt-we826-16M|\ |  | ||||||
| 	zbt-we826-32M) |  | ||||||
| 		status_led="zbt-we826:green:power" |  | ||||||
| 		;; |  | ||||||
| 	zbtlink,zbt-we1226) |  | ||||||
| 		status_led="$boardname:green:wlan" |  | ||||||
| 		;; |  | ||||||
| 	zbt-wg3526-16M|\ |  | ||||||
| 	zbt-wg3526-32M) |  | ||||||
| 		status_led="zbt-wg3526:green:status" |  | ||||||
| 		;; |  | ||||||
| 	esac |  | ||||||
| } |  | ||||||
| 
 | 
 | ||||||
| set_state() { | set_state() { | ||||||
| 	get_status_led $1 | 	get_status_led $1 | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "edimax,3g-6200n", "ralink,rt3050-soc"; | 	compatible = "edimax,3g-6200n", "ralink,rt3050-soc"; | ||||||
| 	model = "Edimax 3g-6200n"; | 	model = "Edimax 3g-6200n"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_power; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	cfi@1f000000 { | 	cfi@1f000000 { | ||||||
| 		compatible = "cfi-flash"; | 		compatible = "cfi-flash"; | ||||||
| 		reg = <0x1f000000 0x800000>; | 		reg = <0x1f000000 0x800000>; | ||||||
| @ -50,7 +54,7 @@ | |||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		power { | 		led_power: power { | ||||||
| 			label = "3g-6200n:green:power"; | 			label = "3g-6200n:green:power"; | ||||||
| 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "edimax,3g-6200nl", "ralink,rt3050-soc"; | 	compatible = "edimax,3g-6200nl", "ralink,rt3050-soc"; | ||||||
| 	model = "Edimax 3g-6200nl"; | 	model = "Edimax 3g-6200nl"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_internet; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	cfi@1f000000 { | 	cfi@1f000000 { | ||||||
| 		compatible = "cfi-flash"; | 		compatible = "cfi-flash"; | ||||||
| 		reg = <0x1f000000 0x800000>; | 		reg = <0x1f000000 0x800000>; | ||||||
| @ -50,7 +54,7 @@ | |||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		internet { | 		led_internet: internet { | ||||||
| 			label = "3g-6200nl:green:internet"; | 			label = "3g-6200nl:green:internet"; | ||||||
| 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,10 +9,14 @@ | |||||||
| 	compatible = "tenda,3g150b", "ralink,rt5350-soc"; | 	compatible = "tenda,3g150b", "ralink,rt5350-soc"; | ||||||
| 	model = "Tenda 3G150B"; | 	model = "Tenda 3G150B"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_ap; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		ap { | 		led_ap: ap { | ||||||
| 			label = "3g150b:blue:ap"; | 			label = "3g150b:blue:ap"; | ||||||
| 			gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "tenda,3g300m", "ralink,rt3052-soc"; | 	compatible = "tenda,3g300m", "ralink,rt3052-soc"; | ||||||
| 	model = "Tenda 3G300M"; | 	model = "Tenda 3G300M"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_ap; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| @ -17,7 +21,7 @@ | |||||||
| 			gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		ap { | 		led_ap: ap { | ||||||
| 			label = "3g300m:blue:ap"; | 			label = "3g300m:blue:ap"; | ||||||
| 			gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "unbranded,a5-v11", "ralink,rt5350-soc"; | 	compatible = "unbranded,a5-v11", "ralink,rt5350-soc"; | ||||||
| 	model = "A5-V11"; | 	model = "A5-V11"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_power; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| @ -17,7 +21,7 @@ | |||||||
| 			gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		power { | 		led_power: power { | ||||||
| 			label = "a5-v11:red:power"; | 			label = "a5-v11:red:power"; | ||||||
| 			gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -41,6 +41,10 @@ | |||||||
| 	compatible = "alfa-network,ac1200rm", "ralink,mt7620a-soc"; | 	compatible = "alfa-network,ac1200rm", "ralink,mt7620a-soc"; | ||||||
| 	model = "ALFA Network AC1200RM"; | 	model = "ALFA Network AC1200RM"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_wps; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	chosen { | 	chosen { | ||||||
| 		bootargs = "console=ttyS0,115200"; | 		bootargs = "console=ttyS0,115200"; | ||||||
| 	}; | 	}; | ||||||
| @ -66,7 +70,7 @@ | |||||||
| 			gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		wps { | 		led_wps: wps { | ||||||
| 			label = "ac1200rm:green:wps"; | 			label = "ac1200rm:green:wps"; | ||||||
| 			gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>; | 			gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "aigale,ai-br100", "ralink,mt7620a-soc"; | 	compatible = "aigale,ai-br100", "ralink,mt7620a-soc"; | ||||||
| 	model = "Aigale Ai-BR100"; | 	model = "Aigale Ai-BR100"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_wlan; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| @ -17,7 +21,7 @@ | |||||||
| 			gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		wlan { | 		led_wlan: wlan { | ||||||
| 			label = "ai-br100:blue:wlan"; | 			label = "ai-br100:blue:wlan"; | ||||||
| 			gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "allnet,all0239-3g", "ralink,rt3052-soc"; | 	compatible = "allnet,all0239-3g", "ralink,rt3052-soc"; | ||||||
| 	model = "Allnet ALL0239-3G"; | 	model = "Allnet ALL0239-3G"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_status; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 
 | 
 | ||||||
| 	cfi@1f000000 { | 	cfi@1f000000 { | ||||||
| 		compatible = "cfi-flash"; | 		compatible = "cfi-flash"; | ||||||
| @ -55,7 +59,7 @@ | |||||||
| 			gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		status { | 		led_status: status { | ||||||
| 			label = "all0239-3g:green:status"; | 			label = "all0239-3g:green:status"; | ||||||
| 			gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "airlink101,ar670w", "ralink,rt2880-soc"; | 	compatible = "airlink101,ar670w", "ralink,rt2880-soc"; | ||||||
| 	model = "Airlink101 AR670W"; | 	model = "Airlink101 AR670W"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_power; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	cfi@bdc00000 { | 	cfi@bdc00000 { | ||||||
| 		compatible = "cfi-flash"; | 		compatible = "cfi-flash"; | ||||||
| 		reg = <0xbc400000 0x800000>; | 		reg = <0xbc400000 0x800000>; | ||||||
| @ -37,7 +41,7 @@ | |||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		status { | 		led_power: power { | ||||||
| 			label = "ar670w:green:power"; | 			label = "ar670w:green:power"; | ||||||
| 			gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "airlink101,ar725w", "ralink,rt2880-soc"; | 	compatible = "airlink101,ar725w", "ralink,rt2880-soc"; | ||||||
| 	model = "Airlink101 AR725W"; | 	model = "Airlink101 AR725W"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_power; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	cfi@bdc00000 { | 	cfi@bdc00000 { | ||||||
| 		compatible = "cfi-flash"; | 		compatible = "cfi-flash"; | ||||||
| 		reg = <0xbc400000 0x800000>; | 		reg = <0xbc400000 0x800000>; | ||||||
| @ -42,7 +46,7 @@ | |||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		status { | 		led_power: power { | ||||||
| 			label = "ar725w:green:power"; | 			label = "ar725w:green:power"; | ||||||
| 			gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; | 			gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -6,6 +6,10 @@ | |||||||
| / { | / { | ||||||
| 	compatible = "alphanetworks,asl26555", "ralink,rt3050-soc"; | 	compatible = "alphanetworks,asl26555", "ralink,rt3050-soc"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_power_green; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	gpio-keys-polled { | 	gpio-keys-polled { | ||||||
| 		compatible = "gpio-keys-polled"; | 		compatible = "gpio-keys-polled"; | ||||||
| 		#address-cells = <1>; | 		#address-cells = <1>; | ||||||
| @ -48,7 +52,7 @@ | |||||||
| 			gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; | 			gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		power-green { | 		led_power_green: power-green { | ||||||
| 			label = "asl26555:green:power"; | 			label = "asl26555:green:power"; | ||||||
| 			gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; | 			gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "argus,atp-52b", "ralink,rt3052-soc"; | 	compatible = "argus,atp-52b", "ralink,rt3052-soc"; | ||||||
| 	model = "Argus ATP-52B"; | 	model = "Argus ATP-52B"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_run; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	cfi@1f000000 { | 	cfi@1f000000 { | ||||||
| 		compatible = "cfi-flash"; | 		compatible = "cfi-flash"; | ||||||
| 		reg = <0x1f000000 0x800000>; | 		reg = <0x1f000000 0x800000>; | ||||||
| @ -42,7 +46,7 @@ | |||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		run { | 		led_run: run { | ||||||
| 			label = "atp-52b:green:run"; | 			label = "atp-52b:green:run"; | ||||||
| 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,10 +9,15 @@ | |||||||
| 	compatible = "asiarf,awapn2403", "ralink,rt3052-soc"; | 	compatible = "asiarf,awapn2403", "ralink,rt3052-soc"; | ||||||
| 	model = "AsiaRF AWAPN2403"; | 	model = "AsiaRF AWAPN2403"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_wps; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		link { | 		led_wps: wps { | ||||||
| 			label = "awapn2403:green:wps"; | 			label = "awapn2403:green:wps"; | ||||||
| 			gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -41,6 +41,10 @@ | |||||||
| 	compatible = "alfa-network,awusfree1", "mediatek,mt7628an-soc"; | 	compatible = "alfa-network,awusfree1", "mediatek,mt7628an-soc"; | ||||||
| 	model = "ALFA Network AWUSFREE1"; | 	model = "ALFA Network AWUSFREE1"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_system; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	chosen { | 	chosen { | ||||||
| 		bootargs = "console=ttyS0,115200"; | 		bootargs = "console=ttyS0,115200"; | ||||||
| 	}; | 	}; | ||||||
| @ -61,7 +65,7 @@ | |||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		system { | 		led_system: system { | ||||||
| 			label = "awusfree1:orange:system"; | 			label = "awusfree1:orange:system"; | ||||||
| 			gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "tplink,c2-v1", "ralink,mt7620a-soc"; | 	compatible = "tplink,c2-v1", "ralink,mt7620a-soc"; | ||||||
| 	model = "TP-Link Archer C2 v1"; | 	model = "TP-Link Archer C2 v1"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_wps; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	chosen { | 	chosen { | ||||||
| 		bootargs = "console=ttyS0,115200"; | 		bootargs = "console=ttyS0,115200"; | ||||||
| 	}; | 	}; | ||||||
| @ -35,7 +39,7 @@ | |||||||
| 			gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		wps { | 		led_wps: wps { | ||||||
| 			label = "c2-v1:green:wps"; | 			label = "c2-v1:green:wps"; | ||||||
| 			gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "tplink,c20-v1", "ralink,mt7620a-soc"; | 	compatible = "tplink,c20-v1", "ralink,mt7620a-soc"; | ||||||
| 	model = "TP-Link Archer C20 v1"; | 	model = "TP-Link Archer C20 v1"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_power; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	chosen { | 	chosen { | ||||||
| 		bootargs = "console=ttyS0,115200"; | 		bootargs = "console=ttyS0,115200"; | ||||||
| 	}; | 	}; | ||||||
| @ -21,7 +25,7 @@ | |||||||
| 			gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		power { | 		led_power: power { | ||||||
| 			label = "c20-v1:blue:power"; | 			label = "c20-v1:blue:power"; | ||||||
| 			gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; | ||||||
| 			default-state = "keep"; | 			default-state = "keep"; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "tplink,c20-v4", "mediatek,mt7628an-soc"; | 	compatible = "tplink,c20-v4", "mediatek,mt7628an-soc"; | ||||||
| 	model = "TP-Link Archer C20 v4"; | 	model = "TP-Link Archer C20 v4"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_power; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| @ -17,7 +21,7 @@ | |||||||
| 			gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		power { | 		led_power: power { | ||||||
| 			label = "c20-v4:green:power"; | 			label = "c20-v4:green:power"; | ||||||
| 			gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "tplink,c50", "ralink,mt7620a-soc"; | 	compatible = "tplink,c50", "ralink,mt7620a-soc"; | ||||||
| 	model = "TP-Link Archer C50"; | 	model = "TP-Link Archer C50"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_power; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	chosen { | 	chosen { | ||||||
| 		bootargs = "console=ttyS0,115200"; | 		bootargs = "console=ttyS0,115200"; | ||||||
| 	}; | 	}; | ||||||
| @ -21,7 +25,7 @@ | |||||||
| 			gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		power { | 		led_power: power { | ||||||
| 			label = "c50:green:power"; | 			label = "c50:green:power"; | ||||||
| 			gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; | ||||||
| 			default-state = "on"; | 			default-state = "on"; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "tplink,c50-v3", "mediatek,mt7628an-soc"; | 	compatible = "tplink,c50-v3", "mediatek,mt7628an-soc"; | ||||||
| 	model = "TP-Link Archer C50 v3"; | 	model = "TP-Link Archer C50 v3"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_power; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	gpio-keys-polled { | 	gpio-keys-polled { | ||||||
| 		compatible = "gpio-keys-polled"; | 		compatible = "gpio-keys-polled"; | ||||||
| 		#address-cells = <1>; | 		#address-cells = <1>; | ||||||
| @ -36,7 +40,7 @@ | |||||||
| 			gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		power { | 		led_power: power { | ||||||
| 			label = "c50-v3:green:power"; | 			label = "c50-v3:green:power"; | ||||||
| 			gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "tplink,mr200", "ralink,mt7620a-soc"; | 	compatible = "tplink,mr200", "ralink,mt7620a-soc"; | ||||||
| 	model = "TP-Link Archer MR200"; | 	model = "TP-Link Archer MR200"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_power; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	chosen { | 	chosen { | ||||||
| 		bootargs = "console=ttyS0,115200"; | 		bootargs = "console=ttyS0,115200"; | ||||||
| 	}; | 	}; | ||||||
| @ -26,7 +30,7 @@ | |||||||
| 			gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		power { | 		led_power: power { | ||||||
| 			label = "mr200:white:power"; | 			label = "mr200:white:power"; | ||||||
| 			gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "edimax,br-6475nd", "ralink,rt3883-soc"; | 	compatible = "edimax,br-6475nd", "ralink,rt3883-soc"; | ||||||
| 	model = "Edimax BR-6475nD"; | 	model = "Edimax BR-6475nD"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_power; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	gpio-keys-polled { | 	gpio-keys-polled { | ||||||
| 		compatible = "gpio-keys-polled"; | 		compatible = "gpio-keys-polled"; | ||||||
| 		#address-cells = <1>; | 		#address-cells = <1>; | ||||||
| @ -32,7 +36,7 @@ | |||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		power { | 		led_power: power { | ||||||
| 			label = "br-6475nd:green:power"; | 			label = "br-6475nd:green:power"; | ||||||
| 			gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -42,6 +42,10 @@ | |||||||
| 	compatible = "hnet,c108", "ralink,mt7620a-soc"; | 	compatible = "hnet,c108", "ralink,mt7620a-soc"; | ||||||
| 	model = "HNET C108"; | 	model = "HNET C108"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_lan_green; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	chosen { | 	chosen { | ||||||
| 		bootargs = "console=ttyS0,115200"; | 		bootargs = "console=ttyS0,115200"; | ||||||
| 	}; | 	}; | ||||||
| @ -80,7 +84,7 @@ | |||||||
| 			gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>; | 			gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>; | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		lan_green { | 		led_lan_green: lan_green { | ||||||
| 			label = "c108:green:lan"; | 			label = "c108:green:lan"; | ||||||
| 			gpios = <&gpio2 4 GPIO_ACTIVE_HIGH>; | 			gpios = <&gpio2 4 GPIO_ACTIVE_HIGH>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "comfast,cf-wr800n", "ralink,mt7620n-soc"; | 	compatible = "comfast,cf-wr800n", "ralink,mt7620n-soc"; | ||||||
| 	model = "Comfast CF-WR800N"; | 	model = "Comfast CF-WR800N"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_wps; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	chosen { | 	chosen { | ||||||
| 		bootargs = "console=ttyS0,115200"; | 		bootargs = "console=ttyS0,115200"; | ||||||
| 	}; | 	}; | ||||||
| @ -26,7 +30,7 @@ | |||||||
| 			gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		wps { | 		led_wps: wps { | ||||||
| 			label = "cf-wr800n:white:wps"; | 			label = "cf-wr800n:white:wps"; | ||||||
| 			gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,10 +9,14 @@ | |||||||
| 	compatible = "planex,cs-qr10", "ralink,mt7620a-soc"; | 	compatible = "planex,cs-qr10", "ralink,mt7620a-soc"; | ||||||
| 	model = "Planex CS-QR10"; | 	model = "Planex CS-QR10"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_power; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		power { | 		led_power: power { | ||||||
| 			label = "cs-qr10:red:power"; | 			label = "cs-qr10:red:power"; | ||||||
| 			gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "samsung,cy-swr1100", "ralink,rt3883-soc"; | 	compatible = "samsung,cy-swr1100", "ralink,rt3883-soc"; | ||||||
| 	model = "Samsung CY-SWR1100"; | 	model = "Samsung CY-SWR1100"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_wps; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	nor-flash@1c000000 { | 	nor-flash@1c000000 { | ||||||
| 		compatible = "cfi-flash"; | 		compatible = "cfi-flash"; | ||||||
| 		reg = <0x1c000000 0x800000>; | 		reg = <0x1c000000 0x800000>; | ||||||
| @ -80,7 +84,7 @@ | |||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		wps { | 		led_wps: wps { | ||||||
| 			label = "cy-swr1100:blue:wps"; | 			label = "cy-swr1100:blue:wps"; | ||||||
| 			gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "huawei,d105", "ralink,rt3050-soc"; | 	compatible = "huawei,d105", "ralink,rt3050-soc"; | ||||||
| 	model = "Huawei D105"; | 	model = "Huawei D105"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_power; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	cfi@1f000000 { | 	cfi@1f000000 { | ||||||
| 		compatible = "cfi-flash"; | 		compatible = "cfi-flash"; | ||||||
| 		reg = <0x1f000000 0x800000>; | 		reg = <0x1f000000 0x800000>; | ||||||
| @ -44,12 +48,12 @@ | |||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		power { | 		led_power: power { | ||||||
| 			label = "d105:red:power"; | 			label = "d105:red:power"; | ||||||
| 			gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		wps { | 		usb { | ||||||
| 			label = "d105:green:usb"; | 			label = "d105:green:usb"; | ||||||
| 			gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -42,6 +42,10 @@ | |||||||
| 	compatible = "sanlinking,d240", "ralink,mt7620a-soc"; | 	compatible = "sanlinking,d240", "ralink,mt7620a-soc"; | ||||||
| 	model = "Sanlinking Technologies D240"; | 	model = "Sanlinking Technologies D240"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_power; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	chosen { | 	chosen { | ||||||
| 		bootargs = "console=ttyS0,115200"; | 		bootargs = "console=ttyS0,115200"; | ||||||
| 	}; | 	}; | ||||||
| @ -67,7 +71,7 @@ | |||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		power { | 		led_power: power { | ||||||
| 			label = "d240:blue:power"; | 			label = "d240:blue:power"; | ||||||
| 			gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>; | 			gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "dlink,dap-1350", "ralink,rt3052-soc"; | 	compatible = "dlink,dap-1350", "ralink,rt3052-soc"; | ||||||
| 	model = "D-Link DAP-1350"; | 	model = "D-Link DAP-1350"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_power_blue; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	chosen { | 	chosen { | ||||||
| 		bootargs = "console=ttyS0,115200"; | 		bootargs = "console=ttyS0,115200"; | ||||||
| 	}; | 	}; | ||||||
| @ -54,7 +58,7 @@ | |||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		power { | 		led_power_blue: power { | ||||||
| 			label = "dap-1350:blue:power"; | 			label = "dap-1350:blue:power"; | ||||||
| 			gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "dlink,dap-1522-a1", "ralink,rt2880-soc"; | 	compatible = "dlink,dap-1522-a1", "ralink,rt2880-soc"; | ||||||
| 	model = "D-Link DAP-1522 A1"; | 	model = "D-Link DAP-1522 A1"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_status; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	cfi@bc400000 { | 	cfi@bc400000 { | ||||||
| 		compatible = "cfi-flash"; | 		compatible = "cfi-flash"; | ||||||
| 		reg = <0xbc400000 0x800000>; | 		reg = <0xbc400000 0x800000>; | ||||||
| @ -92,7 +96,7 @@ | |||||||
| 			gpios = <&gpio2 19 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio2 19 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		status { | 		led_status: status { | ||||||
| 			label = "dap-1522-a1:blue:status"; | 			label = "dap-1522-a1:blue:status"; | ||||||
| 			gpios = <&gpio2 20 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio2 20 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,10 +9,14 @@ | |||||||
| 	compatible = "planex,db-wrt01", "ralink,mt7620a-soc"; | 	compatible = "planex,db-wrt01", "ralink,mt7620a-soc"; | ||||||
| 	model = "Planex DB-WRT01"; | 	model = "Planex DB-WRT01"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_power; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		power { | 		led_power: power { | ||||||
| 			label = "db-wrt01:orange:power"; | 			label = "db-wrt01:orange:power"; | ||||||
| 			gpios = <&gpio1 1 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio1 1 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "dlink,dch-m225", "ralink,mt7620a-soc"; | 	compatible = "dlink,dch-m225", "ralink,mt7620a-soc"; | ||||||
| 	model = "D-Link DCH-M225"; | 	model = "D-Link DCH-M225"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_power; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	gpio-keys-polled { | 	gpio-keys-polled { | ||||||
| 		compatible = "gpio-keys-polled"; | 		compatible = "gpio-keys-polled"; | ||||||
| 		#address-cells = <1>; | 		#address-cells = <1>; | ||||||
| @ -31,7 +35,7 @@ | |||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		power { | 		led_power: power { | ||||||
| 			label = "dch-m225:green:power"; | 			label = "dch-m225:green:power"; | ||||||
| 			gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "dlink,dcs-930", "ralink,rt3050-soc"; | 	compatible = "dlink,dcs-930", "ralink,rt3050-soc"; | ||||||
| 	model = "D-Link DCS-930"; | 	model = "D-Link DCS-930"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_status; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	cfi@1f000000 { | 	cfi@1f000000 { | ||||||
| 		compatible = "cfi-flash"; | 		compatible = "cfi-flash"; | ||||||
| 		reg = <0x1f000000 0x400000>; | 		reg = <0x1f000000 0x400000>; | ||||||
| @ -59,7 +63,7 @@ | |||||||
| 			gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		power { | 		led_status: status { | ||||||
| 			label = "dcs-930:green:status"; | 			label = "dcs-930:green:status"; | ||||||
| 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,10 +9,14 @@ | |||||||
| 	compatible = "dlink,dcs-930l-b1", "ralink,rt5350-soc"; | 	compatible = "dlink,dcs-930l-b1", "ralink,rt5350-soc"; | ||||||
| 	model = "D-Link DCS-930L B1"; | 	model = "D-Link DCS-930L B1"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_power; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		power { | 		led_power: power { | ||||||
| 			label = "dcs-930l-b1:red:power"; | 			label = "dcs-930l-b1:red:power"; | ||||||
| 			gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "dlink,dir-300-b1", "ralink,rt3050-soc"; | 	compatible = "dlink,dir-300-b1", "ralink,rt3050-soc"; | ||||||
| 	model = "D-Link DIR-300 B1"; | 	model = "D-Link DIR-300 B1"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_status_green; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	cfi@1f000000 { | 	cfi@1f000000 { | ||||||
| 		compatible = "cfi-flash"; | 		compatible = "cfi-flash"; | ||||||
| 		reg = <0x1f000000 0x800000>; | 		reg = <0x1f000000 0x800000>; | ||||||
| @ -68,7 +72,7 @@ | |||||||
| 			gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		status2 { | 		led_status_green: status2 { | ||||||
| 			label = "dir-300-b1:green:status"; | 			label = "dir-300-b1:green:status"; | ||||||
| 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,10 +9,14 @@ | |||||||
| 	compatible = "dlink,dir-300-b7", "ralink,rt5350-soc"; | 	compatible = "dlink,dir-300-b7", "ralink,rt5350-soc"; | ||||||
| 	model = "D-Link DIR-300 B7"; | 	model = "D-Link DIR-300 B7"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_status; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		status { | 		led_status: status { | ||||||
| 			label = "dir-300-b7:green:status"; | 			label = "dir-300-b7:green:status"; | ||||||
| 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,10 +9,14 @@ | |||||||
| 	compatible = "dlink,dir-320-b1", "ralink,rt5350-soc"; | 	compatible = "dlink,dir-320-b1", "ralink,rt5350-soc"; | ||||||
| 	model = "D-Link DIR-320 B1"; | 	model = "D-Link DIR-320 B1"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_status; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		status { | 		led_status: status { | ||||||
| 			label = "dir-320-b1:green:status"; | 			label = "dir-320-b1:green:status"; | ||||||
| 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "dlink,dir-600-b1", "ralink,rt3050-soc"; | 	compatible = "dlink,dir-600-b1", "ralink,rt3050-soc"; | ||||||
| 	model = "D-Link DIR-600 B1"; | 	model = "D-Link DIR-600 B1"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_status_green; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	cfi@1f000000 { | 	cfi@1f000000 { | ||||||
| 		compatible = "cfi-flash"; | 		compatible = "cfi-flash"; | ||||||
| 		reg = <0x1f000000 0x800000>; | 		reg = <0x1f000000 0x800000>; | ||||||
| @ -68,7 +72,7 @@ | |||||||
| 			gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		status2 { | 		led_status_green: status2 { | ||||||
| 			label = "dir-600-b1:green:status"; | 			label = "dir-600-b1:green:status"; | ||||||
| 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,10 +9,14 @@ | |||||||
| 	compatible = "dlink,dir-610-a1", "ralink,rt5350-soc"; | 	compatible = "dlink,dir-610-a1", "ralink,rt5350-soc"; | ||||||
| 	model = "D-Link DIR-610 A1"; | 	model = "D-Link DIR-610 A1"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_status; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		status { | 		led_status: status { | ||||||
| 			label = "dir-610-a1:green:status"; | 			label = "dir-610-a1:green:status"; | ||||||
| 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "dlink,dir-615-d1", "ralink,rt3050-soc"; | 	compatible = "dlink,dir-615-d1", "ralink,rt3050-soc"; | ||||||
| 	model = "D-Link DIR-615 D"; | 	model = "D-Link DIR-615 D"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_status_green; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	cfi@1f000000 { | 	cfi@1f000000 { | ||||||
| 		compatible = "cfi-flash"; | 		compatible = "cfi-flash"; | ||||||
| 		reg = <0x1f000000 0x800000>; | 		reg = <0x1f000000 0x800000>; | ||||||
| @ -68,7 +72,7 @@ | |||||||
| 			gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		status2 { | 		led_status_green: status2 { | ||||||
| 			label = "dir-615-d:green:status"; | 			label = "dir-615-d:green:status"; | ||||||
| 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "dlink,dir-615-h1", "ralink,rt3352-soc"; | 	compatible = "dlink,dir-615-h1", "ralink,rt3352-soc"; | ||||||
| 	model = "D-Link DIR-615 H1"; | 	model = "D-Link DIR-615 H1"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_status_green; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| @ -17,7 +21,7 @@ | |||||||
| 			gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; | 			gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		status2 { | 		led_status_green: status2 { | ||||||
| 			label = "dir-615-h1:green:status"; | 			label = "dir-615-h1:green:status"; | ||||||
| 			gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; | 			gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "dlink,dir-620-a1", "ralink,rt3050-soc"; | 	compatible = "dlink,dir-620-a1", "ralink,rt3050-soc"; | ||||||
| 	model = "D-Link DIR-620 A1"; | 	model = "D-Link DIR-620 A1"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_status_green; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	cfi@1f000000 { | 	cfi@1f000000 { | ||||||
| 		compatible = "cfi-flash"; | 		compatible = "cfi-flash"; | ||||||
| 		reg = <0x1f000000 0x800000>; | 		reg = <0x1f000000 0x800000>; | ||||||
| @ -68,7 +72,7 @@ | |||||||
| 			gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		status2 { | 		led_status_green: status2 { | ||||||
| 			label = "dir-620-a1:green:status"; | 			label = "dir-620-a1:green:status"; | ||||||
| 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,10 +9,14 @@ | |||||||
| 	compatible = "dlink,dir-620-d1", "ralink,rt3352-soc"; | 	compatible = "dlink,dir-620-d1", "ralink,rt3352-soc"; | ||||||
| 	model = "D-Link DIR-620 D1"; | 	model = "D-Link DIR-620 D1"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_status; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		status { | 		led_status: status { | ||||||
| 			label = "dir-620-d1:green:status"; | 			label = "dir-620-d1:green:status"; | ||||||
| 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "dlink,dir-645", "ralink,rt3883-soc"; | 	compatible = "dlink,dir-645", "ralink,rt3883-soc"; | ||||||
| 	model = "D-Link DIR-645"; | 	model = "D-Link DIR-645"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_wps; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	rtl8367b { | 	rtl8367b { | ||||||
| 		compatible = "realtek,rtl8367b"; | 		compatible = "realtek,rtl8367b"; | ||||||
| 		gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>; | 		gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>; | ||||||
| @ -43,7 +47,7 @@ | |||||||
| 			gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		wps { | 		led_wps: wps { | ||||||
| 			label = "dir-645:green:wps"; | 			label = "dir-645:green:wps"; | ||||||
| 			gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>; | 			gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "dlink,dir-810l", "ralink,mt7620a-soc"; | 	compatible = "dlink,dir-810l", "ralink,mt7620a-soc"; | ||||||
| 	model = "D-Link DIR-810L"; | 	model = "D-Link DIR-810L"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_power_green; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	gpio-keys-polled { | 	gpio-keys-polled { | ||||||
| 		compatible = "gpio-keys-polled"; | 		compatible = "gpio-keys-polled"; | ||||||
| 		#address-cells = <1>; | 		#address-cells = <1>; | ||||||
| @ -31,7 +35,7 @@ | |||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		power { | 		led_power_green: power { | ||||||
| 			label = "dir-810l:green:power"; | 			label = "dir-810l:green:power"; | ||||||
| 			gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; | 			gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; | ||||||
| 		}; | 		}; | ||||||
| @ -41,7 +45,7 @@ | |||||||
| 			gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; | 			gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		status { | 		power2 { | ||||||
| 			label = "dir-810l:orange:power"; | 			label = "dir-810l:orange:power"; | ||||||
| 			gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; | 			gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "dlink,dir-860l-b1", "mediatek,mt7621-soc"; | 	compatible = "dlink,dir-860l-b1", "mediatek,mt7621-soc"; | ||||||
| 	model = "D-Link DIR-860L B1"; | 	model = "D-Link DIR-860L B1"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_power_green; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	memory@0 { | 	memory@0 { | ||||||
| 		device_type = "memory"; | 		device_type = "memory"; | ||||||
| 		reg = <0x0 0x8000000>; | 		reg = <0x0 0x8000000>; | ||||||
| @ -26,7 +30,7 @@ | |||||||
| 			gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		power2 { | 		led_power_green: power2 { | ||||||
| 			label = "dir-860l-b1:green:power"; | 			label = "dir-860l-b1:green:power"; | ||||||
| 			gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "dlink,dwr-116-a1", "ralink,mt7620n-soc"; | 	compatible = "dlink,dwr-116-a1", "ralink,mt7620n-soc"; | ||||||
| 	model = "D-Link DWR-116 A1/A2"; | 	model = "D-Link DWR-116 A1/A2"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_status; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	gpio-keys-polled { | 	gpio-keys-polled { | ||||||
| 		compatible = "gpio-keys-polled"; | 		compatible = "gpio-keys-polled"; | ||||||
| 		#address-cells = <1>; | 		#address-cells = <1>; | ||||||
| @ -31,7 +35,7 @@ | |||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		status { | 		led_status: status { | ||||||
| 			label = "dwr-116-a1:green:status"; | 			label = "dwr-116-a1:green:status"; | ||||||
| 			gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; | 			gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "dlink,dwr-512-b", "ralink,rt5350-soc"; | 	compatible = "dlink,dwr-512-b", "ralink,rt5350-soc"; | ||||||
| 	model = "D-Link DWR-512 B"; | 	model = "D-Link DWR-512 B"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_status; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	gpio-keys-polled { | 	gpio-keys-polled { | ||||||
| 		compatible = "gpio-keys-polled"; | 		compatible = "gpio-keys-polled"; | ||||||
| 		#address-cells = <1>; | 		#address-cells = <1>; | ||||||
| @ -35,7 +39,7 @@ | |||||||
| 			label = "dwr-512-b:green:sms"; | 			label = "dwr-512-b:green:sms"; | ||||||
| 			gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; | 			gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; | ||||||
| 		}; | 		}; | ||||||
| 		status { | 		led_status: status { | ||||||
| 			label = "dwr-512-b:green:status"; | 			label = "dwr-512-b:green:status"; | ||||||
| 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "dlink,dwr-921-c1", "ralink,mt7620n-soc"; | 	compatible = "dlink,dwr-921-c1", "ralink,mt7620n-soc"; | ||||||
| 	model = "D-Link DWR-921 C1"; | 	model = "D-Link DWR-921 C1"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_sstrenghg; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	gpio-keys-polled { | 	gpio-keys-polled { | ||||||
| 	compatible = "gpio-keys-polled"; | 	compatible = "gpio-keys-polled"; | ||||||
| 		#address-cells = <1>; | 		#address-cells = <1>; | ||||||
| @ -41,7 +45,7 @@ | |||||||
| 			gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; | 			gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		sstrengthg { | 		led_sstrenghg: sstrengthg { | ||||||
| 			label = "dwr-921-c1:green:sigstrength"; | 			label = "dwr-921-c1:green:sigstrength"; | ||||||
| 			gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -19,6 +19,10 @@ | |||||||
| 	compatible = "linksys,e1700", "ralink,mt7620a-soc"; | 	compatible = "linksys,e1700", "ralink,mt7620a-soc"; | ||||||
| 	model = "Linksys E1700"; | 	model = "Linksys E1700"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_power; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	gpio-keys-polled { | 	gpio-keys-polled { | ||||||
| 		compatible = "gpio-keys-polled"; | 		compatible = "gpio-keys-polled"; | ||||||
| 		#address-cells = <1>; | 		#address-cells = <1>; | ||||||
| @ -41,7 +45,7 @@ | |||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		power { | 		led_power: power { | ||||||
| 			label = "e1700:green:power"; | 			label = "e1700:green:power"; | ||||||
| 			gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "engenius,esr-9753", "ralink,rt3052-soc"; | 	compatible = "engenius,esr-9753", "ralink,rt3052-soc"; | ||||||
| 	model = "Senao / EnGenius ESR-9753"; | 	model = "Senao / EnGenius ESR-9753"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_power; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	cfi@1f000000 { | 	cfi@1f000000 { | ||||||
| 		compatible = "cfi-flash"; | 		compatible = "cfi-flash"; | ||||||
| 		reg = <0x1f000000 0x800000>; | 		reg = <0x1f000000 0x800000>; | ||||||
| @ -44,7 +48,7 @@ | |||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		power { | 		led_power: power { | ||||||
| 			label = "esr-9753:orange:power"; | 			label = "esr-9753:orange:power"; | ||||||
| 			gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "afoundry,ew1200", "mediatek,mt7621-soc"; | 	compatible = "afoundry,ew1200", "mediatek,mt7621-soc"; | ||||||
| 	model = "EW1200"; | 	model = "EW1200"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_run; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	memory@0 { | 	memory@0 { | ||||||
| 		device_type = "memory"; | 		device_type = "memory"; | ||||||
| 		reg = <0x0 0x8000000>; | 		reg = <0x0 0x8000000>; | ||||||
| @ -40,7 +44,7 @@ | |||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		status { | 		led_run: run { | ||||||
| 			label = "ew1200:green:run"; | 			label = "ew1200:green:run"; | ||||||
| 			gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>; | 			gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -19,6 +19,10 @@ | |||||||
| 	compatible = "netgear,ex2700", "ralink,mt7620a-soc"; | 	compatible = "netgear,ex2700", "ralink,mt7620a-soc"; | ||||||
| 	model = "Netgear EX2700"; | 	model = "Netgear EX2700"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_power_green; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	chosen { | 	chosen { | ||||||
| 		bootargs = "console=ttyS0,57600"; | 		bootargs = "console=ttyS0,57600"; | ||||||
| 	}; | 	}; | ||||||
| @ -26,7 +30,7 @@ | |||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		power_g { | 		led_power_green: power_g { | ||||||
| 			label = "ex2700:green:power"; | 			label = "ex2700:green:power"; | ||||||
| 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | ||||||
| 			default-state = "on"; | 			default-state = "on"; | ||||||
|  | |||||||
| @ -11,6 +11,10 @@ | |||||||
| 	compatible = "netgear,ex3700", "ralink,mt7620a-soc"; | 	compatible = "netgear,ex3700", "ralink,mt7620a-soc"; | ||||||
| 	model = "Netgear EX3700/EX3800"; | 	model = "Netgear EX3700/EX3800"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_power_green; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	chosen { | 	chosen { | ||||||
| 		bootargs = "console=ttyS0,57600"; | 		bootargs = "console=ttyS0,57600"; | ||||||
| 	}; | 	}; | ||||||
| @ -18,7 +22,7 @@ | |||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		power_g { | 		led_power_green: power_g { | ||||||
| 			label = "ex3700:green:power"; | 			label = "ex3700:green:power"; | ||||||
| 			gpios = <&gpio2 23 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio2 23 GPIO_ACTIVE_LOW>; | ||||||
| 			default-state = "on"; | 			default-state = "on"; | ||||||
|  | |||||||
| @ -11,6 +11,10 @@ | |||||||
| 	compatible = "belkin,f5d8235-v1", "ralink,rt2880-soc"; | 	compatible = "belkin,f5d8235-v1", "ralink,rt2880-soc"; | ||||||
| 	model = "Belkin F5D8235 v1"; | 	model = "Belkin F5D8235 v1"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_wired_blue; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	pci@440000 { | 	pci@440000 { | ||||||
| 		status = "ok"; | 		status = "ok"; | ||||||
| 	}; | 	}; | ||||||
| @ -161,7 +165,7 @@ | |||||||
| 			gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		wired { | 		led_wired_blue: wired { | ||||||
| 			label = "f5d8235-v1:blue:wired"; | 			label = "f5d8235-v1:blue:wired"; | ||||||
| 			gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "belkin,f5d8235-v2", "ralink,rt3052-soc"; | 	compatible = "belkin,f5d8235-v2", "ralink,rt3052-soc"; | ||||||
| 	model = "Belkin F5D8235 v2"; | 	model = "Belkin F5D8235 v2"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_router; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	cfi@1f000000 { | 	cfi@1f000000 { | ||||||
| 		compatible = "cfi-flash"; | 		compatible = "cfi-flash"; | ||||||
| 		reg = <0x1f000000 0x800000>; | 		reg = <0x1f000000 0x800000>; | ||||||
| @ -68,7 +72,7 @@ | |||||||
| 			gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		router { | 		led_router: router { | ||||||
| 			label = "f5d8235-v2:blue:router"; | 			label = "f5d8235-v2:blue:router"; | ||||||
| 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "belkin,f7c027", "ralink,rt5350-soc"; | 	compatible = "belkin,f7c027", "ralink,rt5350-soc"; | ||||||
| 	model = "Belkin F7C027"; | 	model = "Belkin F7C027"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_status_orange; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| @ -22,7 +26,7 @@ | |||||||
| 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		orange { | 		led_status_orange: orange { | ||||||
| 			label = "f7c027:orange:status"; | 			label = "f7c027:orange:status"; | ||||||
| 			gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "firefly,firewrt", "mediatek,mt7621-soc"; | 	compatible = "firefly,firewrt", "mediatek,mt7621-soc"; | ||||||
| 	model = "Firefly FireWRT"; | 	model = "Firefly FireWRT"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_power; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	memory@0 { | 	memory@0 { | ||||||
| 		device_type = "memory"; | 		device_type = "memory"; | ||||||
| 		reg = <0x0 0x1c000000>, <0x20000000 0x4000000>; | 		reg = <0x0 0x1c000000>, <0x20000000 0x4000000>; | ||||||
| @ -21,7 +25,7 @@ | |||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		power { | 		led_power: power { | ||||||
| 			label = "firewrt:green:power"; | 			label = "firewrt:green:power"; | ||||||
| 			gpios = <&gpio0 22 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 22 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "fon,fonera20n", "ralink,rt3052-soc"; | 	compatible = "fon,fonera20n", "ralink,rt3052-soc"; | ||||||
| 	model = "La Fonera 2.0N"; | 	model = "La Fonera 2.0N"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_power; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	cfi@1f000000 { | 	cfi@1f000000 { | ||||||
| 		compatible = "cfi-flash"; | 		compatible = "cfi-flash"; | ||||||
| 		reg = <0x1f000000 0x800000>; | 		reg = <0x1f000000 0x800000>; | ||||||
| @ -49,7 +53,7 @@ | |||||||
| 			gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		power { | 		led_power: power { | ||||||
| 			label = "fonera20n:green:power"; | 			label = "fonera20n:green:power"; | ||||||
| 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "gnubee,gb-pc1", "mediatek,mt7621-soc"; | 	compatible = "gnubee,gb-pc1", "mediatek,mt7621-soc"; | ||||||
| 	model = "GB-PC1"; | 	model = "GB-PC1"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_status; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	memory@0 { | 	memory@0 { | ||||||
| 		device_type = "memory"; | 		device_type = "memory"; | ||||||
| 		reg = <0x0 0x1c000000>, <0x20000000 0x4000000>; | 		reg = <0x0 0x1c000000>, <0x20000000 0x4000000>; | ||||||
| @ -39,7 +43,7 @@ | |||||||
| 			gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		status { | 		led_status: status { | ||||||
| 			label = "gb-pc1:green:status"; | 			label = "gb-pc1:green:status"; | ||||||
| 			gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "gnubee,gb-pc2", "mediatek,mt7621-soc"; | 	compatible = "gnubee,gb-pc2", "mediatek,mt7621-soc"; | ||||||
| 	model = "GB-PC2"; | 	model = "GB-PC2"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_status; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	memory@0 { | 	memory@0 { | ||||||
| 		device_type = "memory"; | 		device_type = "memory"; | ||||||
| 		reg = <0x0 0x1c000000>, <0x20000000 0x4000000>; | 		reg = <0x0 0x1c000000>, <0x20000000 0x4000000>; | ||||||
| @ -39,7 +43,7 @@ | |||||||
| 			gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		status { | 		led_status: status { | ||||||
| 			label = "gb-pc2:green:status"; | 			label = "gb-pc2:green:status"; | ||||||
| 			gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "glinet,gl-mt300n-v2", "ralink,mt7620an-soc"; | 	compatible = "glinet,gl-mt300n-v2", "ralink,mt7620an-soc"; | ||||||
| 	model = "GL-MT300N-V2"; | 	model = "GL-MT300N-V2"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_power; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	chosen { | 	chosen { | ||||||
| 		bootargs = "console=ttyS0,115200"; | 		bootargs = "console=ttyS0,115200"; | ||||||
| 	}; | 	}; | ||||||
| @ -21,7 +25,7 @@ | |||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		power { | 		led_power: power { | ||||||
| 			label = "gl-mt300n-v2:green:power"; | 			label = "gl-mt300n-v2:green:power"; | ||||||
| 			default-state = "on"; | 			default-state = "on"; | ||||||
| 			gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; | ||||||
|  | |||||||
| @ -6,10 +6,14 @@ | |||||||
| 	compatible = "hiwifi,hc5661", "hiwifi,hc5x61", "ralink,mt7620a-soc"; | 	compatible = "hiwifi,hc5661", "hiwifi,hc5x61", "ralink,mt7620a-soc"; | ||||||
| 	model = "HiWiFi HC5661"; | 	model = "HiWiFi HC5661"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_system; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		system { | 		led_system: system { | ||||||
| 			label = "hc5661:blue:system"; | 			label = "hc5661:blue:system"; | ||||||
| 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "hiwifi,hc5661a", "mediatek,mt7628an-soc"; | 	compatible = "hiwifi,hc5661a", "mediatek,mt7628an-soc"; | ||||||
| 	model = "HiWiFi HC5661A"; | 	model = "HiWiFi HC5661A"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_system; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	chosen { | 	chosen { | ||||||
| 		bootargs = "console=ttyS0,115200"; | 		bootargs = "console=ttyS0,115200"; | ||||||
| 	}; | 	}; | ||||||
| @ -21,7 +25,7 @@ | |||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		system { | 		led_system: system { | ||||||
| 			label = "hc5661a:blue:system"; | 			label = "hc5661a:blue:system"; | ||||||
| 			gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>; | 			gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -6,10 +6,14 @@ | |||||||
| 	compatible = "hiwifi,hc5761", "hiwifi,hc5x61", "ralink,mt7620a-soc"; | 	compatible = "hiwifi,hc5761", "hiwifi,hc5x61", "ralink,mt7620a-soc"; | ||||||
| 	model = "HiWiFi HC5761"; | 	model = "HiWiFi HC5761"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_system; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		system { | 		led_system: system { | ||||||
| 			label = "hc5761:blue:system"; | 			label = "hc5761:blue:system"; | ||||||
| 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -6,10 +6,14 @@ | |||||||
| 	compatible = "hiwifi,hc5861", "hiwifi,hc5x61", "ralink,mt7620a-soc"; | 	compatible = "hiwifi,hc5861", "hiwifi,hc5x61", "ralink,mt7620a-soc"; | ||||||
| 	model = "HiWiFi HC5861"; | 	model = "HiWiFi HC5861"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_system; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		system { | 		led_system: system { | ||||||
| 			label = "hc5861:blue:system"; | 			label = "hc5861:blue:system"; | ||||||
| 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "hiwifi,hc5962", "mediatek,mt7621-soc"; | 	compatible = "hiwifi,hc5962", "mediatek,mt7621-soc"; | ||||||
| 	model = "HiWiFi HC5962"; | 	model = "HiWiFi HC5962"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_status; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	memory@0 { | 	memory@0 { | ||||||
| 		device_type = "memory"; | 		device_type = "memory"; | ||||||
| 		reg = <0x0 0x10000000>; | 		reg = <0x0 0x10000000>; | ||||||
| @ -21,7 +25,7 @@ | |||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		status { | 		led_status: status { | ||||||
| 			label = "hc5962:white:status"; | 			label = "hc5962:white:status"; | ||||||
| 			gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "huawei,hg255d", "ralink,rt3052-soc"; | 	compatible = "huawei,hg255d", "ralink,rt3052-soc"; | ||||||
| 	model = "HuaWei HG255D"; | 	model = "HuaWei HG255D"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_power; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	cfi@1f000000 { | 	cfi@1f000000 { | ||||||
| 		compatible = "cfi-flash"; | 		compatible = "cfi-flash"; | ||||||
| 		reg = <0x1f000000 0x1000000>; | 		reg = <0x1f000000 0x1000000>; | ||||||
| @ -50,7 +54,7 @@ | |||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		power { | 		led_power: power { | ||||||
| 			label = "hg255d:green:power"; | 			label = "hg255d:green:power"; | ||||||
| 			gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "omnima,hpm", "ralink,rt3883-soc"; | 	compatible = "omnima,hpm", "ralink,rt3883-soc"; | ||||||
| 	model = "Omnima HPM"; | 	model = "Omnima HPM"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_status; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	chosen { | 	chosen { | ||||||
| 		bootargs = "console=ttyS0,115200"; | 		bootargs = "console=ttyS0,115200"; | ||||||
| 	}; | 	}; | ||||||
| @ -34,7 +38,7 @@ | |||||||
| 			gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		status { | 		led_status: status { | ||||||
| 			label = "hpm:green:status"; | 			label = "hpm:green:status"; | ||||||
| 			gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,10 +9,14 @@ | |||||||
| 	compatible = "hootoo,ht-tm02", "ralink,rt5350-soc"; | 	compatible = "hootoo,ht-tm02", "ralink,rt5350-soc"; | ||||||
| 	model = "HooToo HT-TM02"; | 	model = "HooToo HT-TM02"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_wlan; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		wlan { | 		led_wlan: wlan { | ||||||
| 			label = "ht-tm02:blue:wlan"; | 			label = "ht-tm02:blue:wlan"; | ||||||
| 			gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "aztech,hw550-3g", "ralink,rt3052-soc"; | 	compatible = "aztech,hw550-3g", "ralink,rt3052-soc"; | ||||||
| 	model = "Aztech HW550-3G"; | 	model = "Aztech HW550-3G"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_status; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	cfi@1f000000 { | 	cfi@1f000000 { | ||||||
| 		compatible = "cfi-flash"; | 		compatible = "cfi-flash"; | ||||||
| 		reg = <0x1f000000 0x800000>; | 		reg = <0x1f000000 0x800000>; | ||||||
| @ -54,7 +58,7 @@ | |||||||
| 			gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		status { | 		led_status: status { | ||||||
| 			label = "hw550-3g:green:status"; | 			label = "hw550-3g:green:status"; | ||||||
| 			gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "poray,ip2202", "ralink,rt3052-soc"; | 	compatible = "poray,ip2202", "ralink,rt3052-soc"; | ||||||
| 	model = "Poray IP2202"; | 	model = "Poray IP2202"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_run; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	cfi@1f000000 { | 	cfi@1f000000 { | ||||||
| 		compatible = "cfi-flash"; | 		compatible = "cfi-flash"; | ||||||
| 		reg = <0x1f000000 0x800000>; | 		reg = <0x1f000000 0x800000>; | ||||||
| @ -44,7 +48,7 @@ | |||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		run { | 		led_run: run { | ||||||
| 			label = "ip2202:green:run"; | 			label = "ip2202:green:run"; | ||||||
| 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,10 +9,14 @@ | |||||||
| 	compatible = "jcg,jhr-n805r", "ralink,rt3050-soc"; | 	compatible = "jcg,jhr-n805r", "ralink,rt3050-soc"; | ||||||
| 	model = "JCG JHR-N805R"; | 	model = "JCG JHR-N805R"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_system; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		system { | 		led_system: system { | ||||||
| 			label = "jhr-n805r:blue:system"; | 			label = "jhr-n805r:blue:system"; | ||||||
| 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "jcg,jhr-n825r", "ralink,rt3052-soc"; | 	compatible = "jcg,jhr-n825r", "ralink,rt3052-soc"; | ||||||
| 	model = "JCG JHR-N825R"; | 	model = "JCG JHR-N825R"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_system; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	cfi@1f000000 { | 	cfi@1f000000 { | ||||||
| 		compatible = "cfi-flash"; | 		compatible = "cfi-flash"; | ||||||
| 		reg = <0x1f000000 0x800000>; | 		reg = <0x1f000000 0x800000>; | ||||||
| @ -43,7 +47,7 @@ | |||||||
| 
 | 
 | ||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 		system { | 		led_system: system { | ||||||
| 			label = "jhr-n825r:red:power"; | 			label = "jhr-n825r:red:power"; | ||||||
| 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "jcg,jhr-n926r", "ralink,rt3052-soc"; | 	compatible = "jcg,jhr-n926r", "ralink,rt3052-soc"; | ||||||
| 	model = "JCG JHR-N926R"; | 	model = "JCG JHR-N926R"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_system; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	cfi@1f000000 { | 	cfi@1f000000 { | ||||||
| 		compatible = "cfi-flash"; | 		compatible = "cfi-flash"; | ||||||
| 		reg = <0x1f000000 0x800000>; | 		reg = <0x1f000000 0x800000>; | ||||||
| @ -59,7 +63,7 @@ | |||||||
| 			gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		system { | 		led_system: system { | ||||||
| 			label = "jhr-n926r:blue:system"; | 			label = "jhr-n926r:blue:system"; | ||||||
| 			gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -10,6 +10,7 @@ | |||||||
| 	model = "Phicomm K2G"; | 	model = "Phicomm K2G"; | ||||||
| 
 | 
 | ||||||
| 	aliases { | 	aliases { | ||||||
|  | 		led-status = &led_blue; | ||||||
| 		serial0 = &uartlite; | 		serial0 = &uartlite; | ||||||
| 	}; | 	}; | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "phicomm,k2p", "mediatek,mt7621-soc"; | 	compatible = "phicomm,k2p", "mediatek,mt7621-soc"; | ||||||
| 	model = "Phicomm K2P"; | 	model = "Phicomm K2P"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_blue; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	memory@0 { | 	memory@0 { | ||||||
| 		device_type = "memory"; | 		device_type = "memory"; | ||||||
| 		reg = <0x0 0x8000000>; | 		reg = <0x0 0x8000000>; | ||||||
| @ -31,7 +35,7 @@ | |||||||
| 			gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		stat_b { | 		led_blue: stat_b { | ||||||
| 			label = "k2p:blue:status"; | 			label = "k2p:blue:status"; | ||||||
| 			gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "mediatek,linkit-smart-7688", "mediatek,mt7628an-soc"; | 	compatible = "mediatek,linkit-smart-7688", "mediatek,mt7628an-soc"; | ||||||
| 	model = "MediaTek LinkIt Smart 7688"; | 	model = "MediaTek LinkIt Smart 7688"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_wifi; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	chosen { | 	chosen { | ||||||
| 		bootargs = "console=ttyS2,57600"; | 		bootargs = "console=ttyS2,57600"; | ||||||
| 	}; | 	}; | ||||||
| @ -31,7 +35,7 @@ | |||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		wifi { | 		led_wifi: wifi { | ||||||
| 			label = "linkit-smart-7688:orange:wifi"; | 			label = "linkit-smart-7688:orange:wifi"; | ||||||
| 			gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "intenso,memory2move", "ralink,rt5350-soc"; | 	compatible = "intenso,memory2move", "ralink,rt5350-soc"; | ||||||
| 	model = "Intenso Memory 2 Move"; | 	model = "Intenso Memory 2 Move"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_wifi; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	chosen { | 	chosen { | ||||||
| 		bootargs = "console=ttyS0,57600n8 root=/dev/mtdblock5"; | 		bootargs = "console=ttyS0,57600n8 root=/dev/mtdblock5"; | ||||||
| 	}; | 	}; | ||||||
| @ -16,7 +20,7 @@ | |||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		wifi { | 		led_wifi: wifi { | ||||||
| 			label = "m2m:blue:wifi"; | 			label = "m2m:blue:wifi"; | ||||||
| 			gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,10 +9,14 @@ | |||||||
| 	compatible = "poray,m3", "ralink,rt5350-soc"; | 	compatible = "poray,m3", "ralink,rt5350-soc"; | ||||||
| 	model = "Poray M3"; | 	model = "Poray M3"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_status; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		status { | 		led_status: status { | ||||||
| 			label = "m3:blue:status"; | 			label = "m3:blue:status"; | ||||||
| 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -6,10 +6,14 @@ | |||||||
| / { | / { | ||||||
| 	compatible = "poray,m4", "ralink,rt5350-soc"; | 	compatible = "poray,m4", "ralink,rt5350-soc"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_status; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		status { | 		led_status: status { | ||||||
| 			label = "m4:blue:status"; | 			label = "m4:blue:status"; | ||||||
| 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "mercury,mac1200r-v2", "mediatek,mt7628an-soc"; | 	compatible = "mercury,mac1200r-v2", "mediatek,mt7628an-soc"; | ||||||
| 	model = "Mercury MAC1200R v2"; | 	model = "Mercury MAC1200R v2"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_status; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	chosen { | 	chosen { | ||||||
| 		bootargs = "console=ttyS0,57600"; | 		bootargs = "console=ttyS0,57600"; | ||||||
| 	}; | 	}; | ||||||
| @ -20,7 +24,7 @@ | |||||||
| 
 | 
 | ||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 		status { | 		led_status: status { | ||||||
| 			label = "mac1200rv2:green:status"; | 			label = "mac1200rv2:green:status"; | ||||||
| 			gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,10 +9,14 @@ | |||||||
| 	compatible = "omnima,miniembwifi", "ralink,rt3052-soc"; | 	compatible = "omnima,miniembwifi", "ralink,rt3052-soc"; | ||||||
| 	model = "Omnima MiniEMBWiFi"; | 	model = "Omnima MiniEMBWiFi"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_status; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		status { | 		led_status: status { | ||||||
| 			label = "miniembwifi:green:status"; | 			label = "miniembwifi:green:status"; | ||||||
| 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "xiaomi,mir3g", "mediatek,mt7621-soc"; | 	compatible = "xiaomi,mir3g", "mediatek,mt7621-soc"; | ||||||
| 	model = "Xiaomi Mi Router 3G"; | 	model = "Xiaomi Mi Router 3G"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_status_blue; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	memory@0 { | 	memory@0 { | ||||||
| 		device_type = "memory"; | 		device_type = "memory"; | ||||||
| 		reg = <0x0 0x10000000>; | 		reg = <0x0 0x10000000>; | ||||||
| @ -26,7 +30,7 @@ | |||||||
| 			gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		status_blue { | 		led_status_blue: status_blue { | ||||||
| 			label = "mir3g:blue:status"; | 			label = "mir3g:blue:status"; | ||||||
| 			gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "xiaomi,miwifi-mini", "ralink,mt7620a-soc"; | 	compatible = "xiaomi,miwifi-mini", "ralink,mt7620a-soc"; | ||||||
| 	model = "Xiaomi MiWiFi Mini"; | 	model = "Xiaomi MiWiFi Mini"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_blue; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	chosen { | 	chosen { | ||||||
| 		bootargs = "console=ttyS0,115200"; | 		bootargs = "console=ttyS0,115200"; | ||||||
| 	}; | 	}; | ||||||
| @ -16,7 +20,7 @@ | |||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		blue { | 		led_blue: blue { | ||||||
| 			label = "miwifi-mini:blue:status"; | 			label = "miwifi-mini:blue:status"; | ||||||
| 			gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "xiaomi,miwifi-nano", "mediatek,mt7628an-soc"; | 	compatible = "xiaomi,miwifi-nano", "mediatek,mt7628an-soc"; | ||||||
| 	model = "MiWiFi Nano"; | 	model = "MiWiFi Nano"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_blue; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	chosen { | 	chosen { | ||||||
| 		bootargs = "console=ttyS0,115200"; | 		bootargs = "console=ttyS0,115200"; | ||||||
| 	}; | 	}; | ||||||
| @ -21,7 +25,7 @@ | |||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		status_blue { | 		led_blue: status_blue { | ||||||
| 			label = "miwifi-nano:blue:status"; | 			label = "miwifi-nano:blue:status"; | ||||||
| 			gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,10 +9,14 @@ | |||||||
| 	compatible = "kingston,mlw221", "ralink,mt7620n-soc"; | 	compatible = "kingston,mlw221", "ralink,mt7620n-soc"; | ||||||
| 	model = "Kingston MLW221"; | 	model = "Kingston MLW221"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_system; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		system { | 		led_system: system { | ||||||
| 			label = "mlw221:blue:system"; | 			label = "mlw221:blue:system"; | ||||||
| 			gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,10 +9,14 @@ | |||||||
| 	compatible = "kingston,mlwg2", "ralink,mt7620n-soc"; | 	compatible = "kingston,mlwg2", "ralink,mt7620n-soc"; | ||||||
| 	model = "Kingston MLWG2"; | 	model = "Kingston MLWG2"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_system; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		system { | 		led_system: system { | ||||||
| 			label = "mlwg2:blue:system"; | 			label = "mlwg2:blue:system"; | ||||||
| 			gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "mofinetwork,mofi3500-3gn", "ralink,rt3052-soc"; | 	compatible = "mofinetwork,mofi3500-3gn", "ralink,rt3052-soc"; | ||||||
| 	model = "MoFi Network MOFI3500-3GN"; | 	model = "MoFi Network MOFI3500-3GN"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_status; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	cfi@1f000000 { | 	cfi@1f000000 { | ||||||
| 		compatible = "cfi-flash"; | 		compatible = "cfi-flash"; | ||||||
| 		reg = <0x1f000000 0x800000>; | 		reg = <0x1f000000 0x800000>; | ||||||
| @ -54,7 +58,7 @@ | |||||||
| 			gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		status { | 		led_status: status { | ||||||
| 			label = "mofi3500-3gn:green:status"; | 			label = "mofi3500-3gn:green:status"; | ||||||
| 			gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,10 +9,14 @@ | |||||||
| 	compatible = "hame,mpr-a1", "ralink,rt5350-soc"; | 	compatible = "hame,mpr-a1", "ralink,rt5350-soc"; | ||||||
| 	model = "HAME MPR-A1"; | 	model = "HAME MPR-A1"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_system; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		system { | 		led_system: system { | ||||||
| 			label = "mpr-a1:blue:system"; | 			label = "mpr-a1:blue:system"; | ||||||
| 			gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,10 +9,14 @@ | |||||||
| 	compatible = "hame,mpr-a2", "ralink,rt5350-soc"; | 	compatible = "hame,mpr-a2", "ralink,rt5350-soc"; | ||||||
| 	model = "HAME MPR-A2"; | 	model = "HAME MPR-A2"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_system; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		system { | 		led_system: system { | ||||||
| 			label = "mpr-a2:blue:system"; | 			label = "mpr-a2:blue:system"; | ||||||
| 			gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "aximcom,mr-102n", "ralink,rt3052-soc"; | 	compatible = "aximcom,mr-102n", "ralink,rt3052-soc"; | ||||||
| 	model = "AXIMCom MR-102N"; | 	model = "AXIMCom MR-102N"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_status; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	cfi@1f000000 { | 	cfi@1f000000 { | ||||||
| 		compatible = "cfi-flash"; | 		compatible = "cfi-flash"; | ||||||
| 		reg = <0x1f000000 0x800000>; | 		reg = <0x1f000000 0x800000>; | ||||||
| @ -59,7 +63,7 @@ | |||||||
| 			gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		status { | 		led_status: status { | ||||||
| 			label = "mr-102n:amber:status"; | 			label = "mr-102n:amber:status"; | ||||||
| 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "planex,mzk-750dhp", "ralink,mt7620a-soc"; | 	compatible = "planex,mzk-750dhp", "ralink,mt7620a-soc"; | ||||||
| 	model = "Planex MZK-750DHP"; | 	model = "Planex MZK-750DHP"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_power; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| @ -17,7 +21,7 @@ | |||||||
| 			gpios = <&gpio2 15 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio2 15 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		power { | 		led_power: power { | ||||||
| 			label = "mzk-750dhp:green:power"; | 			label = "mzk-750dhp:green:power"; | ||||||
| 			gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,10 +9,14 @@ | |||||||
| 	compatible = "planex,mzk-dp150n", "ralink,rt5350-soc"; | 	compatible = "planex,mzk-dp150n", "ralink,rt5350-soc"; | ||||||
| 	model = "Planex MZK-DP150N"; | 	model = "Planex MZK-DP150N"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_power; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		power { | 		led_power: power { | ||||||
| 			label = "mzk-dp150n:green:power"; | 			label = "mzk-dp150n:green:power"; | ||||||
| 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "planex,mzk-ex300np", "ralink,mt7620a-soc"; | 	compatible = "planex,mzk-ex300np", "ralink,mt7620a-soc"; | ||||||
| 	model = "Planex MZK-EX300NP"; | 	model = "Planex MZK-EX300NP"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_wps; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| @ -17,7 +21,7 @@ | |||||||
| 			gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		wps { | 		led_wps: wps { | ||||||
| 			label = "mzk-ex300np:green:wps"; | 			label = "mzk-ex300np:green:wps"; | ||||||
| 			gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,10 +9,14 @@ | |||||||
| 	compatible = "planex,mzk-ex750np", "ralink,mt7620a-soc"; | 	compatible = "planex,mzk-ex750np", "ralink,mt7620a-soc"; | ||||||
| 	model = "Planex MZK-EX750NP"; | 	model = "Planex MZK-EX750NP"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_power; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		power { | 		led_power: power { | ||||||
| 			label = "mzk-ex750np:red:power"; | 			label = "mzk-ex750np:red:power"; | ||||||
| 			gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "planex,mzk-w300nh2", "ralink,rt3052-soc"; | 	compatible = "planex,mzk-w300nh2", "ralink,rt3052-soc"; | ||||||
| 	model = "Planex MZK-W300NH2"; | 	model = "Planex MZK-W300NH2"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_power; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	cfi@1f000000 { | 	cfi@1f000000 { | ||||||
| 		compatible = "cfi-flash"; | 		compatible = "cfi-flash"; | ||||||
| 		reg = <0x1f000000 0x800000>; | 		reg = <0x1f000000 0x800000>; | ||||||
| @ -50,7 +54,7 @@ | |||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		power { | 		led_power: power { | ||||||
| 			label = "mzk-w300nh2:green:power"; | 			label = "mzk-w300nh2:green:power"; | ||||||
| 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "sercomm,na930", "ralink,mt7620a-soc"; | 	compatible = "sercomm,na930", "ralink,mt7620a-soc"; | ||||||
| 	model = "Sercomm NA930"; | 	model = "Sercomm NA930"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_power; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	chosen { | 	chosen { | ||||||
| 		bootargs = "console=ttyS1,57600"; | 		bootargs = "console=ttyS1,57600"; | ||||||
| 	}; | 	}; | ||||||
| @ -85,7 +89,7 @@ | |||||||
| 			gpios = <&gpio2 28 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio2 28 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		power { | 		led_power: power { | ||||||
| 			label = "na930:blue:power"; | 			label = "na930:blue:power"; | ||||||
| 			gpios = <&gpio2 29 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio2 29 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "zyxel,nbg-419n", "ralink,rt3052-soc"; | 	compatible = "zyxel,nbg-419n", "ralink,rt3052-soc"; | ||||||
| 	model = "ZyXEL NBG-419N"; | 	model = "ZyXEL NBG-419N"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_power; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	cfi@1f000000 { | 	cfi@1f000000 { | ||||||
| 		compatible = "cfi-flash"; | 		compatible = "cfi-flash"; | ||||||
| 		reg = <0x1f000000 0x800000>; | 		reg = <0x1f000000 0x800000>; | ||||||
| @ -44,7 +48,7 @@ | |||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		power { | 		led_power: power { | ||||||
| 			label = "nbg-419n:green:power"; | 			label = "nbg-419n:green:power"; | ||||||
| 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
| @ -9,6 +9,10 @@ | |||||||
| 	compatible = "zyxel,nbg-419n-v2", "ralink,rt3352-soc"; | 	compatible = "zyxel,nbg-419n-v2", "ralink,rt3352-soc"; | ||||||
| 	model = "ZyXEL NBG-419N v2"; | 	model = "ZyXEL NBG-419N v2"; | ||||||
| 
 | 
 | ||||||
|  | 	aliases { | ||||||
|  | 		led-status = &led_power; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	palmbus@10000000 { | 	palmbus@10000000 { | ||||||
| 		spi@b00 { | 		spi@b00 { | ||||||
| 			status = "okay"; | 			status = "okay"; | ||||||
| @ -48,7 +52,7 @@ | |||||||
| 	gpio-leds { | 	gpio-leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 
 | 
 | ||||||
| 		power { | 		led_power: power { | ||||||
| 			label = "nbg-419n2:green:power"; | 			label = "nbg-419n2:green:power"; | ||||||
| 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
|  | |||||||
Some files were not shown because too many files have changed in this diff Show More
		Loading…
	
		Reference in New Issue
	
	Block a user