Skip to content

Commit

Permalink
bsp: linux-lmp-fslc-imx: imx8mm-evkb: fix sdio options for wifi
Browse files Browse the repository at this point in the history
Fix enabling the option fsl,sdio-async-interrupt-enabled for SDIO
interface of WiFi/BT module. Here is the comment from the code:

  If sdio device use async interrupt, it will use DAT[1] to signal
  the device's interrupt asynchronous when use 4 data lines.
  Then hardware auto tuning circuit MUST NOT check the DAT[1] line,
  otherwise auto tuning will be impacted by this async interrupt,
  and change the delay cell incorrectly, which then cause data/cmd
  errors.

Fixes: add22f8 ("bsp: linux-lmp-fslc-imx: update to lf-5.10.52-2.1.0")
Signed-off-by: Oleksandr Suvorov <[email protected]>
  • Loading branch information
MrCry0 authored and ricardosalveti committed Jan 3, 2023
1 parent fbeb0f0 commit 5cc9008
Showing 1 changed file with 38 additions and 28 deletions.
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
From 8a2f1d22445868e0220a8b9e62e592562834dc1c Mon Sep 17 00:00:00 2001
From a11faaaf345da8f047129744c6e5b17e417addf7 Mon Sep 17 00:00:00 2001
From: Ricardo Salveti <[email protected]>
Date: Fri, 14 May 2021 13:36:10 -0300
Subject: [PATCH] arm64: dts: imx8mm-evk: use imx8mm-evkb for the new EVKs
Subject: [PATCH] [FIO extras] arm64: dts: imx8mm-evk: use imx8mm-evkb for the
new EVKs

Allow older EVKs to be transitioned properly by using a new dtb for the
EVKB variant.

Main difference is the pmic used (bd71847 -> pca9450).

Signed-off-by: Ricardo Salveti <[email protected]>
Signed-off-by: Oleksandr Suvorov <[email protected]>
---

.../dts/freescale/imx8mm-evk-8mic-revE.dts | 2 +-
.../boot/dts/freescale/imx8mm-evk-ak4497.dts | 2 +-
.../boot/dts/freescale/imx8mm-evk-ak5558.dts | 2 +-
.../boot/dts/freescale/imx8mm-evk-dpdk.dts | 2 +-
.../dts/freescale/imx8mm-evk-ecspi-slave.dts | 2 +-
.../imx8mm-evk-hifiberry-dacplus.dts | 2 +-
.../freescale/imx8mm-evk-iqaudio-dacplus.dts | 2 +-
.../freescale/imx8mm-evk-iqaudio-dacpro.dts | 69 +++++++-
.../freescale/imx8mm-evk-iqaudio-dacpro.dts | 75 +++++++-
.../boot/dts/freescale/imx8mm-evk-lk.dts | 2 +-
.../boot/dts/freescale/imx8mm-evk-pcie-ep.dts | 2 +-
.../dts/freescale/imx8mm-evk-qca-wifi.dts | 2 +-
Expand All @@ -26,12 +29,14 @@ Signed-off-by: Ricardo Salveti <[email protected]>
.../boot/dts/freescale/imx8mm-evk-rpmsg.dts | 2 +-
.../dts/freescale/imx8mm-evk-usd-wifi.dts | 2 +-
arch/arm64/boot/dts/freescale/imx8mm-evk.dts | 159 +----------------
arch/arm64/boot/dts/freescale/imx8mm-evkb.dts | 163 ++++++++++++++++++
17 files changed, 247 insertions(+), 172 deletions(-)
create mode 100755 arch/arm64/boot/dts/freescale/imx8mm-evkb.dts
arch/arm64/boot/dts/freescale/imx8mm-evkb.dts | 162 ++++++++++++++++++
17 files changed, 249 insertions(+), 175 deletions(-)
mode change 100755 => 100644 arch/arm64/boot/dts/freescale/imx8mm-evk-qca-wifi.dts
mode change 100755 => 100644 arch/arm64/boot/dts/freescale/imx8mm-evk.dts
create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-evkb.dts

diff --git a/arch/arm64/boot/dts/freescale/imx8mm-evk-8mic-revE.dts b/arch/arm64/boot/dts/freescale/imx8mm-evk-8mic-revE.dts
index 7d0b347be7ed..f0aa85f97f2b 100644
index ba397b00a033..bd08a6f4f335 100644
--- a/arch/arm64/boot/dts/freescale/imx8mm-evk-8mic-revE.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mm-evk-8mic-revE.dts
@@ -3,7 +3,7 @@
Expand Down Expand Up @@ -131,7 +136,10 @@ index ce99f4338cd2..85b3ec59fef3 100644

-#include "imx8mm-evk-iqaudio-dacplus.dts"
+#include "imx8mm-evkb.dts"
+

