summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-02-12arm: dts: colibri_imx7: fix flags for gpio signals of i2cOleksandr Suvorov
scl-gpios should be (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN) since commit d2d0ad2aec4a ("i2c: imx: use open drain for recovery GPIO") Fix on-boot warning: "enforced open drain please flag it properly in DT/ACPI DSDT/board file" Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
2020-02-12arm64: defconfig: disable CAAM SM TestStefan Agner
Disable CAAM SM Test which is a Keystore Test/Example meant for development. This gets rid of lots of messages in the kernel log. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2020-02-12arm64: defconfig: enable deprecated ARMv8 instructions emulationStefan Agner
Enable deprecated/obsolete ARMv8 instructions emulation. This allows to run ARMv6 binaries (e.g. Raspberry Pi) on ARMv8 machines. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2020-02-12dt-bindings: lontium,lt8912: follow code changeMax Krummenacher
The driver got converted to a I2C device, DDC/EDID and HPD handling is added. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-02-12arm64: dts: fsl: colibri-imx8qxp: add hotplug gpioMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-02-12arm64: dts: fsl: colibri-imx8qxp: add edid i2c channelMax Krummenacher
Also delete the no longer needed hardcoded timings. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-02-12lt8912: add gpio based hotplug detectionMax Krummenacher
While at it remove commented out fragments. While at it remove double execution of MIPI RX soft reset. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-02-12lt8912: add edid functionality through regular i2cMax Krummenacher
If the ddc-i2c-bus property exists, that bus is used to read EDID from an attached monitor and set the list of available modes. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-02-12imx-hdp.c: enable scdc at 4k againMax Krummenacher
Commit "680eee23d001 imx-hdp.c: fix default resolution" changed the default resolution to 1080p. The same mode timings were used to detect a 4k mode and then reconfigure for HDMI2.0 SCDC. Rework the code to correctly detect a 4k mode. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-02-12ARCH: ARM64: colibri-imx8x: Add correct board namingPhilippe Schenker
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-02-12ARM64: dts: colibri-imx8x: Add regulators to AsterPhilippe Schenker
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-02-12ARM64: dts: colibri-imx8x: display-dts: Adaptions for new structurePhilippe Schenker
- Remove Lontium V1.0 board settings - Disable RGB display - Add eval.dtsi Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-02-12ARM64: dts: colibri-imx8x: Add common eval-hardware to devicetreePhilippe Schenker
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-02-12ARM64: dts: colibri-imx8x: Use standard toradex display settingsPhilippe Schenker
And remove unnecessary enabled hardware Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-02-12ARM64: dts: colibri-imx8x: Separate eval devicetreesPhilippe Schenker
This commit only creates fsl-imx8qxp-colibri-eval-v3.dtsi and moves code. It does not change code. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-02-12ARM64: colibri-imx8x: Correct some commentaryPhilippe Schenker
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-02-12ARM64: dts: colibri-imx8x: Remove lcd_display due to incompatibilityPhilippe Schenker
This commit hooks the panel directly onto adma_lcdif and leaves out lcd_display as it is not compatible with mxsfb-drm. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-02-12ARM64: dts: colibri-imx8x: Move backlight to SoM-level DTPhilippe Schenker
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-02-12ARM64: dts: colibri-imx8x: Add initial Aster devicetreePhilippe Schenker
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-02-12ARM64: dts: colibri-imx8x: Disable DT entries by default on SoM levelPhilippe Schenker
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-02-12ARM64: dts: colibri-imx8x: Move display and camera related enablesPhilippe Schenker
Move display and camera related enables out of SoM level into carrier board level. Those settings belong to carrier board as only the carrier board knows wich connectors it has and therefore what it needs enabled. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-02-12ARM64: dts: colibri-imx8x: Add sleep state and disable-wp to usdhc2Philippe Schenker
This commit adds proper sleep state muxing, needed for carrier boards that have a vmmc switch in there so we can prevent backfeeding. Disabling write protection as this pin is not routed. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-02-12ARM64: dts: colibri-imx8x: Remove ext_io from extcon_usbcPhilippe Schenker
Remove ext_io from pinmuxing of the extcon_usbc_det. It is not used and actually misleading. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-02-12ARM64: dts: colibri-imx8x: Unify mipi pinmux namingPhilippe Schenker
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-02-12ARM64: dts: colibri-imx8x: Move entries from eval to SoM-levelPhilippe Schenker
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-02-12ARM64: dts: colibri-imx8x: Move SoM-level entries to eval-levelPhilippe Schenker
And give the SoM level its naming. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-02-12ARM64: dts: colibri-imx8x: Sort devicetree alphabeticallyPhilippe Schenker
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-02-12ARM64: dts: colibri-imx8x: Unify formatting of devicetreePhilippe Schenker
This patch also puts some comments. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-02-12ARM64: dts: colibri-imx8x: Remove A0 related and commented out codePhilippe Schenker
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-02-12ARM64: dts: colibri-imx8x: Rename devicetree to form general dtsiPhilippe Schenker
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-02-12ARM64: dts: colibri-imx8x: Use tabs instead of spaces consistentlyPhilippe Schenker
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-02-12ARM64: defconfig: Add CAN controller MCP2515Philippe Schenker
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-02-12ARM64: defconfig: Use panel-lvds driverPhilippe Schenker
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-02-12drm/panel: pass video modes bus_flagsStefan Agner
Make sure that the bus_flags parsed from the display timings are passed to the connector display info. Signed-off-by: Stefan Agner <stefan@agner.ch> (cherry picked from commit 77d2c3b42a84a32b5ae7bbad173a72dc9398d939)
2020-02-12drm/mxsfb: use correct connector enumOleksandr Suvorov
The mxsfb-drm exposes a display parallel interface. Use the DPI instead Unknown connector. Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
2020-02-12video: fbdev: mxsfb: Fix flags not being appliedPhilippe Schenker
If one used display timings in devicetree the display_flags like pixelclk-active have not been applied. This commit fixes that and puts some nice debug messages so one can see from where those timings are applied. This fixes commit f397f60efbb24c2906cd95f443607b2642b49b24 "video: fbdev: mxsfb: allow setting display timings via kernel command line" Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com> (cherry picked from commit 17652e758b1236c49d2e1d336d81a832452b7c53)
2020-02-12drm/bridge: vga-dac: Fix non-DDC VGA detectionOleksandr Suvorov
If I2C bus for DDC is not defined, assume the connector is always connected. Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
2020-02-12arm64: dts: fsl: colibri-imx8qxp: Use LCD Panel by defaultOleksandr Suvorov
The setup LCDIF -> LCD Panel supports both LCD panels on parallel display connectors and VGA monitor. Use this setup by default. Keep ability to switch to dumb-vga-dac driver. Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
2020-02-12drm/panel: make LVDS panel driver DPI capableStefan Agner
The LVDS panel driver has almost everything which is required to describe a simple parallel RGB panel (also known as DPI, Display Pixel Interface). Signed-off-by: Stefan Agner <stefan@agner.ch>
2020-02-12arm64: dts: fsl: colibri-imx8qxp: Fix lcdif+panel setupOleksandr Suvorov
There is not needed to use imx-parallel-display to connect simple LCD panel to LCDIF output interface. Remove imx-parallel-display, so panel starts working well. Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
2020-02-12ASoC: sgtl5000: Fix of unmute outputs on probeOleksandr Suvorov
To enable "zero cross detect" for ADC/HP, change HP_ZCD_EN/ADC_ZCD_EN bits only instead of writing the whole CHIP_ANA_CTRL register. Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com> Reviewed-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Reviewed-by: Igor Opaniuk <igor.opaniuk@toradex.com> Reviewed-by: Fabio Estevam <festevam@gmail.com>
2020-02-12ASoC: sgtl5000: add ADC mute controlOleksandr Suvorov
This control mute/unmute the ADC input of SGTL5000 using its CHIP_ANA_CTRL register. Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com> Reviewed-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Reviewed-by: Igor Opaniuk <igor.opaniuk@toradex.com> Reviewed-by: Fabio Estevam <festevam@gmail.com>
2020-02-12ASoC: sgtl5000: Fix definition of VAG Ramp ControlOleksandr Suvorov
SGTL5000_SMALL_POP is a bit mask, not a value. Usage of correct definition makes device probing code more clear. Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com> Reviewed-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Reviewed-by: Igor Opaniuk <igor.opaniuk@toradex.com> Reviewed-by: Fabio Estevam <festevam@gmail.com>
2020-02-12ASoC: sgtl5000: Improve VAG power and mute controlOleksandr Suvorov
VAG power control is improved to fit the manual [1]. This patch fixes as minimum one bug: if customer muxes Headphone to Line-In right after boot, the VAG power remains off that leads to poor sound quality from line-in. I.e. after boot: - Connect sound source to Line-In jack; - Connect headphone to HP jack; - Run following commands: $ amixer set 'Headphone' 80% $ amixer set 'Headphone Mux' LINE_IN Change VAG power on/off control according to the following algorithm: - turn VAG power ON on the 1st incoming event. - keep it ON if there is any active VAG consumer (ADC/DAC/HP/Line-In). - turn VAG power OFF when there is the latest consumer's pre-down event come. - always delay after VAG power OFF to avoid pop. - delay after VAG power ON if the initiative consumer is Line-In, this prevents pop during line-in muxing. According to the data sheet [1], to avoid any pops/clicks, the outputs should be muted during input/output routing changes. [1] https://www.nxp.com/docs/en/data-sheet/SGTL5000.pdf Cc: stable@vger.kernel.org Fixes: 9b34e6cc3bc2 ("ASoC: Add Freescale SGTL5000 codec support") Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com> Reviewed-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Reviewed-by: Fabio Estevam <festevam@gmail.com>
2020-02-12cache-l2x0.c: silence compiler warningMax Krummenacher
Fix commit '46a30aca7f5c MLK-20052 L2 Cache TEE/Linux shared mutex' when CONFIG_OPTEE is not defined. Compiler warning: | arch/arm/mm/cache-l2x0.c:151:12: warning: ‘l2c_set_mutex’ defined but not used [-Wunused-function] fns.set_mutex and l2c_set_mutex() are guarded by CONFIG_OPTEE. On top of that the function pointer is tested for NULL before calling. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-02-12ARM: dts: Add initial Iris devicetreesPhilippe Schenker
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-02-12drm/mxsfb: don't manipulate with clock inside ISROleksandr Suvorov
iMX8 manages clocks with system controller (sc) using RPC. Using RPC procedures from interrupt context leads kernel crash. Remove enabling/disabling clock in interrupt handler. Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
2020-02-12drm/mxsfb: grab the pm->sync() reference on probingOleksandr Suvorov
The mxsfb driver doesn't have a real consumer. This leads the power domains of eLCDIF to off right after device probing. It is required to get the reference counter to prevent this behavior. Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
2020-02-12ARM: dts: imx6qdl-colibri: Correct usdhc1Philippe Schenker
Usdhc1 had wrong stuff in it due to the merge request. Fix that Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-02-12ARM: dts: imx6/7-colibri: switch dr_mode to otgPhilippe Schenker
In order for the otg ports, that these modules support, it is needed that dr_mode is on otg. Switch to use that feature. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>