summaryrefslogtreecommitdiff
path: root/arch
AgeCommit message (Collapse)Author
2020-03-09ARM64: dts: verdin-imx8mm: Add off-on-delay to usdhc2Philippe Schenker
The hardware of verdin has some bypass caps after the switch that switches power to the sd-card. These caps are resulting in a slow discharge. Add off-on-delay to set a minimum off-time of the regulator so it can fully discharge until it turns on again. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-03-09ARM: dts: imx7-colibri: Fix frequency for eMMCOleksandr Suvorov
eMMC, used in Colibri iMX7D eMMC modules, supports 200Mhz mode with vccq=1.8v. Remove the max-frequency limit, it increases the performance significantly: == before fix ==== root@colibri-imx7-emmc:~# hdparm -t /dev/mmcblk1 /dev/mmcblk1: Timing buffered disk reads: `^H252 MB in 3.02 seconds = 83.54 MB/sec ================== === after fix ==== root@colibri-imx7-emmc:~# hdparm -t /dev/mmcblk0 /dev/mmcblk0: Timing buffered disk reads: 408 MB in 3.00 seconds = 135.94 MB/sec ================== Related-to: ELB-1442 Fixes: f928a4a377e4 ("ARM: dts: imx7: add Toradex Colibri iMX7D 1GB (eMMC) support") Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
2020-03-09ARM64: dts: apalis-imx8qm: V1.0 devicetree inherit from V1.1 dtsPhilippe Schenker
This commit basically deletes the devicetree for V1.0 Apalis iMX8 modules. It includes V1.1 devicetree then and only puts in the differences and deletes the nodes that are not used in V1.0. This is done to prevent code duplication and have better overview of what has changed. Related-to: ELB-1254 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-03-09ARM64: dts: apalis-imx8qm: add new v1.1-eval.dtsPhilippe Schenker
Related-to: ELB-1254 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-03-09ARM64: dts: apalis-imx8qm: changes to v1.1 modulePhilippe Schenker
Related-to: ELB-1254 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-03-09ARM64: dts: apalis-imx8qm: copy v1.0 devicetree to v1.1Philippe Schenker
This commit does no code changes it just copies fsl-imx8qm-apalis.dtsi to fsl-imx8qm-apalis-v1.1.dtsi. This is done to be able to track changes made between those versions. Related-to: ELB-1254 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-03-09ARM: dts: imx6q-apalis: Fix pin nameOleksandr Suvorov
The interface of Apalis modules is MXM3, not SODIMM. Just fix the name of the reset touch pin. Fixes: 96458caa3562 ("ARM: dts: imx6: Add touchscreens used on Toradex eval boards") Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
2020-03-09Merge remote-tracking branch 'fslc/4.14-2.3.x-imx' into toradex_4.14-2.3.x-imxMarcel Ziswiler
Conflicts: arch/arm64/boot/dts/freescale/Makefile arch/arm64/boot/dts/freescale/fsl-imx8qm-device.dtsi
2020-03-08Merge tag 'v4.14.170' into 4.14-2.3.x-imxMarcel Ziswiler
This is the 4.14.170 stable release Conflicts: drivers/net/phy/phy_device.c drivers/tty/serial/imx.c include/linux/platform_data/dma-imx-sdma.h net/wireless/util.c
2020-03-08Merge tag 'rel_imx_4.14.98_2.3.1_patch' into 4.14-2.3.x-imxMarcel Ziswiler
2020-02-12ARM64: dts: verdin-imx8mm: fix clocks after imx_4.14.98_2.3.0 mergeMarcel Ziswiler
Fix clocks after imx_4.14.98_2.3.0 resp. 4.14-2.3.x-imx merge: - NXP removed separate _DIV/_SRC clocks - AUDIO_PLL1/2 clocks got halfed Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2020-02-12ARM64: dts: verdin-imx8mm: bump copyright yearPhilippe Schenker
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-02-12ARM64: dts: add sn65dsi84 dsi-to-lvds bridge to devicetreePhilippe Schenker
Related-to: ELB-2289 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-02-12ARM64: dts: verdin-imx8mm: add atmel_mxt_ts touchscreen controllerPhilippe Schenker
Related-to: ELB-2289 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-02-12ARM64: dts: imx8mm-verdin: add backlightPhilippe Schenker
Related-to: ELB-2289 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-02-12ARM64: dts: apalis-imx8qm: add wifi power down pin to pcie supplyPhilippe Schenker
Related-to: ELB-2359 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-02-12ARM64: dts: apalis-imx8qm: add sleep-mode to fecPhilippe Schenker
Note: there is still backfeeding present at this moment from those pads: SC_P_ENET0_RGMII_TXD0 SC_P_ENET0_RGMII_TXD1 SC_P_ENET0_RGMII_RXD0 SC_P_ENET0_RGMII_RXD1 Related-to: ELB-1254 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-02-12ARM64: dts: apalis-imx8qm: add phy interrupt and led-modePhilippe Schenker
Related-to: ELB-1254 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-02-12ARM64: dts: apalis-imx8qm: add power-domain to power down ETH PHYPhilippe Schenker
Related-to: ELB-1254 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-02-12ARM64: defconfig: add SIMPLE_PM_BUS used for powering down ETH PHYPhilippe Schenker
Related-to: ELB-1254 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-02-12arm64: dts: fsl-imx8mm-verdin: eth phy: prevent backfeeding during sleepMax Krummenacher
Add a 'sleep' pinmuxing which prevents driving RGMII pins and backfeed the unpowered Ethernet PHY. When switching the Ethernet PHY supply off, it takes about 400 ms for the PHY power to go down. So wait a minimum of 500 ms before reenabling the PHY supply. Related-to: HAR-2339 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-02-12arm64: dts: fsl-imx8mm-verdin: eth phy: improve startupMax Krummenacher
After the Ethernet PHY supply is enabled an RC holds the reset asserted for about 120 ms. Reduce the time waited from 1000 ms to 200 ms which should account for any possible tolerance. U-Boot enables the PHY supply, switching it off in Linux with the RGMII pins allready muxed creates backfeeding, thus set regulator-boot-on. Related-to: HAR-2339 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-02-12apalis/colibri_imx6/-imx6ull/_imx7_defconfig: fix ip firewall (bpf/cgroup)Marcel Ziswiler
This fixes the following systemd error during boot: [ 4.225226] systemd[1]: File /lib/systemd/system/systemd-journald. service:36 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling. [ 4.242360] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.) Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> (similar to arm64 commit cfbad309c60a13bb7fb0ad4b1139a52d485db0cd)
2020-02-12arm64: dts: fsl-imx8mm-verdin: fix mipi-csi2 cameraMax Krummenacher
Use a OV5640 camera driver which works with the i.MX8 MM camera stack. gst-launch-1.0 v4l2src device='/dev/video0' ! video/x-raw,format=YUY2,width=1920,height=1080,framerate=30/1 ! waylandsink Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-02-12arm64: dts: fsl-imx8mm-verdin: fix uart2 pinmuxingMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-02-12colibri imx6: defconfig: add rtl8188eu driverOleksandr Suvorov
This driver supports Toradex USB WiFi module LP816. Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
2020-02-12colibri imx7: defconfig: add rtl8188eu driverOleksandr Suvorov
This driver supports Toradex USB WiFi module LP816. Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
2020-02-12colibri imx6ull: defconfig: add rtl8188eu driverOleksandr Suvorov
This driver supports Toradex USB WiFi module LP816. Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
2020-02-12apalis imx6: defconfig: add rtl8188eu driverOleksandr Suvorov
This driver supports Toradex USB WiFi module LP816. Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
2020-02-12ARM: dts: colibri-imx6ull: make use of new compatiblePhilippe Schenker
There is now a mainline variant for a regulator-fixed to be enabled by a clock. Make use of this newly cherry-picked mainline feature. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-02-12arm64: defconfig: add RTL8188EUS driverOleksandr Suvorov
Toradex USB WiFi module LM816 uses RTL8188EUS wi-fi chip. There is staging working driver in kernel for this chip. Enabling it makes one able to use LM816 wifi usb dongle "from the box" w/o installing additional software. Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
2020-02-12ARM64: fsl-imx8qm-ixora: Add support of Ixora v1.1Oleksandr Suvorov
Ixora board has several differences from the Apalis Evaluation one. Some important differences are reflected in personalized device-tree files. Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
2020-02-12arm64: dts: freescale: add initial support for verdin imx8mmMax Krummenacher
This patch adds the device tree to support Toradex Verdin iMX8M Mini a computer on module which can be used on different carrier boards. The module consists of an NXP i.MX 8M Mini family SoC, a Rohm BD71847 PMIC, a Gigabit Ethernet PHY, 2 GB of LPDDR4 RAM, an eMMC, an ADC, a Secure Element, an EEPROM, an RTC, USB host and OTG ports, PCIe and MIPI-CSI2/DSI interfaces plus optional Bluetooth/Wi-Fi module and CAN controllers. Anything that is not self-contained on the module is disabled by default. The device tree for the Verdin Development Board includes the module's device tree and enables the supported peripherals of the carrier board (the Verdin Development Board supports almost all of them). Not yet tested: - all UARTs other than console/debug Verdin UART_3 - push button controller on carrier board - JTAG - I2S to Wi-Fi - I2S to DSI Mezzanine Not yet working: - carrier board audio - MIPI-CSI2 - carrier board power gating - FTDI control signals and JTAG Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2020-02-12arm64: defconfig: add max1363 supportMax Krummenacher
On Verdin iMX8MM ADC is provided by a MAX11607. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-02-12arm64: defconfig: add mcp25xxfd supportMax Krummenacher
On Verdin iMX8MM Development board the CAN-FD controller Microchip MCP2518FD is used. Enable the driver which got backported from linux-can-next.git, branch mcp25xxfd-rpi. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-02-12arm64: defconfig: make imx_sdma a moduleMax Krummenacher
Remove firmware kobject uevent fallback mechanism and make imx_sdma a module so it gets loaded when rootfs is mounted. This prevents the error, that firmware can't be loaded from rootfs Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-02-12arm64: defconfig: add marvell wi-fi supportMax Krummenacher
On Verdin iMX8MM the Wi-Fi module is connected through SDIO. Add this driver variant. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-02-12arm64: defconfig: add wm8904 codec driverMax Krummenacher
On Verdin iMX8MM Development board this codec is used. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-02-12arm64: dts: apalis-imx8x: fix device tree compilation issueMarcel Ziswiler
This fixes the following device tree compilation issue as introduced by the previous commit 621db2fdb2e1 ("arm64: dts: apalis-imx8x: add adv7280 to devicetree"): DTC arch/arm64/boot/dts/freescale/fsl-imx8qxp-apalis-eval.dtb arch/arm64/boot/dts/freescale/fsl-imx8qxp-apalis-eval.dtb: ERROR (phandle_references): Reference to non-existent node or label "adv7280_ep" Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2020-02-12arm64: dts: apalis-imx8x: add adv7280 to devicetreePhilippe Schenker
This patch adds the adv7280 to the devicetree and makes changes that are necessary for parallel-CSI. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-02-12ARM: dts: colibri-imx6ull: pad_gpio1_io03: remove reserved bitsPhilippe Schenker
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-02-12ARM: dts: colibri-imx6ull: correct wrong pinmuxing and add commentsPhilippe Schenker
Some pinmuxings are obviously wrong, originating from a copy/paste error. This patch corrects that with the following strategy: - Set all reserved bits to zero - Leave drive strength and slew rate as is - Add sensible pull and hysteresis depending on the function of the pin - Not used pins are muxed to their reset-value defined by the SoC Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-02-12ARM64: dts: enable flexcan 1 and 2Philippe Schenker
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-02-12ARM64: dts: apalis-imx8x: Add support for MIPI-CSI cameraPhilippe Schenker
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-02-12ARM64: dts: apalis-imx8x: enable reset-on-resume for WiFi USBOleksandr Suvorov
USB WiFi soldered into Apalis iMX8X module and permamently connect to usbotg3 via usb 3.0 hub. After system resuming from suspend, WiFi module fails to communicate via USB interface: ----------------------------------------------------------- [ 1550.425744] usb usb2: root hub lost power or was reset [ 1551.756995] usb 2-1: reset SuperSpeed USB device number 2 using cdns-usb3 [ 1552.145771] usb 2-1.1: reset SuperSpeed USB device number 4 using cdns-usb3 [ 1552.196843] usb 2-1.1: PREP_CMD: device in suspended state [ 1552.202412] usb 2-1.1: mwifiex_usb_disconnect: removing card [ 1552.208209] usb 2-1.1: info: shutdown mwifiex... [ 1552.213071] usb 2-1.1: PREP_CMD: device in suspended state [ 1552.236771] usb 2-1.1: PREP_CMD: device in suspended state [ 1552.661125] usb 2-1.1:1.0: rebind failed: -517 [ 1552.665648] usb 2-1.1:1.1: rebind failed: -517 [ 1552.670118] usb 2-1.1:1.2: rebind failed: -517 [ 1552.676051] PM: resume devices took 2.276 seconds [ 1552.681128] OOM killer enabled. [ 1552.684296] Restarting tasks ... [ 1552.692860] usb 2-1.1: WLAN FW is active [ 1552.693897] done. [ 1552.702695] PM: suspend exit ... [ 1562.764794] usb 2-1.1: mwifiex_cmd_timeout_func: Timeout cmd id = 0xa9, act = 0x0 [ 1562.772300] usb 2-1.1: num_data_h2c_failure = 0 [ 1562.776865] usb 2-1.1: num_cmd_h2c_failure = 0 [ 1562.781340] usb 2-1.1: is_cmd_timedout = 1 [ 1562.785462] usb 2-1.1: num_tx_timeout = 0 [ 1562.789492] usb 2-1.1: last_cmd_index = 1 [ 1562.793524] usb 2-1.1: last_cmd_id: 00 00 a9 00 00 00 00 00 00 00 [ 1562.799639] usb 2-1.1: last_cmd_act: 00 00 00 00 00 00 00 00 00 00 [ 1562.805842] usb 2-1.1: last_cmd_resp_index = 0 [ 1562.810308] usb 2-1.1: last_cmd_resp_id: 00 00 00 00 00 00 00 00 00 00 [ 1562.816857] usb 2-1.1: last_event_index = 0 [ 1562.821060] usb 2-1.1: last_event: 00 00 00 00 00 00 00 00 00 00 [ 1562.827091] usb 2-1.1: data_sent=0 cmd_sent=1 [ 1562.831470] usb 2-1.1: ps_mode=0 ps_state=0 [ 1562.835700] usb 2-1.1: info: _mwifiex_fw_dpc: unregister device ----------------------------------------------------------- Enable reset-on-resume feature of usb phy-generic driver fixes this issue. Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
2020-02-12ARM64: dts: apalis-imx8x: Move part of usbotg3 to SoM levelOleksandr Suvorov
USBOTG3 connects to USB Hub placed on SoM. As well as its VBUS enable signal exports to board X1 connector. Move a part of usbotg3 node to SoM module too. Related-to: #57466 Related-to: #55501 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
2020-02-12ARM64: fsl-imx8qm-apalis: fix wakeup by gpio keyOleksandr Suvorov
Add required pad-wakeup/pad-wakeup-num properties to have wakeup by gpio key function working. Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
2020-02-12colibri-imx6ull_defconfig: Include BT SDIO moduleOleksandr Suvorov
Colibri iMX6ULL operates BT part of AW-CM276NF WiFi/BT modules in SDIO mode. Including HCI Bluetooth SDIO and Marvell BT/SDIO drivers makes system able to use bluetoth module. (Reported by CTO team of Ciklum) Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
2020-02-12ARM64: dts: apalis-imx8qxp: enable all uart interfacesPhilippe Schenker
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-02-12ARM64: dts: apalis-imx8qxp: uncomment mipi_dsi1 section and disable itPhilippe Schenker
For HDMI the mipi_dsi_bridge2 is used and on this pins lvds is running per default. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>