Re: [U-Boot] [PATCH 3/3] pico-imx7d: polish uart clock id definition

2019-10-16 Thread Jun Nie
Stefano Babic 于2019年10月13日周日 下午9:35写道: > > Hi Jun, > > I am just trying to check if some patch was silently lost, I found yours: > > On 16/07/19 09:42, Jun Nie wrote: > > Polish uart clock id definition. Default IMX7 UART ID is UART1 > > as original parameter in imx

[PATCH] imx: spl: Add weak reset_cpu()

2022-10-24 Thread Jun Nie
* [scripts/Makefile.spl:526: spl/u-boot-spl] Error 1 make: *** [Makefile:2087: spl/u-boot-spl] Error 2 Signed-off-by: Jun Nie --- arch/arm/mach-imx/spl.c | 4 board/ronetix/imx7-cm/spl.c | 4 board/technexion/pico-imx6ul/spl.c| 4 board/techn

[PATCH] imx: syscounter: support timer_get_boot_us

2022-07-21 Thread Jun Nie
With supporting timer_get_boot_us, we can profile boot up time with below configs and function bootstage_mark_name(). CONFIG_BOOTSTAGE=y CONFIG_BOOTSTAGE_REPORT=y CONFIG_CMD_BOOTSTAGE=y Signed-off-by: Jun Nie --- arch/arm/mach-imx/syscounter.c | 9 + 1 file changed, 9 insertions

Re: [U-Boot] [RFC][PATCH] spl: vboot: Verify content before using load_addr

2018-06-06 Thread Jun Nie
d > --- Reviewed-by: Jun Nie ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [PATCH v3] sunxi: add support for Banana Pi M2 Zero board

2018-06-06 Thread Jun Nie
Banana Pi M2 Zero is a board by Sinovoip with Allwinner H2+ SoC, 16-bit 512MiB DDR3 memory, a MicroSD slot, two MicroUSB ports (one OTG and one powering-only) and a miniHDMI port. Signed-off-by: Icenowy Zheng Signed-off-by: Jun Nie --- arch/arm/dts/Makefile | 1

[U-Boot] [PATCH] rpi: Do not use dtb loaded by firmware

2018-11-08 Thread Jun Nie
protected by ATF. Signed-off-by: Jun Nie --- board/raspberrypi/rpi/rpi.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c index 649127c..f7041e3 100644 --- a/board/raspberrypi/rpi/rpi.c +++ b/board/raspberrypi/rpi/rpi.c @@ -283,6

Re: [U-Boot] [PATCH] rpi: Do not use dtb loaded by firmware

2018-11-08 Thread Jun Nie
Alexander Graf 于2018年11月8日周四 下午4:59写道: > > On 11/08/2018 09:36 AM, Jun Nie wrote: > > Do not use dtb loaded by firmware if fit image signature is enabled. > > So that u-boot.dtb can be used. The u-boot.dtb contains the pulibc key > > that is to verify Linux kernel FIT i

[U-Boot] [PATCH] common: build ymodem and s_record only on need

2018-02-11 Thread Jun Nie
Build ymodem and s_record only on need to shrink spl image size. Signed-off-by: Jun Nie --- common/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/Makefile b/common/Makefile index c7bde23..8e1569f 100644 --- a/common/Makefile +++ b/common/Makefile

[U-Boot] [PATCH] SPL: Add signature verification when loading image

2018-02-11 Thread Jun Nie
Add signature verification when loading FIT image in SPL. Signed-off-by: Jun Nie --- common/image-fit.c | 56 +++- common/spl/spl_fit.c | 12 +++ include/image.h | 2 ++ 3 files changed, 48 insertions(+), 22 deletions(-) diff

Re: [U-Boot] [PATCH] common: build ymodem and s_record only on need

2018-02-11 Thread Jun Nie
2018-02-12 8:54 GMT+08:00 André Przywara : > Hi, > > On 11/02/18 09:53, Jun Nie wrote: >> Build ymodem and s_record only on need to shrink >> spl image size. >> >> Signed-off-by: Jun Nie >> --- >> common/Makefile | 4 ++-- >> 1 file changed,

[U-Boot] [PATCH] common: build ymodem only on need

2018-02-13 Thread Jun Nie
Build ymodem only on need to shrink spl image size. Signed-off-by: Jun Nie --- common/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/Makefile b/common/Makefile index c7bde23..0614348 100644 --- a/common/Makefile +++ b/common/Makefile @@ -133,4 +133,5

Re: [U-Boot] [PATCH] SPL: Add signature verification when loading image

2018-02-26 Thread Jun Nie
Hi, Does anyone have comments on this patch? Thank you! Jun 2018-02-11 19:56 GMT+08:00 Jun Nie : > Add signature verification when loading FIT image in SPL. > > Signed-off-by: Jun Nie > --- > common/image-fit.c | 56 > +++-

Re: [U-Boot] [PATCH] SPL: Add signature verification when loading image

2018-02-26 Thread Jun Nie
2018-02-26 17:56 GMT+08:00 Andre Przywara : > Hi, > > On 11/02/18 11:56, Jun Nie wrote: >> Add signature verification when loading FIT image in SPL. > > this message is very thin. Can you explain WHY you did this change and > what it's supposed to do and what it

Re: [U-Boot] [PATCH] SPL: Add signature verification when loading image

