[PATCH] Add ahab_commit command for imx8

2025-07-14 Thread John Ripple
, this means setting the 'srk_revoke_mask' option in the config file used to sign the boot container. The 'ahab_commit 0x10' can then be used to commit the SRK revocation information into the SECO fuses. Signed-off-by: John Ripple --- arch/arm/mach-i

Request for U-Boot Support for Allwinner A133 Device

2024-11-21 Thread John Olenski
Subject: Request for U-Boot Support for Allwinner A133 Device Dear U-Boot Maintainers, I am working on recovering a soft-bricked Android 10 tablet with the Allwinner A133 SoC. The bootloader is unlocked, and I have backups of key partitions (super.img, boot.img, vbmeta.img, recovery.img). However

Re: [PATCH 0/4] spi: Various Kconfig fixes

2024-10-09 Thread John Watts
On Wed, Oct 09, 2024 at 04:58:15PM -0600, Tom Rini wrote: > On Sat, 27 Apr 2024 15:40:39 +1000, John Watts wrote: > > > I'm doing some SPI work so I tried to compile all the drivers on my > > sunxi board to try and avoid some regressions. This failed, so here are

Re: [PATCH] sh: cache: Fill in invalidate_icache_all()

2024-09-11 Thread John Paul Adrian Glaubitz
) > > > > > > Thanks for filling this in, I wasn't sure how the implementation would > > > look from a quick skim of the linux kernel code. > > I believe it should look like the above, but lemme CC Geert to be on the > > safe side. > > I have n

Re: [PATCH 2/2] nvmem: layouts: add U-Boot env layout

2024-07-16 Thread John Thomson
t; + > +static const struct of_device_id u_boot_env_of_match_table[] = { > + { .compatible = "u-boot,env", .data = (void *)U_BOOT_FORMAT_SINGLE, }, > + { .compatible = "u-boot,env-redundant-bool", .data = (void > *)U_BOOT_FORMAT_REDUNDANT, }, > + { .compatible = "u-boot,env-redundant-count", .data = (void > *)U_BOOT_FORMAT_REDUNDANT, }, > + { .compatible = "brcm,env", .data = (void *)U_BOOT_FORMAT_BROADCOM, }, > + {}, > +}; > + > +static struct nvmem_layout_driver u_boot_env_layout = { > + .driver = { > + .name = "u-boot-env-layout", > + .of_match_table = u_boot_env_of_match_table, > + }, > + .probe = u_boot_env_probe, > + .remove = u_boot_env_remove, > +}; > +module_nvmem_layout_driver(u_boot_env_layout); > + > +MODULE_AUTHOR("Rafał Miłecki"); > +MODULE_LICENSE("GPL"); > +MODULE_DEVICE_TABLE(of, u_boot_env_of_match_table); -- John Thomson

Orphaning my patches

2024-07-14 Thread John Watts
-946eb82f8...@jookia.org - video: Add support for NewVision NV3052C SPI panels https://lore.kernel.org/r/20240614-panel_nv3052c-v1-1-4d94f7abd...@jookia.org John.

[PATCH] regulator: fixed: fix regulator-fixed-clock

2024-07-09 Thread John Keeping
fixed: add possibility to enable by clock") Signed-off-by: John Keeping --- drivers/power/regulator/fixed.c | 21 + 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/drivers/power/regulator/fixed.c b/drivers/power/regulator/fixed.c index 98c89bf2aff..996da4154

Re: [PATCH v2 2/2] usb: musb-new: sunxi: make compatible with UDC/DM gadget model

2024-06-28 Thread John Watts
Hi, On Fri, Jun 28, 2024 at 04:17:27PM +0100, Andre Przywara wrote: > > I do not know if this patch is still a > > necessity; though if John is nudging about it, it probably is. > > Yes apparently he needs it, though I am not entirely sure why. > USB gadget has worked for a

[PATCH] video: Add support for NewVision NV3052C SPI panels

2024-06-14 Thread John Watts
This driver is mostly copied from the Linux kernel and includes support for two physical panels that use this driver. Signed-off-by: John Watts --- This patch is a straightforward port of the kernel NV3052C SPI driver to U-Boot, keeping full compatibility with mainline device tree bindings

[PATCH 2/2] sunxi: video: Support DE_LOW and PIXDATA_NEGEDGE display flags

2024-06-14 Thread John Watts
Implement these by inverting the DE and PCLK polarities. Signed-off-by: John Watts --- arch/arm/include/asm/arch-sunxi/lcdc.h | 2 ++ drivers/video/sunxi/lcdc.c | 4 2 files changed, 6 insertions(+) diff --git a/arch/arm/include/asm/arch-sunxi/lcdc.h b/arch/arm/include/asm

[PATCH 1/2] sunxi: video: Properly invert hsync and vsync polarity

2024-06-14 Thread John Watts
The current code assumes hsync and vsync are active high by default, but they are actually active low by default. This results in panels being driven with the wrong sync polarities. Invert the check to fix it. Signed-off-by: John Watts --- drivers/video/sunxi/lcdc.c | 4 ++-- 1 file changed, 2

[PATCH 0/2] sunxi: video: Fix lcdc polarity display flags

