Re: DDR timing for vendor board

2022-12-08 Thread Jack Mitchell
fficult to get working as the majority if not all mainlined board use dual channel RAM. Sorry I can't be more help, but trying to use the DDR blob is a good starting point to get you going on mainline. Good Luck! -- Jack Mitchell, Consultant https://www.tuxable.co.uk

Re: "mmc: rockchip_sdhci: add phy and clock config for rk3399" broke spl emmc boot

2021-11-05 Thread Jack Mitchell
t; Please let me know if you need help to test this. > > Thanks, > Alistair. > Hi Alistair, You need the following patch: https://patchwork.ozlabs.org/project/uboot/patch/20211101044347.17822-1-yifeng.z...@rock-chips.com/ Please let me know if this fixes the issue for you as some people still

Re: [PATCH 0/3] rockchip: sdhci: Add HS400 Enhanced Strobe support

2021-11-02 Thread Jack Mitchell
On 02/11/2021 08:02, Peter Robinson wrote: > On Mon, Nov 1, 2021 at 10:32 PM Jack Mitchell wrote: >> >> On 01/11/2021 22:11, Peter Robinson wrote: >>> On Mon, Nov 1, 2021 at 11:18 AM Jack Mitchell wrote: >>>> >>>> On 01/11/2021 09:07, Alper N

Re: [PATCH 0/3] rockchip: sdhci: Add HS400 Enhanced Strobe support

