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

Steven me at stevenhay.com
Thu Oct 20 11:18:42 PDT 2022


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(-)

diff --git a/arch/arm64/boot/dts/marvell/armada-3720-espressobin-ultra.dts b/arch/arm64/boot/dts/marvell/armada-3720-espressobin-ultra.dts
index 1b2ed63ae6a2..09cd3cf1d263 100644
--- a/arch/arm64/boot/dts/marvell/armada-3720-espressobin-ultra.dts
+++ b/arch/arm64/boot/dts/marvell/armada-3720-espressobin-ultra.dts
@@ -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 at 0 {
+		spi-max-frequency = <20000000>;
+		m25p,fast-read;
+
 		partitions {
 			compatible = "fixed-partitions";
 			#address-cells = <1>;
@@ -108,21 +114,18 @@ rtc at 51 {
 
 &usb3 {
 	usb-phy = <&usb3_phy>;
+	status = "okay";
 };
 
 &mdio {
 	extphy: ethernet-phy at 1 {
 		reg = <1>;
-
-		reset-gpios = <&gpionb 2 GPIO_ACTIVE_LOW>;
 	};
 };
 
 &switch0 {
 	reg = <3>;
 
-	reset-gpios = <&gpiosb 23 GPIO_ACTIVE_LOW>;
-
 	ports {
 		switch0port1: port at 1 {
 			reg = <1>;
-- 
2.35.1




More information about the linux-arm-kernel mailing list