mirror of
				https://github.com/Telecominfraproject/wlan-ap.git
				synced 2025-10-31 02:17:58 +00:00 
			
		
		
		
	ipq807x: fix LEDs on wf196
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
		| @@ -39,6 +39,11 @@ | |||||||
| 		ethernet3 = "/soc/dp4"; | 		ethernet3 = "/soc/dp4"; | ||||||
| 		ethernet4 = "/soc/dp5"; | 		ethernet4 = "/soc/dp5"; | ||||||
| 		ethernet5 = "/soc/dp6"; | 		ethernet5 = "/soc/dp6"; | ||||||
|  |  | ||||||
|  | 		led-boot = &led_power; | ||||||
|  | 		led-failsafe = &led_power; | ||||||
|  | 		led-running = &led_power; | ||||||
|  | 		led-upgrade = &led_power; | ||||||
| 	}; | 	}; | ||||||
|  |  | ||||||
| 	chosen { | 	chosen { | ||||||
| @@ -325,15 +330,22 @@ | |||||||
| 	}; | 	}; | ||||||
|  |  | ||||||
| 	led_pins: led_pins { | 	led_pins: led_pins { | ||||||
| 		led_2g { | 		led_red { | ||||||
| 			pins = "gpio42"; | 			pins = "gpio25"; | ||||||
| 			function = "gpio"; | 			function = "gpio"; | ||||||
| 			drive-strength = <8>; | 			drive-strength = <8>; | ||||||
| 			bias-pull-down; | 			bias-pull-down; | ||||||
| 		}; | 		}; | ||||||
|  |  | ||||||
| 		led_5g { | 		led_green { | ||||||
| 			pins = "gpio43"; | 			pins = "gpio26"; | ||||||
|  | 			function = "gpio"; | ||||||
|  | 			drive-strength = <8>; | ||||||
|  | 			bias-pull-down; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		led_blue { | ||||||
|  | 			pins = "gpio27"; | ||||||
| 			function = "gpio"; | 			function = "gpio"; | ||||||
| 			drive-strength = <8>; | 			drive-strength = <8>; | ||||||
| 			bias-pull-down; | 			bias-pull-down; | ||||||
| @@ -379,7 +391,7 @@ | |||||||
|                 pinctrl-0 = <&pwm_pins>; |                 pinctrl-0 = <&pwm_pins>; | ||||||
|                 pinctrl-names = "default"; |                 pinctrl-names = "default"; | ||||||
|                 used-pwm-indices = <1>, <1>, <1>, <0>; |                 used-pwm-indices = <1>, <1>, <1>, <0>; | ||||||
|                 status = "ok"; |          //       status = "ok"; | ||||||
|         }; |         }; | ||||||
| 	gpio_keys { | 	gpio_keys { | ||||||
| 		compatible = "gpio-keys"; | 		compatible = "gpio-keys"; | ||||||
| @@ -810,15 +822,21 @@ | |||||||
| 		pinctrl-0 = <&led_pins>; | 		pinctrl-0 = <&led_pins>; | ||||||
| 		pinctrl-names = "default"; | 		pinctrl-names = "default"; | ||||||
|  |  | ||||||
| 		led_2g { | 		led_red { | ||||||
| 			label = "led_2g"; | 			label = "red:status"; | ||||||
| 			gpio = <&tlmm 42 GPIO_ACTIVE_HIGH>; | 			gpio = <&tlmm 25 GPIO_ACTIVE_HIGH>; | ||||||
| 			default-state = "off"; | 			default-state = "off"; | ||||||
| 		}; | 		}; | ||||||
|  |  | ||||||
| 		led_5g { | 		led_power: led_green { | ||||||
| 			label = "led_5g"; | 			label = "green:status"; | ||||||
| 			gpio = <&tlmm 43 GPIO_ACTIVE_HIGH>; | 			gpio = <&tlmm 26 GPIO_ACTIVE_HIGH>; | ||||||
|  | 			default-state = "on"; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		led_blue { | ||||||
|  | 			label = "blue:status"; | ||||||
|  | 			gpio = <&tlmm 27 GPIO_ACTIVE_HIGH>; | ||||||
| 			default-state = "off"; | 			default-state = "off"; | ||||||
| 		}; | 		}; | ||||||
| 	}; | 	}; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 John Crispin
					John Crispin