mirror of
				https://github.com/Telecominfraproject/wlan-ap.git
				synced 2025-10-30 18:07:52 +00:00 
			
		
		
		
	ipq807x: v5.4: eap104: export MCU related pins
Export MCU related 'reset' and 'serial bootloader' pins in sysfs using 'gpio-export' as 'mcu-enable' and 'mcu-bootloader'. Default configuration of MCU related pins will keep MCU in reset state, with the serial bootloader enabled. While at it, fix also trailing white space error in 'gpio_keys' node. Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
This commit is contained in:
		 Piotr Dymacz
					Piotr Dymacz
				
			
				
					committed by
					
						 John Crispin
						John Crispin
					
				
			
			
				
	
			
			
			 John Crispin
						John Crispin
					
				
			
						parent
						
							85374fbbe6
						
					
				
				
					commit
					2ed8df9b10
				
			| @@ -625,7 +625,24 @@ | |||||||
| }; | }; | ||||||
|  |  | ||||||
| &soc { | &soc { | ||||||
| 	 gpio_keys { | 	gpio-export { | ||||||
|  | 		compatible = "gpio-export"; | ||||||
|  | 		#size-cells = <0>; | ||||||
|  |  | ||||||
|  | 		mcu-bootloader { | ||||||
|  | 			gpio-export,name = "mcu-bootloader"; | ||||||
|  | 			gpio-export,output = <0>; | ||||||
|  | 			gpios = <&tlmm 35 GPIO_ACTIVE_LOW>; | ||||||
|  | 		}; | ||||||
|  |  | ||||||
|  | 		mcu-enable { | ||||||
|  | 			gpio-export,name = "mcu-enable"; | ||||||
|  | 			gpio-export,output = <0>; | ||||||
|  | 			gpios = <&tlmm 31 GPIO_ACTIVE_HIGH>; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	gpio_keys { | ||||||
| 		compatible = "gpio-keys"; | 		compatible = "gpio-keys"; | ||||||
| 		pinctrl-0 = <&button_pins>; | 		pinctrl-0 = <&button_pins>; | ||||||
| 		pinctrl-names = "default"; | 		pinctrl-names = "default"; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user