Re: [PATCH 1/2] DM_USB: allow building without OF_CONTROL

2021-06-25 Thread Tom Rini
On Fri, Jun 25, 2021 at 11:51:51PM +0200, Pali Rohár wrote: > On Friday 25 June 2021 17:37:44 Tom Rini wrote: > > One thing I want to say here as I think it maybe wasn't clear in Marek's > > suggestion. Why not have X-Loader boot SPL which loads U-Boot from extN > > on the eMMC? > > Hello Tom! I

Re: [PATCH 1/2] DM_USB: allow building without OF_CONTROL

2021-06-25 Thread Pali Rohár
On Friday 25 June 2021 17:37:44 Tom Rini wrote: > One thing I want to say here as I think it maybe wasn't clear in Marek's > suggestion. Why not have X-Loader boot SPL which loads U-Boot from extN > on the eMMC? Hello Tom! I have already answered this in my previous email.

Re: [PATCH 1/2] DM_USB: allow building without OF_CONTROL

2021-06-25 Thread Tom Rini
On Sat, Jun 26, 2021 at 12:31:49AM +0300, Ivaylo Dimitrov wrote: [snip] > In regards to SPL - there is no way to sign SPL with the keys used by Nokia > to sign NOLO(the proprietary second stage loader), we simply don't have > them. Without that, we can't replace NOLO. One thing I want to say here

Re: [PATCH 1/2] DM_USB: allow building without OF_CONTROL

2021-06-25 Thread Ivaylo Dimitrov
On 25.06.21 г. 19:04 ч., Simon Glass wrote: Hi Pali, On Fri, 25 Jun 2021 at 07:07, Pali Rohár wrote: On Friday 25 June 2021 08:38:47 Tom Rini wrote: On Sun, Jun 20, 2021 at 09:43:43PM +0200, Marek Vasut wrote: On 6/20/21 5:54 PM, Tom Rini wrote: [...] As far as I understand, the RX51 ha

[PATCH V2 1/3] arm: omap3: Make try_unlock_memory() static

2021-06-25 Thread Adam Ford
try_unlock_memory() is only used in one file, so make it static in that file,remove it from the sys_proto header file, and relocate it into the #ifdef section that call it. This will make it only built under the conditions when it is called, and it may help with some further optimization in the fut

[PATCH V2 3/3] arm: omap3: Make secure_unlock_mem() static

2021-06-25 Thread Adam Ford
secure_unlock_mem() is only used in one file, so make it static in that file. Signed-off-by: Adam Ford --- V2: Move secure_unlock_mem into area encompassed by ifdef to only define it when potentially used to avoid errors. diff --git a/arch/arm/mach-omap2/omap3/board.c b/arch/arm/mach-omap

[PATCH V2 2/3] arm: omap3: Make secureworld_exit() static

2021-06-25 Thread Adam Ford
secureworld_exit() is only used in one file, so make it static to that file and remove it from sys_proto.h. This may help with some further optimization in the future. Signed-off-by: Adam Ford --- V2: Move secureworld_exit into area encompassed by ifdef to only define when potentially used

[PATCH V2 0/3] Make omap3 board functions static

2021-06-25 Thread Adam Ford
Several functions in omap3/board.c are only used in that file, and two of them are only called when certain conditions are true in an ifdef. Rearange these functions to also be inside the ifdef and make them static. Before: text data bss dec hex filename 4999810571888

[PATCH v10 27/27] mtd: spi-nor-core: Allow using Micron mt35xu512aba in Octal DTR mode

2021-06-25 Thread Pratyush Yadav
Since this flash doesn't have a Profile 1.0 table, the Octal DTR capabilities are enabled in the post SFDP fixup, along with the 8D-8D-8D fast read settings. Enable Octal DTR mode with 20 dummy cycles to allow running at the maximum supported frequency of 200Mhz. Signed-off-by: Pratyush Yadav --

[PATCH v10 26/27] mtd: spi-nor-core: Add support for Cypress Semper flash

2021-06-25 Thread Pratyush Yadav
The Cypress Semper flash is an xSPI compliant octal DTR flash. Add support for using it in octal DTR mode. The flash by default boots in a hybrid sector mode. Switch to uniform sector mode on boot. Use the default 20 dummy cycles for a read fast command. The SFDP programming on some older version

[PATCH v10 24/27] mtd: spi-nor-core: allow truncated erases

2021-06-25 Thread Pratyush Yadav
On devices with non-uniform sector sizes like Spansion S25 or S28 family of flashes the sector under erase does not necessarily have to be mtd->erasesize bytes long. For example, on S28 flashes the first 128 KiB region is composed of 32 4 KiB sectors, then a 128 KiB sector, and then 256 KiB sectors

