ath79: glinet_gl-ar750s: Add USB power & microSD
The GL.iNet AR750S USB and microSD port is currently not working out of the box. GPIO 7 is used to control the power of the USB port. Add GPIO 7 as a fixed-regulator for the port. Also add &usb1 to DTS to get the microSD port to work. Signed-off-by: Alexander Wördekemper <alexwoerde@web.de>
This commit is contained in:
		 Alexander Wördekemper
					Alexander Wördekemper
				
			
				
					committed by
					
						 Petr Štetiar
						Petr Štetiar
					
				
			
			
				
	
			
			
			 Petr Štetiar
						Petr Štetiar
					
				
			
						parent
						
							2f1a11d008
						
					
				
				
					commit
					0f6b944c92
				
			| @@ -62,6 +62,19 @@ | |||||||
| 			linux,default-trigger = "phy0tpt"; | 			linux,default-trigger = "phy0tpt"; | ||||||
| 		}; | 		}; | ||||||
| 	}; | 	}; | ||||||
|  |  | ||||||
|  | 	usb_vbus: regulator-usb-vbus { | ||||||
|  | 		compatible = "regulator-fixed"; | ||||||
|  |  | ||||||
|  | 		regulator-name = "USB_VBUS"; | ||||||
|  |  | ||||||
|  | 		regulator-min-microvolt = <5000000>; | ||||||
|  | 		regulator-max-microvolt = <5000000>; | ||||||
|  | 		regulator-always-on; | ||||||
|  |  | ||||||
|  | 		gpio = <&gpio 7 GPIO_ACTIVE_HIGH>; | ||||||
|  | 		enable-active-high; | ||||||
|  | 	}; | ||||||
| }; | }; | ||||||
|  |  | ||||||
| &spi { | &spi { | ||||||
| @@ -113,20 +126,22 @@ | |||||||
| }; | }; | ||||||
|  |  | ||||||
| &usb0 { | &usb0 { | ||||||
| 	#address-cells = <1>; |  | ||||||
| 	#size-cells = <0>; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
|  | 	vbus-supply = <&usb_vbus>; | ||||||
| 	hub_port: port@1 { |  | ||||||
| 		reg = <1>; |  | ||||||
| 		#trigger-source-cells = <0>; |  | ||||||
| 	}; |  | ||||||
| }; | }; | ||||||
|  |  | ||||||
| &usb_phy0 { | &usb_phy0 { | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
|  |  | ||||||
|  | &usb1 { | ||||||
|  | 	status = "okay"; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | &usb_phy1 { | ||||||
|  | 	status = "okay"; | ||||||
|  | }; | ||||||
|  |  | ||||||
| &mdio0 { | &mdio0 { | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| 	phy-mask = <0>; | 	phy-mask = <0>; | ||||||
|   | |||||||
| @@ -383,7 +383,7 @@ TARGET_DEVICES += glinet_gl-ar300m-nor | |||||||
| define Device/glinet_gl-ar750s | define Device/glinet_gl-ar750s | ||||||
|   ATH_SOC := qca9563 |   ATH_SOC := qca9563 | ||||||
|   DEVICE_TITLE := GL.iNet GL-AR750S |   DEVICE_TITLE := GL.iNet GL-AR750S | ||||||
|   DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca9887-ct |   DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca9887-ct block-mount | ||||||
|   IMAGE_SIZE := 16000k |   IMAGE_SIZE := 16000k | ||||||
|   SUPPORTED_DEVICES += gl-ar750s |   SUPPORTED_DEVICES += gl-ar750s | ||||||
| endef | endef | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user