2018-02-26 Thread Jun Nie
2018-02-26 19:02 GMT+08:00 Andre Przywara : > Hi, > > On 26/02/18 10:00, Jun Nie wrote: >> 2018-02-26 17:56 GMT+08:00 Andre Przywara : >>> Hi, >>> >>> On 11/02/18 11:56, Jun Nie wrote: >>>> Add signature verification when loading FIT image in S

[U-Boot] [PATCH v2] SPL: Add signature verification when loading image

2018-02-27 Thread Jun Nie
-boot proper images when loading FIT image in SPL. It is tested on Allwinner bananapi zero board with H2+ SoC. Signed-off-by: Jun Nie --- common/image-fit.c | 56 +++- common/spl/spl_fit.c | 12 +++ include/image.h | 2 ++ 3 files

Re: [U-Boot] [PATCH 2/2] image: fit: Show information about OS type in firwmare case too

2018-04-02 Thread Jun Nie
Size:761216 Bytes = 743.38 KiB = 0.73 MiB > Architecture: ARM > OS: U-Boot > Load Address: 0x0800 > Hash algo:md5 > Hash value: f22960fe429be72296dc8dc59a47d566 > > Signed-off-by: Michal Simek > --- > Reviewed-by: Jun Nie __

Re: [U-Boot] [PATCH 1/2] image: fit: Show firmware configuration property if present

2018-04-02 Thread Jun Nie
onfiguration: 'config' > Configuration 0 (config) > Description: ATF with full u-boot > Kernel: unavailable > Firmware: atf > FDT: dtb > > Signed-off-by: Michal Simek > --- > Reviewed-by: Jun Nie

[U-Boot] uboot support to Allwinner bananapi zero

2018-04-11 Thread Jun Nie
Hi Icenowy & Jagan, I see bananapi zero patch was posted and discussed in [1], but without further follow up. Maybe we can decide which name is more maintainable first, bananapi-*, Bananapi-* or Sinovoip_BPI_*. And add all new boards with following the rule. Which one do you prefer? If possible,

[U-Boot] [PATCH] fit: skip signature verification if board request

2018-04-11 Thread Jun Nie
It may be unnecessary to check signature on unlocked board. Get the hint from platform specific code to support secure boot and non-secure boot with the same binary, so that boot is not blocked if board is not locked and has no key for signature verification. Signed-off-by: Jun Nie --- common

Re: [U-Boot] [PATCH] fit: skip signature verification if board request

2018-04-13 Thread Jun Nie
2018-04-12 21:53 GMT+08:00 Tom Rini : > On Wed, Apr 11, 2018 at 11:13:05PM +0800, Jun Nie wrote: > >> It may be unnecessary to check signature on unlocked board. >> Get the hint from platform specific code to support secure boot >> and non-secure boot with the same bin

Re: [U-Boot] [PATCH] fit: skip signature verification if board request

2018-04-13 Thread Jun Nie
2018-04-13 1:24 GMT+08:00 Simon Glass : > Hi, > > On 11 April 2018 at 09:13, Jun Nie wrote: >> It may be unnecessary to check signature on unlocked board. >> Get the hint from platform specific code to support secure boot >> and non-secure boot with the same binary, so

Re: [U-Boot] [PATCH] fit: skip signature verification if board request

2018-04-18 Thread Jun Nie
2018-04-17 20:06 GMT+08:00 Quentin Schulz : > Hi, > > On Wed, Apr 11, 2018 at 11:13:05PM +0800, Jun Nie wrote: >> It may be unnecessary to check signature on unlocked board. >> Get the hint from platform specific code to support secure boot >> and non-secure boot with th

Re: [U-Boot] [PATCH] fit: skip signature verification if board request

2018-04-18 Thread Jun Nie
2018-04-17 3:06 GMT+08:00 Simon Glass : > Hi Jun, > > On 13 April 2018 at 04:05, Jun Nie wrote: >> 2018-04-13 1:24 GMT+08:00 Simon Glass : >>> Hi, >>> >>> On 11 April 2018 at 09:13, Jun Nie wrote: >>>> It may be unnecessary to check signat

[U-Boot] [PATCH] mmc: Poll for broken card detection case

2018-01-01 Thread Jun Nie
Poll for broken card detection case instead of return no card detected. Signed-off-by: Jun Nie --- drivers/mmc/Kconfig | 5 + drivers/mmc/mmc.c | 4 2 files changed, 9 insertions(+) diff --git a/drivers/mmc/Kconfig b/drivers/mmc/Kconfig index 8fbeaa7..ed194a3 100644 --- a/drivers

[U-Boot] [PATCH 0/6] Add Bananapi Zero board with OTG supported

2018-01-04 Thread Jun Nie
Add Bananapi Zero board defconfig and device tree. OTG device is supported with enabling clock and adding necessary controller configuration change. USB mass storage is tested as a test case. Jun Nie (6): sunxi: h3: add usb_otg and OHCI/EHCI for usbc0 on H3 sunxi: musb: Add fifo config for H3

[U-Boot] [PATCH 1/6] sunxi: h3: add usb_otg and OHCI/EHCI for usbc0 on H3

2018-01-04 Thread Jun Nie
Allwinner H3 have a dual-routed USB PHY0 -- routed to either OHCI/EHCI or MUSB controller. Signed-off-by: Jun Nie --- arch/arm/dts/sun8i-h3.dtsi | 32 1 file changed, 32 insertions(+) diff --git a/arch/arm/dts/sun8i-h3.dtsi b/arch/arm/dts/sun8i-h3.dtsi index