[PATCH v10 25/27] mtd: spi-nor-core: Add non-uniform erase for Spansion/Cypress

2021-06-25 Thread Pratyush Yadav
From: Takahiro Kuwano Some of Spansion/Cypress chips have overlaid 4KB sectors at top and/or bottom, depending on the device configuration, while U-Boot supports uniform sector layout only. The spansion_erase_non_uniform() erases overlaid 4KB sectors, non-overlaid portion of normal sector, and

[PATCH v10 23/27] mtd: spi-nor-core: Perform a Soft Reset on boot

2021-06-25 Thread Pratyush Yadav
When the flash is handed to us in a stateful mode like 8D-8D-8D, it is difficult to detect the mode the flash is in. One option is to read SFDP in all modes and see which one gives the correct "SFDP" signature, but not all flashes support SFDP in 8D-8D-8D mode. Further, even if you detect the mod

[PATCH v10 22/27] mtd: spi-nor-core: Perform a Soft Reset on shutdown

2021-06-25 Thread Pratyush Yadav
On probe, the SPI NOR core will put a flash in 8D-8D-8D mode if it supports it. But Linux as of now expects to get the flash in 1S-1S-1S mode. Handing the flash to Linux in Octal DTR mode means the kernel will fail to detect the flash. So, we need to reset to Power-on-Reset (POR) state before hand

[PATCH v10 21/27] mtd: spi-nor-core: Detect Soft Reset sequence support from BFPT

2021-06-25 Thread Pratyush Yadav
A Soft Reset sequence will return the flash to Power-on-Reset (POR) state. It consists of two commands: Soft Reset Enable and Soft Reset. Find out if the sequence is supported from BFPT DWORD 16. Signed-off-by: Pratyush Yadav --- drivers/mtd/spi/spi-nor-core.c | 6 ++ include/linux/mtd/spi-n

[PATCH v10 20/27] mtd: spi-nor-core: Do not make invalid quad enable fatal

2021-06-25 Thread Pratyush Yadav
The Micron MT35XU512ABA flash does not support the quad enable bit. But instead of programming the Quad Enable Require field to 000b ("Device does not have a QE bit"), it is programmed to 111b ("Reserved"). While this is technically incorrect, it is not reason enough to abort BFPT parsing. Instead

[PATCH v10 19/27] mtd: spi-nor-core: Enable octal DTR mode when possible