2024-06-14 Thread John Watts
The current LCD controller driver has incorrect polarity masks, so I've provided a fix for that. While I was there I also added support for two new display flags related to polarities. Signed-off-by: John Watts --- John Watts (2): sunxi: video: Properly invert hsync and vsync pol

[PATCH] sunxi: video: Support driver model LCDs

2024-06-14 Thread John Watts
Currently the LCD code only supports reading panel timings from the device tree. Change that so it can use a real panel. Signed-off-by: John Watts --- I've been working on a panel driver port from Linux for the T113 and found I need this code to have the panel boot correctly. --- drivers/

[PATCH 5/5] video: add support for MIPI DBI interface

2024-06-14 Thread John Watts
This interface supports sending MIPI commands over an SPI bus. This driver only implements the Type C1 protocol for now. Signed-off-by: John Watts --- drivers/video/Kconfig| 6 drivers/video/Makefile | 1 + drivers/video/mipi_dbi.c | 70

[PATCH 4/5] spi: softspi: Support setting wordlen

2024-06-14 Thread John Watts
The bit-banging soft SPI driver supports any word length, so just blindly return support for all of them. Signed-off-by: John Watts --- drivers/spi/soft_spi.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/spi/soft_spi.c b/drivers/spi/soft_spi.c index 0fa14339bd..4f2161f0bf

[PATCH 3/5] spi: Implement spi_set_wordlen for driver model

2024-06-14 Thread John Watts
Implement spi_set_wordlen for driver model devices. Not all drivers support this interface, so we will assume the default wordlen is safe and allow setting that unconditionally. Signed-off-by: John Watts --- drivers/spi/spi-uclass.c | 29 + 1 file changed, 29

[PATCH 2/5] spi: Limit spi_set_wordlen to SPI_DEFAULT_WORDLEN

2024-06-14 Thread John Watts
We have no way to tell if we can actually set the wordlen in non-DM code, so limit it to the default wordlen already in use. Signed-off-by: John Watts --- drivers/spi/spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 3649c9c25b

[PATCH 1/5] spi: Return old wordlen in spit_set_wordlen

2024-06-14 Thread John Watts
Return the current wordlen to the caller so they can restore it back when done. This is required to avoid clobbering the bus state. Signed-off-by: John Watts --- drivers/spi/spi.c | 4 +++- include/spi.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/spi

[PATCH 0/5] video: add support for MIPI DBI interface

2024-06-14 Thread John Watts
orting panels across from the kernel. Signed-off-by: John Watts --- John Watts (5): spi: Return old wordlen in spit_set_wordlen spi: Limit spi_set_wordlen to SPI_DEFAULT_WORDLEN spi: Implement spi_set_wordlen for driver model spi: softspi: Support setting wordlen vi

Re: [PATCH RFC 3/4] pwm: sunxi: Add support Allwinner D1 PWM

2024-05-20 Thread John Watts
On Sat, May 18, 2024 at 01:54:45PM +1000, John Watts wrote: > This driver documents and handles setting up PWM on the D1. > > Signed-off-by: John Watts > --- > drivers/pwm/Kconfig| 6 + > drivers/pwm/Makefile | 1 + > drivers/pwm

Re: [PATCH FOR TESTING ONLY RFC 4/4] sunxi-d1s-t113: Add D1 and T113 PWM node

2024-05-20 Thread John Watts
urces. So all the custom U-Boot specific DT stuff belongs to > arch/${ARCH}/dts/. > > -Sumit Hi, I use OF_UPSTREAM. John.

Re: [PATCH RFC 3/4] pwm: sunxi: Add support Allwinner D1 PWM

2024-05-19 Thread John Watts
After a long time reading the datasheet I found out my approach was actually wrong and led to an off by on error. Signed-off-by: John Watts --- drivers/pwm/sunxi_pwm_d1.c | 57 +- 1 file changed, 32 insertions(+), 25 deletions(-) diff --git a/drivers/pwm

Re: [PATCH RFC 3/4] pwm: sunxi: Add support Allwinner D1 PWM

2024-05-19 Thread John Watts
After a long time reading the datasheet I found out my approach was actually wrong and led to an off by on error. Signed-off-by: John Watts --- drivers/pwm/sunxi_pwm_d1.c | 57 +- 1 file changed, 32 insertions(+), 25 deletions(-) diff --git a/drivers/pwm

[PATCH FOR TESTING ONLY RFC 4/4] sunxi-d1s-t113: Add D1 and T113 PWM node

2024-05-17 Thread John Watts
This is based on the binding from the as yet unmerged kernel series: https://lore.kernel.org/linux-kernel/20240131125920.2879433-2-privates...@gmail.com/ Signed-off-by: John Watts --- arch/riscv/dts/sunxi-d1s-t113.dtsi | 12 dts/upstream/src/riscv/allwinner/sunxi

[PATCH RFC 3/4] pwm: sunxi: Add support Allwinner D1 PWM

2024-05-17 Thread John Watts
This driver documents and handles setting up PWM on the D1. Signed-off-by: John Watts --- drivers/pwm/Kconfig| 6 + drivers/pwm/Makefile | 1 + drivers/pwm/sunxi_pwm_d1.c | 542 + 3 files changed, 549 insertions(+) diff --git a

