Age | Commit message (Collapse) | Author |
|
Add support for audio-codec NAU88C22 present on the Apalis Evaluation
Board v1.2 carrier board.
Upstream-Status: Pending
- This change depends on audio being supported on mainline for
iMX8QM/QP, which is not working yet.
Related-to: ELB-5535
Signed-off-by: Hiago De Franco <hiago.franco@toradex.com>
|
|
Add support for the new version, v1.2, of Apalis Evaluation Board with
Apalis iMX8 v1.1 QP module.
Board versions v1.0 and v1.1 are compatible with each other and should
use imx8qp-apalis-v1.1-eval.dts file dts file.
Upstream-Status: Inappropriate [other]
- Apalis iMX8 QP has no specific device tree file mainline, there the
device file for iMX8 QM is used.
Related-to: ELB-5535
Signed-off-by: Hiago De Franco <hiago.franco@toradex.com>
|
|
Add support for the new version, v1.2, of Apalis Evaluation Board.
Because only imx8-apalis-eval.dtsi was available and used as the only
board configuration for board version v1.0 and v1.1, it was changed to
be the common hardware configurations for all versions v1.0,
v1.1 and v1.2. Also, two .dtsi board files were added to have the
differences by board. The .dts were organized by SoM and board version.
Board versions v1.0 and v1.1 are compatible with each other and should
use imx8qm-apalis-eval.dts file or imx8qm-apalis-v1.1-eval.dts file
depending on SoM version. Now for v1.2, organized by SoM version too, the
files are imx8qm-apalis-eval-v1.2.dts and imx8qm-apalis-v1.1-eval-v1.2.dts.
Upstream-Status: Submitted [https://lore.kernel.org/all/20240125101457.9873-3-francesco@dolcini.it/]
Related-to: ELB-5535
Signed-off-by: Joao Paulo Goncalves <joao.goncalves@toradex.com>
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
|
|
With the addition of the Apalis Evaluation Board v1.2, a new audio codec,
NAU88C22, has been introduced, utilizing the simple-audio-card driver. To
fix the issue of the NAU8822 driver not playing sounds, enable the
SND_SIMPLE_CARD configuration.
Upstream-Status: Inappropriate [configuration]
- For mainline, our defconfig is built by merging the mainline
configuration called imx_v6_v7_defconfig with the one inside
meta-toradex-bsp-common called toradex_imx_v6_v7_defconfig. These
configurations are already enabled there.
Fixes: 80b5c496c67d ("apalis_imx6_defconfig: Add INA2XX, LM75 and NAU8822 configs")
Related-to: ELB-5534
Signed-off-by: Hiago De Franco <hiago.franco@toradex.com>
|
|
Apalis Evaluation Board v1.2 added some new on-board chips (compared to
v1.1) that are not yet enabled in the Linux kernel defconfig file:
- Audio codec NAU88C22YG
- Current/Voltage measurement INA219
- Temperature Sensor LM75
So add the necessary drivers as modules to support these new devices.
Upstream-Status: Inappropriate [configuration]
- For mainline, our defconfig is built by merging the mainline
configuration called imx_v6_v7_defconfig with the one inside
meta-toradex-bsp-common called toradex-imx_v6_v7_defconfig. These
configurations are already enabled there.
Related-to: ELB-5534
Signed-off-by: Hiago De Franco <hiago.franco@toradex.com>
|
|
Add support for the new Apalis Evaluation Board v1.2. Because
only the imx6q-apalis-eval.dts was available, the imx6q-apalis-eval.dtsi
has been created which has common hardware configurations for v1.0, v1.1
and v1.2. Both imx6q-apalis-eval.dts and imx6q-apalis-eval-v1.2.dts
files include imx6q-apalis-eval.dtsi.
Versions 1.0 and 1.1 are compatible with each other and should
use imx6q-apalis-eval.dts file. Now for v1.2, the new device-tree file
should be used.
Upstream-Status: Submitted [https://lore.kernel.org/all/20240124141849.26254-1-hiagofranco@gmail.com/]
Related-to: ELB-5534
Signed-off-by: Hiago De Franco <hiago.franco@toradex.com>
|
|
AP BSSID configuration is missing at AP start.
Without this fix, FW returns STA interface MAC address after first init.
When hostapd restarts, it gets MAC address from netdev before driver
sets STA MAC to netdev again. Now MAC address between hostapd and net
interface are different causes STA cannot connect to AP.
After that MAC address of uap0 mlan0 become the same. And issue
disappears after following hostapd restart (another issue is AP/STA MAC
address become the same).
This patch fixes the issue cleanly.
Upstream-Status: Submitted [https://lore.kernel.org/all/20231215005118.17031-1-yu-hao.lin@nxp.com/]
Signed-off-by: David Lin <yu-hao.lin@nxp.com>
Fixes: 12190c5d80bd ("mwifiex: add cfg80211 start_ap and stop_ap handlers")
Cc: stable@vger.kernel.org
Reviewed-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Tested-by: Rafael Beims <rafael.beims@toradex.com> # Verdin iMX8MP/SD8997 SD
Acked-by: Brian Norris <briannorris@chromium.org>
|
|
Micron MTFC4GACAJCN eMMC supports cache but requires that flush cache
operation be allowed only after a write has occurred. Otherwise, the
cache flush command or subsequent commands will time out.
Upstream-Status: Backport [ed9009ad300c0f15a3ecfe9613547b1962bde02c]
Signed-off-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Rafael Beims <rafael.beims@toradex.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20231030224809.59245-1-beanhuo@iokpp.de
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
|
|
Newer variants of Ixora boards require a power-up delay when powering up
the CAN transceiver of up to 1ms.
Upstream-Status: Submitted [https://lore.kernel.org/all/20231020153022.57858-3-andrejs.cainikovs@gmail.com/]
Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>
|
|
Newer variants of Ixora boards require a power-up delay when powering up
the CAN transceiver of up to 1ms.
Upstream-Status: Submitted [https://lore.kernel.org/all/20231020153022.57858-2-andrejs.cainikovs@gmail.com/]
Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>
|
|
Make sure to enable the clk_pixel clock during bind so that all other
driver in the display pipeline can rely on it. Without this change we
might see ghosting effects in around 10% of the reboots because
something in the display pipeline runs out of sync. With this change we
don't disable the clk_pixel when the display is turned off so this might
increase the power consumption in standby mode a bit. However, it would
require some bigger changes in the display pipeline to allow this.
Upstream-Status: Inappropriate [other]
The dpu is currently only supported in the downstream kernel. A fix will
most likely be applied by NXP to the downstream kernel. A similar patch
was provided by them but it breaks the DPMS off/standby mode. See this
ticket for more information:
https://support.nxp.com/s/case/5002p00002vUMOL/ghosting-effect-on-parallel-rgb-interface
Signed-off-by: Stefan Eichenberger <stefan.eichenberger@toradex.com>
|
|
Add USB Host and USB OTG (Client/Host switching) to the Aster carrier
board.
Upstream-Status: Pending
- No support as of now in upstream linux.
Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
|
|
Restore volume after charge pump and PGA activation to ensure
that volume settings are correctly applied when re-enabling codec
from SND_SOC_BIAS_OFF state.
CLASS_W, CHARGE_PUMP and POWER_MANAGEMENT_2 register configuration
affect how the volume register are applied and must be configured first.
Upstream-Status: Submitted [https://lore.kernel.org/all/20221223080247.7258-1-francesco@dolcini.it/]
Fixes: a91eb199e4dc ("ASoC: Initial WM8904 CODEC driver")
Link: https://lore.kernel.org/all/c7864c35-738c-a867-a6a6-ddf9f98df7e7@gmail.com/
Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
[ ghidoli: for backport use snd_soc_component_read32() instead of
snd_soc_component_read() as required before commit cf6e26c71bfd
("ASoC: soc-component: merge snd_soc_component_read() and snd_soc_component_read32()") ]
Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
|
|
Set optional `simple-audio-card,mclk-fs` parameter to ensure a proper
clock to the nau8822 audio codec. Without this change with an audio
stream rate of 44.1 kHz the playback is faster.
Set the MCLK at the right frequency, codec can properly use it to
generate 44.1 kHz I2S-FS.
Upstream-Status: Inappropriate [other]
This commit applies to downstream only, since there is no audio support upstream.
Fixes: 23b325adbaae ("arm64: dts: imx8mp-verdin: add device tree for dahlia")
Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
|
|
Set optional `simple-audio-card,mclk-fs` parameter to ensure a proper
clock to the nau8822 audio codec. Without this change with an audio
stream rate of 44.1 kHz the playback is faster.
Set the MCLK at the right frequency, codec can properly use it to
generate 44.1 kHz I2S-FS.
Upstream-Status: Submitted [https://lore.kernel.org/all/20221207102749.180485-1-francesco@dolcini.it/]
Fixes: 6a57f224f734 ("arm64: dts: freescale: add initial support for verdin imx8m mini")
Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
|
|
Set optional `simple-audio-card,mclk-fs` parameter to ensure a proper
clock to the wm8904 audio codec. Without this change with an audio
stream rate of 44.1 kHz the playback is completely distorted.
Related-to: ELB-4579
Upstream-Status: Inappropriate [other]
This commit applies to downstream only, since there is no audio support upstream.
Fixes: b6cf520e97bc ("arm64: dts: imx8mp-verdin: add device tree for dahlia")
Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
|
|
Set optional `simple-audio-card,mclk-fs` parameter to ensure a proper
clock to the wm8904 audio codec. Without this change with an audio
stream rate of 44.1 kHz the playback is completely distorted.
Related-to: ELB-4579
Upstream-Status: Submitted [https://lore.kernel.org/all/20221201125548.34793-1-francesco@dolcini.it/]
Fixes: Fixes: 6a57f224f734 ("arm64: dts: freescale: add initial support for verdin imx8m mini")
Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
|
|
The Verdin iMX8M Mini System on Module does not have USB-ID signal
connected on Verdin USB_2 (usbotg2). On Verdin Development board this is
no problem, as we have connected a USB-Hub that is always connected.
However, if Verdin USB_2 is desired to be used as a single USB-Host port
the chipidea driver does not detect if a USB device is plugged into this
port, due to runtime pm shutting down the PHY.
Add the power-domain &pgc_otg2 to &usbphynop2 in order to detect
plugging events and enumerate the usb device.
Fixes: 6a57f224f734 ("arm64: dts: freescale: add initial support for verdin imx8m mini")
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Upstream-Status: Backport [2fa24aa721ebb3a83dd2093814ba9a5dcdaa3183]
|
|
The GPIO signaling ctrl_sleep_moci is currently handled as a gpio hog.
But the gpio-hog node is made a child of the wrong gpio controller.
Move it to the node representing gpio4 so that it actually works.
Without this carrier board components jumpered to use the signal are
unconditionally switched off.
Fixes: 1d8df9c74bff ("arm64: dts: freescale: add initial support for verdin imx8m plus")
Upstream-status: Submitted [https://lore.kernel.org/all/20220922162925.2368577-2-marcel@ziswiler.com/]
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Add device tree files for the Verdin Yavia carrier board mated with
Verdin iMX8M Mini SoM.
Signed-off-by: Aishwarya Kothari <aishwarya.kothari@toradex.com>
|
|
Add device tree files for the Verdin Yavia carrier board mated with
Verdin iMX8M Plus SoM.
Signed-off-by: Aishwarya Kothari <aishwarya.kothari@toradex.com>
|
|
On the iris-v2 board, the external battery operated RTC is now mapped to
/dev/rtc0 and because of this the clock setup works as expected.
Signed-off-by: Aishwarya Kothari <aishwarya.kothari@toradex.com>
|
|
Both CAN controllers on Ixora v1.1 were left disabled
for some reason, even though these are present on both
Ixora v1.1 and v1.2. Lets align this and have enabled
all existing CAN controllers on all Ixora variants.
Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>
|
|
This adds SD card sleep state and relevant pinmux configuration
for Apalis iMX8 boards. Pins for sleep state are configured for
pull-disable, except card detect pin which is always pull-up.
Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>
|
|
A pin controlled by the iomuxc-snvs pin controller must be
specified under the dtb's iomuxc-snvs node.
Move the one and only pin of that category from the iomuxc node
and set the pinctrl-0 using it accordingly.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
[ commit 20ab378e5462c4e9b4703264d143d3aeb9882023 on toradex_4.14-2.3.x-imx ]
FusionF10A: 1024x600, used with external parallel to LVDS converter
FusionF07A: 800x480
EDT-VGA: 640x480
EDT-480x272: 480x272
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
[ps: forward port from toradex_4.14-2.3.x-imx]
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
|
|
Put the SGTL5000 in a silent/safe state on shutdown/remove, this is
required since the SGTL5000 produces a constant noise on its output
after it is configured and its clock is removed. Without this change
this is happening every time the module is unbound/removed or from
reboot till the clock is enabled again.
The issue was experienced on both a Toradex Colibri/Apalis iMX6, but can
be easily reproduced everywhere just playing something on the codec and
after that removing/unbinding the driver.
Fixes: 9b34e6cc3bc2 ("ASoC: Add Freescale SGTL5000 codec support")
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
|
|
Ixora board has external resistors on LED_4_* and LED_5_*.
Pins which are driving these LEDs should have no pull.
Also, configure LED pins for input/output.
Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>
|
|
Pull configuration should be set as pull-disabled for SD card CD# pin,
as it already has an external pull-up.
Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>
|
|
Remove sleep state from SD card pinmux configuration.
Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>
|
|
Ixora board v1.1 MicroSD card is 4-bit wide, same as v1.2.
This change leaves data pins 4-7 not configured, so that
these can be used for other purposes.
Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>
|
|
This fixes Ixora pinmux configuration, which should be defined within
apalis-imx8qm block.
Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>
|
|
Use IT temperature threshold for critical/passive trip point
on Verdin iMX8M Plus and Mini.
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
Reviewed-by: Francesco Dolcini <francesco.dolcini@toradex.com>
|
|
The usdhc1-cd-slp-grp node in the device tree is making use of PAD_LPSR
definitions and these definitions are not compatible with the iomuxc
node. Because of that, instead of setting up GPIO1_IO00 this group is
setting up the registers for GPIO1_IO15.
Moving the group to the iomuxc_lpsr node makes the setup for the correct
pin and also makes GPIO1_IO15 available again as a standard GPIO.
Relates-to: ELB-4525
Signed-off-by: Rafael Beims <rafael.beims@toradex.com>
|
|
commit 562354ab9f0aa4fcd8f2184506dcb9c18a792182 upstream.
With a recent change now it is possible to detect the strapping
option on SD8997, which allows to pick up a correct firmware
for either SDIO-SDIO or SDIO-UART.
This commit enables SDIO-UART firmware on SD8997.
Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220422090313.125857-3-andrejs.cainikovs@toradex.com
|
|
commit 255ca28a659d3cfb069f73c7644853ed93aecdb0 upstream.
Some WiFi/Bluetooth modules might have different host connection
options, allowing to either use SDIO for both WiFi and Bluetooth,
or SDIO for WiFi and UART for Bluetooth. It is possible to detect
whether a module has SDIO-SDIO or SDIO-UART connection by reading
its host strap register.
This change introduces a way to automatically select appropriate
firmware depending of the connection method, and removes a need
of symlinking or overwriting the original firmware file with a
required one.
Host strap register used in this commit comes from the NXP driver [1]
hosted at Code Aurora.
[1] https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_sdio_mmc.c?h=rel_imx_5.4.70_2.3.2&id=688b67b2c7220b01521ffe560da7eee33042c7bd#n1274
Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>
Reviewed-by: Alvin Šipraga <alsi@bang-olufsen.dk>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220422090313.125857-2-andrejs.cainikovs@toradex.com
|
|
This reverts commit b576488fa3b5715a1ef3eafc0b1c1d3514345613.
As it uses to break audio on i.MX 7 based modules.
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
|
|
|
|
philschenker/update-to-5.4.193__update-to-2.3.7__5.4-2.3.x-imx
Update Patchlevel on Branch 5.4-2.3.x-imx from 5.4.161->5.4.193
|
|
Update Kernel 5.4-2.3.x-imx to NXP Release Linux 5.4.70_2.3.7 Patch
|
|
This is the 5.4.193 stable release
Conflicts:
arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts
drivers/edac/synopsys_edac.c
drivers/mmc/host/sdhci-esdhc-imx.c
drivers/mmc/host/sdhci.c
drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c
sound/soc/codecs/msm8916-wcd-analog.c
|
|
drivers/soc/imx/soc-imx8m.c is probed later than the caam driver so that
return -EPROBE_DEFER is needed after calling soc_device_match() in
drivers/crypto/caam/ctrl.c. For i.MX8M, soc_device_match returning NULL
can be considered that the SoC device has not been probed yet, so it
returns -EPROBE_DEFER directly.
Fixes: 6375d33dce9a ("soc: imx8m: change to use platform driver")
Signed-off-by: Alice Guo <alice.guo@nxp.com>
Reviewed-by: Horia Geantă <horia.geanta@nxp.com>
(cherry picked from commit d5df21ff810453741e23aa62de3e3911957c42b1)
|
|
The power domains are causing the i2c expander to be reset during suspend resume. After resume the expander state is not being restored properly. So since the reset is optional, I am removing the power domains.
Signed-off-by: Oliver Brown <oliver.brown@nxp.com>
Reviewed-by: Shenwei Wang <shenwei.wang@nxp.com>
(cherry picked from commit b928f18fdf653d70871958f561357ad98fa4aa86)
|
|
Move the elcdif_pll clock initialization before the lcd_clk, since the
elcdif_clk needs to be initialized ahead of lcd_clk, being its parent.
This change fixes issues with the LCD clocks during suspend/resume.
Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
Suggested-by: Ranjani Vaidyanathan <ranjani.vaidyanathan@nxp.com>
Acked-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
(cherry picked from commit 0668a88908ccc841081b0509d80e0b4f6b5f9a78)
|
|
The connector type for a panel without a bridge should be DRM_MODE_CONNECTOR_DPI.
Signed-off-by: Oliver Brown <oliver.brown@nxp.com>
Reviewed-by: Robert Chiras <robert.chiras@nxp.com>
(cherry picked from commit cc8cfef78c0ebaa5936af8d1a65f9372680b6634)
|
|
For normal case, userspace should call streamon/streamoff balance, but
for some special case, the process will be killed or terminated and the
streamoff ioctl will be ignored. So driver need to handle the case.
Signed-off-by: Guoniu.zhou <guoniu.zhou@nxp.com>
Reviewed-by: Robby Cai <robby.cai@nxp.com>
(cherry picked from commit 057b44588095cb6be35175f42467c1481d0dd54b)
|
|
Consolidate SCU wakeup defines in the header file.
Signed-off-by: Ranjani Vaidyanathan <ranjani.vaidyanathan@nxp.com>
(cherry picked from commit d7b1dd90185df67fe1e713ff439fc898201cb8c8)
(cherry picked from commit 5693275abe2a558f7a433bba23eb8ae35bd30749)
|
|
sysfs
Consolidate SCU wakeup defines in the header file.
Signed-off-by: Ranjani Vaidyanathan <ranjani.vaidyanathan@nxp.com>
(cherry picked from commit ae44e6f054423fd6b228a147571cc77bc768138e)
(cherry picked from commit 8924966cd6cb48c0c549d07f028ee544fa6dca1a)
|
|
source from sysfs
Consolidate SCU wakeup defines in the header file.
Signed-off-by: Ranjani Vaidyanathan <ranjani.vaidyanathan@nxp.com>
(cherry picked from commit 9d2e7cc3a10f2ce1e36fc40acb494494bed08109)
(cherry picked from commit 0096d3876d96b1b400f5bf2cb999078236e28bf0)
Ported from codeaurora/imx_5.4.70_2.3.0
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
|
|
sysfs
Record SCU wakeup interrupt in /sys/power/pm_wakeup_irq
Signed-off-by: Ranjani Vaidyanathan <ranjani.vaidyanathan@nxp.com>
(cherry picked from commit e8d90d8901e42f9ac039086af9f1829030204fa8)
(cherry picked from commit 2b5bb07b7c25ae047530a78d5d19466f7b6b330c)
|