2021-06-25 Thread Pratyush Yadav
Allow flashes to specify a hook to enable octal DTR mode. Use this hook whenever possible to get optimal transfer speeds. Signed-off-by: Pratyush Yadav --- drivers/mtd/spi/spi-nor-core.c | 31 +++ include/linux/mtd/spi-nor.h| 2 ++ 2 files changed, 33 insertions(

[PATCH v10 18/27] mtd: spi-nor-core: Prepare Read SR and FSR for Octal DTR mode

2021-06-25 Thread Pratyush Yadav
The xSPI Profile 1.0 table specifies how many dummy cycles and address bytes are needed for the Read Status Register command in Octal DTR mode. Use that information to send the correct Read SR command. Some controllers might have trouble reading just 1 byte in DTR mode. So, when we are in DTR mode

[PATCH v10 17/27] mtd: spi-nor-core: Parse xSPI Profile 1.0 table

2021-06-25 Thread Pratyush Yadav
This table is indication that the flash is xSPI compliant and hence supports octal DTR mode. Extract information like the fast read opcode, the number of dummy cycles needed for a Read Status Register command, and the number of address bytes needed for a Read Status Register command. The default d

[PATCH v10 13/27] mtd: spi-nor-core: Do not set data direction when there is no data

2021-06-25 Thread Pratyush Yadav
Even when spi_nor_write_reg() has no data to write, like when executing a write enable operation, it sets the data direction to SPI_MEM_DATA_OUT. This trips up spi_mem_check_buswidth() because it expects a data phase when there is none. Make sure the data direction is set to SPI_MEM_NO_DATA when th

[PATCH v10 11/27] mtd: spi-nor-core: Introduce flash-specific fixup hooks

2021-06-25 Thread Pratyush Yadav
Sometimes the information in a flash's SFDP tables is wrong. Sometimes some information just can't be expressed in the SFDP table. So, introduce the fixup hooks to allow tailoring settings for a specific flash. Three hooks are added: default_init, post_sfdp, and post_bfpt. These allow tweaking the

[PATCH v10 15/27] mtd: spi-nor-core: prepare BFPT parsing for JESD216 rev D

2021-06-25 Thread Pratyush Yadav
JESD216 rev D makes BFPT 20 DWORDs. Update the BFPT size define to reflect that. The check for rev A or later compared the BFPT header length with the maximum BFPT length, BFPT_DWORD_MAX. Since BFPT_DWORD_MAX was 16, and so was the BFPT length for both rev A and B, this check worked fine. But now,

[PATCH v10 16/27] mtd: spi-nor-core: Get command opcode extension type from BFPT

2021-06-25 Thread Pratyush Yadav
Some devices in DTR mode expect an extra command byte called the extension. The extension can either be same as the opcode, bitwise inverse of the opcode, or another additional byte forming a 16-byte opcode. Get the extension type from the BFPT. For now, only flashes with "repeat" and "inverse" ext

[PATCH v10 14/27] mtd: spi-nor-core: Add support for DTR protocol

2021-06-25 Thread Pratyush Yadav
Double Transfer Rate (DTR) is SPI protocol in which data is transferred on each clock edge as opposed to on each clock cycle. Make framework-level changes to allow supporting flashes in DTR mode. Right now, mixed DTR modes are not supported. So, for example a mode like 4S-4D-4D will not work. All

[PATCH v10 12/27] mtd: spi-nor-core: Rework hwcaps selection

2021-06-25 Thread Pratyush Yadav
The spi-mem layer provides a spi_mem_supports_op() function to check whether a specific operation is supported by the controller or not. This is much more accurate than the hwcaps selection logic based on SPI_{RX,TX}_ flags. Rework the hwcaps selection logic to use spi_mem_supports_op(). To make

[PATCH v10 09/27] mtd: spi-nor-core: Add a ->setup() hook

2021-06-25 Thread Pratyush Yadav
nor->setup() can be used by flashes to configure settings in case they have any peculiarities that can't be easily expressed by the generic spi-nor framework. This includes things like different opcodes, dummy cycles, page size, uniform/non-uniform sector sizes, etc. Move related declarations to a

[PATCH v10 10/27] mtd: spi-nor-core: Move SFDP related declarations to top

2021-06-25 Thread Pratyush Yadav
These structures will be used in a later commit inside another structure definition. Also take the declarations out of the ifdef since they won't affect the final binary anyway and will be used in a later commit. Signed-off-by: Pratyush Yadav --- drivers/mtd/spi/spi-nor-core.c | 224

[PATCH v10 07/27] spi: cadence-qspi: Add support for octal DTR flashes

2021-06-25 Thread Pratyush Yadav
Set up opcode extension and enable/disable DTR mode based on whether the command is DTR or not. xSPI flashes can have a 4-byte dummy address associated with some commands like the Read Status Register command in octal DTR mode. Since the flash does not support sending the dummy address, we can not

[PATCH v10 08/27] mtd: spi-nor-core: Fix address width on flash chips > 16MB

2021-06-25 Thread Pratyush Yadav
If a flash chip has more than 16MB capacity but its BFPT reports BFPT_DWORD1_ADDRESS_BYTES_3_OR_4, the spi-nor framework defaults to 3. The check in spi_nor_scan() doesn't catch it because addr_width did get set. This fixes that check. Ported from Kernel commit 324f78dfb442b82365548b657ec4e6974c6

[PATCH v10 06/27] spi: cadence-qspi: Add a small delay before indirect writes

2021-06-25 Thread Pratyush Yadav
Once the start bit is toggled it takes a small amount of time before it is internally synchronized. This means we can't start writing during that part. So add a small delay to allow the bit to be synchronized. Signed-off-by: Pratyush Yadav --- drivers/spi/cadence_qspi.c | 4 drivers/spi

[PATCH v10 05/27] spi: cadence-qspi: Do not calibrate when device tree sets read delay

2021-06-25 Thread Pratyush Yadav
If the device tree provides a read delay value, use that directly and do not perform the calibration procedure. This allows the device tree to over-ride the read delay value in cases where the read delay value obtained via calibration is incorrect. One such example is the Cypress Semper flash. It

[PATCH v10 04/27] spi: spi-mem: add spi_mem_dtr_supports_op()

2021-06-25 Thread Pratyush Yadav
spi_mem_default_supports_op() rejects DTR ops by default to ensure that the controller drivers that haven't been updated with DTR support continue to reject them. It also makes sure that controllers that don't support DTR mode at all (which is most of them at the moment) also reject them. This mea

[PATCH v10 02/27] spi: spi-mem: allow specifying a command's extension

2021-06-25 Thread Pratyush Yadav
In xSPI mode, flashes expect 2-byte opcodes. The second byte is called the "command extension". There can be 3 types of extensions in xSPI: repeat, invert, and hex. When the extension type is "repeat", the same opcode is sent twice. When it is "invert", the second byte is the inverse of the opcode.

[PATCH v10 03/27] spi: spi-mem: export spi_mem_default_supports_op()

2021-06-25 Thread Pratyush Yadav
Controllers can use this function to perform basic sanity checking on the spi-mem op. Reviewed-by: Sean Anderson Signed-off-by: Pratyush Yadav --- include/spi-mem.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/spi-mem.h b/include/spi-mem.h index fe249f77ba..de3c11c8e2 100644 -

[PATCH v10 01/27] spi: spi-mem: allow specifying whether an op is DTR or not

2021-06-25 Thread Pratyush Yadav
Each phase is given a separate 'dtr' field so mixed protocols like 4S-4D-4D can be supported. Signed-off-by: Pratyush Yadav --- drivers/spi/spi-mem.c | 3 +++ include/spi-mem.h | 8 2 files changed, 11 insertions(+) diff --git a/drivers/spi/spi-mem.c b/drivers/spi/spi-mem.c index c

[PATCH v10 00/27] mtd: spi-nor-core: add xSPI Octal DTR support

2021-06-25 Thread Pratyush Yadav
Hi, This series adds support for octal DTR flashes in the SPI NOR framework, and then adds hooks for the Cypress S28HS512T and Micron MT35XU512ABA flashes. The Cadence QSPI controller driver is also updated to run in Octal DTR mode. Tested on TI J721E for MT35XU512ABA and J7200 for S28HS512T. Al

[PATCH] configs: omap3x_logic: Fix boot hang by reducing SYS_MALLOC_F_LEN

2021-06-25 Thread Adam Ford
The AM3517 uses SYS_MALLOC_F_LEN of size 0x3000, but the rest of the OMAP3 boards from LogicPD / BeaconEmbedded use 0x4000, but they don't boot SPL. Reduce the malloc size to restore booting. Signed-off-by: Adam Ford diff --git a/configs/omap35_logic_defconfig b/configs/omap35_logic_defconfig i

Re: [PATCH 1/2] DM_USB: allow building without OF_CONTROL

2021-06-25 Thread Pali Rohár
On Friday 25 June 2021 10:43:11 Simon Glass wrote: > Hi Pali, > > On Fri, 25 Jun 2021 at 10:16, Pali Rohár wrote: > > > > On Friday 25 June 2021 10:04:14 Simon Glass wrote: > > > But I do wonder about the > > > 100KB growth you saw with DT/DM. That seems absolutely enormous to me! > > > Can you p

[PATCH] fit: Allow external data for FDTs

2021-06-25 Thread John Keeping
Switch to fit_image_get_data_and_size() for consistency with all other data loaded from FIT. Signed-off-by: John Keeping --- common/image-fit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/image-fit.c b/common/image-fit.c index 94501b1071..4c5a24806d 100644 --- a/

Re: [PATCH 1/2] DM_USB: allow building without OF_CONTROL

2021-06-25 Thread Simon Glass
Hi Pali, On Fri, 25 Jun 2021 at 10:16, Pali Rohár wrote: > > On Friday 25 June 2021 10:04:14 Simon Glass wrote: > > Hi Pali, > > > > On Fri, 25 Jun 2021 at 07:07, Pali Rohár wrote: > > > > > > On Friday 25 June 2021 08:38:47 Tom Rini wrote: > > > > On Sun, Jun 20, 2021 at 09:43:43PM +0200, Marek

Re: [PATCH 1/2] DM_USB: allow building without OF_CONTROL

2021-06-25 Thread Pali Rohár
On Friday 25 June 2021 10:04:14 Simon Glass wrote: > Hi Pali, > > On Fri, 25 Jun 2021 at 07:07, Pali Rohár wrote: > > > > On Friday 25 June 2021 08:38:47 Tom Rini wrote: > > > On Sun, Jun 20, 2021 at 09:43:43PM +0200, Marek Vasut wrote: > > > > On 6/20/21 5:54 PM, Tom Rini wrote: > > > > > > > >

Re: [PATCH 1/2] DM_USB: allow building without OF_CONTROL

2021-06-25 Thread Simon Glass
Hi Pali, On Fri, 25 Jun 2021 at 07:07, Pali Rohár wrote: > > On Friday 25 June 2021 08:38:47 Tom Rini wrote: > > On Sun, Jun 20, 2021 at 09:43:43PM +0200, Marek Vasut wrote: > > > On 6/20/21 5:54 PM, Tom Rini wrote: > > > > > > [...] > > > > > > > > As far as I understand, the RX51 has gigabytes

Re: Splash image on phyBOARD Sargas STM32MP157

2021-06-25 Thread Patrice CHOTARD
Hi Andrey +Philippe and Yannick who are the experts, please interacts directly with them. Here is Philippe's answer: The CONFIG_VIDEO_MIPI_DSI flag is not necessary as the panel is DPI, and so maybe this DSI configuration annoys the rest of the display chain... Moreover, we are not using follo

Re: [PATCH v9 00/28] mtd: spi-nor-core: add xSPI Octal DTR support

2021-06-25 Thread Jagan Teki
On Thu, Jun 24, 2021 at 4:43 PM Pratyush Yadav wrote: > > On 23/06/21 05:32PM, Jagan Teki wrote: > > On Wed, May 5, 2021 at 3:11 PM Pratyush Yadav wrote: > > > > > > Hi, > > > > > > This series adds support for octal DTR flashes in the SPI NOR framework, > > > and then adds hooks for the Cypress

Re: [PATCH] spi: Add MXIC controller driver

2021-06-25 Thread Jagan Teki
On Fri, Jun 25, 2021 at 3:01 PM Jagan Teki wrote: > > On Wed, Jun 23, 2021 at 2:46 PM Zhengxun wrote: > > > > Add a driver for Macronix SPI controller IP. > > > > This patch referred from linux spi-mxic.c. The difference from the > > linux version is described here. > > > > 1. To adapt uboot spi

Re: [PATCH 03/12] Revert "usb: gadget: fastboot: use correct max packet size"

2021-06-25 Thread Maxime Ripard
Hi Sean, On Fri, Jun 25, 2021 at 09:47:11AM -0400, Sean Anderson wrote: > On 6/25/21 9:05 AM, Maxime Ripard wrote: > > This reverts commit 27c9141b1114fd5721437abbb1c694e45e765f19. > > Why does this need to be reverted? As I stated in the cover letter, I don't really know enough about USB to kno

Re: Pull request: u-boot-imx u-boot-imx-20210625

2021-06-25 Thread Stefano Babic
On 25.06.21 16:10, Stefano Babic wrote: Hi Tom, please pull from u-boot-imx, thanks ! this just contains fixes for warning in last PR + a couple of other fixes (patches I missed last time). It is of course u-boot-imx-20210625 Best regards, Stefano

Pull request: u-boot-imx u-boot-imx-20210616

2021-06-25 Thread Stefano Babic
.denx.de/u-boot/custodians/u-boot-net (2021-06-18 11:18:56 -0400) are available in the Git repository at: https://gitlab.denx.de/u-boot/custodians/u-boot-imx.git tags/u-boot-imx-20210625 for you to fetch changes up to 52ce6a61c1fc74b62be7f57ba83c1b43181b1f91: imx8mm: configs: enable dist

Re: [PATCH 09/12] fastboot: nand: Fix return error code

2021-06-25 Thread Andre Przywara
On Fri, 25 Jun 2021 15:05:44 +0200 Maxime Ripard wrote: > Both mtdparts_init() and find_dev_and_part() will return 0 on success > but 1 on failure. > > Since the calling functions of fb_nand_lookup expects a negative error > code on failure, we can't just return the returned value of these > fun

Re: [PATCH 03/12] Revert "usb: gadget: fastboot: use correct max packet size"

2021-06-25 Thread Sean Anderson
On 6/25/21 9:05 AM, Maxime Ripard wrote: This reverts commit 27c9141b1114fd5721437abbb1c694e45e765f19. Why does this need to be reverted? --Sean --- drivers/usb/gadget/f_fastboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/f_fastboot.c b/driver

Re: [PATCH 06/12] fastboot: Add missing newlines

2021-06-25 Thread Andre Przywara
On Fri, 25 Jun 2021 15:05:41 +0200 Maxime Ripard wrote: > Most of the error messages in the NAND fastboot support are missing a \n > at the end, add it where relevant. > > Signed-off-by: Maxime Ripard Reviewed-by: Andre Przywara Thanks! Andre > --- > drivers/fastboot/fb_nand.c | 10 +--

Re: [PATCH 07/12] configs: chip pro: Disable video output

2021-06-25 Thread Andre Przywara
On Fri, 25 Jun 2021 15:05:42 +0200 Maxime Ripard wrote: > The CHIP Pro doesn't have a video output, so it doesn't make sense to > have the video support enabled. > > A side effect is that it prevents the messages from the HDMI controller > about a missing DDC controller to retrieve the EDID, whi

Re: [PATCH 08/12] clk: sunxi: Add missing clock compatible

2021-06-25 Thread Andre Przywara
On Fri, 25 Jun 2021 15:05:43 +0200 Maxime Ripard wrote: > The NextThingCo GR8 is a derivative of the sun5i family, and thus should > be considered similar to the A10s and A13 as far as clocks go. > > The compatible was missing from the clock driver so far, leading to all > the drivers depending

[PATCH v2 4/5] ARM: dts: rockchip: update rk3188.dtsi

2021-06-25 Thread Johan Jonker
In the Linux DT the file rk3xxx.dtsi is shared between rk3066 and rk3188. Both rk3xxx.dtsi and rk3188.dtsi have recently had some updates. For a future rk3066 support in U-boot this file must also update. Move U-boot specific things in a rk3188-u-boot.dtsi file. Signed-off-by: Johan Jonker --- a

[PATCH v2 5/5] ARM: dts: rockchip: update rk3188-radxarock.dts

2021-06-25 Thread Johan Jonker
In the Linux DT the file rk3xxx.dtsi is shared between rk3066 and rk3188. Both rk3xxx.dtsi and rk3188.dtsi have recently had some updates. For a future rk3066 support in U-boot this file must also update. Move U-boot specific things in a rk3188-radxarock-u-boot.dtsi file. Signed-off-by: Johan Jonk

[PATCH v2 3/5] rockchip: rk3188-power: sync power domain dt-binding header from Linux

2021-06-25 Thread Johan Jonker
In order to update the DT for rk3188 sync the power domain dt-binding header. This is the state as of v5.12 in Linux. Signed-off-by: Johan Jonker --- include/dt-bindings/power/rk3188-power.h | 24 1 file changed, 24 insertions(+) create mode 100644 include/dt-bindings/p

[PATCH v2 2/5] ARM: dts: rockchip: update rk3xxx.dtsi

2021-06-25 Thread Johan Jonker
In the Linux DT the file rk3xxx.dtsi is shared between rk3066 and rk3188. This file has recently had some updates. For a future rk3066 support in U-boot this file must also update. Move U-boot specific things in a rk3xxx-u-boot.dtsi file. Signed-off-by: Johan Jonker --- Changed V2: add vpu nod

[PATCH v2 1/5] rockchip: rk3188-cru-common: sync clock dt-binding header from Linux

2021-06-25 Thread Johan Jonker
In order to update the DT for rk3066 and rk3188 sync the clock dt-binding header. This is the state as of v5.12 in Linux. Signed-off-by: Johan Jonker Reviewed-by: Heiko Stuebner --- include/dt-bindings/clock/rk3188-cru-common.h | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-)

