summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-03-29Revert "clk: imx: pll14xx: Add pr_fmt"Max Krummenacher
This reverts commit 90722e5666993df76bb203e0ad60b42cd4111781. This series broke our 10" capacitive LVDS panel. Revert until fixed. Upstream-Status: Inappropriate [revert of backport] Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2023-03-29Revert "clk: imx: pll14xx: Support dynamic rates"Max Krummenacher
This reverts commit e3b41fa9c03182c51c93f54dfd2f31c87aec8a49. This series broke our 10" capacitive LVDS panel. Revert until fixed. Upstream-Status: Inappropriate [revert of backport] Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2023-03-29Revert "drm/imx: imx8mp-ldb: fix check on LDB valid clock"Max Krummenacher
This reverts commit fd34ae5146f2df6d4f9f2a0046b697ff6b5a267e. This series broke our 10" capacitive LVDS panel. Revert until fixed. Upstream-Status: Inappropriate [revert of backport] Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2023-03-28arm64: dts: colibri-imx8x: Add vpuPhilippe Schenker
This commit adds VPU to colibri-imx8x. Upstream-Status: Pending - This can and should be upstreamed Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2023-03-28arm64: dts: colibri-imx8x: Add cma memoryPhilippe Schenker
Bring back CMA in device tree and set its size to 384MiB for all Colibri iMX8X. Upstream-Status: Pending - This can and should be upstreamed. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2023-03-28arm64: dts: colibri-imx8x: Remove gpu reserved memPhilippe Schenker
Remove reserved memory for the GPU. This is application specific and our Qt-Demo still works without this reserved memory. Upstream-Status: Pending - No GPU support as of yet in mainline Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2023-03-23drm/bridge: lt8912b: return EPROBE_DEFER if bridge is not foundMatheus Castello
Returns EPROBE_DEFER when of_drm_find_bridge() fails, this is consistent with what all the other DRM bridge drivers are doing and this is required since the bridge might not be there when the driver is probed and this should not be a fatal failure. Cc: <stable@vger.kernel.org> Fixes: 30e2ae943c26 ("drm/bridge: Introduce LT8912B DSI to HDMI bridge") Upstream-Status: Submitted [https://lore.kernel.org/all/20230322143821.109744-1-francesco@dolcini.it/] Signed-off-by: Matheus Castello <matheus.castello@toradex.com> Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Andrzej Hajda <andrzej.hajda@intel.com> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://patchwork.freedesktop.org/patch/msgid/20230322143821.109744-1-francesco@dolcini.it
2023-03-23Revert "arm64: dts: colibri-imx8x: Add wi-fi"Francesco Dolcini
This reverts commit e23c36833d51923ea2f2ad9730a9ea54a9a54e6f. Revert the PCIe/Wi-Fi addition, this fixes a boot regression on non-WiFi modules. Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
2023-03-22arm64: dts: colibri-imx8x: fix Atmel maxtouch reset signal polarityEmanuele Ghidoli
The reset GPIO logic of the Atmel maxtouch driver was changed to be active low. Adjust the configuration so that the touchscreen is in an usable state. Fixes: ccd928d47f593 ("arm64: dts: colibri-imx8x: Add atmel mxt touch") Upstream-Status: Pending Needs to be upstreamed Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
2023-03-22arm64: dts: colibri-imx8x: Add wi-fiPhilippe Schenker
Add support for Wi-Fi that is connected to the SoC with PCIe. Make sure the clock is enabled with a GPIO Hog. Do also make sure the GPIO for power-down is high (power enabled). Upstream-Status: Pending - There is currently no support for PCIe on mainline. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2023-03-22PCI: imx6: Fix PERST# start-up sequenceFrancesco Dolcini
According to the PCIe standard the PERST# signal (reset-gpio in fsl,imx* compatible dts) should be kept asserted for at least 100 usec before the PCIe refclock is stable, should be kept asserted for at least 100 msec after the power rails are stable and the host should wait at least 100 msec after it is de-asserted before accessing the configuration space of any attached device. From PCIe CEM r2.0, sec 2.6.2 T-PVPERL: Power stable to PERST# inactive - 100 msec T-PERST-CLK: REFCLK stable before PERST# inactive - 100 usec. From PCIe r5.0, sec 6.6.1 With a Downstream Port that does not support Link speeds greater than 5.0 GT/s, software must wait a minimum of 100 ms before sending a Configuration Request to the device immediately below that Port. Failure to do so could prevent PCIe devices to be working correctly, and this was experienced with real devices. Move reset assert to imx6_pcie_assert_core_reset(), this way we ensure that PERST# is asserted before enabling any clock, move de-assert to the end of imx6_pcie_deassert_core_reset() after the clock is enabled and deemed stable and add a new delay of 100 msec just afterward. Link: https://lore.kernel.org/all/20220211152550.286821-1-francesco.dolcini@toradex.com Link: https://lore.kernel.org/r/20220404081509.94356-1-francesco.dolcini@toradex.com Fixes: bb38919ec56e ("PCI: imx6: Add support for i.MX6 PCIe controller") Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Reviewed-by: Lucas Stach <l.stach@pengutronix.de> Acked-by: Richard Zhu <hongxing.zhu@nxp.com> Upstream-Status: Backport - This patch is already backported to stable linux 5.15.y but was overwritten by NXP patches. Do backport it again from upstream commit a6809941c1f17f455db2cf4ca19c6d8c8746ec25 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2023-03-21drm/imx: imx8mp-ldb: fix check on LDB valid clockRafael Beims
Remove wrong mode-fixup on the LDB driver that limited the pixel clocks to 74.25MHz in single channel mode and 148.5MHz in dual channel mode. According to the iMX8MP Reference manual, the LDB peripheral supports: " - Single channel (4 lanes) output at up to 80MHz pixel clock and LVDS clock. This supports resolutions up to 1366x768p60. - Dual asynchronous channels (8 data, 2 clocks). This is intended for a single panel with two interfaces, transferring across two channels (even pixel/odd pixel). This is supported at up to 160MHz pixel clock, which is up to 80MHz LVDS clock (due to 2 pixels per LVDS clock). This supports resolutions above 1366x768p60, up to 1080p60. " We contacted NXP trying to find the real reason for this seemingly random limitation, but we didn't get any response. The forced pixel clock values were removed and now it's possible to drive LVDS displays that have pixel clock requirements out of the previously limited range, but that are still within the hardware limitations. A check was added to ensure that clocks out of range are denied. With this change, it is now possible to use this display: - LVDS display (CMT1210A07R00 800x600 - 40MHz pixel clock) Also, the Toradex 10" Capacitive touch display (68.93MHz pixel clock) continues to work. Upstream-Status: Pending The file where this change was applied doesn't exist upstream. Signed-off-by: Rafael Beims <rafael.beims@toradex.com>
2023-03-21clk: imx: pll14xx: Support dynamic ratesSascha Hauer
The pll1443x PLL so far only supports rates from a rate table passed during initialization. Calculating PLL settings dynamically helps audio applications to get their desired rates, so support for this is added in this patch. The strategy to get to the PLL setting for a rate is: - First try to only adjust kdiv which specifies the fractional part of the PLL. This setting can be changed without glitches on the output and is therefore preferred - When that isn't possible then the rate table is searched for suitable rates, so for standard rates the same settings are used as without this patch - As a last resort the best settings are calculated dynamically The code in this patch is based on patches from Adrian Alonso <adrian.alonso@nxp.com> and Mads Bligaard Nielsen <bli@bang-olufsen.dk> Upstream-Status: Backport [b09c68dc57c9d44071d83bb935b733f53ea2b2b4] Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Reviewed-by: Abel Vesa <abel.vesa@nxp.com> Link: https://lore.kernel.org/r/20220304125256.2125023-9-s.hauer@pengutronix.de Signed-off-by: Abel Vesa <abel.vesa@nxp.com> Signed-off-by: Rafael Beims <rafael.beims@toradex.com>
2023-03-21clk: imx: pll14xx: Add pr_fmtSascha Hauer
Print all messages from within the pll14xx driver with a common prefix using pr_fmt. No need to print function names anymore, so drop them from the messages. Upstream-Status: Backport [80cbc80612a01461a257f2c2eb9976cbadfb7be2] Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Reviewed-by: Abel Vesa <abel.vesa@nxp.com> Link: https://lore.kernel.org/r/20220304125256.2125023-8-s.hauer@pengutronix.de Signed-off-by: Abel Vesa <abel.vesa@nxp.com> Signed-off-by: Rafael Beims <rafael.beims@toradex.com>
2023-03-21clk: imx: pll14xx: explicitly return lowest rateSascha Hauer
clk_pll14xx_round_rate() returns the lowest rate by indexing into the rate table with the variable i. i is actually pll->rate_count as this is the value we come out of the loop with. Use pll->rate_count explicitly to make it a bit more clear what is being done. While at it fix a typo in the comment. No functional change. Upstream-Status: Backport [5ff50031cb8852bfcf587d003ba6bad3c2336852] Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Reviewed-by: Abel Vesa <abel.vesa@nxp.com> Link: https://lore.kernel.org/r/20220304125256.2125023-7-s.hauer@pengutronix.de Signed-off-by: Abel Vesa <abel.vesa@nxp.com> Signed-off-by: Rafael Beims <rafael.beims@toradex.com>
2023-03-21clk: imx: pll14xx: name variables after usageSascha Hauer
In clk_pll1443x_set_rate() 'tmp' is used for the content of different registers which makes it a bit hard to follow. Use different variables named after the registers to make it clearer. No functional change intended. Upstream-Status: Backport [052d03a043afebb8e26ec17de52e8cdc8b217ef9] Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Reviewed-by: Abel Vesa <abel.vesa@nxp.com> Link: https://lore.kernel.org/r/20220304125256.2125023-6-s.hauer@pengutronix.de Signed-off-by: Abel Vesa <abel.vesa@nxp.com> Signed-off-by: Rafael Beims <rafael.beims@toradex.com>
2023-03-21clk: imx: pll14xx: consolidate rate calculationSascha Hauer
The PLL driver has support for two different PLLs: The pll1416x and the pll1443x. The latter has support for an additional kdiv value. recalc_rate can be the same calculation when kdiv is assumed to be zero for the PLL which doesn't support that value. Upstream-Status: Backport [53990cf9d5b489fc0ec08e5c4df7139fc311a824] Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Reviewed-by: Abel Vesa <abel.vesa@nxp.com> Link: https://lore.kernel.org/r/20220304125256.2125023-5-s.hauer@pengutronix.de Signed-off-by: Abel Vesa <abel.vesa@nxp.com> [Rafael: fixed conflicts in the clk_pll1443x_recalc_rate function caused by some additions on the downstream branch in commit 9425151a59a4. The changes in the downstream branch implement the same functionality of this commit but without the other improvements in the patch series. Additionally, the change in the downstream branch adds a function to change the "k" value of the PLL which gets exposed through sysfs. This function was also fixed to be compatible with the changes in the patch series.] Signed-off-by: Rafael Beims <rafael.beims@toradex.com>
2023-03-21clk: imx: pll14xx: Use FIELD_GET/FIELD_PREPSascha Hauer
Linux has these marvelous FIELD_GET/FIELD_PREP macros for easy access to bitfields in registers. Use them and remove the now unused *_SHIFT defines. Upstream-Status: Backport [58f4980ccbecf633df1fcb113e2a9f04842eccc6] Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Reviewed-by: Abel Vesa <abel.vesa@nxp.com> Link: https://lore.kernel.org/r/20220304125256.2125023-4-s.hauer@pengutronix.de Signed-off-by: Abel Vesa <abel.vesa@nxp.com> Signed-off-by: Rafael Beims <rafael.beims@toradex.com>
2023-03-21clk: imx: pll14xx: Drop wrong shiftingSascha Hauer
The code tries to mask the bits in SDIV_MASK from 'tmp'. SDIV_MASK already contains the shifted value, so shifting it again is wrong. No functional change though as SDIV_SHIFT is zero. Upstream-Status: Backport [d77461a616b659bd88dc153e3a86dba5bf78aa8a] Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Reviewed-by: Abel Vesa <abel.vesa@nxp.com> Link: https://lore.kernel.org/r/20220304125256.2125023-3-s.hauer@pengutronix.de Signed-off-by: Abel Vesa <abel.vesa@nxp.com> Signed-off-by: Rafael Beims <rafael.beims@toradex.com>
2023-03-21clk: imx: pll14xx: Use register defines consistentlySascha Hauer
The driver has defines for the registers, but they are mostly unused. Use the defines consistently throughout the driver. While at it rename DIV_CTL to DIV_CTL0 because that's the name in the reference manual. Upstream-Status: Backport [485b4ff57c2777c15bfe2e6e6a204200b040e131] Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Reviewed-by: Abel Vesa <abel.vesa@nxp.com> Link: https://lore.kernel.org/r/20220304125256.2125023-2-s.hauer@pengutronix.de Signed-off-by: Abel Vesa <abel.vesa@nxp.com> Signed-off-by: Rafael Beims <rafael.beims@toradex.com>
2023-03-17arm64: dts: colibri-imx8x: Add PMIC thermal zoneFrancesco Dolcini
Add PMIC thermal zone as is was present on both Colibri-iMX8x/BSP5 and in MEK board. Without this the thermal sensor driver fails to probe on colibri-imx8x with i.MX8X DX SOC, this is happening because imx8dx-colibri.dtsi creates an incomplete thermal zone node for the PMIC. Upstream-Status: Pending This should be send upstream, however the first batch of DTS files is under review, therefore it seems better to just postpone it. Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
2023-03-17arm64: dts: colibri-imx8x: Add USB3803 HUBFrancesco Dolcini
Add USB3803 HUB, this is required for Bluetooth and USB functionalities. Upstream-Status: Pending This should be send upstream, however currently the FXL6408 and USB3803 drivers are not merged yet, and the first batch of DTS files is under review, therefore we have to postpone it. Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
2023-03-17usb: misc: usb3503: support usb3803 and bypass modeEmanuele Ghidoli
Add support for USB3803 and bypass mode, with this change is also possible to move the component out of bypass mode. In bypass mode the downstream port 3 is connected to the upstream port with low switch resistance R_on. Controlling mode of operations: | RESET_N | BYPASS_N | Mode | -------------------------------- | 0 | 0 | standby | | 1 | 0 | bypass | | 1 | 1 | hub | Upstream-Status: Submitted [https://lore.kernel.org/all/20230313165039.255579-1-francesco@dolcini.it/] Datasheet: https://ww1.microchip.com/downloads/aemDocuments/documents/UNG/ProductDocuments/DataSheets/00001691D.pdf Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com> Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com> Link: https://lore.kernel.org/r/20230313165039.255579-4-francesco@dolcini.it Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> [fdolcini: backport: fixed error path on IS_ERR(hub->bypass)] Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
2023-03-17usb: misc: usb3503: refactor code to prepare for usb3803 additionEmanuele Ghidoli
Refactor code to simplify adding support for USB3803 and bypass mode. Remove static usb3503_reset() and move it to usb3503_switch_mode(), with the addition of the bypass mode we need to drive the various control signals to the expected configuration, not just to assert/release the reset. In addition to that the usb3503_connect() needs to be called only for HUB mode. No functional changes expected nor intended because of this change. Upstream-Status: Submitted [https://lore.kernel.org/all/20230313165039.255579-1-francesco@dolcini.it/] Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com> Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com> Link: https://lore.kernel.org/r/20230313165039.255579-3-francesco@dolcini.it Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-03-16arm64: dts: colibri-imx8x: Add fxl6408 gpio expanderFrancesco Dolcini
Add fxl6408 gpio expander, this is required for Wi-Fi, Bluetooth and USB functionalities. Upstream-Status: Pending This should be send upstream, however currently the FXL6408 driver is not merged yet, and the first batch of DTS files is under review, therefore we have to postpone it. Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
2023-03-16toradex_imx_v8.config: add FXL6408 driverFrancesco Dolcini
Add GPIO_FXL6408 driver to kernel config, used on colibri-imx8x. Upstream-Status: Inappropriate [Configuration] Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
2023-03-16gpio: fxl6408: add I2C GPIO expander driverEmanuele Ghidoli
Add minimal driver for Fairchild FXL6408 8-bit I2C-controlled GPIO expander using the generic regmap based GPIO driver (GPIO_REGMAP). The driver implements setting the GPIO direction, reading inputs and writing outputs. In addition to that the FXL6408 has the following functionalities: - allows to monitor input ports for data transitions with an interrupt pin - all inputs can be configured with pull-up or pull-down resistors Upstream-Status: Submitted [https://lore.kernel.org/all/20230313170950.256964-1-francesco@dolcini.it/] Datasheet: https://www.onsemi.com/download/data-sheet/pdf/fxl6408-d.pdf Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com> Co-developed-by: Francesco Dolcini <francesco.dolcini@toradex.com> Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> [Bartosz: order includes alphabetically] Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
2023-03-16dt-bindings: gpio: add fcs,fxl6408Emanuele Ghidoli
Add Fairchild FXL6408 8-bit I2C-controlled GPIO expander. Upstream-Status: Submitted [https://lore.kernel.org/all/20230313170950.256964-1-francesco@dolcini.it/] Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com> Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
2023-03-15arm64: dts: colibri-imx8x: Add 50mhz clock for ethPhilippe Schenker
Change ent0_lpcg accordingly so we get the clock we need for 100mbps ethernet. This was copied from toradex_5.4-2.3.x-imx and checked that it's still valid on 5.15 downstream Upstream-Status: Pending This may get upstreamed since on mainline there is a simliar define (IMX_SC_C_DISABLE_50). Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2023-03-15arm64: dts: colibri-imx8x: Remove flexcan todoPhilippe Schenker
Remove the todo for flexcan. Native CAN is not a standard functionality on Colibri standard. Pinmuxing is already prepared so if someone wants to enable this on his carrier-board this should be done there. Upstream-Status: Pending - Todo comment needs to be removed upstream. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2023-03-15arm64: dts: colibri-imx8x: Add label ad7879_tsPhilippe Schenker
Add the label for ad7879_ts that is needed for overlays. Upstream-Status: Pending This should be sent upstream, it was just forgot on v2 series https://lore.kernel.org/all/20230314102410.424773-4-dev@pschenker.ch/T/#u Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2023-03-15arm64: dts: colibri-imx8x: Add devicetrees for dxPhilippe Schenker
Add devicetrees for Colibri iMX8X variant with the i.MX 8DX SoC placed. Upstream-Status: Pending - No devicetrees are existing yet for i.MX 8DX upstream Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2023-03-15arm64: dts: colibri-imx8x: Add gpio wakeup sourcePhilippe Schenker
Add GPIO3_10 as a wakeup source. Copy this nodes from toradex_5.4-2.3.x-imx. Upstream-Status: Pending pad-wakeup is only present in the mxc-gpio driver on downstream. This was needed to make the gpio able to wakeup the system. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2023-03-15arm64: dts: colibri-imx8x: Add atmel mxt touchPhilippe Schenker
Add Atmel MaxTouch controller to i2c1. This was copied from toradex_5.4-2.3.x-imx. Upstream-Status: Pending Needs to be upstreamed Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2023-03-15arm64: dts: colibri-imx8x: Add display supportPhilippe Schenker
Add display support. Copy nodes from toradex_5.4-2.3.x-imx. This commit adds the baseline support that can be enabled with devicetree overlays. Upstream-Status: Pending - No display support yet Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2023-03-15arm64: dts: colibri-imx8x: Add backlightPhilippe Schenker
Add backlight to colibri-imx8x. Do copy the node from toradex_5.4-2.3.x-imx. Upstream-Status: Pending - No pwm support on adma subsystem as of now. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2023-03-15arm64: dts: colibri-imx8x: Add usbPhilippe Schenker
Add USB Host and USB OTG (Client/Host switching) to the carrier-boards. Upstream-Status: Pending - No support as of now in upstream linux. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2023-03-15arm64: dts: colibri-imx8x: Add audioPhilippe Schenker
Add all nodes necessary for audio. Do copy the nodes frrom toradex_5.4-2.3.x-imx. Upstream-Status: Pending - No audio functionality yet in upstream. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2023-03-15arm64: dts: colibri-imx8x: Add mipi csiPhilippe Schenker
This commit adds mipi csi functionality. Copy the nodes from toradex_5.4-2.3.x-imx. Cross check changes in imx8x-mek.dtsi. Upstream-Status: Pending - No support yet Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2023-03-15arm64: dts: colibri-imx8x: Add mipi dsi and lt8912Philippe Schenker
Add mipi dsi including the lt8912 dsi to hdmi bridge. This commit just copies the node from toradex_5.4-2.3.x-imx Upstream-Status: Pending - No support in upstream linux Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2023-03-15arm64: dts: colibri-imx8x: Add gpuPhilippe Schenker
Enable the GPU. Upstream-Status: Pending - There is currently no GPU support in mainline Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2023-03-15arm64: dts: colibri-imx8x: Add reserved memoryPhilippe Schenker
Use the reserved-memory nodes from MEK with two adjustments: - Out of the history from 5.4-2.3.x-imx delete CMA node - Delete DSP nodes, since we only use SoCs without DSP Upstream-Status: Pending - There is currently no need for this in upstream linux Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2023-03-15arm64: dts: colibri-imx8x: Add analogue inputsPhilippe Schenker
This commit does forward-port the ADC functionality from toradex_5.4-2.3.x-imx. Upstream-Status: Pending ADC support seems to be available in mainline, "nxp,imx8qxp-adc" compatible and node defined in "imx8-ss-dma.dtsi". However it was not possible to have it working on mainline so we postponed this for the moment. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2023-03-14arm64: dts: colibri-imx8x: Add iris v2 carrier boardPhilippe Schenker
Add the Toradex Iris V2 Carrier Board for Colibri iMX8X, small form-factor production ready board. Additional details available at: https://www.toradex.com/products/carrier-boards/iris-carrier-board Upstream-Status: Submitted [https://lore.kernel.org/linux-devicetree/20230314102410.424773-24-dev@pschenker.ch/T/#u] Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2023-03-14arm64: dts: colibri-imx8x: Add iris carrier boardPhilippe Schenker
Add the Toradex Iris Carrier Board for Colibri iMX8X, small form-factor production ready board. Additional details available at: https://www.toradex.com/products/carrier-boards/iris-carrier-board Upstream-Status: Submitted [https://lore.kernel.org/linux-devicetree/20230314102410.424773-23-dev@pschenker.ch/T/#u] Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2023-03-14arm64: dts: colibri-imx8x: Add aster carrier boardPhilippe Schenker
Add the Toradex Aster Carrier Board for Colibri iMX8X, small form-factor with header compatible with Arduino Uno and Raspberry Pi (RPi) maker boards. Additional details available at: https://www.toradex.com/products/carrier-boards/aster-carrier-board Upstream-Status: Submitted [https://lore.kernel.org/linux-devicetree/20230314102410.424773-22-dev@pschenker.ch/T/#u] Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2023-03-14arm64: dts: colibri-imx8x: Add todo commentsPhilippe Schenker
Highlight what is still missing. Upstream-Status: Submitted [https://lore.kernel.org/linux-devicetree/20230314102410.424773-20-dev@pschenker.ch/T/#u] Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2023-03-14arm64: dts: colibri-imx8x: Move gpio-keys to som levelPhilippe Schenker
SODIMM_45 that is connected to "&lsio_gpio3 10" is defined in the Colibri standard to be a wakeup pin. Move this to the SoM level device-tree and keep it disabled by default but do enable it again on the carrier-board. Upstream-Status: Submitted [https://lore.kernel.org/linux-devicetree/20230314102410.424773-19-dev@pschenker.ch/T/#u] Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2023-03-14arm64: dts: colibri-imx8x: Set thermal thresholdsPhilippe Schenker
Set critical/alert thermal thresholds for all relevant SOC temperature trips to the IT value (max T_junction 105 degree Celsius) in accordance with the IT grade of the SOM. Upstream-Status: Submitted [https://lore.kernel.org/linux-devicetree/20230314102410.424773-18-dev@pschenker.ch/T/#u] Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2023-03-14arm64: dts: colibri-imx8x: Add no-1-8-v to sd-cardPhilippe Schenker
Many Colibri carrier boards are using 3.3V pull-up resistors on the SD-Card connector. Letting it switch to 1.8V is an invalid state. Do prevent this from happening by keeping the signaling voltage at 3.3V. Upstream-Status: Submitted [https://lore.kernel.org/linux-devicetree/20230314102410.424773-17-dev@pschenker.ch/T/#u] Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>