[U-Boot] [PATCH 3/6] sunxi: musb: Enable OTG device clock for H3

2018-01-04 Thread Jun Nie
Enable OTG clock and deassert reset Signed-off-by: Jun Nie --- arch/arm/include/asm/arch-sunxi/clock_sun6i.h | 2 ++ arch/arm/include/asm/arch-sunxi/cpu_sun4i.h | 4 drivers/usb/musb-new/sunxi.c | 19 +++ 3 files changed, 25 insertions(+) diff --git a

[U-Boot] [PATCH 2/6] sunxi: musb: Add fifo config for H3

2018-01-04 Thread Jun Nie
Add fifo config for H3 as H3 differ with other SoC on ep number. Signed-off-by: Jun Nie --- drivers/usb/musb-new/sunxi.c | 32 1 file changed, 32 insertions(+) diff --git a/drivers/usb/musb-new/sunxi.c b/drivers/usb/musb-new/sunxi.c index 7ee44ea..0005c1e

[U-Boot] [PATCH 5/6] sunxi: usb_phy: Clear PHYCTL register before writing

2018-01-04 Thread Jun Nie
PHYCTL register offset at 0x10 need to be cleared before it's written. Ported from below Linux patch. d699c1d phy: sun4i-usb: change PHYCTL register clearing code Signed-off-by: Jun Nie --- arch/arm/mach-sunxi/usb_phy.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff

[U-Boot] [PATCH 6/6] sunxi: Add initial Banana-Pi Zero support

2018-01-04 Thread Jun Nie
Banana-Pi Zero is designed for IOT development using the Allwinner H2+ SOC. Key features - Allwinner H2+, Quad-core Cortex-A7 - 512MB DRAM - microSD slot - Serial Debug Port - Combo WiFi/BT - HDMI Signed-off-by: Jun Nie --- arch/arm/dts/Makefile | 1 + arch/arm/dts

[U-Boot] [PATCH 4/6] sunxi: musb: Hack dynamic fifo support for H3 OTG

2018-01-04 Thread Jun Nie
Like other Allwinner SoC, the H3 is missing the config register from the musb hardware block. Use a known working value for it like other SoC. Signed-off-by: Jun Nie --- drivers/usb/musb-new/musb_regs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/musb-new

Re: [U-Boot] [PATCH 0/6] Add Bananapi Zero board with OTG supported

2018-01-05 Thread Jun Nie
Thank you very much! Will check. Jun ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 6/6] sunxi: Add initial Banana-Pi Zero support

2018-01-05 Thread Jun Nie
>> +/dts-v1/; >> +#include "sun8i-h3.dtsi" >> +#include "sunxi-common-regulators.dtsi" >> + >> +#include >> +#include > > Where is that DT coming from? > > Usually, we'll just merge a DT merged in Linux. The DT come from Linux but modified with removing necessary nodes. > >> +/ { >> + model

Re: [U-Boot] [PATCH 0/6] Add Bananapi Zero board with OTG supported

2018-01-05 Thread Jun Nie
> > a64 on otg have in ML[1] check if any redundant otherwise it's OK., we > will test these and send next version. > >> sunxi: Add initial Banana-Pi Zero support > > similar patch is already in ML [2] > > [1] https://patchwork.ozlabs.org/cover/847375/ This serial patches in the link does not in

Re: [U-Boot] [PATCH 0/6] Add Bananapi Zero board with OTG supported

2018-01-05 Thread Jun Nie
2018-01-05 17:06 GMT+08:00 Chen-Yu Tsai : > On Fri, Jan 5, 2018 at 5:04 PM, Jun Nie wrote: >>> >>> a64 on otg have in ML[1] check if any redundant otherwise it's OK., we >>> will test these and send next version. >>> >>>> sunxi: Add

[U-Boot] [[PATCH v2] 0/8] sunxi: Enable OTG peripheral and host mode on H3

2018-01-05 Thread Jun Nie
Changes vs V1: - Add two patches from Chen-Yu to enable host mode - split USB0 base address change to separate patch - revise OTG clock enabling patch Chen-Yu Tsai (2): sunxi: Fix USB PHY index for H3/H5/A64 sunxi: usb_phy: setup USB PHY passby for USB0 on H3/H5/A64 Jun Nie (6): sunxi: h3

[U-Boot] [[PATCH v2] 3/8] sunxi: Fix USB PHY index for H3/H5/A64

2018-01-05 Thread Jun Nie
From: Chen-Yu Tsai On the new chips such as H3, H5, and A64, the USB OTG controller is paired with a set of proper EHCI/OHCI USB hosts. To enable these hosts, the USB PHY index count has to be reworked to start from this pair. This patch reworks the USB clock gate and reset indices, and how the

[U-Boot] [[PATCH v2] 1/8] sunxi: h3: Sync OTG and HCI nodes from Linux DT

2018-01-05 Thread Jun Nie
Allwinner H3 have a dual-routed USB PHY0 -- routed to either OHCI/EHCI or MUSB controller. Signed-off-by: Jun Nie --- arch/arm/dts/sun8i-h3.dtsi | 32 1 file changed, 32 insertions(+) diff --git a/arch/arm/dts/sun8i-h3.dtsi b/arch/arm/dts/sun8i-h3.dtsi index

[U-Boot] [[PATCH v2] 2/8] sunxi: musb: Add fifo config for H3