Re: [PATCH 1/2] DM_USB: allow building without OF_CONTROL

2021-06-25 Thread Pali Rohár
On Friday 25 June 2021 08:38:47 Tom Rini wrote: > On Sun, Jun 20, 2021 at 09:43:43PM +0200, Marek Vasut wrote: > > On 6/20/21 5:54 PM, Tom Rini wrote: > > > > [...] > > > > > > As far as I understand, the RX51 has gigabytes of eMMC storage, so it > > > > can > > > > use SPL just like any other O

[PATCH 12/12] configs: chip pro: Fix NAND Controller name

2021-06-25 Thread Maxime Ripard
The controller name in Linux isn't sunxi_nand.0 but 1c03000.nand-controller, preventing us from passing the mtdparts variable directly on the kernel command line. Let's adjust our value to match what Linux expects. Signed-off-by: Maxime Ripard --- configs/CHIP_pro_defconfig | 4 ++-- 1 file cha

[PATCH 11/12] configs: chip pro: fix the offsets

2021-06-25 Thread Maxime Ripard
The CHIP Pro MTD partition table sets the U-Boot offset at 512kB (0x8), and its backup at 2.5MB (0x28). However, the default value for both of these on sunxi is 8MB (0x80), which doesn't work in our case. Fix this. Signed-off-by: Maxime Ripard --- configs/CHIP_pro_defconfig | 2 ++

