summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-11-30arm64: dts: imx8mp-verdin: prepare for dsi to hdmi adapterMax Krummenacher
Prepare the nodes for the DSI to HDMI Adapter overlay. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-11-29arm64: defconfig: fix ov5640 crash on i.mx 8m plusMarcel Ziswiler
The OV5640 driver crashes on NXP's i.MX 8M Plus if loaded as a module. Related to: ELB-3209 Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2020-11-29ARM: dts: colibri-imx6ull: do not pull-up sd-clk but sd-cmd signalPhilippe Schenker
From the SD-Card specification: > The host shall supply power to the card so that the voltage is > reached to V DD _min within 250ms and start to supply at least > 74 SD clocks to the SD card with keeping CMD line to high. In case of > SPI mode, CS shall be held to high during 74 clock cycles. According to this information I think we should pull the CMD data line like on other boards to 3.3V. Also on other boards we do have the CLK signal pulled. This looks like this got mixed that up. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-11-26arm64: dts: imx8mp-verdin: add ext_osc to pcie_phy and prevent warningMax Krummenacher
The pcie_phy uses ext_osc info in addition to the pcie node. While at it add the bus-range property to prevent: No bus range found for /pcie@33800000, using [bus 00-ff] Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-11-26MLK-24410 phy: pcie: imx8mp: correct the clock mode of the pcie phyRichard Zhu
Correct the clock mode of PCIe PHY. Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com> Reviewed-by: Fugang Duan <fugang.duan@nxp.com> (cherry picked from commit 2c23d9de9fc41d5436a7d3f8510fc95f3bf1c56b)
2020-11-26MLK-24171-5 PCI: imx8mp: verify the pcie internal pll reference clockRichard Zhu
- Verify the both internal PLL_SYS and external OSC reference clock modes on iMX8MP EVK board, and pass the PCIe compliance tests. - Remove the no-needed bypass setting. - PHY configration should be completed before CMN_RSTN is set to 1b1 - To manually initiate the speed change to make sure GEN2 is linked up: - Write to LINK_CONTROL2_LINK_STATUS2_REG.PCIE_CAP_TARGET_LINK_SPEED in the local device - De-assert GEN2_CTRL_OFF.DIRECT_SPEED_CHANGE in the local device - Assert GEN2_CTRL_OFF.DIRECT_SPEED_CHANGE in the local device Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com> Reviewed-by: Fugang Duan <fugang.duan@nxp.com> (cherry picked from commit 12589ba98b1145e2d2a9f439b20064197aea8ca9)
2020-11-26MLK-24171-4 reset: imx7: add perst for imx8mp pcieRichard Zhu
Add the PERST for iMX8MP PCIe. Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com> Reviewed-by: Fugang Duan <fugang.duan@nxp.com> (cherry picked from commit 0a91df355e20aa53a4bcaa9d352952e5fa9e4ef6)
2020-11-26MLK-24171-3 phy: pcie: imx8mp: verify the pll sys ref clock sourceRichard Zhu
Verify the PCIe PLL_SYS reference clock source on EVK board. The external OSC clock is used as PCIe REF clock source in default. - sequence should be the following one. phy configuration--> CMN_RSTN--> wait for pll lock - add the calibrate callback to fit the correct init sequence of phy Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com> Reviewed-by: Fugang Duan <fugang.duan@nxp.com> (cherry picked from commit 9afaf7a465858970aee8858fb52067f2ef152c7f)
2020-11-26MLK-24171-2 dt-binding: phy: update the clock modes of pcie phyRichard Zhu
Update the clock modes of iMX8MP PCIe PHY in binding DOC. Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com> Reviewed-by: Fugang Duan <fugang.duan@nxp.com> (cherry picked from commit eade3750bf840948b29db26f0beabf10dea5f981)
2020-11-26MLK-24171-1 arm64: dts: imx8mp: verify the pcie pll sys ref clockRichard Zhu
Verify the PCIe PLL_SYS reference clock source on EVK board. The external OSC clock is used as PCIe REF clock source in default. NOTE: Change the ext_osc of pcie/pcie_phy to '0' when enable SYS_PLL clock mode. Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com> Reviewed-by: Fugang Duan <fugang.duan@nxp.com> (cherry picked from commit 1bda33273eccae3c0d878d34660eca9da1765db0)
2020-11-26MLK-24170 PCI: imx: configure the l1 latency for imx8m pcie rcRichard Zhu
Configure the L1 latency of iMX8M's RC to less than 64us, otherwise, the L1/L1SS wouldn't be enabled by ASPM. Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com> Reviewed-by: Fugang Duan <fugang.duan@nxp.com> (cherry picked from commit eb9fdb1d10c10dc4d4bbe9bc6fc060afe1485989)
2020-11-26arm: dts: imx7d: add missing weim nodeJaskaranjeet Singh
Signed-off-by: Jaskaranjeet Singh <jaskaranjeet.singh@toradex.com>
2020-11-25mfd: stmpe: support disabling sub-functionsOleksandr Suvorov
Add support of sub-functions disabling. It allows one to define and turn on sub-function devices in different devicetree files. Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
2020-11-25ARM: dts: apalis-imx6: remove unused nodesOleksandr Suvorov
Toradex BSP 5.x uses the video/fbdev stack of display drivers. Remove unused nodes for gpu/drm/imx stack of drivers. Related-to: ELB-3240 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
2020-11-25arm64: dts: imx8mp-verdin: fix eqos macMax Krummenacher
With the driver now supporting the phy-supply property, remove the regulator-boot-on property. The driver does not support the 'sleep' state pinctrl. Remove it. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-11-25arm64: dts: imx8mp-verdin: remove phy-supply from fecMax Krummenacher
The PHY connected to the FEC doesn't have a seperate switchable rail. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-11-25net: stmmac: dwmac-imx: add phy-supplyMax Krummenacher
Add an support for an optional regulator which powers an attached phy. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-11-25arm64: defconfig: synchronize with savedefconfigMax Krummenacher
CONFIG_CRYPTO_XTS is selcted (as 'y') by CRYPTO_DEV_FSL_CAAM_CRYPTO_API_QI. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-11-25arm64: defconfig: reenable drivers previously enabledMax Krummenacher
This adds back drivers enabled in the following 3 commits commit e7704de31f0b ("arm64: defconfig: add zram support") commit 08d125a06697 ("arm64: defconfig: add sound drivers for Gumstix AutoBSP") commit f2bf706a88d6 ("arm64: defconfig: add bluetooth drivers for Gumstix AutoBSP") Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-11-25arm64: dts: imx8mp-verdin: add device tree for dahliaMax Krummenacher
Only the Development Board gives access to the native hdmi signals. Move the nodes into imx8mp-verdin-dev.dtsi. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-11-25arm64: dts: imx8mp-verdin: change wi-fi-i2s muxing to gpioMax Krummenacher
RX and TX seem to be swapped and the function is currently not implemented. Mux the pins as GPIOs to ensure to not have two connected outputs. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-11-25arm64: dts: imx8mp-verdin: correct audio codec mclk clkMax Krummenacher
Use the correct clk as the mclk. Additionally set the mux pad values to a more sensible value, i.e. for inputs enable the pullup. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-11-25ARM: dts: colibri-imx7: remove atmel mxt tsOleksandr Suvorov
This device is described in an overlay. Removing this node here fixes the kernel stuck if the colibri-imx7-aster_atmel-mxt_overlay is applied. Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
2020-11-24ARM: dts: apalis-imx6: add atmel mxt tsOleksandr Suvorov
According to the decision to use overlays just for enabling subsystems, add back the definition of Atmel MXT touchscreen device. Related-to: ELB-3240 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
2020-11-24ARM: dts: apalis-imx6: disable vga interfaceOleksandr Suvorov
The VGA interface and all related stuff enable in an overlay. Remains them disabled in the main devicetree. Realetd-to: ELB-3240 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
2020-11-24ARM: dts: apalis-imx6: rework and disable hdmi_tx_ddcOleksandr Suvorov
Now HDMI interface is driven with an overlay, so that it is not needed to configure hdmi_ddc on a board level. Move all i2cddc/hdmi_ddc stuff to the module level and disable it by default. Related-to: ELB-3240 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
2020-11-24ARM: dts: apalis-imx6: disable hdmi interfaceOleksandr Suvorov
The HDMI interface and all related stuff enable in an overlay. Remains them disabled in the main devicetree. Realetd-to: ELB-3240 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
2020-11-24ARM: dts: apalis-imx6: disable stmpe touchscreenOleksandr Suvorov
This device enables in an overlay. Remains it disabled here. Realetd-to: ELB-3240 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
2020-11-24ARM: dts: apalis-imx6: move backlight to module levelOleksandr Suvorov
PWM-part of the backlight device is the same for all Toradex boards. Move all backlight properties to the module-level devicetree. Remain the device disabled - it should be enabled in corresponding overlays. Related-to: ELB-3240 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
2020-11-24ARM: dts: apalis-imx6: ixora: disable lcd/lvds interfacesOleksandr Suvorov
The LCD (parallel RGB) and LVDS interfaces and all related stuff are driven with overlays. This stuff is already disabled for Evaluation board. Disable it for all versions of Ixora board as well. Realetd-to: ELB-3240 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
2020-11-21arm64: dts: imx8mp-verdin: enable native hdmi functionalityMarcel Ziswiler
On the i.MX 8M Plus the 3rd LCDIF drives an on-SoC Samsung HDMI PHY giving us native HDMI functionality. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2020-11-21arm64: defconfig: enable samsung hdmi phy supportMarcel Ziswiler
On the i.MX 8M Plus the 3rd LCDIF drives an on-SoC Samsung HDMI PHY giving us native HDMI functionality. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2020-11-19arm64: dts: imx8mp-verdin: add initial device treeMax Krummenacher
At least the following of the configured devices work: - Console - eMMC - ETH0 - ETH1 - SD_1 - USB_1 as peripheral, USB_2 as host - CAN_1, CAN_2 Everything else is either known to not work or untested. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-11-19arm: defconfig: addional options needed for verdin imx8m plusMax Krummenacher
Enable CONFIG_STMMAC_ETH for the additional MAC in the i.MX8 M Plus. Enable CONFIG_VLAN_8021Q/CONFIG_TSN for new features that MAC supports. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-11-19Merge commit '685021f75fc48afaf6de76280a601316cde827c2' into ↵Igor Opaniuk
toradex_5.4-2.1.x-imx
2020-11-18Merge pull request #174 from igoropaniuk/5.4-2.1.x-imxOtavio Salvador
Update 5.4-2.1.x-imx to v5.4.77 from stable
2020-11-19Merge tag 'v5.4.77' into 5.4-2.1.x-imxIgor Opaniuk
This is the 5.4.77 stable release Merge conflicts: Merged automatically, no conflicts Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
2020-11-17arm64: dts: apalis/colibri-imx8qxp: use pmic sensor nameOleksandr Suvorov
Use the predefined resource name of the PMIC thermal sensor. Related-to: ELB-3037 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
2020-11-17Merge branch 'toradex_5.4-2.1.x-imx' into HEADIgor Opaniuk
2020-11-13net: wireless: cfg80211: delete sched_scan error messagePhilippe Schenker
Do not print an error. This is no error in our use-case so just delete this error message that confuses users. As we now move back to full loglevel this is the only way to get rid of that message. fixes: d182137f18f24de3bc4b45c5a3d52e2f8f96a093 net: wireless: cfg80211: decrease importance of sched_scan message Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-11-13Revert "ARM/ARM64: apalis/colibri defconfigs: decrease default console loglevel"Philippe Schenker
This reverts commit 2c7781c5d5d0b0c8b4c67f945fdf7e8992fb36b5. We decided to go back to full loglevel so customers can see all messages on boot. Related-to: ELB-3183 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-11-13Merge commit '70d1232fdbe28e4c765c4cfc3cc5c7580959d5e0' into ↵Igor Opaniuk
toradex_5.4-2.1.x-imx Update 5.4-2.1.x-imx to v5.4.74 from [1]. [1] https://github.com/Freescale/linux-fslc
2020-11-11MLK-24521: drm: bridge: hdmi: Prevent the driver from rejecting VIC 0 modesOliver F. Brown
iMX8QM can support the non CEA modes, iMX8M cannot support non CEA modes. So driver should allow non CEA modes for iMX8QM. Signed-off-by: Oliver F. Brown <oliver.brown@nxp.com> Reviewed-by: Liu Ying <victor.liu@nxp.com> (cherry picked from commit 863af2196cb53200f50b1d04c6eb90d04262b0e4) Related-to: ELB-3237 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-11-10Linux 5.4.77Greg Kroah-Hartman
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-11-10powercap: restrict energy meter to root accessLen Brown
commit 949dd0104c496fa7c14991a23c03c62e44637e71 upstream. Remove non-privileged user access to power data contained in /sys/class/powercap/intel-rapl*/*/energy_uj Non-privileged users currently have read access to power data and can use this data to form a security attack. Some privileged drivers/applications need read access to this data, but don't expose it to non-privileged users. For example, thermald uses this data to ensure that power management works correctly. Thus removing non-privileged access is preferred over completely disabling this power reporting capability with CONFIG_INTEL_RAPL=n. Fixes: 95677a9a3847 ("PowerCap: Fix mode for energy counter") Signed-off-by: Len Brown <len.brown@intel.com> Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-11-10arm64: dts: apalis-imx8: enable vpu mailboxesMax Krummenacher
The VPU subsystem uses hardware Messaging Units (MU) for inter processor communication with the controlling OS. The driver for the MU is implemented as a Linux mailbox. Enable the VPU MU in the device-tree. Related-to: ELB-3196 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-11-10Merge pull request #171 from zandrey/5.4-2.1.x-imxOtavio Salvador
Update 5.4-2.1.x-imx to v5.4.76 from stable
2020-11-10Merge tag 'v5.4.76' into 5.4-2.1.x-imxAndrey Zhizhikin
This is the 5.4.76 stable release Conflicts: - drivers/tty/serial/fsl_lpuart.c: Fix merge conflict of upstream patches [86875e1d6426] and [8febdfb5973d], which contradicted with patch [cde0cb39c0e8e] from NXP. Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
2020-11-10ARM: dts: apalis-imx6: move atmel mxt ts to overlayOleksandr Suvorov
The touchscreen Atmel MXT TS is integrated to display panels. Remove its definition from the main device trees. Also release pingroups used in atmel mxt ts overlay from iomuxc driver. Related-to: ELB-2943 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
2020-11-10Linux 5.4.76Greg Kroah-Hartman
Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Guenter Roeck <linux@roeck-us.net> Tested-by: Shuah Khan <skhan@linuxfoundation.org> Tested-by: Linux Kernel Functional Testing <lkft@linaro.org> Link: https://lore.kernel.org/r/20201109125022.614792961@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>