[PATCH RFC 2/4] pinctrl: sunxi: Add PWM7 pinctrl for the D1

2024-05-17 Thread John Watts
This is currently only used for PD22 on the Mango Pi MQ-Dual. Signed-off-by: John Watts --- drivers/pinctrl/sunxi/pinctrl-sunxi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/sunxi/pinctrl-sunxi.c b/drivers/pinctrl/sunxi/pinctrl-sunxi.c index 37ea93715d..b3f2568ffe

[PATCH RFC 1/4] clk: sunxi: Add PWM bus clock and reset

2024-05-17 Thread John Watts
This is needed for the D1 PWM driver. Signed-off-by: John Watts --- drivers/clk/sunxi/clk_d1.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/clk/sunxi/clk_d1.c b/drivers/clk/sunxi/clk_d1.c index 9dae761de8..6577d86e0b 100644 --- a/drivers/clk/sunxi/clk_d1.c +++ b/drivers/clk

[PATCH RFC 0/4] pwm: sunxi: Add support Allwinner D1 PWM

2024-05-17 Thread John Watts
This patch series adds support for the Allwinner D1, T113 and R329 PWM. This code isn't based on any kernel code but instead written from scratch with the goal of handling the PWM pairs deterministically. I've tested this on T113 hardware and it works very well. Signed-off-by:

Re: [PATCH 0/5] *** phyCORE-AM62x: DDR detection / Inject DDR timing deltas ***

2024-05-14 Thread John Ma
Tested-by: John Ma On 5/7/24 08:17, Wadim Egorov wrote: PHYTEC stores details about the hardware in an EEPROM on the SoM. We can utilize this information and chose the proper DDR timings accordingly. Due to the limited SRAM memory on the AM62x, the concept was to store only the DDR timings

[PATCH 4/4] spi: rockchip_sfc: Select BOUNCE_BUFFER

2024-04-26 Thread John Watts
This is required for compiling. Signed-off-by: John Watts --- drivers/spi/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index 025c81adc9..f1c6a838ae 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -417,6 +417,7 @@ config

[PATCH 3/4] spi: ca_sflash: Add missing dm include

2024-04-26 Thread John Watts
This code uses dev_err which is defined in dm/device_compat.h Signed-off-by: John Watts --- drivers/spi/ca_sflash.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/ca_sflash.c b/drivers/spi/ca_sflash.c index 38bddd3861..78e442cac9 100644 --- a/drivers/spi/ca_sflash.c +++ b

[PATCH 2/4] spi: mtk_spim: Remove completion.h include

2024-04-26 Thread John Watts
This created a conflict when linking. Signed-off-by: John Watts --- drivers/spi/mtk_spim.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/spi/mtk_spim.c b/drivers/spi/mtk_spim.c index 90f4c3cecb..2979487fff 100644 --- a/drivers/spi/mtk_spim.c +++ b/drivers/spi/mtk_spim.c @@ -18,7

[PATCH 1/4] spi: Kconfig: Add some required arch depends for drivers

2024-04-26 Thread John Watts
These dependencies are required for building the drivers and create compile errors if not enabled. Signed-off-by: John Watts --- drivers/spi/Kconfig | 16 1 file changed, 16 insertions(+) diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index 612434633b..025c81adc9

[PATCH 0/4] spi: Various Kconfig fixes

2024-04-26 Thread John Watts
I'm doing some SPI work so I tried to compile all the drivers on my sunxi board to try and avoid some regressions. This failed, so here are some fixes for this. Signed-off-by: John Watts --- John Watts (4): spi: Kconfig: Add some required arch depends for drivers spi: mtk

[PATCH RFC 9/9] sunxi: video: support HDMI on H6/H616

2024-04-19 Thread John Watts
H616 and VIDEO0 elsewhere. Signed-off-by: John Watts --- arch/arm/include/asm/arch-sunxi/clock_sun50i_h6.h | 9 +++ arch/arm/mach-sunxi/clock_sun50i_h6.c | 10 drivers/video/sunxi/sunxi_dw_hdmi.c | 70 --- 3 files changed, 80 insertions(+), 9

[PATCH RFC 8/9] sunxi: Enable display engine on H6/D1

2024-04-19 Thread John Watts
Now that all the code is present and can compile, enable the DE2 so people can use it. Signed-off-by: John Watts --- arch/arm/mach-sunxi/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig index ddf9414b08..9d76e429ef 100644

[PATCH RFC 7/9] sunxi: video: dummy out HDMI on H6/D1

2024-04-19 Thread John Watts
pick VIDEO0 or VIDEO1 to run the TCON and HDMI encoder based on the chip. Signed-off-by: John Watts --- drivers/video/sunxi/sunxi_dw_hdmi.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/video/sunxi/sunxi_dw_hdmi.c b/drivers/video/sunxi/sunxi_dw_hdmi.c index 0324a05

[PATCH RFC 6/9] sunxi: video: silence unused use_mipi_pll warning

