Skip to contentSkip to conversation

ARM: dts: espressobin-ultra: Fix wifi not working, enable USB3, and change SPI frequency

PATCH New Steven 1 participant 1 message Oct 20, 2022

Subsystems (2)
lore
Share & tools
lore

Steven

author
#0 lore raw

PATCH 1/1 ARM: dts: espressobin-ultra: Fix wifi not working, enable USB3, and change SPI frequency

These commits originate from the Globalscale public Github repository and fix an issue with the device tree where the wifi chip is turned off.

https://github.com/globalscaletechnologies/linux

commit c31340f15dfbea272bc8fda1b1640095aadaa288

dts: espressobin_ultra: fix wifi 8997 not working issue

the espressobin ultra board is inherit from espressobin board, so the espressobin_ultra.dts includes espressobin.dtsi, but MPP1_4 is use to control wifi(88w8997) power down pin, not supply voltage switch of sdcard (the 'vcc_sd1' regulator is for espressobin, not espressobin ultra), it causes wifi(88w8997) power shutdown after turn off vqmmc-supply, so remove the 'vcc_sd_reg1' regulator and vqmmc-supply settings from espressobin_ultra.dts to make the wifi (88w8997) working correctly.

commit c31340f15dfbea272bc8fda1b1640095aadaa288

dts: espressobin_ultra: enable usb3 and change spi frequency

enable usb3 setting and change spi-max-frequency to 20MHz.

---
 .../dts/marvell/armada-3720-espressobin-ultra.dts | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)
arch/arm64/boot/dts/marvell/armada-3720-espressobin-ultra.dts +9 -6
index 1b2ed63ae6a2..09cd3cf1d263 100644
@@ -12,8 +12,8 @@
 
 / {
 	model = "Globalscale Marvell ESPRESSOBin Ultra Board";
-	compatible = "globalscale,espressobin-ultra", "globalscale,espressobin",
-		     "marvell,armada3720", "marvell,armada3710";
+	compatible = "globalscale,espressobin-ultra", "marvell,armada3720",
+		     "marvell,armada3710";
 
 	aliases {
 		/* ethernet1 is WAN port */
@@ -24,6 +24,8 @@ aliases {
 		ethernet5 = &switch0port4;
 	};
 
+	/delete-node/ regulator;
+
 	reg_usb3_vbus: usb3-vbus {
 		compatible = "regulator-fixed";
 		regulator-name = "usb3-vbus";
@@ -66,11 +68,15 @@ &sdhci0 {
 };
 
 &sdhci1 {
+	/delete-property/ vqmmc-supply;
 	status = "disabled";
 };
 
 &spi0 {
 	flash@0 {
+		spi-max-frequency = <20000000>;
+		m25p,fast-read;
+
 		partitions {
 			compatible = "fixed-partitions";
 			#address-cells = <1>;
@@ -108,21 +114,18 @@ rtc@51 {
 
 &usb3 {
 	usb-phy = <&usb3_phy>;
+	status = "okay";
 };
 
 &mdio {
 	extphy: ethernet-phy@1 {
 		reg = <1>;
-
-		reset-gpios = <&gpionb 2 GPIO_ACTIVE_LOW>;
 	};
 };
 
 &switch0 {
 	reg = <3>;
 
-	reset-gpios = <&gpiosb 23 GPIO_ACTIVE_LOW>;
-
 	ports {
 		switch0port1: port@1 {
 			reg = <1>;
Signature · 7 lines
2.35.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel