summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Release v2020.05.0v2020.05.0Sascha Hauer2020-05-131-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fs: Fix inode size setting in ftruncateSascha Hauer2020-05-051-0/+1
| | | | | | | When changing a file size the size of the corresponding inode has to be changed as well. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* kbuild: add $(always-y) to 'targets'Masahiro Yamada2020-05-041-1/+1
| | | | | | | | | | | I missed to sync this line in commit 421108c51da4 ("kbuild: rename hostprogs-y/always to hostprogs/always-y"). Since then, the files in always(-y) are needlessly rebuilt. Fixes: 421108c51da4 ("kbuild: rename hostprogs-y/always to hostprogs/always-y") Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* video: ssd1307fb: fix null pointer dereference on errorAhmad Fatoum2020-05-041-1/+1
| | | | | | | | | | On error, a goto may jump over the initialization of vmem and free the uninitialized value during clean up. Fix this. Found by compiling the code with clang. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: Phytec phyFLEX i.MX6: delete wrong memory nodeSascha Hauer2020-04-301-4/+1
| | | | | | | | | | | | | | The phyFLEX i.MX6 has two memory nodes in the device tree. /memory comes from the barebox dtsi file and contains dummy values. This is unnecessary, barebox will create a memory node when booting the kernel. The other one comes from the Kernel dtsi and causes more harm. The memory in the node has a size of 2GiB. Not all boards have so much memory, since 8226f7f909 ("of: base: parse all available memory nodes") this node is no longer ignored and now all boards are assumed to have 2GiB of memory. Remove the node using /delete-node/ Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Reviewed-by: Stefan Riedmüller <s.riedmueller@phytec.de>
* ppc: Test for compiler optionsSascha Hauer2020-04-271-1/+4
| | | | | | | The -mno-spe and -mspe=no options are not available on all compilers. Call cc-option to set them only when they exist. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* dtc: remove redundant YYLOC global declarationLucas Stach2020-04-271-1/+0
| | | | | | | Same as the upstream fix for building dtc with gcc 10. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Documentation: kvx: add first documentationClement Leger2020-04-222-0/+109
| | | | | | | Add documentation on kvx architecture and kalray k200 board. Signed-off-by: Clement Leger <cleger@kalray.eu> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: dts. i.MX7: add stopgap solution for barebox UART clock breakageAhmad Fatoum2020-04-204-0/+49
| | | | | | | | | | | | | | | | | | | | | | Commit 8b2104d740 ("driver: Call of_clk_set_defaults for each probed device") made barebox act on the assigned-clock-parents property everywhere, not only for clock provider nodes. This breaks at least the serial console on the i.MX7 SabreSD board; only garbage is output if the patch is not reverted. As stopgap measure, override these properties for all enabled uart nodes in the barebox i.MX7 device tree. This reverts the behavior to what it was like before the offending commit. This is of course no real solution, as obviously Linux was fine dealing with these properties before. But this hack should at least fix the serial console for the boards that were broken in v2020.03.0. When a proper fix follows, this patch can be reverted. Cc: Andrey Smirnov <andrew.smirnov@gmail.com> Cc: Lucas Stach <l.stach@pengutronix.de> Cc: Juergen Borleis <jbe@pengutronix.de> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/zynq'Sascha Hauer2020-04-164-6/+31
|\
| * arm: avnet zedboard: turn on mio7 led on startupMichael Graichen2020-04-141-0/+10
| | | | | | | | | | | | | | Turns on the LED on MIO7 on the Zedboard to have a signal Signed-off-by: Michael Graichen <michael.graichen@hotmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * arm: avnet zedboard: add fpga and pcap clock controlMichael Graichen2020-04-141-0/+9
| | | | | | | | | | | | | | Added the configuration for FPGA an PCAP clock control Signed-off-by: Michael Graichen <michael.graichen@hotmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * arm: avnet zedboard: fix gem0 mio settingsMichael Graichen2020-04-141-3/+3
| | | | | | | | | | | | | | fixed GEM0 MIO Settings according to what Vivado says Signed-off-by: Michael Graichen <michael.graichen@hotmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * scripts: zynq_mkimage: remove compiler warningMichael Graichen2020-04-141-2/+7
| | | | | | | | | | | | | | | | | | Fixes a warning while compiling zynq_mkimage.c scripts/zynq_mkimage.c:312:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread returns the number bytes read, if it is not equal to st_size some error has happend Signed-off-by: Michael Graichen <michael.graichen@hotmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mmc: arasan: fix false bitMichael Graichen2020-04-141-1/+1
| | | | | | | | | | | | | | when accessing the SD card arasan_sdhci_send_cmd checks for the wrong bit Signed-off-by: Michael Graichen <michael.graichen@hotmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mmc: add MCI_SDHCI dependency to Arasan driverMichael Graichen2020-04-141-0/+1
| | | | | | | | | | | | | | | | | | | | | | The Arasan driver depends on the SDHCI driver, without it we will see undefined references while linking arasan-sdhci.c:283: undefined reference to `sdhci_set_cmd_xfer_mode' arasan-sdhci.c:299: undefined reference to `sdhci_read_response' arasan-sdhci.c:303: undefined reference to `sdhci_transfer_data' Signed-off-by: Michael Graichen <michael.graichen@hotmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/zii'Sascha Hauer2020-04-1621-574/+163
|\ \
| * | ARM: zii-common: Gate rdu_i210_invm() call with CONFIG_PCI_IMX6Andrey Smirnov2020-04-031-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | There's no reason to have rdu_i210_invm() initcall if CONFIG_PCI_IMX6 is not selected. Add appropriate ifdef to handle that. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: zii-imx7d-rmu2: Add boot source infoAndrey Smirnov2020-04-031-0/+18
| | | | | | | | | | | | | | | | | | | | | Add boot source info so that RAVE SP driver could query it. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: zii-imx7d-rmu2: Add SPI NOR partition infoAndrey Smirnov2020-04-031-0/+17
| | | | | | | | | | | | | | | | | | | | | Add SPI NOR partition info necessary for SPI BBU target to work. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: zii-imx7d-dev: Drop redundant RMU2 .dtsiAndrey Smirnov2020-04-032-362/+1
| | | | | | | | | | | | | | | | | | | | | The file has made it upstream so we can drop our local copy. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: zii-imx8mq-dev: Drop redundant "stdout-path"Andrey Smirnov2020-04-031-2/+0
| | | | | | | | | | | | | | | | | | | | | Drop redundant "stdout-path" since it already present in upstream DT. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: zii-imx8mq-dev: Add boot source infoAndrey Smirnov2020-04-031-0/+9
| | | | | | | | | | | | | | | | | | | | | Add boot source info so that RAVE SP driver can properly query it. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: imx8mq: Drop redundant DT nodesAndrey Smirnov2020-04-031-97/+0
| | | | | | | | | | | | | | | | | | | | | | | | Drop all of the aliases and themrmal-zone nodes in imx8mq.dtsi since those nodes are now present in upstream DT file. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: imx8mq: Drop trailing whitespaceAndrey Smirnov2020-04-031-1/+1
| | | | | | | | | | | | | | | Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: rdu2: Drop redundant USB GPIO hog nodesAndrey Smirnov2020-04-031-36/+0
| | | | | | | | | | | | | | | | | | | | | All of those nodes are already present in upstream DT. Drop them. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: zii-vf610-dev: Add newline to end of board.cAndrey Smirnov2020-04-031-1/+1
| | | | | | | | | | | | | | | | | | | | | Add newline to end of board.c so that git doesn't complain. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: zii-imx8mq-dev: Register SD card slot with BBUAndrey Smirnov2020-04-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Register SD card slot with BBU. This is really useful for development since this allows to update the bootloader on SD card without having to take it out of the device. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: zii-vf610-dev: Register SD card slot with BBUAndrey Smirnov2020-04-031-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | Register SD card slot with BBU. This is really useful for development since this allows to update the bootloader on SD card without having to take it out of the device. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: zii-imx6q-rdu2: Register SD card slot with BBUAndrey Smirnov2020-04-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Register SD card slot with BBU. This is really useful for development since this allows to update the bootloader on SD card without having to take it out of the device. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: zii-common: Add common environment directoryAndrey Smirnov2020-04-0310-50/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Establish a common environment directory between all ZII boards, so that we could share common bits and pieces. As a first step, get rid of board scecific net boot scripts and replace them with a single shared one. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: zii-imx8mq-dev: Differentiate between Zest and RMB3Andrey Smirnov2020-04-011-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | Add code to configure hostname so we could differentiate between the two in scripts. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: zii-imx7d-dev: Differentiate between RPU2 and RMU2Andrey Smirnov2020-04-011-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | Add code to configure hostname so we could differentiate between the two in scripts. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: zii-imx6q-rdu2: Differentiate between RDU2 and RDU2+Andrey Smirnov2020-04-011-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | Add code to configure hostname so we could differentiate between the two in scripts. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: zii-common: Support rave_switch_reset on ZII UltraAndrey Smirnov2020-04-014-2/+24
| | | | | | | | | | | | | | | | | | | | | | | | ZII Ultra boards implement switch watchdog the same way as ZII RDU2. Add necessary code to make rave_switch_reset availible. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: zii-common: Find switch watchdog via DTAndrey Smirnov2020-04-011-9/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | Use of_find_i2c_device_by_node() in swith reset code in order to be able to support other devices that have this MCU on a different I2C busses. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | i2c: Port of_find_i2c_device_by_node() from LinuxAndrey Smirnov2020-04-012-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Port of_find_i2c_device_by_node() from Linux in order to allow looking i2c_client up by corresponding DT node. Useful for interacting with identical raw/driverless I2C devices that are not found on the same bus between board variants. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: zii-common: Check for I2C errors in do_rdu2_switch_reset()Andrey Smirnov2020-04-011-3/+17
| | | | | | | | | | | | | | | Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: zii-imx7d-dev: Fix compatible nameAndrey Smirnov2020-04-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Fix compatible name use in zii_imx7d_rpu2_coredevices_init(). Upstream uses "zii,imx7d-rpu2" and so should we. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: imx7d-zii-rpu2: Drop redundant chosen nodeAndrey Smirnov2020-04-011-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | This code is no longer necessary. Upstream DT code has all the necessary bits. Remove it. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/usb'Sascha Hauer2020-04-1621-3342/+5250
|\ \ \
| * | | usb: Add U-Boot xhci driverSascha Hauer2020-03-267-16/+4582
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds the xhci driver from U-Boot-2020.04-rc2. The usual things like adjusting to the barebox driver model and using dev_* instead of printf/puts/debug messages are made. The previously existing PCI support is not present in this driver currently. XHCI PCI support was not enabled in any defconfig, so we boldly assume it was unused. It shouldn't be much effort though to add it again. The memory handling has been changed for barebox. The various descriptor rings and descriptors are allocated with dma_alloc_coherent() which makes the cache flushing/invalidating unnecessary. They are left in the driver in case we want to change that. The XHCI has a nasty limitation in that the TRBs may not cross a 64KiB boundary. This limitation has been handled in the U-Boot driver, but the handling seems to be broken. We help ourselves with using a bounce buffer which is sufficiently aligned, but this limits the maximum bulk transfer size to 64KiB. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | usb: host: remove xhci driverSascha Hauer2020-03-264-3643/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current xhci driver support USB 2.0 only. The U-Boot driver is better developed and supports USB 3.0 devices. Remove the xhci driver first as a separate patch to make the patch adding the new U-Boot based driver better readable. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | usb: hub: When no connection came up remove from scanning listSascha Hauer2020-03-261-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When after a timeout no connection came up then we have not only bail out, but also remove the device from the scanning list. Otherwise it can happen that the list never becomes empty and we probe forever. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | usb: Add super speed supportSascha Hauer2020-03-265-17/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds the missing bits and pieces to add super speed support to the USB stack. It is based on the corresponding U-Boot code. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | usb: hub: Translate USB 3.0 hub port status into old versionSascha Hauer2020-03-262-1/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adoption of U-Boot commit: | 1commit 74ffc7cbb1d2d1f218b1bd67d1bd3cc1cba8aa79 | Author: Bin Meng <bmeng.cn@gmail.com> | Date: Wed Jul 19 21:51:12 2017 +0800 | | usb: hub: Translate USB 3.0 hub port status into old version | | USB 3.0 hub port status field has different bit positions from 2.0 | hubs. Since U-Boot only understands the old version, translate the | new one into the old one. | | Since we are going to add USB 3.0 hub support, this feature is only | available with driver model USB. | | Signed-off-by: Bin Meng <bmeng.cn@gmail.com> | Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | usb: factor out a usb_setup_descriptor() functionSascha Hauer2020-03-261-52/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This factors out a usb_setup_descriptor() function with the goal to make the code better comparable to the corresponding U-Boot code. This also incorporates this U-Boot commit: | commit 2b338ef41127351089254b748de5cefd95c3e800 | Author: Hans de Goede <hdegoede@redhat.com> | Date: Tue May 5 23:56:04 2015 +0200 | | usb: Fix maxpacketsize for first descriptor read for low-speed usb devs | | This fixes descriptor reading of lowspeed devices through ohci not working. | | Signed-off-by: Hans de Goede <hdegoede@redhat.com> | Acked-by: Marek Vasut <marex@denx.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | usb: net: Add support for the Asix AX88179Sascha Hauer2020-03-263-0/+765
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds support for the Asix AX88179 USB3.0 ethernet converter chip. The driver is based on the kernel driver with influence from the U-Boot driver. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | net: usb: add hook for link changesSascha Hauer2020-03-261-1/+10
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | usb: net: Allocate tx buffer dynamicallySascha Hauer2020-03-262-7/+15
| | | | | | | | | | | | | | | | | | | | | | | | It's cleaner to have a tx buffer per device and not one for all. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>