2024-04-19 Thread John Watts
This variable is only used sometimes, so gate it behind an #ifdef. Signed-off-by: John Watts --- drivers/video/sunxi/lcdc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/video/sunxi/lcdc.c b/drivers/video/sunxi/lcdc.c index ea21d602be..1474f6cb2e 100644 --- a/drivers/video

[PATCH RFC 5/9] sunxi: video: enable DE2 on H6/D1

2024-04-19 Thread John Watts
This requires just a little change to clocking and reset logic. Signed-off-by: John Watts --- drivers/video/sunxi/sunxi_de2.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/video/sunxi/sunxi_de2.c b/drivers/video/sunxi/sunxi_de2.c index e02d359cd2..9b6c41b212

[PATCH RFC 4/9] sunxi: video: support LCD on H6/D1

2024-04-19 Thread John Watts
The H6/D1/R528 don't require any big changes, just some small tweaks to support new clock and reset logic. Signed-off-by: John Watts --- drivers/video/sunxi/lcdc.c | 20 drivers/video/sunxi/sunxi_lcd.c | 6 -- 2 files changed, 24 insertions(+), 2 dele

[PATCH RFC 3/9] sunxi: sun50i-h6: Specify DE2 and LCD0 base addresses

2024-04-19 Thread John Watts
These are used for operating the LCD on the H6/H616. Signed-off-by: John Watts --- arch/arm/include/asm/arch-sunxi/cpu_sun50i_h6.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/include/asm/arch-sunxi/cpu_sun50i_h6.h b/arch/arm/include/asm/arch-sunxi/cpu_sun50i_h6.h index

[PATCH RFC 2/9] sunxi: ncat2: Specify DE2 and LCD0 base addresses

2024-04-19 Thread John Watts
These are used for operating the LCD on the D1/T113. Signed-off-by: John Watts --- arch/arm/include/asm/arch-sunxi/cpu_sunxi_ncat2.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/include/asm/arch-sunxi/cpu_sunxi_ncat2.h b/arch/arm/include/asm/arch-sunxi/cpu_sunxi_ncat2.h

[PATCH RFC 1/9] sunxi: clock: support H6/D1 video clocks

2024-04-19 Thread John Watts
This code adds support for clocking VIDEO0 and VIDEO1, as well as registers used for the DE2. This code deliberately uses a 12MHz step in clocking to align with the DE2 code's expectation of double 6MHz steps. Signed-off-by: John Watts --- arch/arm/include/asm/arch-sunxi/clock_sun50i_h6.h

[PATCH RFC 0/9] sunxi: video: Support LCD and HDMI output on H6/D1

2024-04-19 Thread John Watts
yone wants to work on it. It compiles and looks like it should work, but I haven't ungated/reset the slow HDMI clock, or HDMI sub. Signed-off-by: John Watts --- John Watts (9): sunxi: clock: support H6/D1 video clocks sunxi: ncat2: Specify DE2 and LCD0 base addresses s

Re: [PATCH v2 0/2] sunxi, usb: UDC/DM gadget model support

2024-04-16 Thread John Watts
intfs in the probe func, per feedback from Marek. > I received no other feedback against v1 of this patch. Hi Sam, I did some more testing and I believe my USB issues mentioned in the other subthread are unrelated to this patch. As such, here's my reviewed-by and tested-by. :) John. Rev

Re: [PATCH RFC 00/15] Support SPI NAND booting on the T113

2024-04-11 Thread John Watts
On Thu, Apr 11, 2024 at 05:27:08PM -0600, Sam Edwards wrote: > Hi John, > > It doesn't look like I was sent the whole series (only 00 and 01), but > I was able to find it on Patchwork and sift through it. A few general > comments follow: > > The introduction of `SUNXI_B

Re: [PATCH v2 0/2] sunxi, usb: UDC/DM gadget model support

2024-04-11 Thread John Watts
On Thu, Apr 11, 2024 at 03:53:51PM -0600, Sam Edwards wrote: > Hi John, Hi Sam, > Ahh I see the problem. In U-Boot, `ubi` isn't actually a block device: > it's implemented as a stub in the block layer, and the filesystem > layer redirects `ubi` accesses to the currently

Re: [PATCH] boot: Pass baud rate to stdout-path

2024-04-11 Thread John Watts
hings easier. That's an interesting use case! Would you mind testing this patch if possible? > Cheers, > > Mark John.

Re: [PATCH] usb: musb-new: sunxi: support usage with DM_USB_GADGET

2024-04-10 Thread John Watts
lar patch? https://lore.kernel.org/u-boot/20230608195631.55364-1-cfswo...@gmail.com/ If not you might want to test it and compare it. John. > The implementation of usb_gadget_register_driver from > musb-new/musb_uboot.c only works when the gadget driver for the device > has already been pro

Re: [PATCH v2 0/2] sunxi, usb: UDC/DM gadget model support

2024-04-10 Thread John Watts
Hi there, I've tested this patch and it seems to support the gadget model, but I'm having a lot of USB errors. What device did you test this on? John. On Thu, Jun 08, 2023 at 01:56:29PM -0600, Sam Edwards wrote: > Happy Thursday, U-Boot list! > > Here is attempt 2 at making

[PATCH 2/2] sunxi: Support UART2 on the T113