2021-11-01 Thread Jack Mitchell
On 01/11/2021 22:11, Peter Robinson wrote: > On Mon, Nov 1, 2021 at 11:18 AM Jack Mitchell wrote: >> >> On 01/11/2021 09:07, Alper Nebi Yasak wrote: >>> I'm trying to make my gru-kevin's eMMC work properly (it times out while >>> tuning for HS400 and st

Re: [PATCH 0/3] rockchip: sdhci: Add HS400 Enhanced Strobe support

2021-11-01 Thread Jack Mitchell
i.c | 51 ++++ > drivers/mmc/sdhci.c | 18 + > include/sdhci.h | 1 + > 3 files changed, 70 insertions(+) > -- Jack Mitchell, Consultant https://www.tuxable.co.uk

Re: [PATCH v3 1/3] mmc: rockchip_sdhci: add phy and clock config for rk3399

2021-10-29 Thread Jack Mitchell
gt; > return 0; > } > @@ -101,19 +333,28 @@ static int rockchip_sdhci_bind(struct udevice *dev) > return sdhci_bind(dev, &plat->mmc, &plat->cfg); > } > > -static const struct udevice_id arasan_sdhci_ids[] = { > - { .compatible = "arasan,sdhci-5.1" }, > +static const struct sdhci_data rk3399_data = { > + .emmc_set_clock = rk3399_sdhci_emmc_set_clock, > + .get_phy = rk3399_emmc_get_phy, > + .emmc_phy_init = rk3399_emmc_phy_init, > +}; > + > +static const struct udevice_id sdhci_ids[] = { > + { > + .compatible = "arasan,sdhci-5.1", > + .data = (ulong)&rk3399_data, > + }, > { } > }; > > U_BOOT_DRIVER(arasan_sdhci_drv) = { > - .name = "rockchip_rk3399_sdhci_5_1", > + .name = "rockchip_sdhci_5_1", > .id = UCLASS_MMC, > - .of_match = arasan_sdhci_ids, > - .of_to_plat = arasan_sdhci_of_to_plat, > + .of_match = sdhci_ids, > + .of_to_plat = rockchip_sdhci_of_to_plat, > .ops= &sdhci_ops, > .bind = rockchip_sdhci_bind, > - .probe = arasan_sdhci_probe, > + .probe = rockchip_sdhci_probe, > .priv_auto = sizeof(struct rockchip_sdhc), > .plat_auto = sizeof(struct rockchip_sdhc_plat), > }; > -- Jack Mitchell, Consultant https://www.tuxable.co.uk

Re: [BUG] Pinebook Pro won't boot since ac804143cf, regression from -rc1

2021-10-01 Thread Jack Mitchell
ying to boot from MMC2 > Card did not respond to voltage select! : -110 > spl: mmc init failed with error: -95 > SPL: failed to boot from all boot devices > ### ERROR ### Please RESET the board ### > Hi Tomasz, I'm hitting the same issue with a custom 3399 based

Re: [PATCH] Convert CONFIG_WATCHDOG et al to Kconfig

2020-09-23 Thread Jack Mitchell
On 23/09/2020 19:23, Tom Rini wrote: > This converts the following to Kconfig: >CONFIG_WATCHDOG >CONFIG_WATCHDOG_TIMEOUT >CONFIG_WDT >CONFIG_HW_WATCHDOG >CONFIG_DESIGNWARE_WATCHDOG > > Signed-off-by: Tom Rini Before setting this in stone, after much recent personal confusio

[PATCH] clk: rockchip: rk3399: implement getting wdt/alive clocks

2020-09-17 Thread Jack Mitchell
In order to correctly calculate the designware watchdog timeouts, the watchdog clock is required. Implement required clocks to facilitate this. Signed-off-by: Jack Mitchell --- drivers/clk/rockchip/clk_rk3399.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers

[PATCH] wdt: designware: fix timeout calculation due to expecting KHz

2020-09-17 Thread Jack Mitchell
The timeout calculation is based on the clk being in KHz but the clk api returns the clk value in Hz. Convert this to KHz to calculate the correct timeout value. Signed-off-by: Jack Mitchell --- drivers/watchdog/designware_wdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: rk3399 single channel lpddr4 setup

2020-04-23 Thread Jack Mitchell
On 23/04/2020 12:38, Jagan Teki wrote: > On Tue, Apr 21, 2020 at 7:54 PM Jack Mitchell wrote: >> >> Has anyone worked with an rk3399 based board with a single channel RAM >> setup? I've looked at the current code and made some changes for only >> setting up

rk3399 single channel lpddr4 setup

2020-04-21 Thread Jack Mitchell
Has anyone worked with an rk3399 based board with a single channel RAM setup? I've looked at the current code and made some changes for only setting up a single channel which basically consists of altering the loops down to one channel, however u-boot is hanging while checking for a successful freq

Re: [U-Boot] 'size/ext4size/fatsize' shell commands do not dispay the filesize

2019-09-26 Thread Jack Mitchell
Looking at the original commit https://lists.denx.de/pipermail/u-boot/2014-June/181599.html It looks like it puts the result into the variable $filesize just as the other commands which read files do. Regards, Jack. On 26/09/2019 08:27, Adarsh Babu Kalepalli wrote: > Hello, > > Commands "size

Re: [U-Boot] [PATCH] Makefile.spl: Create u-boot-spl-rockchip.bin for rk3399

2019-04-25 Thread Jack Mitchell
Hi, On 25/04/2019 18:54, Jagan Teki wrote: > Rockchip platform would require an explicit call to mkimage for > creating bootable images which indeed specific to SoC family > along with boot devices. > > Example of creating bootable image for rk3399 family with SD > boot device as > > ₹ mkimage -

Re: [U-Boot] sunxi-fel uboot brings SPL version mismatch error

2019-04-11 Thread Jack Mitchell
On 11/04/2019 01:16, U.Mutlu wrote: > # CC Jagan > > There's a version mismatch error with the sunxi-fel tool from sunxi-tools > ( https://github.com/linux-sunxi/sunxi-tools ) > > ./sunxi-fel -v uboot u-boot-sunxi-with-spl.bin write 0x4310 my.env > Stack pointers: sp_irq=0x2000, sp=0x

Re: [U-Boot] [PATCH 2/3] configs: Move CONFIG_CMD_USB_MASS_STORAGE properly into Kconfig

2019-04-03 Thread Jack Mitchell
Hi, On 03/04/2019 10:34, Urja Rannikko wrote: > This affects RK3036, RK322X and RK3288 - the defconfig changes done by > moveconfig.py for the veyrons were left out on purpose because they dont > have an OTG port, and will get their config updated in the next commit. > > Signed-off-by: Urja Ranni

Re: [U-Boot] burning eMMC from sdcard.img in U-Boot

2019-04-02 Thread Jack Mitchell
On 02/04/2019 21:59, Adam Ford wrote: > I have a board with eMMC storage. I've been trying to find an elegant > solution to burning the sdcard image to eMMC. I looked at using the > USB mass storage gadget, but it's a bit slow. I was hoping to avoid > having to boot all the way into Linux to do

Re: [U-Boot] [RFC 1/6] odroid: exynos: USB initialization on the U3/X2

2019-04-01 Thread Jack Mitchell
On 01/04/2019 13:57, Lukasz Majewski wrote: > Hi Anand, > >> From: Tobias Jakobi >> >> Rename board_usb_init() to exynos_usb_init() and call it >> early in the Exynos EHCI driver when probing. >> >> This kind of works. After a 'usb start; usb stop; usb start' >> cycle the attached devices are r

Re: [U-Boot] [PATCH 00/16] usb: convert dwc2 gadget to driver model, used in stm32mp1

2019-04-01 Thread Jack Mitchell
On 01/04/2019 10:49, Patrick DELAUNAY wrote: >> From: Jack Mitchell >> Sent: samedi 30 mars 2019 12:42 >> >> On 29/03/2019 14:42, Patrick Delaunay wrote: >>> This patch-set created after Marek remarks on patch >>> board: stm32mp1: Add tx_fifo_sz_array

Re: [U-Boot] [PATCH 00/16] usb: convert dwc2 gadget to driver model, used in stm32mp1

2019-03-30 Thread Jack Mitchell
On 29/03/2019 14:42, Patrick Delaunay wrote: > > This patch-set created after Marek remarks on patch > board: stm32mp1: Add tx_fifo_sz_array support > http://patchwork.ozlabs.org/patch/1056452/ > > This serie convert the DWC2 to driver model and use it for the > stm32mp1 boards. > > USB de

Re: [U-Boot] [PATCH v2 10/10] rockchip: rk3399: add board_debug_uart_init()

2019-03-29 Thread Jack Mitchell
On 29/03/2019 01:09, Kever Yang wrote: > Use board_debug_uart_init() for UART iomux init instead of > do it in board_init_f, and move the function to soc file so > that we can find all the soc/board setting in soc file and > use a common board file for all rockchip SoCs later. > > Signed-off-by:

Re: [U-Boot] [PATCH v2 03/10] rockchip: rk3036: add board_debug_uart_init()

2019-03-29 Thread Jack Mitchell
On 29/03/2019 01:09, Kever Yang wrote: > Use board_debug_uart_init() for UART iomux init instead of > do it in board_init_f, and move the function to soc file so > that we can find all the soc/board setting in soc file and > use a common board file. > > Signed-off-by: Kever Yang > --- > > arc

Re: [U-Boot] Sunxi H5 and CONFIG_ENV_IS_IN_MMC problem

2019-03-17 Thread Jack Mitchell
On 16/03/2019 14:07, g...@novadsp.com wrote: > Greetings > > Our board has an AllWinner H5 with SPI flash and eMMC. Since SPI flash > support for 'saveenv' is not currently mainline, I thought I'd simply use > one of the eMMC boot blocks to persist the environment. However I keep > running into im

Re: [U-Boot] [BUG] booting on the Tinker Board (tinker-rk3288_defconfig) is broken

2019-02-11 Thread Jack Mitchell
On 09/02/2019 12:12, Heinrich Schuchardt wrote: > Hello Simon, hello Philipp, > > since patch > > Merge tag 'for-master-20190201' of git://git.denx.de/u-boot-rockchip > e5fd39c886485e3dec77f4438a6e364c2987cf5f > > booting on the Tinker Board (tinker-rk3288_defconfig) is broken. > > There is not

Re: [U-Boot] dfu broken on rk3288 dwc2_otg

2019-01-24 Thread Jack Mitchell
On 21/01/2019 17:55, Jack Mitchell wrote: > Hi, > > Has anyone successfully used DFU on an rk3288 or dwc2_otg based board? > When trying to download a binary to the board over DFU it currently > seems to timeout and the transfer fails. I have tested the > firefly-rk3288 and al

Re: [U-Boot] dfu broken on rk3288 dwc2_otg

2019-01-24 Thread Jack Mitchell
On 21/01/2019 17:55, Jack Mitchell wrote: > Hi, > > Has anyone successfully used DFU on an rk3288 or dwc2_otg based board? > When trying to download a binary to the board over DFU it currently > seems to timeout and the transfer fails. I have tested the > firefly-rk3288 and al

[U-Boot] dfu broken on rk3288 dwc2_otg

2019-01-21 Thread Jack Mitchell
Hi, Has anyone successfully used DFU on an rk3288 or dwc2_otg based board? When trying to download a binary to the board over DFU it currently seems to timeout and the transfer fails. I have tested the firefly-rk3288 and also the Tinkerboard. I have successfully used the same setup on an am335x b

Re: [U-Boot] rk3288: firefly: flashing emmc from maskrom using USB

2019-01-15 Thread Jack Mitchell
On 15/01/2019 02:05, Kever Yang wrote: > HI Jack, > > > On 01/15/2019 01:28 AM, Jack Mitchell wrote: >> I'm having issues flashing the emmc on my firefly board using USB. For >> some reason it seems as though trying to write to the emmc flash sector >> 0x40 fo

[U-Boot] rk3288: firefly: flashing emmc from maskrom using USB

2019-01-14 Thread Jack Mitchell
I'm having issues flashing the emmc on my firefly board using USB. For some reason it seems as though trying to write to the emmc flash sector 0x40 for uboot spl+proper from the Maskrom/Loader doesn't work. Can anyone elaborate on what I'm doing wrong, or another way I could achieve this? The curr

Re: [U-Boot] [PATCH] drivers: regulator: regulator-uclass: disallow disable of always-on

2018-11-23 Thread Jack Mitchell
On 22/11/2018 21:12, Richard Röjfors wrote: > It does not make sense to allow disable of a regulator that > is defined always on. > > I found this because the new mmc code that tests if the mmc > power can be switched off. That results in the rk3288 > firefly board to die since the regulator, whic

Re: [U-Boot] [PATCH] power: regulator: denied disable on always-on regulator

2018-10-31 Thread Jack Mitchell
le(dev, enable); > } > > Another ping for this, I've just spent a few hours this morning debugging the firefly-rk3288 failing to boot due to a required regulator being disabled in the emmc reset routine. I came up with almost the exact same patch, so Reviewed-by: Jack Mitchell