[PATCH 09/12] fastboot: nand: Fix return error code

2021-06-25 Thread Maxime Ripard
Both mtdparts_init() and find_dev_and_part() will return 0 on success but 1 on failure. Since the calling functions of fb_nand_lookup expects a negative error code on failure, we can't just return the returned value of these functions. This fixes an issue with the logic that detects whether we su

[PATCH 10/12] configs: chip pro: Disable UMS

2021-06-25 Thread Maxime Ripard
The CHIP Pro doesn't have any block storage device, so enabling UMS makes little sense. Signed-off-by: Maxime Ripard --- configs/CHIP_pro_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/configs/CHIP_pro_defconfig b/configs/CHIP_pro_defconfig index d2eddc7e9ff0..c8e2e2ae2ca3 100644 -

[PATCH 08/12] clk: sunxi: Add missing clock compatible

2021-06-25 Thread Maxime Ripard
The NextThingCo GR8 is a derivative of the sun5i family, and thus should be considered similar to the A10s and A13 as far as clocks go. The compatible was missing from the clock driver so far, leading to all the drivers depending on it being non-functional. Signed-off-by: Maxime Ripard --- driv

[PATCH 07/12] configs: chip pro: Disable video output

2021-06-25 Thread Maxime Ripard
The CHIP Pro doesn't have a video output, so it doesn't make sense to have the video support enabled. A side effect is that it prevents the messages from the HDMI controller about a missing DDC controller to retrieve the EDID, which doesn't make much sense since the GR8 doesn't have an HDMI contro

