summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* bdinfo: show fb base with DM_VIDEOHeiko Schocher2019-07-301-1/+1
| | | | | | | show Framebuffer base with CONFIG_DM_VIDEO enabled. Signed-off-by: Heiko Schocher <hs@denx.de>
* mxc_ipuv3_fb.c: set gd->fb_baseHeiko Schocher2019-07-301-0/+2
| | | | | | set gd->fb_base so it can be shown with bdinfo command. Signed-off-by: Heiko Schocher <hs@denx.de>
* global_data: enable fb_base for DM_VIDEOHeiko Schocher2019-07-301-1/+1
| | | | | | | | with CONFIG_VIDEO we store fb base address in global data fb_base variable. Do this also in DM_VIDEO case. Signed-off-by: Heiko Schocher <hs@denx.de>
* edid: fix edid_get_timing_validate() mode_valid lookupNeil Armstrong2019-07-291-1/+3
| | | | | | | | | Add a condition to the break in the modes lookup, without this when the first mode is not valid, then edid_get_timing_validate() return an error instead of checking the next modes. Fixes: 1c1ed441b0d1 ("edid: add edid_get_timing_validate() variant to filter out edid modes") Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
* video: arm: rpi: Bail out early if querying video information failsFabian Vogt2019-07-291-1/+3
| | | | | | | | | | | | When probing we query for the width and hight of the display. If the firmware does not report any connected display the system will crash. See https://github.com/raspberrypi/firmware/issues/1157 for details. Signed-off-by: Fabian Vogt <fvogt@suse.com> [mb: update commit message] Signed-off-by: Matthias Brugger <mbrugger@suse.com> Reviewed-by: Andre Przywara <andre.przywara@arm.com> Tested-by: Andre Przywara <andre.przywara@arm.com>
* video: dw_hdmi: Add support for ddc-i2c-bus propertyNiklas Schulze2019-07-295-0/+23
| | | | | | | Add support for the ddc-i2c-bus device tree property which allows for using an external i2c master for reading the display's EDID. Signed-off-by: Niklas Schulze <me@jns.io>
* video: meson: dw-hdmi: add EDID mode filtering to only select supported modesNeil Armstrong2019-07-291-0/+7
| | | | | | | | | | | Add support for the new mode_valid() display op to filter out unsupported display DMT timings. This is useful when connected to 4k displays, since we only support DMT monitors up to 1920x1080, the 4k native timings are discarded to select supported timings. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
* video: display: use edid_get_timing_validate() variant to filter supported ↵Neil Armstrong2019-07-292-1/+24
| | | | | | | | | | EDID modes Introduce a new display op, mode_valid() to be used with the newly introduced edid_get_timing_validate() function, to filter supported monitor timings if handled by the display driver. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
* edid: add edid_get_timing_validate() variant to filter out edid modesNeil Armstrong2019-07-292-3/+41
| | | | | | | | | | | | | | | The original edid_get_timing() function returns the first valid timing, but on some plaforms, we could only supports a subset of the listed monitot's navite timing. Let's introduce a edid_get_timing_validate() adding a mode_valid callback including a private cookie pointer. If the callback returns false, the current timing is discared and the next one is checked. If no valid & supported timings are found, the function would return an error. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
* bmp_logo: support CONFIG_DM_VIDEOHeiko Schocher2019-07-292-11/+37
| | | | | | | | | | | | | | | | | in case of bmp_logo, the video_bmp driver is used for drawing a bmp logo. This driver supports only "full" bmp data. Adding a logo with the bmp_logo tool to u-boot binary adds currently only real data and drops the bmp header. This patch adds now the full bmp data to the u-boot binary, so video_bmp driver works with the logo embedded into u-boot. Fixed also some checkpatch error poping up with this patch. Signed-off-by: Heiko Schocher <hs@denx.de>
* video, simple_panel: add lg,lb070wv8 displayHeiko Schocher2019-07-291-0/+1
| | | | | | add "lg,lb070wv8" display to compatible node. Signed-off-by: Heiko Schocher <hs@denx.de>
* configs: colibri-imx6ull: switch to DM_VIDEOIgor Opaniuk2019-07-291-1/+1
| | | | | | | Use CONFIG_DM_VIDEO=y by default for Colibri iMX6ULL. Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com> Reviewed-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
* ARM: dts: colibri-imx6ull: extend lcdif nodeIgor Opaniuk2019-07-291-0/+32
| | | | | | | | Provide proper display timings for lcdif node, used by mxsfb DM_VIDEO enabled framebuffer driver. Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com> Reviewed-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
* colibri-imx6ull: support building with DM_VIDEO=yIgor Opaniuk2019-07-292-2/+2
| | | | | | | | | 1. This fixes linking issues when building with DM_VIDEO enabled mxsfb driver. 2. Provide proper defines for both VIDEO=y and DM_VIDEO=y. Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com> Reviewed-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
* configs: colibri_imx7: enable DM_VIDEOIgor Opaniuk2019-07-291-1/+1
| | | | | | | Enable DM_VIDEO support for Colibri iMX7 NAND version. Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com> Reviewed-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
* ARM: dts: colibri_imx7: Fix lcdif node definitionIgor Opaniuk2019-07-291-21/+26
| | | | | | | | | | | Fix lcdif DT node and make it conform to the structure defined in the Linux devicetree bindings [1]. Currently there is support only for old style lcdif node definitions. [1] https://www.kernel.org/doc/Documentation/devicetree/bindings/display/mxsfb.txt Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com> Reviewed-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
* video: mxsfb: fix mxsfb fbdev binding issuesIgor Opaniuk2019-07-291-12/+62
| | | | | | | Add support for display and bits-per-pixel properties. Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com> Reviewed-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
* colibri_vf: enable DM_VIDEOIgor Opaniuk2019-07-291-1/+1
| | | | | | | Enable DM_VIDEO for Colibri VF. Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com> Reviewed-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
* ARM: dts: colibri_vf: Add dcu0 nodeIgor Opaniuk2019-07-293-0/+15
| | | | | | | | | Add dumb node for NXP Display Control Unit0(DCU), which permits DM_ENABLED converted driver to be probed. Currently no display timings are provided in this node. Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com> Reviewed-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
* video: fsl_dcu_fb: add DM_VIDEO supportIgor Opaniuk2019-07-293-21/+97
| | | | | | | | | | | Extend the driver to build with DM_VIDEO enabled. DTS files must additionally include 'u-boot,dm-pre-reloc' property in soc and child nodes to enable driver binding to fsl_dcu_fb device. Currently display timings aren't obtained from DT. Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com> Reviewed-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
* video: fsl_dcu_fb: refactor init functionsIgor Opaniuk2019-07-296-60/+85
| | | | | | | | | | | | Move dcu-related code to fsl_dcu_probe_common, keep in video_hw_init() only legacy video stack (filling GraphicPanel struct etc.). Add wrappers for all init functions, that will let to provide struct fb_info as an additional param (needed for further moving it from the global scope to driver private data struct in DM converted driver). Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com> Reviewed-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
* Merge branch '2019-07-26-ti-imports'WIP/27Jul2019Tom Rini2019-07-2787-377/+2576
|\ | | | | | | | | - Bring in the rest of the J271E platform - Various OMAP3/AM3517, DA850 fixes
| * env: ti: boot: Use ttyS2 instead of ttyO2Sam Protsenko2019-07-274-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ttyO2 console enables legacy CONFIG_SERIAL_OMAP driver in kernel. Nowadays it's preferred to use the generic CONFIG_SERIAL_8250_OMAP driver, which being enabled via ttyS2 console. Both drivers are enabled in multi_v7_defconfig and in omap2plus_defconfig, for compatibility reasons. Let's switch to ttyS2 console, to be sure that standard 8250 serial driver is used. Similar behavior can be also achieved by enabling CONFIG_SERIAL_8250_OMAP_TTYO_FIXUP option in kernel, but it's better not to rely on that, as it can be disabled or removed after transitional period. Right now on DRA7/AM57x platforms the 8250-omap driver is being probed first, and omap-serial driver is only probed if the first one failed. It can be seen from uart3 definition in arch/arm/boot/dts/dra7-l4.dtsi: compatible = "ti,dra742-uart", "ti,omap4-uart"; So the kernel already uses 8250 driver. This change basically allows kernel developers to throw away the omap-serial driver and associated compatibility options. Similar discussions [1,2] have started several years ago, so it should be safe to do that now. [1] https://patchwork.kernel.org/patch/6198471/ [2] http://processors.wiki.ti.com/index.php/Sitara_Linux_UART_-_Switching_to_8250_Driver Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org> Reviewed-by: Andrew F. Davis <afd@ti.com> [trini: Update omap5_uevm] Signed-off-by: Tom Rini <trini@konsulko.com>
| * arm: am57xx: Allow bootm to load larger kernelsSam Protsenko2019-07-271-0/+2
| | | | | | | | | | | | | | | | | | | | | | linux-mainline with multi_v7_defconfig + Android configs takes more space than regular TI Android kernel and bootm will fail to load it. Let's increase max kernel size up to 64 MiB to make it possible to run such kernel. Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org> Reviewed-by: Igor Opaniuk <igor.opaniuk@gmail.com> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
| * ARM: da850-evm: Remove dead/unneeded codeAdam Ford2019-07-271-8/+0
| | | | | | | | | | | | | | | | The DA8850-evm supports DM_I2C and boots with SPL_DM, so we can drop some of the code which disables DM_I2C in SPL. This patch removes some #undef's now rendered obsolete. Signed-off-by: Adam Ford <aford173@gmail.com>
| * ARM: omap3/omap35_logic: Fix broken Logic PD Torpedo bootingAdam Ford2019-07-272-2/+0
| | | | | | | | | | | | | | | | | | | | The SOM-LV and Torpedo boards are very similar, but something happened growing SPL enough to break the Torpedo. The SOM-LV board were not doing alias sequencing during SPL and they continue to work while something broke the Torpedo. This patch disables SPL_DM_SEQ_ALIAS allowing it to boot again. Signed-off-by: Adam Ford <aford173@gmail.com>
| * ARM: dts: Logic PD SOM-LV and Torpedo Boards: Resync DTSAdam Ford2019-07-278-41/+9
| | | | | | | | | | | | | | Re-sync all Logic PD OMAP35 and AM/DM37 boards with Kernel 5.2.1 Signed-off-by: Adam Ford <aford173@gmail.com>
| * ARM: da850evm: Remove legacy OHCI referencs and unify platformAdam Ford2019-07-275-4/+19
| | | | | | | | | | | | | | | | | | | | | | OHCI was added with DM_USB support, so there are a few unneeded items in the header file that can be removed. This also unifies da850evm with NOR and NAND booting options so all have OHCI support. Signed-off-by: Adam Ford <aford173@gmail.com> [trini: Migrate da850_am18xxevm] Signed-off-by: Tom Rini <trini@konsulko.com>
| * ARM: am3517_evm: Fix pin muxing to enable EHCI Host in the futureAdam Ford2019-07-272-13/+15
| | | | | | | | | | | | | | | | | | This patch enables the pinmuxing to support gpio_57 for phy reset and fixes the pinmuxing for the ECHI tranceiver. The clocks don't appear to by fully enabled yet, so OMAP-EHCI on am3517 is still not yet working, but we're one step closer. Signed-off-by: Adam Ford <aford173@gmail.com>
| * ARM: omap3_logic & omap35_logic: Disable OMAP EHCI for TorpedoAdam Ford2019-07-272-0/+2
| | | | | | | | | | | | | | | | The OMAP35 and AM/DM37 Torpedo boards do not have a USB tranceiver connected to the USB host port, so this patch removes it from the defconfig files. Signed-off-by: Adam Ford <aford173@gmail.com>
| * ARM: omap3_logic: Enable OMAP EHCI support for SOM-LV BoardsAdam Ford2019-07-272-0/+23
| | | | | | | | | | | | | | | | | | The SOM-LV boards support the OMAP EHCI driver using port 2. With the driver updated to support device tree, this patch sets the corresponding pin muxing for the tranceiver as well as the reset pin. Signed-off-by: Adam Ford <aford173@gmail.com>
| * ARM: am3517-evm: Remove non-DM legacy codeAdam Ford2019-07-261-11/+0
| | | | | | | | | | | | | | | | | | With both SPL and U-Boot now supporting DM, we can start removing legacy code. This patch removes the legacy MMC initalization and legacy I2C initialization since both are now available via DM and device tree. Signed-off-by: Adam Ford <aford173@gmail.com>
| * ARM: am3517-evm: Migrate to SPL_OF_CONTROLAdam Ford2019-07-262-11/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | Like the other Logic PD OMAP35/DM37 boards, this board has device tree enabled for U-Boot. This patch converts the board to enable SPL_OF_CONTROL and further shrinks the device tree in SPL to limit it to UART3 (console), MMC1, i2c1, and GPIO4 (for mmc1 CD and WP). There appears to be a bug in minicom so users may need to switch the minicom terminal emulation to ANSI from VT102 due to the junk that gets pushed out of the UART on startup. Signed-off-by: Adam Ford <aford173@gmail.com>
| * ARM: da850-evm: Remove repeated pinmuxing callsAdam Ford2019-07-261-4/+0
| | | | | | | | | | | | | | | | arch_cpu_init() initializes the pinmuxing which is called fairly early in the start sequences, so the board_init function doesn't need to do it again. This patch removes the call from board_init. Signed-off-by: Adam Ford <aford173@gmail.com>
| * ARM: da850-evm: Remove duplicate UART initializationAdam Ford2019-07-261-5/+0
| | | | | | | | | | | | | | | | The Low Level init functions start the UART, so it doesn't need to happen during board_init. This patch removes it from board_init. Signed-off-by: Adam Ford <aford173@gmail.com>
| * ARM: am3517-evm: Remove manual ethernet reset codeAdam Ford2019-07-261-30/+4
| | | | | | | | | | | | | | | | The reset line going to the ethernet controller is controlled by a global reset controlling multiple peripherals. There is no need to manually invoke the reset. Signed-off-by: Adam Ford <aford173@gmail.com>
| * ARM: am3517-evm: Enable DM_PMIC and DM_REGULATOR functionsAdam Ford2019-07-261-0/+6
| | | | | | | | | | | | | | | | The PBIAS regulator is available on OMAP3's, and it's shared on the AM35, so this patch enables that in U-Boot along with GPIO based regulators. Signed-off-by: Adam Ford <aford173@gmail.com>
| * ARM: dts: dra76x: Update MMC2_HS200_MANUAL1 iodelay valuesFaiz Abbas2019-07-261-20/+20
| | | | | | | | | | | | | | | | | | | | | | | | Update the MMC2_HS200_MANUAL1 iodelay values to match with the latest dra76x data manual[1]. Also this particular pinctrl-array is using spaces instead of tabs for spacing between the values and the comments. Fix this as well. [1] http://www.ti.com/lit/ds/symlink/dra76p.pdf Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
| * ARM: dts: am57xx: Disable voltage switching for SD cardFaiz Abbas2019-07-266-24/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If UHS speed modes are enabled, a compatible SD card switches down to 1.8V during enumeration. If after this a software reboot/crash takes place and on-chip ROM tries to enumerate the SD card, the difference in IO voltages (host @ 3.3V and card @ 1.8V) may end up damaging the card. The fix for this is to have support for power cycling the card in hardware (with a PORz/soft-reset line causing a power cycle of the card). Because the beaglebone X15 (rev A,B and C), am57xx-evms and am57xx-idks don't have this capability, disable voltage switching for these boards. The major effect of this is that the maximum supported speed mode is now high speed(50 MHz) down from SDR104(200 MHz). Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
| * ARM: dts: am574x-idk: Add pinmuxes for mmc1 and mmc2Faiz Abbas2019-07-261-0/+15
| | | | | | | | | | | | | | | | Sync with kernel dts by adding pinmuxes for mmc1 and mmc2. This fixes an issue where mmc2 (eMMC) was coming up in HS52 mode instead of the highest DDR52 mode. Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
| * ARM: dts: dra7-mmc-iodelay: Add a new pinctrl group for clk line without pullupFaiz Abbas2019-07-263-2/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During a short period when the bus voltage is switched from 3.3v to 1.8v, (to enumerate UHS mode), the mmc module is disabled and the mmc IO lines are kept in a state according to the programmed pad mux pull type. According to 4.2.4.2 Timing to Switch Signal Voltage in "SD Specifications Part 1 Physical Layer Specification Version 5.00 February 22, 2016", the host should hold CLK low for at least 5ms. In order to keep the card line low during voltage switch, the pad mux of mmc1_clk line should be configured to pull down. Add a new pinctrl group for clock line without pullup to be used in boards where mmc1_clk line is not connected to an external pullup. Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
| * configs: j721e_evm_a72: Add initial supportLokesh Vutla2019-07-262-0/+87
| | | | | | | | | | | | | | | | Add initial defconfig support for J721e that runs on A72. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> [trini: Add MAINTAINERS entry] Signed-off-by: Tom Rini <trini@konsulko.com>
| * configs: j721e_evm_r5: Add initial supportLokesh Vutla2019-07-262-0/+101
| | | | | | | | | | | | | | | | Add initial defconfig support for J721e that runs on R5. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> [trini: Add MAINTAINERS file] Signed-off-by: Tom Rini <trini@konsulko.com>
| * arm: dts: k3-j721e: Add r5 specific dt supportLokesh Vutla2019-07-263-1/+218
| | | | | | | | | | | | | | Add initial support for dt that runs on r5. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>
| * arm: dts: k3-j721e: Add initial support for common processor boardLokesh Vutla2019-07-263-0/+93
| | | | | | | | | | | | | | | | | | | | Common Processor board is the baseboard that has most of the actual connectors, power supply etc. A SOM (System on Module) is plugged on to the common processor board and this contains the SoC, PMIC, DDR and basic highspeed components necessary for functionality. Add initial dt support for this common processor board. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
| * arm: dts: ti: Add Support for J721E SoCLokesh Vutla2019-07-263-0/+480
| | | | | | | | | | | | | | | | Add initial SoC definition for J721E SoC. Kernel dts posted here: https://lore.kernel.org/lkml/20190522161921.20750-1-nm@ti.com/ Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
| * dt-bindings: pinctrl: k3: Introduce pinmux definitions for J721ELokesh Vutla2019-07-261-0/+3
| | | | | | | | | | | | | | | | | | Add pinctrl macros for J721E SoC. These macro definitions are similar to that of AM6, but adding new definitions to avoid any naming confusions in the soc dts files. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>
| * mmc: am654_sdhci: Separate J721E compatible into 8bit and 4bit versionsFaiz Abbas2019-07-261-43/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The j721e 4 bit instances don't have a hard DLL and therefore don't need any DLL related configurations. Split the compatibles into an 8 bit and a 4 bit one. Add a private flags field which can be used to check if the DLL is present and don't register the set_ios_post callback for the 4 bit compatible instances. Also update the compatibles in k3-j721e-main.dtsi to avoid breaking boot with the new compatibles. Signed-off-by: Faiz Abbas <faiz_abbas@ti.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
| * board: ti: j721e: Enable fixing up msmc sram nodeSuman Anna2019-07-261-0/+14
| | | | | | | | | | | | | | | | | | Create a ft_board_setup() api that gets called as part of DT fixup before jumping to kernel. In this ft_board_setup() call fdt_fixup_msmc_ram that update msmc sram node. Signed-off-by: Suman Anna <s-anna@ti.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
| * board: ti: j721e: Add board support for j721e evmLokesh Vutla2019-07-265-0/+235
| | | | | | | | | | | | | | | | Add board specific initialization for j721e evm Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>