2024-04-10 Thread John Watts
The T113 supports UART2 on PD1 and PD2. Add it as an option. Signed-off-by: John Watts --- arch/arm/mach-sunxi/board.c | 4 include/sunxi_gpio.h| 1 + 2 files changed, 5 insertions(+) diff --git a/arch/arm/mach-sunxi/board.c b/arch/arm/mach-sunxi/board.c index f5da50b43a

[PATCH 1/2] sunxi: Support UART1 on the T113

2024-04-10 Thread John Watts
The T113 supports UART1 on pins PG6 and PG7, add support for it here. Signed-off-by: John Watts --- arch/arm/mach-sunxi/board.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-sunxi/board.c b/arch/arm/mach-sunxi/board.c index f4dbb2a740..f5da50b43a 100644

[PATCH 0/2] sunxi: Support UART1 and UART2 on the T113

2024-04-10 Thread John Watts
The T113 supports UART1 and UART2 on PG and PD pins respectively. Add support for these in U-Boot so we can use them. Note: I'm not entirely sure if the PD pins should be default, they overlap with the LCD pins. I am however using this on a real board. Signed-off-by: John Watts --- John

[PATCH] ubi: Depend on MTD

2024-04-10 Thread John Watts
UBI required MTD to build correctly, add it as a Kconfig dependency. Signed-off-by: John Watts --- While working with UBI on my SPI NAND patch series I found it was possible to enable it without enabling the MTD subsystem. Add a Kconfig option to solve this. --- drivers/mtd/ubi/Kconfig | 1 + 1

[PATCH] boot: Pass baud rate to stdout-path

2024-04-10 Thread John Watts
Linux might use the wrong baud rate such as 9600 by default, make sure to specify it when passing the serial port over. Signed-off-by: John Watts --- On my board at least (a sunxi T113) the serial console will initialize as 9600 baud instead of the set baud. Pass the baud with the serial device

Re: [PATCH 0/8] SUNIV SPI NAND support in SPL

2024-04-10 Thread John Watts
Hello, I've used this code extensively, incorporated it in to an RFC branch of mine during development and reviewed it in the process. John. Reviewed-by: John Watts Tested-by: John Watts On Fri, Oct 14, 2022 at 11:05:12AM +0800, Icenowy Zheng wrote: > This patchset tries to extend S

Re: [PATCH v1 1/2] sunxi: SPL SPI: Add SPI boot support for the Allwinner R528/T113 SoCs

2024-04-10 Thread John Watts
Hi there, I've been using my own independent implementation of this patch but today I gave this one a test in my tree and found out it works. The code looks fine in comparison, so here's a Tested-by and a Reviewed-by. John. Tested-by: John Watts Reviewed-by: John Watts On Sat, No

[PATCH RFC 15/15] spl: Support loading FIT images in UBI

2024-04-10 Thread John Watts
The FIT loader doesn't support access through UBI, so load the FIT image ourself in to memory then boot it normally. Signed-off-by: John Watts --- common/spl/spl_ubi.c | 34 ++ 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/common/spl/spl_ub

[PATCH RFC 14/15] spl: Support SPI NAND boot in UBI

2024-04-10 Thread John Watts
UBI supports traditional NAND and oneNAND devices already, so add support for booting from SPI NAND devices. Signed-off-by: John Watts --- common/spl/spl_ubi.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/common/spl/spl_ubi.c b/common/spl/spl_ubi.c index

[PATCH RFC 13/15] sunxi: Implement spinand_ helpers

2024-04-10 Thread John Watts
These are used by NAND-aware loaders such as UBI. Signed-off-by: John Watts --- arch/arm/mach-sunxi/spl_spi_sunxi.c | 21 + 1 file changed, 21 insertions(+) diff --git a/arch/arm/mach-sunxi/spl_spi_sunxi.c b/arch/arm/mach-sunxi/spl_spi_sunxi.c index 602ebfe8c5..d6b03678d0

[PATCH RFC 12/15] nand: Add spinand_ helper functions

2024-04-10 Thread John Watts
These are implemented by the board-specific SPL code for use with NAND-aware loaders like UBI. Signed-off-by: John Watts --- include/nand.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/nand.h b/include/nand.h index 220ffa202e..9fb8941dce 100644 --- a/include/nand.h +++ b

[PATCH RFC 11/15] sunxi: Use SPL_SPINAND for configuration

2024-04-10 Thread John Watts
Use the newly created SPL_SPINAND configuration options instead of sunxi-only options. No backwards compatibility is needed as the SPI NAND patches are not mainline yet. Signed-off-by: John Watts --- arch/arm/mach-sunxi/Kconfig | 16 arch/arm/mach-sunxi/spl_spi_sunxi.c

[PATCH RFC 10/15] spl: Add SPL_SPINAND configuration options

2024-04-10 Thread John Watts
Boards that support SPI NAND need to specify the page and eraseblock size. Add those as Kconfig options. Signed-off-by: John Watts --- common/spl/Kconfig | 21 + 1 file changed, 21 insertions(+) diff --git a/common/spl/Kconfig b/common/spl/Kconfig index 6405374bcc