2018-01-05 Thread Jun Nie
Add fifo config for H3 as H3 differ with other SoC on ep number. Signed-off-by: Jun Nie Reviewed-by: Jagan Teki --- drivers/usb/musb-new/sunxi.c | 32 1 file changed, 32 insertions(+) diff --git a/drivers/usb/musb-new/sunxi.c b/drivers/usb/musb-new/sunxi.c

[U-Boot] [[PATCH v2] 4/8] sunxi: musb: Hack dynamic fifo support for H3 OTG

2018-01-05 Thread Jun Nie
Like other Allwinner SoC, the H3 is missing the config register from the musb hardware block. Use a known working value for it like other SoC. Signed-off-by: Jun Nie --- drivers/usb/musb-new/musb_regs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/musb-new

[U-Boot] [[PATCH v2] 5/8] sunxi: musb: Enable OTG device clock for H3

2018-01-05 Thread Jun Nie
Enable OTG clock and deassert reset Signed-off-by: Jun Nie --- arch/arm/include/asm/arch-sunxi/clock_sun6i.h | 1 + drivers/usb/musb-new/sunxi.c | 6 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/arm/include/asm/arch-sunxi/clock_sun6i.h b/arch/arm

[U-Boot] [[PATCH v2] 6/8] sunxi: usb_phy: Clear PHYCTL register before writing

2018-01-05 Thread Jun Nie
PHYCTL register offset at 0x10 need to be cleared before it's written. Ported from below Linux patch. d699c1d phy: sun4i-usb: change PHYCTL register clearing code Signed-off-by: Jun Nie --- arch/arm/mach-sunxi/usb_phy.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff

[U-Boot] [[PATCH v2] 8/8] sunxi: H3: set different otg base address per mode

2018-01-05 Thread Jun Nie
Set different base address per host mode or peripheral mode. Phy configuration also depends on this address. Signed-off-by: Jun Nie --- arch/arm/include/asm/arch-sunxi/cpu_sun4i.h | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/include/asm/arch-sunxi/cpu_sun4i.h b/arch/arm

[U-Boot] [[PATCH v2] 7/8] sunxi: usb_phy: setup USB PHY passby for USB0 on H3/H5/A64

2018-01-05 Thread Jun Nie
From: Chen-Yu Tsai On newer chips, there is a pair of EHCI/OHCI USB hosts for OTG host mode. USB PHY passby must be configured for its corresponding PHY. Signed-off-by: Chen-Yu Tsai --- arch/arm/mach-sunxi/usb_phy.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arch

Re: [U-Boot] [PATCH v2] musb: sunxi: Use base address from device tree

2018-01-10 Thread Jun Nie
2017-12-30 20:44 GMT+08:00 Chen-Yu Tsai : > Now that the musb sunxi glue driver is completely device model / device > tree driven, we should use the base address from the device tree, > instead of hard-coding it in the source code. > > Fixes: 3a61b080acee ("musb: sunxi: switch to the device model")

Re: [U-Boot] [PATCH v7 00/35] phy: sunxi: Add Allwinner sun4i USB PHY

2018-05-15 Thread Jun Nie
m code on these will add it future. > > Changes for v7: > - rebase on master > Acked-by: Jun Nie ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [PATCH v2] sunxi: add support for Banana Pi M2 Zero board

2018-05-23 Thread Jun Nie
. Signed-off-by: Icenowy Zheng Signed-off-by: Jun Nie --- arch/arm/dts/Makefile | 1 + arch/arm/dts/sun8i-h2-plus-bananapi-m2-zero.dts | 68 + board/sunxi/MAINTAINERS | 5 ++ configs/bananapi_m2_zero_defconfig

Re: [U-Boot] [PATCH v2] sunxi: add support for Banana Pi M2 Zero board

