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

Steven me at stevenhay.com
Thu Oct 20 10:49:50 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     | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 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..e5f88819e8ef 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,6 +114,7 @@ rtc at 51 {
 
 &usb3 {
 	usb-phy = <&usb3_phy>;
+	status = "okay";
 };
 
 &mdio {
-- 
2.35.1




More information about the linux-arm-kernel mailing list