[PATCH RFC 08/15] spl: Add BOOT_DEVICE_SPINAND option

2024-04-10 Thread John Watts
Currently there are two different boot device options: SPI and NAND. One is intended for SPI NOR operation, the other is intended for dedicated NAND operation. Add a new option for SPI NAND operation. Signed-off-by: John Watts --- arch/arm/include/asm/spl.h | 1 + arch/mips/include/asm

[PATCH RFC 09/15] sunxi: Implement BOOT_DEVICE_SPINAND in SPL

2024-04-10 Thread John Watts
Instead of trying to boot from SPI NAND then SPI NOR in series, select one based on the current boot device. Signed-off-by: John Watts --- arch/arm/include/asm/arch-sunxi/spl.h | 1 + arch/arm/mach-sunxi/board.c | 5 - arch/arm/mach-sunxi/spl_spi_sunxi.c | 28

[PATCH RFC 07/15] sunxi: Separate boot device and boot position

2024-04-10 Thread John Watts
work though. Signed-off-by: John Watts --- arch/arm/include/asm/arch-sunxi/spl.h | 2 -- arch/arm/mach-sunxi/board.c | 22 +- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/arch/arm/include/asm/arch-sunxi/spl.h b/arch/arm/include/asm/arch-sunxi

[PATCH RFC 06/15] sunxi: enable support for SPI NAND booting on SUNIV

2024-04-10 Thread John Watts
From: Icenowy Zheng As we added support for SPI NAND to the existing SPL SPI codepath, route the boot code to it when it detects the BROM loads SPL from SPI NAND, as for SoCs with both SPI NAND and boot media indicator support, the boot media indicator is the same for SPI NOR and NAND. Signed-of

[PATCH RFC 05/15] sunxi: SPL SPI: add initial support for booting from SPI NAND

2024-04-10 Thread John Watts
From: Icenowy Zheng This commit adds support for booting from SPI NAND to SPL SPI code by mimicing the behavior of boot ROM (use fixed page size and sequentially try SPI NOR and NAND). Signed-off-by: Icenowy Zheng Tested-by: Samuel Holland # Orange Pi Zero Plus --- arch/arm/mach-sunxi/Kconfig

[PATCH RFC 04/15] sunxi: SPL SPI: allow multiple boot attempt

2024-04-10 Thread John Watts
From: Icenowy Zheng As we're going to add support for SPI NAND to this code, add code that allows multiple boot attempts with different load offsets and functions. To keep compatibility with loading raw binary on SPI NOR, a bool parameter is used to allow booting without valid magic number when

[PATCH RFC 03/15] sunxi: SPL SPI: add support for read command with 2 byte address

2024-04-10 Thread John Watts
From: Icenowy Zheng This kind of read command is utilized in SPI NANDs for reading data inside a selected page, which is obviously smaller than how much 2 byte address can address. So 2 bytes are used for the address and one dummy byte is needed after the real address. As the address is sent out

[PATCH RFC 02/15] sunxi: SPL SPI: extract code for doing SPI transfer

2024-04-10 Thread John Watts
From: Icenowy Zheng To support SPI NAND flashes, more commands than Read (03h) are needed. Extract the code for doing SPI transfer from the reading code for code reuse. Signed-off-by: Icenowy Zheng Reviewed-by: Samuel Holland Tested-by: Samuel Holland # Orange Pi Zero Plus --- arch/arm/mach

[PATCH RFC 01/15] sunxi: SPL SPI: Add SPI boot support for the Allwinner R528/T113 SoCs

2024-04-10 Thread John Watts
From: Maksim Kiselev R528/T113 SoCs uses the same SPI IP as the H6, also have the same clocks and reset bits layout, but the CCU base is different. Another difference is that the new SoCs do not have a clock divider inside. Instead of this we should configure sample mode depending on input clock

[PATCH RFC 00/15] Support SPI NAND booting on the T113

2024-04-10 Thread John Watts
://lore.kernel.org/all/2023133432.755363-2-biguncle...@gmail.com/ Hopefully this can get the ball rolling on how to properly implement SPI NAND support in mainline U-Boot. Signed-off-by: John Watts --- Icenowy Zheng (5): sunxi: SPL SPI: extract code for doing SPI transfer sunxi: SPL SPI

Re: Booting RPi5B with latest git

2024-02-17 Thread John
d edited the device tree to bcm2712-rpi-5-b.dtb. Then get get the dts files  > fromlinux/arch/arm/boot/dts/bcm2712-rpi-5-b.dts at rpi-6.1.y) > > > It gets booted but still need more controllers( ethernet) > > > > On Saturday, February 17, 2024 at 11:17:12 AM PST, John

Re: Booting RPi5B with latest git