Re: [U-Boot] [PATCH] power: regulator: denied disable on always-on regulator

2018-10-31 Thread Jack Mitchell
le(dev, enable); > } > > Another ping for this, I've just spent a few hours this morning debugging the firefly-rk3288 failing to boot due to a required regulator being disabled in the emmc reset routine. I came up with almost the exact same patch, so Reviewed-by: Jack Mitchell

Re: [U-Boot] [PATCH] power: regulator: denied disable on always-on regulator

2018-10-31 Thread Jack Mitchell
le(dev, enable); > } > > Another ping for this, I've just spent a few hours this morning debugging the firefly-rk3288 failing to boot due to a required regulator being disabled in the emmc reset routine. I came up with almost the exact same patch, so Reviewed-by: Jack Mitchell

Re: [U-Boot] standalone-examples: support custom GCC lib

2013-07-17 Thread Jack Mitchell
On 17/07/13 08:11, Albert ARIBAUD wrote: Hi Jack, On Tue, 16 Jul 2013 14:44:22 +0100, Jack Mitchell wrote: Fighting with compiling u-boot today and dealing with problems related to using a custom built openembedded toolchain, I found the need to specify a custom location for the GCC lib

[U-Boot] [PATCH] standalone-examples: support custom GCC lib

2013-07-16 Thread Jack Mitchell
From: Jack Mitchell Add support for defining the gcc lib in standalone examples as is done in the main u-boot Makefile Signed-off-by: Jack Mitchell --- examples/standalone/Makefile | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/examples/standalone

[U-Boot] standalone-examples: support custom GCC lib

2013-07-16 Thread Jack Mitchell
support for a custom GCC lib in the standalone examples Makefile. I am no toolchain or u-boot expert, and as such to avoid the firey pits of flamewar hell, this is an RFC ;) -- Jack Mitchell (j...@embed.me.uk) Embedded Systems Engineer http://www.embed.me.uk