[PATCH 06/12] fastboot: Add missing newlines

2021-06-25 Thread Maxime Ripard
Most of the error messages in the NAND fastboot support are missing a \n at the end, add it where relevant. Signed-off-by: Maxime Ripard --- drivers/fastboot/fb_nand.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/fastboot/fb_nand.c b/drivers/fastboot/fb_

[PATCH 05/12] mtd: Allow for a longer mtdparts table

2021-06-25 Thread Maxime Ripard
20 characters is fairly short for a partition table, let's increase it a bit. Signed-off-by: Maxime Ripard --- drivers/mtd/mtd_uboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/mtd_uboot.c b/drivers/mtd/mtd_uboot.c index c53ec657a34d..3b54d0ba6e95 100644 ---

[PATCH 04/12] Kconfig: Migrate SPL_PANIC_ON_RAW_IMAGE

2021-06-25 Thread Maxime Ripard
The SPL_PANIC_ON_RAW_IMAGE can be fairly useful to avoid the SPL getting stuck without a message when the image retrieved isn't a valid image. Let's convert it to Kconfig. Signed-off-by: Maxime Ripard --- README | 10 -- common/spl/Kconfig | 14 ++

[PATCH 03/12] Revert "usb: gadget: fastboot: use correct max packet size"

2021-06-25 Thread Maxime Ripard
This reverts commit 27c9141b1114fd5721437abbb1c694e45e765f19. --- drivers/usb/gadget/f_fastboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c index 8ba55aab9f8f..1fcffaf9dd26 100644 --- a/drivers/usb/gadget/f