-&i2c3 {
- pcm512x: pcm512x@4c {
- compatible = "ti,pcm5142";
+/ {
+ reg_3v3_vext: regulator-3v3-vext {
+ compatible = "regulator-fixed";
Expand Down Expand Up @@ -161,10 +169,10 @@ index ce99f4338cd2..85b3ec59fef3 100644
+ "Left Line Out Jack", "OUTL",
+ "Right Line Out Jack", "OUTR";
+ dac,24db_digital_gain;
+ };
+};
&i2c3 {
};
};
+
+&i2c3 {
+ ak4458_1: ak4458@10 {
+ status = "disabled";
+ };
Expand All @@ -177,14 +185,14 @@ index ce99f4338cd2..85b3ec59fef3 100644
+ status = "disabled";
+ };
+
pcm512x: pcm512x@4c {
compatible = "ti,pcm5142";
+ pcm512x: pcm512x@4c {
+ compatible = "ti,pcm5142";
+ reg = <0x4c>;
+ AVDD-supply = <&reg_3v3_vext>;
+ DVDD-supply = <&reg_3v3_vext>;
+ CPVDD-supply = <&reg_3v3_vext>;
};
};
+ };
+};
+
+&iomuxc {
+ pinctrl_sai5: sai5grp {
Expand Down Expand Up @@ -231,7 +239,9 @@ index 2f96420e3230..61202cae7f3b 100644
&pcie0{
status = "disabled";
diff --git a/arch/arm64/boot/dts/freescale/imx8mm-evk-qca-wifi.dts b/arch/arm64/boot/dts/freescale/imx8mm-evk-qca-wifi.dts
index a5965c6875e1..1b271d1babaa 100755
old mode 100755
new mode 100644
index aa1a25f00f55..b5cbf6882e5e
--- a/arch/arm64/boot/dts/freescale/imx8mm-evk-qca-wifi.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mm-evk-qca-wifi.dts
@@ -5,7 +5,7 @@
Expand Down Expand Up @@ -270,7 +280,7 @@ index 426b0adc31ce..3986daaec096 100644
/ {
interrupt-parent = <&gic>;
diff --git a/arch/arm64/boot/dts/freescale/imx8mm-evk-rpmsg.dts b/arch/arm64/boot/dts/freescale/imx8mm-evk-rpmsg.dts
index 0b10547edd52..47417d0771c7 100644
index dc3e2ef9347d..0b74c2efea1c 100644
--- a/arch/arm64/boot/dts/freescale/imx8mm-evk-rpmsg.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mm-evk-rpmsg.dts
@@ -5,7 +5,7 @@
Expand All @@ -296,7 +306,9 @@ index 9bf4ce755d5c..c9c792ca4c3d 100644
&pinctrl_usdhc2 {
fsl,pins = <
diff --git a/arch/arm64/boot/dts/freescale/imx8mm-evk.dts b/arch/arm64/boot/dts/freescale/imx8mm-evk.dts
index 8540d71b5eef..1252aaeceeb7 100755
old mode 100755
new mode 100644
index 8540d71b5eef..c5e542942aaf
--- a/arch/arm64/boot/dts/freescale/imx8mm-evk.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mm-evk.dts
@@ -1,163 +1,8 @@
Expand Down Expand Up @@ -465,13 +477,12 @@ index 8540d71b5eef..1252aaeceeb7 100755
- };
-};
+#include "imx8mm-evk-qca-wifi.dts"
\ No newline at end of file
diff --git a/arch/arm64/boot/dts/freescale/imx8mm-evkb.dts b/arch/arm64/boot/dts/freescale/imx8mm-evkb.dts
new file mode 100755
index 000000000000..86922c452066
new file mode 100644
index 000000000000..8663b3ddc103
--- /dev/null
+++ b/arch/arm64/boot/dts/freescale/imx8mm-evkb.dts
@@ -0,0 +1,163 @@
@@ -0,0 +1,162 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright 2019-2020 NXP
Expand All @@ -483,8 +494,8 @@ index 000000000000..86922c452066
+#include "imx8mm-evk.dtsi"
+
+/ {
+ model = "FSL i.MX8MM EVK board";
+ compatible = "fsl,imx8mm-evk", "fsl,imx8mm";
+ model = "FSL i.MX8MM EVKB board";
+ compatible = "fsl,imx8mm-evkb", "fsl,imx8mm-evk", "fsl,imx8mm";
+
+ aliases {
+ spi0 = &flexspi;
Expand Down Expand Up @@ -539,12 +550,11 @@ index 000000000000..86922c452066
+ pinctrl-0 = <&pinctrl_usdhc1>, <&pinctrl_wlan>;
+ pinctrl-1 = <&pinctrl_usdhc1_100mhz>, <&pinctrl_wlan>;
+ pinctrl-2 = <&pinctrl_usdhc1_200mhz>, <&pinctrl_wlan>;
+ bus-width = <4>;
+ keep-power-in-suspend;
+ non-removable;
+ wakeup-source;
+ mmc-pwrseq = <&usdhc1_pwrseq>;
+ fsl,sdio-interrupt-enabled;
+ fsl,sdio-async-interrupt-enabled;
+ status = "okay";
+
+ wifi_wake_host {
Expand Down Expand Up @@ -636,5 +646,5 @@ index 000000000000..86922c452066
+ };
+};
--
2.34.1
2.38.1

0 comments on commit 5cc9008

Please sign in to comment.