2024-02-17 Thread John
> > > > > > > On Saturday, February 17, 2024 at 08:36:22 AM PST, John > wrote: > > > I am running Arch ARM on a RPi4B and also on a RPi5B. My RPi4B can boot the > vanilla kernel package (linux-aarch64) with the latest uboot-raspberrypi > (2024.04-

Booting RPi5B with latest git

2024-02-17 Thread John
I am running Arch ARM on a RPi4B and also on a RPi5B. My RPi4B can boot the vanilla kernel package (linux-aarch64) with the latest uboot-raspberrypi (2024.04-rc2) just fine. Yet, if I take that uSD card and place it in my RPi5B, it does not boot. I only see the "U-Boot" submarine logo in the upp

Re: [PATCH 00/15] rockchip: rk3328: Update defconfigs, DTs and enable boot from SPI

2024-02-09 Thread John Clark
On 2/6/24 7:02 PM, Jonas Karlman wrote: This series contains miscellaneous updates to defconfigs, syncs latest device trees from linux, fixes an issue loading FIT from SD-card when running SPL from eMMC and enables building a bootable SPI image on RK3328 boards. I am also adding myself as a revi

Re: [PATCH] rockchip: rk35xx: expand space for decompressed kernel

2023-12-23 Thread John Clark
On 12/23/23 11:09 AM, Tom Rini wrote: On Sat, Dec 23, 2023 at 12:13:10PM +, Hugh Cole-Baker wrote: An uncompressed 6.7.0-rc1 Linux kernel Image built with the arm64 defconfig is about 40MB. This does not fit in to the space between kernel_comp_addr_r and fdt_addr_r, so when uncompressing an

T113 sunxi SPI NAND thoughts, feedback wanted

2023-12-11 Thread John Watts
a large refactoring probably isn't a good idea when I have some smaller patches. I might toss these up on the lists soon: - UART1 and UART2 support for the Mango Pi MQ - MTD Kconfig requirement for UBI - UBI SPL FIT support Thanks for your time, John.

Re: [PATCH] starfive: visionfive2: add device tree overlay support

2023-11-20 Thread John Clark
device tree overlay support requires fdtoverlay_addr_r to be set before ~~ Invalid fdtoverlay_addr_r for loading overlays after ~ Retrieving file: /boot/overlay/rtc-ds3231.dtbo Signed-off-by: John Clark --- include/configs/starfive-visionfive2.h | 1 + 1 file changed, 1

[PATCH] starfive: visionfive2: add device tree overlay support

2023-11-19 Thread John Clark
device tree overlay support requires fdtoverlay_addr_r to be set before ~~ Invalid fdtoverlay_addr_r for loading overlays after ~ Retrieving file: /boot/overlay/rtc-ds3231.dtbo Signed-off-by: John Clark --- include/configs/starfive-visionfive2.h | 1 + 1 file changed, 1 insertion

Re: [PATCH 1/4] rockchip: rk3588: Fix boot from SPI flash

2023-11-17 Thread John Clark
On 11/17/23 12:50 PM, Tom Rini wrote: On Fri, Nov 17, 2023 at 03:03:39PM +0100, Slawomir Stepien wrote: On lis 14, 2023 15:06, Quentin Schulz wrote: Hi Jonas, Hi Quentin On 11/12/23 11:26, Jonas Karlman wrote: The commit fd6e425be243 ("rockchip: rk3588-rock-5b: Enable boot from SPI NOR fl

Re: u-boot fails to build on sparc64 due redefinition of 'struct termio'

2023-11-15 Thread John Paul Adrian Glaubitz
Hi Simon, On Wed, 2023-11-15 at 06:40 -0700, Simon Glass wrote: > Hi Adrian, > > On Wed, 15 Nov 2023 at 00:27, John Paul Adrian Glaubitz > wrote: > > > > Hello! > > > > On Linux sparc64, building u-boot fails with [1]: > > > > cc -o tools/

u-boot fails to build on sparc64 due redefinition of 'struct termio'

2023-11-14 Thread John Paul Adrian Glaubitz
1] > https://buildd.debian.org/status/fetch.php?pkg=u-boot&arch=sparc64&ver=2023.07%2 > Bdfsg-1&stamp=1699723544&raw=0 -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

[PATCH] spl: fix TPL_SYS_MALLOC_F description

2023-11-14 Thread John Keeping
This config option enables the malloc() pool in TPL not the SPL. Fix the description to accurately reflect this. Fixes: fd8497dae54 (spl: Create proper symbols for enabling the malloc() pool) Signed-off-by: John Keeping --- Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: Need advise with u-boot on SH-7785LCR

2023-11-06 Thread John Paul Adrian Glaubitz
s and why the latter doesn't work. I have uploaded both versions here: > https://people.debian.org/~glaubitz/u-boot-sh7785lcr/ Maybe someone with more experience can spot anything obvious like incorrect address offsets etc. PS: I'm actually called Adrian, despite the long name ;-

Re: Need advise with u-boot on SH-7785LCR

2023-11-06 Thread John Paul Adrian Glaubitz
p 30 12:35 /dev/mtdblock3 root@tirpitz:~> So, I assume, I should just be able to write u-boot.bin to /dev/mtdblock0? Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

Re: Need advise with u-boot on SH-7785LCR

2023-11-05 Thread John Paul Adrian Glaubitz
he "erase" command will erase the flash. But there doesn't seem to be a "program" command. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

Need advise with u-boot on SH-7785LCR

2023-11-04 Thread John Paul Adrian Glaubitz
x to be better suited to modern versions of u-boot in the future. For now, it would be a great help if anyone could help me with the hanging boot issue. Thanks, Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

[PATCH] .gitignore: ignore misc include, simple-bin, and tools/generated build artifacts

2023-10-13 Thread John Clark
ple-bin-spi.map simple-bin.fit.fit simple-bin.fit.itb simple-bin.map tools/generated/ after ~~~ On branch master Your branch is ahead of 'origin/master' by 1 commit. (use "git push" to publish your local commits) nothing to commit, working tree c

[PATCH] Makefile: remove misc include and simple-bin build artifacts on clean

2023-10-13 Thread John Clark
n branch master Your branch is ahead of 'origin/master' by 1 commit. (use "git push" to publish your local commits) nothing to commit, working tree clean Signed-off-by: John Clark --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --gi

[PATCH v4 0/1] Empirical testing suggests that the rk3588 variants require additional spi detection handling based on iomux settings.

2023-10-12 Thread John Clark
oard files: Kconfig, MAINTAINERS, Makefile, nanopct6-rk3588.c, nanopct6-rk3588.h - improved BROM_LAST_BOOTSOURCE handling for SPI NOR John Clark (1): board: rockchip: add FriendlyElec NanoPC-T6 rk3588 board arch/arm/dts/Makefile | 1 + arch/arm/dts/rk3588-nanopc-t6-u-boot.dtsi

[PATCH v4 1/1] board: rockchip: add FriendlyElec NanoPC-T6 rk3588 board

2023-10-12 Thread John Clark
786cc37 ("arm64: dts: rockchip: Add NanoPC T6 PCIe e-key support") Signed-off-by: John Clark --- Changes in v4: - removed SPI support as Jonas Karlman will be providing a comprehensive solution to support all rk3588 iomux variations. Changes in v3: - The vendor device tree uses &quo

[PATCH v3] board: rockchip: add FriendlyElec NanoPC-T6 rk3588 board

2023-10-08 Thread John Clark
786cc37 ("arm64: dts: rockchip: Add NanoPC T6 PCIe e-key support") Signed-off-by: John Clark --- Changes in v3: - The vendor device tree uses "FriendlyElec NanoPC-T6" therefore, use FriendlyElec over FriendlyARM. - Bug: use IS_ENABLED(CONFIG_TARGET_NANOPCT6_RK3588) rather than

[PATCH v2 1/1] board: rockchip: add FriendlyElec NanoPC-T6 rk3588 board

2023-10-08 Thread John Clark
786cc37 ("arm64: dts: rockchip: Add NanoPC T6 PCIe e-key support") Signed-off-by: John Clark --- arch/arm/dts/Makefile | 1 + arch/arm/dts/rk3588-nanopc-t6-u-boot.dtsi | 36 + arch/arm/dts/rk3588-nanopc-t6.dts | 916 ++ arch/ar

[PATCH v2 0/1] board: rockchip: add FriendlyElec NanoPC-T6 rk3588 board

2023-10-08 Thread John Clark
Jonas, thank you for your detailed review. The explanations for each of config change recommendations were especially helpful. As for the CFG_IRAM_BASE / BROM_LAST_BOOTSOURCE issue, I have made a step forward, but expect I will be getting feedback as to a better approach. Note: This patchset i

Re: [PATCH] board: rockchip: add FriendlyElec NanoPC-T6 rk3588 board

2023-10-08 Thread John Clark
_common.h:#define CFG_IRAM_BASE 0xff00 ./include/configs/rk322x_common.h:#define CFG_IRAM_BASE 0x1008 ./include/configs/rv1126_common.h:#define CFG_IRAM_BASE 0xff70 On Sun, Oct 8, 2023 at 5:09 AM Kever Yang wrote: > > On 2023/10/8 05:25, John Clark wrote: > > NanoPC-T6 is a

[PATCH] board: rockchip: add FriendlyElec NanoPC-T6 rk3588 board

2023-10-07 Thread John Clark
case) / 86x114.5x30mm (with case) Kernel commits: 893c17716d0c ("arm64: dts: rockchip: Add NanoPC T6") a721e28dfad2 ("arm64: dts: rockchip: Add NanoPC T6 PCIe Ethernet support") ac76b786cc37 ("arm64: dts: rockchip: Add NanoPC T6 PCIe e-key support") Signed-off-by:

Re: [PATCH v2 0/7] rockchip: rk3568: Fix use of PCIe bifurcation

2023-08-04 Thread John Clark
og/?h=rk3588 Both MMC and SPI boot media were tested. Tested-by: John Clark On 8/3/23 2:29 AM, FUKAUMI Naoki wrote: hi, On 8/3/23 04:22, Jonas Karlman wrote: This series add support for use of PCIe bifurcation on RK3568, and as a bonus support for the RK3588 PHY is also included. With

Re: U-Boot video output for rk3588

2023-08-03 Thread John Clark
fwiw, I grabbed this terminal code written in go out of the tinygo project: https://github.com/inindev/goterm It is less than 100 lines long and it supports the rockchip 1.5M baud rate well (ctrl+] to exit). On 8/2/23 6:50 PM, Sebastian Reichel wrote: Hi, On Wed, Aug 02, 2023 at 03:19:04PM

  1   2   3   4   5   6   7   8   >