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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
|
|
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
|
|
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)
|
|
Update SPI CAN controller clock to match current hardware design.
Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>
|
|
[ Upstream commit 0310b5aa0656a94102344f1e9ae2892e342a665d ]
The ROHM BD71847 PMIC has a 32.768 kHz clock.
Describe the PMIC clock to fix the following boot errors:
bd718xx-clk bd71847-clk.1.auto: No parent clk found
bd718xx-clk: probe of bd71847-clk.1.auto failed with error -22
Based on the same fix done for imx8mm-evk as per commit
a6a355ede574 ("arm64: dts: imx8mm-evk: Add 32.768 kHz clock to PMIC")
Fixes: 3e44dd09736d ("arm64: dts: imx8mn-ddr4-evk: Add rohm,bd71847 PMIC support")
Signed-off-by: Fabio Estevam <festevam@denx.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
|
|
Add SD1 sleep pinctrl to avoid backfeeding during sleep.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Add SD1 sleep pinctrl to avoid backfeeding during sleep.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Add a note about us using discrete external on-module resistors
pulling-up to the on-module +V3.3_1.8_SD (LDO5) rail and explicitly
disabling the internal pull-ups due to ERR050080 [1]:
IO: Degradation of internal IO pullup/pulldown current capability for
IO’s continuously driven in a 3.3V operating mode
[1] https://www.nxp.com/webapp/Download?colCode=IMX8MM_0N87W
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Fix Lontium LT8912 based HDMI display adapter which requires its reset
pin being pulled-up as active-low and its hot-plug detect pulled-down
as active-high.
Fixes: 128d8860d36c ("arm64: dts: imx8mm-verdin: Update IOMUX configuration")
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Add and fill-in gpio-line-names property to gpio nodes.
Note that this represents re-designed V1.1 modules.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Likely, the extcon-usb-gpio should not be definied within the i2c4 node
but rather the SoC one.
This fixes the following device tree compiler warning:
arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi:581.28-586.4: Warning
(i2c_bus_reg): /soc@0/bus@30800000/i2c@30a50000/usb_1_id: missing or
empty reg property
And fixes the following error on boot:
[ 1.858518] i2c i2c-3: of_i2c: invalid reg on /soc@0/bus@30800000/
i2c@30a50000/usb_1_id
[ 1.866544] i2c i2c-3: Failed to create I2C device for /soc@0/bus@
30800000/i2c@30a50000/usb_1_id
Fixes: bfe277fce128 ("arm64: dts: imx8mp-verdin: move USB_1 extcon node")
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Given that the USB OTG ID pin is defined in the SOM schematics,
it should be part of the SOM device tree, not the carrier board.
Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>
|
|
The PCB of the hardware version V1.1 has a footprint for an optional
on-module I2C temperature sensor.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
The PCB of the hardware version V1.1 uses the UART4 (ECSPI2 pins) for
the Bluetooth UART, therefore move it to the Wi-Fi module device tree.
Move regular UART4 usage to non-WiFi only.
While at it also split Bluetooth specific pin from pinctrl_wifi_ctrl
into separate pinctrl_bluetooth_ctrl as that might be needed to run the
proprietary driver stack.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
The PCB of the hardware version V1.1 has the USB ID pin issue fixed.
Move USB_1_ID (pin 161) from USB1_ID to SD1_RESET_B. Support USB
device/host switching using the ID pin as an extcon GPIO.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
The PCB of the hardware version V1.1 has SODIMM pin 187 (USB_2_OC#)
swapped with 91 (CSI_1_MCLK).
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
As the PCB of the hardware version V1.1 has this fixed, also swapp RX
and TX signals of Bluetooth Audio (WiFi_TX_DATA and WiFi_RX_DATA) in
software (not that this is currently used anywhere).
While at it also rename bti2sgrp to wifii2sgrp.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Fix comment about SODIMM 151 vs. 153 mixup.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Split ETH_INT# being shared with TPM_INT# (usually N/A) into its own
pinctrl node and add a comment in that respect.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
In preparation for the PCB of the hardware version V1.1 module make the
default iomuxc pinctrl non-WiFi/wifi specific.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
As on the PCB of the hardware version V1.1 the footprint for an optional
SPI TPM (ATTPM20P) got replaced with one for an optional I2C TPM
(ST33GTPMII2C) which would not requiring any enable signal, remove
PMIC_TPM_ENA et al.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Re-order gpio3 and gpio4 nodes.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
SODIMM_179 should be SODIMM_174. Cosmetic typo, but
needs to be fixed to avoid confusion of our customers.
Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>
|
|
SODIMM_174 and SODIMM_250 gpio lines are used as, respectively,
WIFI_W_WKUP_HOST and WIFI_WKUP_WLAN, and hence should be not
used for user purposes. Remove these gpio line names from WiFi
variant.
Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>
|
|
Update IOMUX configuration as required by the hardware design team.
Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>
|
|
[ Upstream commit cbe9d948eadfe352ad45495a7cc5bf20a1b29d90 ]
The i2c rtc is on i2c2 bus not i2c1 bus, so fix it in dts.
Signed-off-by: Biwen Li <biwen.li@nxp.com>
Signed-off-by: Li Yang <leoyang.lil@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
|
|
Keep +3.3V pull-ups interface by default in imx8-apalis-v1.1.dtsi
SD card interface setting per board device tree:
imx8-apalis-eval.dtsi +3.3V pull-ups
imx8-apalis-ixora-v1.1.dtsi +3.3V pull-ups
imx8-apalis-ixora-v1.2.dtsi +1.8V signaling, UHS capable
Signed-off-by: Denys Drozdov <denys.drozdov@toradex.com>
|
|
The current verdin imx8mm device tree sets up the maximum SPI clock of
the MCP2518FD CAN controller to 2Mhz. After executing tests with real
CAN bus traffic, customers noticed significant packet loss (in some
cases higher than 30% of packets lost). With more testing, we found out
that increasing the SPI clock reduces the packet loss significantly
without noticeable negative impact. The tests were performed with 3
different bus rates (256kbps, 512kbps and 1Mbps) and 3 different CAN bus
occupation rates (~30%, ~55% and ~100%).
To select the SPI clock rate for this change, we considered an errata
for the MCP2518FD chip that states that the RAM can be corrupted when
written at high SPI clock speeds while there's simultaneous activity on
the CAN bus. The listed workaround for this issue is to limit the SPI
clock to 0.85 * (SYSCLK/2). On the verdin imx8mm we have the SYSCLK setup
in the hardware as 20MHz. This commit changes the SPI clock frequency to
8.5 Mhz so that we get the best performance out of the hardware.
With this change we can measure reduced packet loss in several
conditions, according to the table (all the tests executed with DLC 1):
+-------------+----------------+------------------+--------------------+
| Bus bitrate | Bus occupation | Packet Loss 2Mhz | Packet Loss 8.5Mhz |
+-------------+----------------+------------------+--------------------+
| 1Mbps | 57 % | 33.92 % | 0 |
+-------------+----------------+------------------+--------------------+
| 500kbps | 57 % | 12.03 % | 0 |
+-------------+----------------+------------------+--------------------+
| 1Mbps | 100 % | 31.68 % | 4.1 % |
+-------------+----------------+------------------+--------------------+
| 500kbps | 100 % | 32.66 % | 0.2 % |
+-------------+----------------+------------------+--------------------+
Signed-off-by: Rafael Beims <rafael.beims@toradex.com>
|