[PATCH 01/12] Revert "sunxi: spl: remove DMA related settings of the NAND controller"

2021-06-25 Thread Maxime Ripard
This reverts commit 136e32593335e031558a573158b6180fc80b551f. --- board/sunxi/board.c | 5 + 1 file changed, 5 insertions(+) diff --git a/board/sunxi/board.c b/board/sunxi/board.c index 21651a1bfca4..80c222114f9a 100644 --- a/board/sunxi/board.c +++ b/board/sunxi/board.c @@ -395,6 +395,11 @@

[PATCH 02/12] Revert "spl: nand: sunxi: use PIO instead of DMA"

2021-06-25 Thread Maxime Ripard
This reverts commit 6ddbb1e936c78cdef1e7395039fa7020c5c75326. --- drivers/mtd/nand/raw/sunxi_nand_spl.c | 141 -- 1 file changed, 85 insertions(+), 56 deletions(-) diff --git a/drivers/mtd/nand/raw/sunxi_nand_spl.c b/drivers/mtd/nand/raw/sunxi_nand_spl.c index 85d8013b1a6

[PATCH 00/12] Random Fixes for the CHIP Pro

2021-06-25 Thread Maxime Ripard
Hi, These patches fix the NextThingCo CHIP Pro support in upstream U-Boot. The three reverts are not supposed to be merged at this point: the first two will break the NAND support on newer Allwinner SoCs, and it's not clear what the fastboot one does exactly, so I'm a bit concerned about the side

Re: [PATCH v1 1/1] cmd: setexpr: add dec operation for converting variable to decimal

2021-06-25 Thread Tom Rini
On Wed, Jun 23, 2021 at 08:08:50AM +0200, Wolfgang Denk wrote: > Dear Simon, > > In message > you > wrote: > > > > > > 0m123 ? ('m' for deciMal). > > > > > > Perhaps 0d123? Though I would prefer to remove many of the implicit > > > assumptions of hex input. > > > > Right, we can't use 'd' beca

Re: [PULL] u-boot-sh/master

2021-06-25 Thread Tom Rini
On Fri, Jun 25, 2021 at 03:13:07AM +0200, Marek Vasut wrote: > Beacon board fix, for this release. > > The following changes since commit fcf3981161140d265b873a5b609b8867328dc9dc: > > Merge https://source.denx.de/u-boot/custodians/u-boot-x86 (2021-06-23 > 08:46:26 -0400) > > are available in