2018-05-24 Thread Jun Nie
2018-05-24 15:54 GMT+08:00 Maxime Ripard : > Hi, > > On Thu, May 24, 2018 at 12:38:19PM +0800, Jun Nie wrote: >> Banana Pi M2 Zero is a board by Sinovoip with Allwinner H2+ SoC, 16-bit >> 512MiB DDR3 memory, a MicroSD slot, two MicroUSB ports (one OTG and one >> powerin

Re: [U-Boot] [PATCH] mmc: Poll for broken card detection case

2018-01-22 Thread Jun Nie
2018-01-22 13:03 GMT+08:00 Jaehoon Chung : > Hi, > > On 01/02/2018 01:25 PM, Jun Nie wrote: >> Poll for broken card detection case instead of return >> no card detected. > > Sorry for late. i didn't see this patch in my mailbox. > > Does it need to

Re: [U-Boot] [PATCH] mmc: Poll for broken card detection case

2018-01-22 Thread Jun Nie
2018-01-23 10:00 GMT+08:00 Jaehoon Chung : > On 01/22/2018 09:21 PM, Jun Nie wrote: >> 2018-01-22 13:03 GMT+08:00 Jaehoon Chung : >>> Hi, >>> >>> On 01/02/2018 01:25 PM, Jun Nie wrote: >>>> Poll for broken card detection case instead of return

[U-Boot] [PATCH] sunxi: support fuse cmd to read/write fuse

2018-01-27 Thread Jun Nie
Support fuse cmd to read/write fuse. Power supply for fuse should be ready, name is VDD_EFUSE in some schematic. Signed-off-by: Jun Nie --- arch/arm/mach-sunxi/cpu_info.c | 60 ++ 1 file changed, 60 insertions(+) diff --git a/arch/arm/mach-sunxi

Re: [U-Boot] [PATCH] sunxi: support fuse cmd to read/write fuse

2018-01-28 Thread Jun Nie
2018-01-28 1:45 GMT+08:00 André Przywara : > On 27/01/18 15:20, Jun Nie wrote: >> Support fuse cmd to read/write fuse. Power supply for fuse >> should be ready, name is VDD_EFUSE in some schematic. > > Mmh, in general I am not sure it is a good idea to expose this so easily &

Re: [U-Boot] [PATCH 1/1] pico-imx7d: Enable DM_USB

2019-06-13 Thread Jun Nie
mx7d_defconfig | 1 + > configs/pico-imx7d_bl33_defconfig| 1 + > configs/pico-imx7d_defconfig | 1 + > configs/pico-pi-imx7d_defconfig | 1 + > 6 files changed, 6 insertions(+), 13 deletions(-) > Reviewed-by: Jun Nie __

[U-Boot] [PATCH v3 1/9] Revert "pico-imx7d: Add LCD support"

2019-04-23 Thread Jun Nie
This reverts commit 9e3c0174da842dd88f5feaffbf843ba332233897. --- board/technexion/pico-imx7d/pico-imx7d.c | 55 configs/pico-hobbit-imx7d_defconfig | 1 - configs/pico-imx7d_defconfig | 1 - configs/pico-pi-imx7d_defconfig | 1 - inclu

[U-Boot] [PATCH v3 2/9] mx7_common: Share configs to skip low level init

2019-04-23 Thread Jun Nie
whether to skip it. Signed-off-by: Jun Nie --- include/configs/mx7_common.h | 11 +++ include/configs/warp7.h | 11 --- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/include/configs/mx7_common.h b/include/configs/mx7_common.h index cc7e872..57fbec7 100644

[U-Boot] [PATCH v3 0/9] pico-imx7d: Add support for BL33 case

2019-04-23 Thread Jun Nie
upport. Pico-pi does not boot with it. I see it is suggested to be reverted in maillist. Changes vs V1: - Remove DCD file. - Add a patch to fix uart clock root ID. - Change file name from pico-pi-imx7d_bl33_defconfig to pico-imx7d_bl33_defconfig Jun Nie (9): Revert "pico-imx7d: Add

[U-Boot] [PATCH v3 7/9] pico-imx7d: Add device tree for pico-imx7d

2019-04-23 Thread Jun Nie
Copy device tree files from Linux directly. Signed-off-by: Jun Nie --- arch/arm/dts/Makefile | 1 + arch/arm/dts/imx7d-pico-pi.dts | 93 +++ arch/arm/dts/imx7d-pico.dtsi | 585 + 3 files changed, 679 insertions(+) create mode 100644

[U-Boot] [PATCH v3 5/9] pico-imx7d: Reserve region of memory to OPTEE

2019-04-23 Thread Jun Nie
Subtracts CONFIG_OPTEE_TZDRAM_SIZE from the available DRAM size so that the OPTEE memory is not override during u-boot relocation. Note the OPTEE boot process will itself subtract the DRAM region it lives in from the memory map passed to Linux. Signed-off-by: Jun Nie --- board/technexion/pico

[U-Boot] [PATCH v3 3/9] imx: mx7: Add empty arch_cpu_init if skipped

2019-04-23 Thread Jun Nie
Add empty arch_cpu_init if low level init is skipped. So that it does not break spl compile though spl is not needed in the skipped case actually. Signed-off-by: Jun Nie --- arch/arm/mach-imx/mx7/soc.c | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/mach-imx/mx7/soc.c b/arch

[U-Boot] [PATCH v3 6/9] pico-imx7d: Add boot option for verified boot

2019-04-23 Thread Jun Nie
Add boot option to boot from fitimage to support verified boot. The boot script plain text file should be packed into fit blob as image with name of bootscr. Signed-off-by: Jun Nie --- include/configs/pico-imx7d.h | 38 +++--- 1 file changed, 35 insertions(+), 3

[U-Boot] [PATCH v3 4/9] pico-imx7d: Correct uart clock root

2019-04-23 Thread Jun Nie
Correct uart clock root ID. Incorrect ID may result the clock is gated because rate value 0 is returned in imx_get_uartclk() Signed-off-by: Jun Nie --- arch/arm/include/asm/arch-mx7/clock.h | 18 ++ arch/arm/mach-imx/Kconfig | 7 +++ arch/arm/mach-imx/mx7

[U-Boot] [PATCH v3 8/9] pico-imx7d: Add bl33 config

2019-04-23 Thread Jun Nie
Add default configuration to run u-boot as BL33 in the boot flow case of ATF(ARM Trusted Firmware) -> OPTEE -> U-boot. Signed-off-by: Jun Nie --- configs/pico-imx7d_bl33_defconfig | 63 +++ 1 file changed, 63 insertions(+) create mode 100644 config

[U-Boot] [PATCH v3 9/9] pico-imx7d: README: Add BL33 usage case

2019-04-23 Thread Jun Nie
Add Documentation of BL33 usage case. U-boot is in non-secure world in this case. Signed-off-by: Jun Nie --- board/technexion/pico-imx7d/README.pico-imx7d_BL33 | 44 ++ 1 file changed, 44 insertions(+) create mode 100644 board/technexion/pico-imx7d/README.pico-imx7d_BL33

Re: [U-Boot] [PATCH v3 4/9] pico-imx7d: Correct uart clock root

2019-04-23 Thread Jun Nie
t_crit() -> lowlevel_init() -> s_init() -> clock_init() -> init_clk_uart() #endif > > Regards, > Peng. > > > > > Signed-off-by: Jun Nie > > --- > > arch/arm/include/asm/arch-mx7/clock.h | 18 ++ > > arch/arm/mach-imx/Kconfig

Re: [U-Boot] [PATCH v3 1/9] Revert "pico-imx7d: Add LCD support"

2019-04-24 Thread Jun Nie
Fabio Estevam 于2019年4月24日周三 下午6:30写道: > > On Wed, Apr 24, 2019 at 1:00 AM Jun Nie wrote: > > > > This reverts commit 9e3c0174da842dd88f5feaffbf843ba332233897. > > Why are you reverting it? It blocks boot up with default defconfig. I see it is suggested to be reverted

Re: [U-Boot] [PATCH v3 7/9] pico-imx7d: Add device tree for pico-imx7d

2019-04-24 Thread Jun Nie
Fabio Estevam 于2019年4月24日周三 下午6:31写道: > > On Wed, Apr 24, 2019 at 1:00 AM Jun Nie wrote: > > > > Copy device tree files from Linux directly. > > > > Signed-off-by: Jun Nie > > There is a series from Joris that does the pico-mx7d DM conversion. When

Re: [U-Boot] [PATCH v3 1/9] Revert "pico-imx7d: Add LCD support"

2019-04-25 Thread Jun Nie
Fabio Estevam 于2019年4月25日周四 上午11:28写道: > > Hi Jun, > > On Wed, Apr 24, 2019 at 11:53 PM Jun Nie wrote: > > > It blocks boot up with default defconfig. I see it is suggested to be > > reverted in mailist weeks ago. I thought you guys knew about it. > > Please kee

Re: [U-Boot] [PATCH v3 7/9] pico-imx7d: Add device tree for pico-imx7d

2019-04-25 Thread Jun Nie
> > I merged Joris' series and build is in progress. > > Regards, > Stefano > Great! I will prepare my patch based on that. But I cannot find latest pico patch on denx master repo. Did you merge it to your own repo and pulled to denx master later, just like linux work flow? I am not familiar with u

Re: [U-Boot] [PATCH v3 3/9] imx: mx7: Add empty arch_cpu_init if skipped

2019-04-25 Thread Jun Nie
> Please describe what ATF/OP-TEE initialization has done > when booting into uboot. > > I think SKIP_LOWLEVEL_INIT is mostly for lowlevel_init, > not arch_cpu_init. > > init_aips/init_csu/isolate_resources/init_snvs might be > done in your ATF, I am not sure, but imx_enet_mdio_fixup, > mxs_dma_ini

Re: [U-Boot] [PATCH v3 4/9] pico-imx7d: Correct uart clock root

2019-04-25 Thread Jun Nie
Fabio Estevam 于2019年4月24日周三 下午6:32写道: > > On Wed, Apr 24, 2019 at 1:00 AM Jun Nie wrote: > > > +config IMX_CONSOLE_UART_ID > > + int "UART ID for console" > > + default 1 > > + depends on ARCH_MX7 > > + help > >

[U-Boot] [PATCH 1/2] serial: add skipping init option

2019-03-22 Thread Jun Nie
add skipping init option to avoid corrupt data in console if serial is already initilized when u-boot start its excution. Signed-off-by: Jun Nie --- drivers/serial/Kconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig index 887cd68

[U-Boot] [PATCH 2/2] imx: serial_mxc: skip uart initilization

2019-03-22 Thread Jun Nie
Skip uart initilization if CONFIG_UART_SKIP_INIT is defined. That's means earlier firmware already initialized the uart. Signed-off-by: Jun Nie --- drivers/serial/serial_mxc.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/serial/serial_mxc.c b/drivers/serial/serial_mxc.c

Re: [U-Boot] [PATCH 1/2] serial: add skipping init option

2019-03-22 Thread Jun Nie
Simon Glass 于2019年3月22日周五 下午3:56写道: > > Hi Jun, > > On Fri, 22 Mar 2019 at 15:20, Jun Nie wrote: > > > > add skipping init option to avoid corrupt data in console > > if serial is already initilized when u-boot start its excution. > > > > Signed-of

[U-Boot] [PATCH 1/5] mx7_common: Share configs to skip low level init

2019-03-26 Thread Jun Nie
whether to skip it. Signed-off-by: Jun Nie --- include/configs/mx7_common.h | 11 +++ include/configs/warp7.h | 11 --- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/include/configs/mx7_common.h b/include/configs/mx7_common.h index a895c93..912fb06 100644

[U-Boot] [PATCH 0/5] pico-imx7d: Add support for BL33 case

2019-03-26 Thread Jun Nie
Add configuration to boot U-boot as BL33 case. The boot flow is ATF -> OPTEE -> U-boot. Jun Nie (5): mx7_common: Share configs to skip low level init imx: mx7: Add empty arch_cpu_init if skipped pico-imx7d: Reserve region of memory to OPTEE pico-imx7d: Add boot option for verifie

[U-Boot] [PATCH 2/5] imx: mx7: Add empty arch_cpu_init if skipped

2019-03-26 Thread Jun Nie
Add empty arch_cpu_init if low level init is skipped. So that it does not break spl compile though spl is not needed in the skipped case actually. Signed-off-by: Jun Nie --- arch/arm/mach-imx/mx7/soc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-imx/mx7/soc.c b/arch/arm

[U-Boot] [PATCH 3/5] pico-imx7d: Reserve region of memory to OPTEE

2019-03-26 Thread Jun Nie
Subtracts CONFIG_OPTEE_TZDRAM_SIZE from the available DRAM size so that the OPTEE memory is not override during u-boot relocation. Note the OPTEE boot process will itself subtract the DRAM region it lives in from the memory map passed to Linux. Signed-off-by: Jun Nie --- board/technexion/pico

[U-Boot] [PATCH 5/5] pico-imx7d: Add bl33 config

2019-03-26 Thread Jun Nie
Add default configuration to run u-boot as BL33 in the boot flow case of ATF(ARM Trusted Firmware) -> OPTEE -> U-boot. Signed-off-by: Jun Nie --- board/technexion/pico-imx7d/imximage-512MB.cfg | 95 ++ configs/pico-pi-imx7d_bl33_defconfig

[U-Boot] [PATCH 4/5] pico-imx7d: Add boot option for verified boot

2019-03-26 Thread Jun Nie
Add boot option to boot from fitimage to support verified boot. The boot script plain text file should be packed into fit blob as image with name of bootscr. Signed-off-by: Jun Nie --- include/configs/pico-imx7d.h | 38 +++--- 1 file changed, 35 insertions(+), 3

Re: [U-Boot] [PATCH 5/5] pico-imx7d: Add bl33 config

2019-03-26 Thread Jun Nie
Otavio Salvador 于2019年3月26日周二 下午8:23写道: > > On Tue, Mar 26, 2019 at 6:23 AM Jun Nie wrote: > > > > Add default configuration to run u-boot as BL33 in the boot flow case > > of ATF(ARM Trusted Firmware) -> OPTEE -> U-boot. > > > > Signed-off-by: Jun Nie

Re: [U-Boot] [PATCH 5/5] pico-imx7d: Add bl33 config

2019-03-26 Thread Jun Nie
Otavio Salvador 于2019年3月26日周二 下午8:23写道: > > On Tue, Mar 26, 2019 at 6:23 AM Jun Nie wrote: > > > > Add default configuration to run u-boot as BL33 in the boot flow case > > of ATF(ARM Trusted Firmware) -> OPTEE -> U-boot. > > > > Signed-off-by: Jun Nie

Re: [U-Boot] [PATCH 1/2] serial: add skipping init option

2019-03-27 Thread Jun Nie
Lukasz Majewski 于2019年3月27日周三 下午5:34写道: > > Hi Simon, Jun, > > > Hi Jun, > > > > On Fri, 22 Mar 2019 at 16:02, Jun Nie wrote: > > > > > > Simon Glass 于2019年3月22日周五 下午3:56写道: > > > > > > > > Hi Jun, > > > > >

Re: [U-Boot] [PATCH 5/5] pico-imx7d: Add bl33 config

2019-03-27 Thread Jun Nie
Fabio Estevam 于2019年3月27日周三 下午7:52写道: > > Hi Jun, > > On Tue, Mar 26, 2019 at 6:21 AM Jun Nie wrote: > > > > Add default configuration to run u-boot as BL33 in the boot flow case > > of ATF(ARM Trusted Firmware) -> OPTEE -> U-boot. > > > > Signe

Re: [U-Boot] [PATCH 5/5] pico-imx7d: Add bl33 config

2019-03-27 Thread Jun Nie
Fabio Estevam 于2019年3月27日周三 下午8:03写道: > > On Wed, Mar 27, 2019 at 8:59 AM Jun Nie wrote: > > > For ATF -> OPTEE -> U-BOOT case, we cannot run SPL. > > Why not? Please provide the details. > > What about users that has the 1GB version of the board? I should say t

Re: [U-Boot] [PATCH 5/5] pico-imx7d: Add bl33 config

2019-03-27 Thread Jun Nie
Fabio Estevam 于2019年3月27日周三 下午10:57写道: > > On Wed, Mar 27, 2019 at 11:18 AM Jun Nie wrote: > > > I should say that SPL is not needed, not cannot run. u-boot is loaded > > and run by ATF/OPTEE, so we do not need SPL. This is an initial > > prototype of verified boot

[U-Boot] [PATCH v2 1/6] mx7_common: Share configs to skip low level init

2019-03-28 Thread Jun Nie
whether to skip it. Signed-off-by: Jun Nie --- include/configs/mx7_common.h | 11 +++ include/configs/warp7.h | 11 --- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/include/configs/mx7_common.h b/include/configs/mx7_common.h index a895c93..912fb06 100644

[U-Boot] [PATCH v2 0/6] pico-imx7d: Add support for BL33 case

2019-03-28 Thread Jun Nie
Add configuration to boot U-boot as BL33 case. The boot flow is ATF -> OPTEE -> U-boot. Changes vs V1: - Remove DCD file. - Add a patch to fix uart clock root ID. - Change file name from pico-pi-imx7d_bl33_defconfig to pico-imx7d_bl33_defconfig Jun Nie (6): mx7_common: Share configs t

[U-Boot] [PATCH v2 5/6] pico-imx7d: Add bl33 config

2019-03-28 Thread Jun Nie
Add default configuration to run u-boot as BL33 in the boot flow case of ATF(ARM Trusted Firmware) -> OPTEE -> U-boot. Signed-off-by: Jun Nie --- configs/pico-imx7d_bl33_defconfig | 61 +++ 1 file changed, 61 insertions(+) create mode 100644 config

[U-Boot] [PATCH v2 3/6] pico-imx7d: Reserve region of memory to OPTEE

2019-03-28 Thread Jun Nie
Subtracts CONFIG_OPTEE_TZDRAM_SIZE from the available DRAM size so that the OPTEE memory is not override during u-boot relocation. Note the OPTEE boot process will itself subtract the DRAM region it lives in from the memory map passed to Linux. Signed-off-by: Jun Nie --- board/technexion/pico

[U-Boot] [PATCH v2 4/6] pico-imx7d: Add boot option for verified boot

2019-03-28 Thread Jun Nie
Add boot option to boot from fitimage to support verified boot. The boot script plain text file should be packed into fit blob as image with name of bootscr. Signed-off-by: Jun Nie --- include/configs/pico-imx7d.h | 38 +++--- 1 file changed, 35 insertions(+), 3

[U-Boot] [PATCH v2 2/6] imx: mx7: Add empty arch_cpu_init if skipped

2019-03-28 Thread Jun Nie
Add empty arch_cpu_init if low level init is skipped. So that it does not break spl compile though spl is not needed in the skipped case actually. Signed-off-by: Jun Nie --- arch/arm/mach-imx/mx7/soc.c | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/mach-imx/mx7/soc.c b/arch

[U-Boot] [PATCH v2 6/6] pico-imx7d: Correct uart clock root

2019-03-28 Thread Jun Nie
Correct uart clock root ID. Incorrect ID may result the clock is gated because rate value 0 is returned in imx_get_uartclk() Signed-off-by: Jun Nie --- arch/arm/include/asm/arch-mx7/clock.h | 5 + arch/arm/mach-imx/mx7/clock.c | 2 +- include/configs/pico-imx7d.h | 1 + 3

Re: [U-Boot] [PATCH 1/2] serial: add skipping init option

2019-04-02 Thread Jun Nie
Simon Glass 于2019年3月31日周日 上午5:19写道: > > Hi Lukasz, > > On Wed, 27 Mar 2019 at 03:34, Lukasz Majewski wrote: > > > > Hi Simon, Jun, > > > > > Hi Jun, > > > > > > On Fri, 22 Mar 2019 at 16:02, Jun Nie wrote: > > > > &g

Re: [U-Boot] [PATCH v2 6/6] pico-imx7d: Correct uart clock root

2019-04-03 Thread Jun Nie
Otavio Salvador 于2019年3月28日周四 下午8:58写道: > > On Thu, Mar 28, 2019 at 5:34 AM Jun Nie wrote: > > > > Correct uart clock root ID. Incorrect ID may result the > > clock is gated because rate value 0 is returned in > > imx_get_uartclk() > > > > Signed-

Re: [U-Boot] [PATCH v2 0/6] pico-imx7d: Add support for BL33 case

2019-04-03 Thread Jun Nie
Otavio Salvador 于2019年3月28日周四 下午8:57写道: > > On Thu, Mar 28, 2019 at 5:30 AM Jun Nie wrote: > > > > Add configuration to boot U-boot as BL33 case. The boot flow > > is ATF -> OPTEE -> U-boot. > > Could you add a README explaining how to use / test it? Hi Ota

Re: [U-Boot] [PATCH v2 0/6] pico-imx7d: Add support for BL33 case

2019-04-03 Thread Jun Nie
Hi Otavio, And for the file name pico-imx7d_bl33_defconfig, pico-pi-imx7d_bl33_defconfig should be better in my later thought. Because a concrete device tree source file should be specified in defconfig file, so that public key can be stored in u-boot FDT blob for kernel/initramfs FIT signature ve

Re: [U-Boot] [PATCH v2 0/6] pico-imx7d: Add support for BL33 case

2019-04-09 Thread Jun Nie
Otavio Salvador 于2019年4月4日周四 下午8:40写道: > > On Wed, Apr 3, 2019 at 9:00 AM Jun Nie wrote: > > And for the file name pico-imx7d_bl33_defconfig, > > pico-pi-imx7d_bl33_defconfig should be better in my later thought. > > Because a concrete device tree source file should be sp

[U-Boot] [PATCH v4 0/8] pico-imx7d: Add support for BL33 case

2019-05-07 Thread Jun Nie
ve DCD file. - Add a patch to fix uart clock root ID. - Change file name from pico-pi-imx7d_bl33_defconfig to pico-imx7d_bl33_defconfig Jun Nie (8): mx7_common: Share configs to skip low level init imx: mx7: Skip secure init in arch_cpu_init pico-imx7d: Correct uart clock root pico-imx7d: R

[U-Boot] [PATCH v4 1/8] mx7_common: Share configs to skip low level init

2019-05-07 Thread Jun Nie
whether to skip it. Signed-off-by: Jun Nie --- include/configs/mx7_common.h | 11 +++ include/configs/warp7.h | 11 --- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/include/configs/mx7_common.h b/include/configs/mx7_common.h index cc7e872..57fbec7 100644

[U-Boot] [PATCH v4 4/8] pico-imx7d: Reserve region of memory to OPTEE

2019-05-07 Thread Jun Nie
-by: Jun Nie Reviewed-by: Peng Fan --- board/technexion/pico-imx7d/pico-imx7d.c | 5 + 1 file changed, 5 insertions(+) diff --git a/board/technexion/pico-imx7d/pico-imx7d.c b/board/technexion/pico-imx7d/pico-imx7d.c index e63b19d..5b357f2 100644 --- a/board/technexion/pico-imx7d/pico-imx7d.c

  1   2   >