summaryrefslogtreecommitdiff
path: root/arch
AgeCommit message (Collapse)Author
2021-03-19ARM: imx6: fix setting up pm_power_off callbackOleksandr Suvorov
It is not necessarily that the system with set up the POWER_RESET_GPIO config option has the enabled device "gpio-poweroff". Without this device the "pm_power_off" callback remains uninitialized and the syscall "reboot" converts the signal LINUX_REBOOT_CMD_POWER_OFF into LINUX_REBOOT_CMD_HALT. This leads to skip calling the callback "pm_power_off_prepare" that should do an important work for iMX6+PF0100 systems: it should turns down all power rails of PMIC PF0100 to emulate a "power off" state as a workaround for a PMIC PF0100 with PMIC_ON_REQ and VCC_BATT is supplied from a battery, leading to unable to restart the module either by RESET or power cycle. Note, that gpio-poweroff device still can grab the pm_power_off callback using the property "force-mode" introduced in the commit: 964f69e00a4d ("power: reset: gpio-poweroff: add force-mode") Enable setting pm_power_off callback on the system with POWER_RESET_GPIO config option. Related-to: ELB-3580 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com> (cherry-picked from aebbdbb42fbec323d242a6c0fb5fe6c97636ee3e)
2021-02-24apalis-imx8: fix usb hsic supportMarcel Ziswiler
Looks like from the very beginning we were missing a proper pinmuxing for the active state of the HSIC data pin! Settings taken from discussion on NXP's public community forum: https://community.nxp.com/t5/i-MX-Processors/i-MX-8QuadMax-USB-HSIC-Functionality/m-p/1228662/highlight/true#M169217 Fixes: 321682bbb785 ("apalis-imx8qm: add USB HSIC support") Related-to: ELB-3228 Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> (cherry picked from commit a43e07cd3980304b3665fff7b816dee6dad2bf5e) Put settings into different file, as the filename changed in 5.4. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-10-20arm64: dts: fsl: imx8qm: fix sai2 and sai3Tomislav Lugarić
Sai2 and Sai3 definitions for DMA were missing in the device tree of kernel 4.14. Signed-off-by: Stefan Eichenberger <stefan.eichenberger@toradex.com>
2020-09-21arm64: dts: apalis-imx8 ixora v1.1: fix led gpio-line-namesMarcel Ziswiler
Our GPIO list starts with gpio5-01 while it really should start with gpio5-00. So the whole list is shifted by one. Related-to: ELB-3032 Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> (cherry picked from commit a4fae6e282a3b68f6d6c7dd5b7deca3b33099abb)
2020-09-18arm64: dts: freescale: fsl-imx8mm-verdin: correct ldo1/ldo2 voltageMarcel Ziswiler
Correct ldo1/ldo2 voltage as below: ldo1 --NVCC_SNVS_1V8 ldo2 --VDD_SNVS_0V8 Analogous to commit 96c179b63e7b ("MLK-23275-1: ARM64: dts: freescale: fsl-imx8mm-evk: correct ldo1/ldo2 voltage") from NXP's downstream BSP. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2020-09-18Merge remote-tracking branch 'remotes/codeaurora/imx_4.14.98_2.3.0' into ↵Marcel Ziswiler
toradex_4.14-2.3.x-imx
2020-09-16ARM64: dts: apalis-imx8qm: default to a 3.3v rail for the ext rgmii signalsMax Krummenacher
The pins which can be used for an external ethernet PHY are powered by a sepearte LDO. Currently in the device tree this rail is set to 1.8V, the default apalis functionality of these pins requires 3.3V so change to that. If used with an external PHY in addition to add the PHY to the device also the rail's voltage needs to be adapted. Related-to: ELB-2899 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-08-20ARM64: dts: verdin-imx8mm: add m4/rpmsg nodesGustavo Leal
This commit adds the Cortex-M4- and RPMsg-related nodes to the base Verdin iMX8M Mini device tree.
2020-07-14ARM: defconfig: apalis/colibri-imx*: enable GPIO/serial sources for PPSOleksandr Suvorov
Enable GPIO and serial-port (CD-signal) sources for the PPS (pulse-per-second) module. Related-to: ELB-2837 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
2020-07-14arm64: defconfig: enable GPIO/serial sources for PPSOleksandr Suvorov
Enable GPIO and serial-port (CD-signal) sources for the PPS (pulse-per-second) module. Related-to: ELB-2837 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
2020-07-14ARM64: dts: apalis-imx8x: remove no-1-8-v from sd-card nodePhilippe Schenker
Related-to: ELB-2606, ELB-2730 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-07-14ARM64: dts: colibri-imx8x: remove no-1-8-v from sd-card nodePhilippe Schenker
Related-to: ELB-2606, ELB-2730 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-07-14ARM64: dts: apalis-imx8x: disable write-protection on apalis-sdPhilippe Schenker
Apalis carrier boards do not have the Write-Protect signal connected Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-07-12MLK-24390 ARM: dts: Add the missing wifi dts file for imx6ulz lite evkJacky Bai
The dts file for WIFI support on i.MX6ULZ Lite is missed, so add it. Signed-off-by: Jacky Bai <ping.bai@nxp.com> Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
2020-07-10MLK-24388: ARM: dts: Add more dts for imx6ulz liteJacky Bai
Add btwifi dts support for i.MX6ULZ Lite. Signed-off-by: Jacky Bai <ping.bai@nxp.com> Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
2020-07-10MLK-24369 ARM: imx: Add dummy soc id for imx6ulz liteJacky Bai
for i.MX6ULZ Lite, there is no dedicated SOC id for it, so add a dummy ID and identify it by checking the MARK bit in fuse. Signed-off-by: Jacky Bai <ping.bai@nxp.com> Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
2020-07-09arm64: dts: apalis-imx8qm: add ar0521 device treesMarcel Ziswiler
Temporarily add device trees for the e-con Systems e-CAM50_CUIMX8. Once we have working device tree overlays for this we may drop those again. These are the albeit heavily modified device tree parts from the following patch we got from Yogaesh <yogaesh@e-consystems.com> on May 8, 2020: Related-to: ELB-2793 Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2020-07-09arm64: defconfig: enable ar0521 driverMarcel Ziswiler
Enable driver for the e-con Systems e-CAM50_CUIMX8. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2020-07-09arm64: dts: apalis-imx8qxp: cleanup pinctrl gpio messMarcel Ziswiler
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2020-07-09arm64: dts: apalis-imx8qm: cleanup pinctrl gpio messMarcel Ziswiler
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2020-07-08arm64: dts: apalis-imx8qm: improve v1.1 related stuffMarcel Ziswiler
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2020-07-07ARM64: dts: apalis-imx8: use proper rgmii-rxidPhilippe Schenker
This is needed for the new KSZ9131 phy Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-07-06ARM64: dts: apalis-imx8qm: sync pcie clocks with NXP branch imx_4.14.98_2.3.0Oleksandr Suvorov
NXP fixes a lot of issues in PCIe subsystem, in particular, add new clocks. Synchronize the set of clocks for Apalis-iMX8QM SoM. Related-to: ELB-1306 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
2020-07-06Merge branch 'imx_4.14.98_2.3.0' into toradex_4.14-2.3.x-imxOleksandr Suvorov
Fix conflicts after merging changes from the latest NXP branch. Conflicts: arch/arm64/boot/dts/freescale/fsl-imx8qm-device.dtsi drivers/pci/dwc/pci-imx6.c Related-to: ELB-1306 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
2020-07-02ARM64: dts: fsl-imx8qm-apalis-v1.1-eval: change model stringSergio Prado
Change model string of iMX8QM/QP V1.1 to differentiate from the model string used in the device tree for the earlier iMX8QM/QP module (this has been causing problems with the dtconf tool). Related-to: ELB-2829 Signed-off-by: Sergio Prado <sergio.prado@toradex.com>
2020-07-01MLK-24359 ARM: dts: Add the i.MX6ULZ Lite EVK board supportJacky Bai
The i.MX6ULZ Lite is full compatible with i.MX6ULL/ULZ, and only support 9x9 package. Signed-off-by: Jacky Bai <ping.bai@nxp.com> Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
2020-06-24ARM64: dts: apalis-imx8qm-v1.1: spi: use gpio csMax Krummenacher
It’s a limitation that one cannot use native SPI CS & DMA and have a continuous CS for the whole transfer. The CS is deasserted after each word sent. One can either use DMA and GPIO CS or one can use PIO mode. With this commit we change from using PIO mode to DMA mode and change the CS used from the IP provided one to GPIO CS on the same pin. This sync's the SPI configuration with the i.MX 8X based modules which already uses DMA with GPIO CS. Related-to: ELB-1278 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-06-18ARM: dts: imx8qxp-apalis: add gpio-line-namesMax Krummenacher
Add GPIO line names on module level. Those are all GPIOs which a user might use on his custom carrier board. If more meaningful names are available on the carrier board, the user can overwrite the line names in the carrier board level device tree. Related-to: ELB-2528 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-06-18ARM: dts: imx8qm-apalis: add gpio-line-namesMax Krummenacher
Add GPIO line names on module level. Those are all GPIOs which a user might use on his custom carrier board. If more meaningful names are available on the carrier board, the user can overwrite the line names in the carrier board level device tree. Related-to: ELB-2527 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-06-18ARM: dts: imx8qxp-colibri: add gpio-line-namesMax Krummenacher
Add GPIO line names on module level. Those are all GPIOs which a user might use on his custom carrier board. If more meaningful names are available on the carrier board, the user can overwrite the line names in the carrier board level device tree. Related-to: ELB-2526 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-06-18ARM: dts: imx6ull-colibri: add gpio-line-namesMax Krummenacher
Add GPIO line names on module level. Those are all GPIOs which a user might use on his custom carrier board. If more meaningful names are available on the carrier board, the user can overwrite the line names in the carrier board level device tree. Related-to: ELB-2794 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-06-18arm64: defconfig: add bluetooth drivers for Gumstix AutoBSPStefan Agner
Add bluetooth drivers useful for the Gumstix AutoBSP as kernel modules. Related-to: TOR-1068 Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2020-06-18arm64: defconfig: add sensor drivers for Gumstix AutoBSPStefan Agner
Add iio/hwmon sensor drivers useful for the Gumstix AutoBSP as kernel modules. Related-to: TOR-1068 Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2020-06-18arm64: defconfig: add sound drivers for Gumstix AutoBSPStefan Agner
Add sound drivers useful for the Gumstix AutoBSP as kernel modules. Related-to: TOR-1068 Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2020-06-15ARM64: dts: verdin-imx8mm: sort alphabeticallyMarcel Ziswiler
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2020-06-05ARM64: dts: apalis-imx8x: integrate reset_moci#_drv handlingPhilippe Schenker
Integrate RESET_MOCI#_DRV handling with work-around for PCIe switch as found on the Apalis Evaluation Board similar to what we upstreamed. Related-to: ELB-1929 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-06-05ARM64: dts: apalis-imx8x: pull reset_moci low into reset-activePhilippe Schenker
This pulls the reset_moci signal by default low and insures reset is applied when pin is being muxed. It needs then actively set high for getting out of reset. Related-to: ELB-1929 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-05-28ARM: dts: imx6-apalis: add gpio-line-namesMax Krummenacher
Add GPIO line names on module level. Those are all GPIOs which a user might use on his custom carrier board. If more meaningful names are available on the carrier board, the user can overwrite the line names in the carrier board level device tree. Related-to: ELB-2525 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit 5ca35c3842c88bed48fdbf79dbaa326c5c085af1)
2020-05-28ARM: dts: imx6-colibri: add gpio-line-namesOleksandr Suvorov
Add GPIO line names on module level. Those are all GPIOs which a user might use on his custom carrier board. If more meaningful names are available on the carrier board, the user can overwrite the line names in the carrier board level device tree. Related-to: ELB-2524 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com> (cherry picked from commit d6133247f87fc07ca917df7dcf12bbd33f9bdafd) squashed fixup: (cherry picked from commit 0e0c71ae67dab11b0acdf19529420c65043c30b0) Conflicts: arch/arm/boot/dts/imx6qdl-colibri.dtsi
2020-05-26ARM64: dts: keep hub control signals reset pull stateMax Krummenacher
RESET and CONNECT come out of reset with pull downs enabled. Keep that in the pin muxing. These pins are switched to output during the hub configuration and then controlled as needed. The datasheet specifically states that CONNECT must not be driven when RESET is low, so keeping the pull downs is less likely to violate the spec. The INT pin has an external pull up, so keeping the pull down makes the system draw more power. Related-to: ELB-2702 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-05-11ARM: dts: verdin-imx8mm: add gpio-line-namesPhilippe Schenker
Related-to: ELB-2529 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-05-08ARM64: dts: verdin-imx8mm: add dahlia carrier boardMax Krummenacher
Related-to: ELB-2324 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-05-07ARM64: dts: verdin-imx8mm: prepare for dahlia carrier boardMax Krummenacher
This unifies node names and adds a reference to the sound node. Related-to: ELB-2324 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-05-07ARM64: verdin-imx8mm: silence mmc wp switch warningMax Krummenacher
The write protect switch is not connected. Specify that to get rid of: mmc1: host does not support reading read-only switch, assuming write-enable Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-05-07ARM: dts: imx7-colibri: add gpio-line-namesStefan Agner
Add Colibri SODIMM numbers as GPIO line names on module level. The GPIO lines with a name are all available on the SODIMM edge connector of the Colibri iMX7 module and therefore a customer might use it as a GPIO. The Toradex Evaluation Board has the SODIMM numbers printed on the silk- screen. This allows a customer to quickly control a GPIO on a pin-header by using the name printed next to it. Putting the GPIO line name on module level makes sure that a customer gets a reasonable default. If more meaningful names are available on a custom carrier board, the user can overwrite the line names in a carrier board level device tree. The eMMC based modules share all GPIO names except two GPIOs on bank 6 which are not available on the raw NAND devices. Hence overwrite GPIO line names of bank 6 in the eMMC specific device tree file. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Reviewed-by: Philippe Schenker <philippe.schenker@toradex.com> Signed-off-by: Shawn Guo <shawnguo@kernel.org> (cherry picked from commit 119c98f16e704e4c85522f6e22c9c819c21c4128) Related-to: ELB-2309 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-04-30MLK-23880 arm64: dts: imx8dx: refine the pcieb clocksRichard Zhu
- Refine the PCIe clocks for iMX8DX and iMX8QXP. - Correct the HSIO power domain name on iMX8QXP, otherwise, the peripheral clocks wouldn't be enabled. Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com> Reviewed-by: Fugang Duan <fugang.duan@nxp.com> (cherry picked from commit a2c09691aeafc818c287f25d69e53b6411d4ef26)
2020-04-28ARM64: verdin-imx8mm: disable 2nd can controllerMax Krummenacher
The 2nd CAN controller is not assembled in the standard SKUs. Thus disable it and prevent unneeded probing and kernel output. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-04-28ARM64: verdin-imx8mm: disable lvds bridgeMax Krummenacher
The DSI to other display technologies bridges are modules. Currently two bridges are enabled in the device tree, HDMI and LVDS. However using the module with the LVDS bridge requires further changes to the device tree. Thus disable it and prevent unneeded probing and kernel output. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-04-28ARM64: verdin-imx8mm: silence dummy-regulator warningMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-04-28ARM64: verdin-imx8mm: allow wi-fi/bt to suspendMax Krummenacher
With out this, the suspend sequence will stop and the system resumes immediately. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>