Re: [PULL] u-boot-usb/master

2021-06-25 Thread Tom Rini
On Fri, Jun 25, 2021 at 03:12:16AM +0200, Marek Vasut wrote: > A few easy MX7 EHCI USB fixes, for this release. > > The following changes since commit fcf3981161140d265b873a5b609b8867328dc9dc: > > Merge https://source.denx.de/u-boot/custodians/u-boot-x86 (2021-06-23 > 08:46:26 -0400) > > are

Re: [PATCH 1/2] DM_USB: allow building without OF_CONTROL

2021-06-25 Thread Tom Rini
On Sun, Jun 20, 2021 at 09:43:43PM +0200, Marek Vasut wrote: > On 6/20/21 5:54 PM, Tom Rini wrote: > > [...] > > > > As far as I understand, the RX51 has gigabytes of eMMC storage, so it can > > > use SPL just like any other OMAP3 board. > > > > U-Boot is being called by the old vendor X-Loader

Re: [PATCH] arm: add initial support for the Phytium Pomelo Board

2021-06-25 Thread Andre Przywara
On Thu, 24 Jun 2021 09:02:45 +0800 nicholas_zh...@outlook.com wrote: Hi, this is some revised version, isn't it? Can you please start putting patch version numbers into the subject: "[PATCH v4] arm: ..."? It's hard to see what's outdated and find the latest version otherwise. > From: weichangzhe

Splash image on phyBOARD Sargas STM32MP157

2021-06-25 Thread Andrey Nechypurenko
Hi Folks, I am trying to display a splash image from u-boot on the Phytec's phyBOARD Sargas STM32MP157 evaluation board. https://www.phytec.de/en/produkte/single-board-computer/phyboard-sargas-stm32mp1/ https://www.phytec.de/en/cdocuments/?doc=d4PmEQ I feel like I tried everything possible includ

Re: [PATCH u-boot-marvell 4/5] serial: a37xx: Switch to XTAL clock when booting Linux kernel

2021-06-25 Thread Pali Rohár
On Thursday 27 May 2021 10:17:33 Pali Rohár wrote: > On Thursday 27 May 2021 08:17:41 Stefan Roese wrote: > > On 25.05.21 19:42, Marek Behún wrote: > > > From: Pali Rohár > > > > > > Unfortunately the UART driver in current Linux for Armada 3700 expects > > > UART's parent clock to be XTAL and ca

[PATCH v2] serial: zynq: Add support for serial parameters

2021-06-25 Thread Kunihiko Hayashi
This adds serial parameters that include stop bit mode, parity mode, and character length. Mark parity and space parity modes are not supported. At the moment, the only path to call setconfig directly is DM testing, however, this affects the size of SPL for DM testing, so it doesn't apply to SPL.

Re: [PATCH] spi: Add MXIC controller driver

2021-06-25 Thread Jagan Teki
On Wed, Jun 23, 2021 at 2:46 PM Zhengxun wrote: > > Add a driver for Macronix SPI controller IP. > > This patch referred from linux spi-mxic.c. The difference from the > linux version is described here. > > 1. To adapt uboot spi framework, modify some functions naming. > > 2. Remove the incompatib

Re: [PATCH] rk3399: Add basic support for helios64

2021-06-25 Thread Florian Klink
It boots fine with current Fedora IoT 34 nightlies, but kernel crashes are very regular (sometimes recoverable, sometimes not), which looks to me like the same problem that Armbian builds have, logs seem to point to an issue with the dmc frequency. I've compiled an excerpt of interesting looking l

RE: [PATCH] armv8: fsl : fix bootcmd and mcinitcmd default value

2021-06-25 Thread Wasim Khan
Hi Alban, > -Original Message- > From: Bedel, Alban > Sent: Wednesday, June 23, 2021 6:38 PM > To: Priyanka Jain ; Varun Sethi ; > Wasim Khan (OSS) > Cc: u-boot@lists.denx.de; Wasim Khan > Subject: Re: [PATCH] armv8: fsl : fix bootcmd and mcinitcmd default value > > On Wed, 2021-06-16

RE: [v2 04/17] arm: socfpga: Add handoff data support for Intel N5X device

2021-06-25 Thread Chee, Tien Fong
Hi Simon, > -Original Message- > From: Simon Glass > Sent: Tuesday, 22 June, 2021 9:32 PM > To: Chee, Tien Fong > Cc: Ley Foon Tan ; Lim, Elly Siew Chin > ; ZY - u-boot ; Marek > Vasut ; Tan, Ley Foon ; See, Chin > Liang ; Simon Goldschmidt > ; Westergreen, Dalon > ; Gan, Yau Wai > Subj