[U-Boot] [PATCH 4/4] rockchip: dts: rk3399-puma: select DRAM timing via Kconfig

2017-05-31 Thread Philipp Tomsich
). To simplify our test automation (without the need to maintain 3 different defconfigs) and customer evaluation, we make this selectable via Kconfig. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- arch/arm/dts/rk3399-puma.dts| 8 +++

[U-Boot] [PATCH 2/4] rockchip: arm64: rk3399: support DDR3-1866 (i.e. 933MHz clock)

2017-05-31 Thread Philipp Tomsich
The RK3399 is capable of driving DDR3 at 933MHz (i.e. DDR3-1866), if the PCB layout permits and appropriate memory timings are used. This changes the sanity checks to allow a DTS to request DDR3-1866 operation. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com>

[U-Boot] [PATCH 1/4] rockchip: dts: rk3399-puma: make the debug serial dm-pre-reloc

2017-05-31 Thread Philipp Tomsich
Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- arch/arm/dts/rk3399-puma.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/rk3399-puma.dts b/arch/arm/dts/rk3399-puma.dts index a234db8..5d9dfb5 100644 --- a/arch/arm/dts/rk3399-puma.dts +++ b/ar

[U-Boot] [PATCH 2/6] rockchip: defconfig: puma-rk3399: update defconfig with video-support

2017-05-31 Thread Philipp Tomsich
+CONFIG_DISPLAY=y +CONFIG_VIDEO_ROCKCHIP=y +CONFIG_DISPLAY_ROCKCHIP_HDMI=y 3. turns on the 'dcache'-command (for a dcache flush) for our QA to fill the framebuffer using 'mw.l' +CONFIG_CMD_CACHE=y 4. turns on the 'bmp'-command +CONFIG_CMD_BMP=y Signed-off-by: Philipp

[U-Boot] [PATCH 1/6] rockchip: defconfig: puma-rk3399: enable RK808 support

2017-05-31 Thread Philipp Tomsich
On the RK3399-Q7, we need PMIC support (for the RK808) to enable HDMI output, as one of the required powerrails is not enabled on boot. For this, we need to enable the RK808 driver. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Version-changes: 3 - With the

[U-Boot] [PATCH 0/4] rockchip: dts: rk3399-puma: update DTS

2017-05-31 Thread Philipp Tomsich
For the RK3399-Q7, there's been a number of changes to the DTS from the ongoing Linux development and from recently enabled functionality within U-Boot. Klaus Goger (1): rockchip: dts: rk3399-puma: set spl-payload-offset Philipp Tomsich (3): rockchip: dts: rk3399-puma: make the debug

[U-Boot] [PATCH v4 4/9] rockchip: video: rk3399: enable HDMI output (from the rk_vop) for the RK3399

2017-05-31 Thread Philipp Tomsich
This commit adds a driver for the RK3399 VOPs capable and all the necessary plumbing to feed the HDMI encoder. For the VOP-big, this correctly tracks the ability to feed 10bit RGB data to the encoder. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- Changes

[U-Boot] [PATCH v4 0/9] rockchip: video: rk3399: enable HDMI output

2017-05-31 Thread Philipp Tomsich
, but missing from the patch-prep branch) - updated SJG's comment (with a TODO for the RK3288) to reflect the new code structure Philipp Tomsich (9): rockchip: video: Kconfig: reformat help for VIDEO_ROCKCHIP rockchip: video: Kconfig: set MAX_XRES and MAX_YRES via Kconfig rockchip: vi

[U-Boot] [PATCH v4 8/9] rockchip: dts: rk3399: enable HDMI output in the DTS

2017-05-31 Thread Philipp Tomsich
This commit enables HDMI output in the DTS by adding the necessary nodes to vopl/vopb and by adding the HDMI node. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/dts/rk3399.dts

[U-Boot] [PATCH v4 7/9] rockchip: video: rk3399: add HDMI TX support on the RK3399

2017-05-31 Thread Philipp Tomsich
simply use lists of regulator names (also via driverdata) that we probe. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- Changes in v4: - splits the large change into smaller changes Changes in v3: - split into separate drivers for the SOC-specific portion of the

[U-Boot] [PATCH 1/2] rockchip: video: document externally visible functions for rk_hdmi

2017-06-02 Thread Philipp Tomsich
Documents the externally visible functions shared between the HDMI drivers for the RK3288 and RK3399. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- drivers/video/rockchip/rk_hdmi.h | 44 1 file changed, 44 insertions(+)

[U-Boot] [PATCH 2/2] rockchip: video: document externally visible functions for rk_vop

2017-06-02 Thread Philipp Tomsich
Documents the externally visible functions shared between the VOP drivers for the RK3288 and RK3399. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- drivers/video/rockchip/rk_vop.h | 34 ++ 1 file changed, 34 insertions(+) diff

[U-Boot] [PATCH] rockchip: defconfig: puma-rk3399: enable SPL_BOARD_INIT

2017-06-07 Thread Philipp Tomsich
For the RK3399-Q7, we need spl_board_init to be called during SPL startup to set up the pinmux for the debug UART. Enable SPL_BOARD_INIT via defconfig to ensure this function is in fact called. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- config

[U-Boot] [PATCH 3/7] rockchip: xhci: dm: convert fdt_get to dev_read

2017-06-07 Thread Philipp Tomsich
With the new dev_read functions available, we can convert the rockchip architecture-specific drivers and common drivers used by these devices over to the dev_read family of calls. This change covers the USB3 (xhci) driver for the Rockchip devices. Signed-off-by: Philipp Tomsich <philipp.t

[U-Boot] [PATCH 4/7] rockchip: mmc: dm: convert fdt_get to dev_read

2017-06-07 Thread Philipp Tomsich
With the new dev_read functions available, we can convert the rockchip architecture-specific drivers and common drivers used by these devices over to the dev_read family of calls. This covers the dw_mmc and sdhci wrapper drivers for Rockchip. Signed-off-by: Philipp Tomsich <philipp.t

[U-Boot] [PATCH 2/7] rockchip: spi: dm: convert fdt_get to dev_read

2017-06-07 Thread Philipp Tomsich
With the new dev_read functions available, we can convert the rockchip architecture-specific drivers and common drivers used by these devices over to the dev_read family of calls. This change covers the rk_spi.c (SPI driver) used in Rockchip devices. Signed-off-by: Philipp Tomsich <philipp.t

[U-Boot] [PATCH 6/7] rockchip: ns16550: dm: convert fdt_get to dev_read

2017-06-07 Thread Philipp Tomsich
With the new dev_read functions available, we can convert the rockchip architecture-specific drivers and common drivers used by these devices over to the dev_read family of calls. This covers the serial driver (ns16550 and compatible) used for the Rockchip devices. Signed-off-by: Philipp Tomsich

[U-Boot] [PATCH 5/7] rockchip: net: dm: convert fdt_get to dev_read

2017-06-07 Thread Philipp Tomsich
-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- drivers/net/designware.c| 7 +++ drivers/net/gmac_rockchip.c | 10 -- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/drivers/net/designware.c b/drivers/net/designware.c index e8569e6..521e4dd

[U-Boot] [PATCH 1/7] rockchip: pinctrl: dm: convert fdt_get to dev_read

2017-06-07 Thread Philipp Tomsich
With the new dev_read functions available, we can convert the rockchip architecture-specific drivers and common drivers used by these devices over to the dev_read family of calls. This change covers the pinctrl drivers for the Rockchip devices. Signed-off-by: Philipp Tomsich <philipp.t

[U-Boot] [PATCH 0/7] rockchip: convert fdt_get to dev_read

2017-06-07 Thread Philipp Tomsich
subarchitecture. To make regression testing easier, these are individual commits (across driver subsystems) instead of a single, large change bunched together. Feel free to flatten these into a single commit as they are merged upstream. Philipp Tomsich (7): rockchip: pinctrl: dm: convert fdt_get

[U-Boot] [PATCH 7/7] rockchip: dm: convert fdt_get to dev_read

2017-06-07 Thread Philipp Tomsich
of the tuning/setup/timing parameters from the device-tree. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- arch/arm/mach-rockchip/rk3188/sdram_rk3188.c | 20 +--- arch/arm/mach-rockchip/rk3288/sdram_rk3288.c | 20 +--- arch/arm/mach-ro

[U-Boot] [PATCH] rockchip: video: rk_vop: add grf field

2017-06-07 Thread Philipp Tomsich
The last set of rebases had dropped the 'grf' field from the common rk_vop. Add this back to un-break the build (and driver). Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- drivers/video/rockchip/rk_vop.h | 1 + 1 file changed, 1 insertion(+) diff --git a/d

[U-Boot] [PATCH 2/2] rockchip: defconfig: puma-rk3399: update defconfig with video-support

2017-06-06 Thread Philipp Tomsich
+CONFIG_DISPLAY=y +CONFIG_VIDEO_ROCKCHIP=y +CONFIG_DISPLAY_ROCKCHIP_HDMI=y 3. turns on the 'dcache'-command (for a dcache flush) for our QA to fill the framebuffer using 'mw.l' +CONFIG_CMD_CACHE=y 4. turns on the 'bmp'-command +CONFIG_CMD_BMP=y Signed-off-by: Philipp

[U-Boot] [PATCH 0/2] Enable video in the rk3399-puma defconfig (includes rk_hdmi.c fix for compile warning)

2017-06-06 Thread Philipp Tomsich
definition warnings Changes in v2: - enable CMD_BMP in the puma-rk3399_defconfig (following a rebase to the upstream master after CMD_BMP was migrate to Kconfig) Philipp Tomsich (2): rockchip: video: rk_hdmi: fix implicit definition warnings rockchip: defconfig: puma-rk3399: update defconfig

[U-Boot] [PATCH 1/2] rockchip: video: rk_hdmi: fix implicit definition warnings

2017-06-06 Thread Philipp Tomsich
t;soc_con6, 1 << 4, ^~~~ This change fixes this by including in rk_hdmi.c. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- Changes in v3: - adds an include-directive to the (pre-RK3399 enabled) rk_hdmi to fix implicit definition warnings Changes in v2:

[U-Boot] [PATCH v2 6/7] rockchip: dts: rk3399: enable HDMI output in the DTS

2017-06-06 Thread Philipp Tomsich
This commit enables HDMI output in the DTS by adding the necessary nodes to vopl/vopb and by adding the HDMI node. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Simon Glass <s...@chromium.org> --- Changes in v2: - cherry-picked the DTS c

[U-Boot] [PATCH v2 7/7] rockchip: dts: rk3399-puma: sync DTS with Linux tree

2017-06-06 Thread Philipp Tomsich
The Linux DTS for the RK3399-Q7 has moved with the times... resync against it to ensure a consistent configuration. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Simon Glass <s...@chromium.org> --- Changes in v2: None arch/arm/dts/rk3399-pu

[U-Boot] [PATCH v2 4/7] usb: dwc2-otg: make regs_otg (in platdata) a uintptr_t

2017-06-06 Thread Philipp Tomsich
ted warning). Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- Changes in v2: - (new patch) fix a int-to-pointer cast warning for regs_otg in dwc2-otg to fix a buildman failure for u-boot-rockchip/master@2b19b2f include/usb/dwc2_udc.h | 2 +- 1 file changed, 1

[U-Boot] [PATCH v2 3/7] rockchip: rk3328: don't implement usb_gadget_handle_interrupts twice

2017-06-06 Thread Philipp Tomsich
`usb_gadget_handle_interrupts': build/../drivers/usb/gadget/dwc2_udc_otg.c:850: multiple definition of `usb_gadget_handle_interrupts' board/rockchip/evb_rk3328/built-in.o:build/../board/rockchip/evb_rk3328/evb-rk3328.c:37: first defined here make[1]: *** [u-boot] Error 1 Signed-off-by: Philipp Tomsich

[U-Boot] [PATCH v2 5/7] usb: dwc2-otg: fix warnings for ep->dma_buf for LP64 builds

2017-06-06 Thread Philipp Tomsich
e) to 32bits Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- Changes in v2: - (new patch) fix warnings and add some robustness for the truncation of ep->dma_buf in dwc2-otg for LP64 builds to fix a buildman failure for u-boot-rockchip/master@2b19b2f

[U-Boot] [PATCH v2 0/7] rockchip: dts: rk3399-puma: update DTS

2017-06-06 Thread Philipp Tomsich
warnings and add some robustness for the truncation of ep->dma_buf in dwc2-otg for LP64 builds to fix a buildman failure for u-boot-rockchip/master@2b19b2f - cherry-picked the DTS change adding the hdmi node for the rk3399.dtsi from the RK3399 HDMI enabledment series (already applied there) Phil

Re: [U-Boot] [U-Boot, 1/7] rockchip: mkimage: add support for rk322x soc

2017-06-12 Thread Philipp Tomsich
quot;rk322x", "RK32", 0x8000 - 0x1000, false, false }, { "rk3288", "RK32", 0x8000, false, false }, { "rk3328", "RK32", 0x8000 - 0x1000, false, false }, { "rk3399", "RK33", 0x2, false, true }, Reviewed-by: Phil

Re: [U-Boot] rkcommon.c: Remove unused rkcommon_spi_to_offset

2017-06-12 Thread Philipp Tomsich
On Thu, 8 Jun 2017, Tom Rini wrote: This function is unused, remove. Reported by clang-3.8. Fixes: a1c29d4b43dc ("rockchip: mkimage: set init_boot_size to avoid ...") Cc: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Signed-off-by: Tom Rini <tr...@kons

Re: [U-Boot] [U-Boot,2/7] rockchip: rk322x: add clock driver

2017-06-12 Thread Philipp Tomsich
0; +} + +static int rk322x_clk_probe(struct udevice *dev) +{ + struct rk322x_clk_priv *priv = dev_get_priv(dev); + + rkclk_init(priv->cru); + + return 0; +} + +static int rk322x_clk_bind(struct udevice *dev) +{ + int ret; + + /* The reset drive

Re: [U-Boot] rockchip: clk: rk3036: correct setting for pll integer mode

2017-06-12 Thread Philipp Tomsich
rk_setreg(>con1, 1 << PLL_DSMPD_SHIFT); rk_clrsetreg(>con0, PLL_POSTDIV1_MASK << PLL_POSTDIV1_SHIFT | PLL_FBDIV_MASK, Reviewed-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [PATCH] rockchip: video: fix taking the VOP device out of standby

2017-06-09 Thread Philipp Tomsich
The VOP uses regular registers, so use setbits_le32/clrbits_le32 instead of rk_setbits/rk_clrbits. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- drivers/video/rockchip/rk3288_vop.c | 2 +- drivers/video/rockchip/rk_vop.c | 2 +- 2 files changed, 2 inse

[U-Boot] [PATCH v3 0/4] rockchip: Add a read-only efuse driver for the RK3399 (and derive serial# from fuses on the RK3399-Q7)

2017-05-05 Thread Philipp Tomsich
: puma_rk3399: derive ethaddr from cpuid Philipp Tomsich (3): rockchip: efuse: add (misc) driver for RK3399 non-secure efuse block rockchip: board: puma_rk3399: add support for serial# and cpuid# via efuses rockchip: defconfig: puma-rk3399: enable RK3399 efuse driver board/theobroma-systems

[U-Boot] [PATCH v3 1/4] rockchip: efuse: add (misc) driver for RK3399 non-secure efuse block

2017-05-05 Thread Philipp Tomsich
assumptions regarding the size of the fuse-box based on the RK3399. The hope is that the function is adjusted to reflect any changes resulting from generalising the driver for multiple SoCs and is then renamed. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.

[U-Boot] [PATCH v3 3/4] rockchip: board: puma_rk3399: derive ethaddr from cpuid

2017-05-05 Thread Philipp Tomsich
erated and set if there is no ethaddr present in the saved environment. Signed-off-by: Klaus Goger <klaus.go...@theobroma-systems.com> Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Simon Glass <s...@chromium.org> --- Changes in v3: - uses ucl

[U-Boot] [PATCH v3 2/4] rockchip: board: puma_rk3399: add support for serial# and cpuid# via efuses

2017-05-05 Thread Philipp Tomsich
# - the serial number, as derived in Linux cpuid# - the raw 16 byte CPU id field from the fuse block Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- Changes in v3: None Changes in v2: None board/theobroma-systems/puma_rk3399/puma-rk3399.

[U-Boot] [PATCH] rockchip: board: puma_rk3399: build FIT image via u-boot.itb

2017-05-05 Thread Philipp Tomsich
Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- board/theobroma-systems/puma_rk3399/README | 5 ++--- configs/puma-rk3399_defconfig | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/board/theobroma-systems/puma_rk3399/README b

[U-Boot] [PATCH v3 4/4] rockchip: defconfig: puma-rk3399: enable RK3399 efuse driver

2017-05-05 Thread Philipp Tomsich
With everything in place (i.e. the new efuse driver, the clk-support for the non-secure efuse block, and the board-specific functions to derive 'serial#' from the cpu-id within the efuses), enable this in the RK3399-Q7 defconfig. Signed-off-by: Philipp Tomsich <philipp.toms...@theobr

[U-Boot] [PATCH] power: rk8xx: fix auto-allocation of priv

2017-05-05 Thread Philipp Tomsich
by setting the .priv_auto_alloc_size-field in the driver structure. X-AffectedPlatforms: RK3399-Q7 Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- drivers/power/pmic/rk8xx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/power/pmic/rk8xx.c b/drivers/powe

[U-Boot] [PATCH v3 2/8] rockchip: video: rk3399: enable HDMI output (from the rk_vop) for the RK3399

2017-05-05 Thread Philipp Tomsich
whether a VOP can output 10BIT data or not (i.e. RGBaaa vs. RGB888) using the driverdata structure And as we touch this file anyway, we also increase the size of the framebuffer to a slightly overzealous 4K2K@32bpp. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- C

[U-Boot] [PATCH v3 1/8] rockchip: video: introduce CONFIG_DW_HDMI and select for Rockchip HDMI

2017-05-05 Thread Philipp Tomsich
driver's configuration option) that enables dw_hdmi.o and selects it whenever the HDMI support for Rockchip SoCs is selected. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Simon Glass <s...@chromium.org> --- Changes in v3: None Changes in v

[U-Boot] [PATCH v3 0/8] rockchip: video: rk3399: enable HDMI output

2017-05-05 Thread Philipp Tomsich
S_WHITE_ON_BLACK via defconfig - enable CMD_BMP in the puma-rk3399_defconfig (following a rebase to the upstream master after CMD_BMP was migrate to Kconfig) Philipp Tomsich (8): rockchip: video: introduce CONFIG_DW_HDMI and select for Rockchip HDMI rockchip: video: rk3399: enable HDMI out

[U-Boot] [PATCH v3 6/8] rockchip: board: puma_rk3399: enable BMP_16BPP, BMP_24BPP and BMP_32BPP

2017-05-05 Thread Philipp Tomsich
With video output support for the RK3399-Q7 (Puma) available, we want CMD_BMP enabled and the support for 16bit, 24bit and 32bit BMPs defined. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- Changes in v3: None Changes in v2: - enable SYS_WHITE_ON_BLACK via def

[U-Boot] [PATCH v3 4/8] rockchip: dts: rk3399: enable HDMI output in the DTS

2017-05-05 Thread Philipp Tomsich
This commit enables HDMI output in the DTS by adding the necessary nodes to vopl/vopb and by adding the HDMI node. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- Changes in v3: - enable both hdmi and vopb (as both VOPs are now disabled by default) Changes

[U-Boot] [PATCH v3 5/8] video: bmp: rename CONFIG_BMP_24BMP to CONFIG_BMP_24BPP

2017-05-05 Thread Philipp Tomsich
Due to a typo, the 24 bit-per-pixel configuration ends in 24BMP instead of 24BPP. This change renames it throughout the source tree for consistency and to make moving these options into Kconfig easier and less error-prone. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.

[U-Boot] [PATCH v3 7/8] rockchip: defconfig: puma-rk3399: enable RK808 support

2017-05-05 Thread Philipp Tomsich
Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- Changes in v3: - enable RK8XX support instead to RK808 support (rebased to sjg/next) Changes in v2: None configs/puma-rk3399_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config

[U-Boot] [PATCH v3 3/8] rockchip: video: rk3399: add HDMI TX support on the RK3399

2017-05-05 Thread Philipp Tomsich
of regulator names (also via driverdata) that we probe. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- Changes in v3: - split into separate drivers for the SOC-specific portion of the driver - rebase to sjg/next Changes in v2: - removed DEBUG from the patch (as wa

[U-Boot] [PATCH v3 8/8] rockchip: defconfig: puma-rk3399: update defconfig with video-support

2017-05-05 Thread Philipp Tomsich
+CONFIG_DISPLAY=y +CONFIG_VIDEO_ROCKCHIP=y +CONFIG_DISPLAY_ROCKCHIP_HDMI=y 3. turns on the 'dcache'-command (for a dcache flush) for our QA to fill the framebuffer using 'mw.l' +CONFIG_CMD_CACHE=y 4. turns on the 'bmp'-command +CONFIG_CMD_BMP=y Signed-off-by: Philipp

[U-Boot] [PATCH v4 2/9] rockchip: video: Kconfig: set MAX_XRES and MAX_YRES via Kconfig

2017-05-31 Thread Philipp Tomsich
. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- Changes in v4: - added to break down into smaller changes Changes in v3: None Changes in v2: None drivers/video/rockchip/Kconfig | 18 ++ drivers/video/rockchip/rk_vop.c | 3 ++- 2 files chang

[U-Boot] [PATCH 1/4] rockchip: arm64: rk3399: revise timeout-handling for DRAM PHY lock

2017-05-31 Thread Philipp Tomsich
Revise the loop watching for a timeout on obtaining a DRAM PHY lock to clearly state a timeout in milliseconds and use get_timer (based on the ARMv8 architected timer) to detect a timeout. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- arch/arm/mach-rockchip/

[U-Boot] [PATCH 5/6] rockchip: defconfig: puma-rk3399: do not filter clock-names for SPL

2017-05-31 Thread Philipp Tomsich
for the configuration of the SPL stage. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- Changes in v2: None configs/puma-rk3399_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/puma-rk3399_defconfig b/configs/puma-rk3399_def

[U-Boot] [PATCH 3/6] rockchip: defconfig: puma-rk3399: enable CONFIG_PHY_MICREL_KSZ9031

2017-05-31 Thread Philipp Tomsich
The RK3399-Q7 has a KSZ9031 GbE PHY. Enable support for it in defconfig. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- Changes in v2: None configs/puma-rk3399_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/puma-rk3399_defconfig b/config

[U-Boot] [PATCH 4/6] rockchip: defconfig: puma-rk3399: enable I2C

2017-05-31 Thread Philipp Tomsich
The RK3399-Q7 exposes I2C on its edge connector and uses it as one of the interfaces towards the on-module STM32 (for the emulated RTC and fan-controller). Enable I2C and CMD_I2C support in the defconfig. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- Changes

[U-Boot] [PATCH 6/6] rockchip: defconfig: puma-rk3399: CONFIG_SPL_FIT no longer exists

2017-05-31 Thread Philipp Tomsich
With the merging of Andre's SPL_FIT support, the CONFIG_SPL_FIT option is no longer required for the RK3399-Q7. Remove it from the defconfig. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- Changes in v2: None configs/puma-rk3399_defconfig | 1 - 1 file chan

[U-Boot] [PATCH v2 1/7] rockchip: clk: rv1108: rename dev_get_addr

2017-06-06 Thread Philipp Tomsich
] priv->cru = (struct rv1108_cru *)dev_get_addr(dev); This change tracks the dev_get_addr rename, which didn't make it into the rv1108 clk driver. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- Changes in v2: - (new patch) rename dev_get_addr in the RV1108 c

[U-Boot] [PATCH v2 2/7] rockchip: pinctrl: rv1108: access of-offset via dev_of_offset(...)

2017-06-06 Thread Philipp Tomsich
system. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- Changes in v2: - (new patch) access of-offset of periph via dev_of_offset in the RV1108 pinctrl driver to fix a buildman failure for u-boot-rockchip/master@2b19b2f drivers/pinctrl/rockchip/pinctrl_rv1108.c |

[U-Boot] [PATCH v2 1/3] rockchip: dts: rk3399-puma: refactor and rename (default) DDR3-1600 DTS

2017-06-06 Thread Philipp Tomsich
of the DRAM timings - adds a new rk3399-puma-ddr1600.dts, which includes the (new) common board DTSI and the DDR3-1600 timing DTSI - wires this up from arch/arm/dts/Makefile and configs/puma-rk3399_defconfig Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- C

[U-Boot] [PATCH v2 0/3] rockchip: dts: rk3399-puma: add support for all three DDR3 speed-grades (1333/1600/1866) on the RK3399-Q7

2017-06-06 Thread Philipp Tomsich
timing (replacing the #ifdef implementation) - added rk3399-puma-ddr1866 DTS file for the DDR3-1866 implementation (replacing the #ifdef implementation) Philipp Tomsich (3): rockchip: dts: rk3399-puma: refactor and rename (default) DDR3-1600 DTS rockchip: dts: rk3399-puma: add DTS

[U-Boot] [PATCH v2 3/3] rockchip: dts: rk3399-puma: add DTS for the DDR3-1866 timing

2017-06-06 Thread Philipp Tomsich
This adds the DDR3-1866 timing via its own DTS and wires it up. This (currently) is not the default timing for the RK3399-Q7 and should be selected explicitly via the config (CONFIG_DEFAULT_DEVICE_TREE). Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- Changes

[U-Boot] [PATCH v2 2/3] rockchip: dts: rk3399-puma: add DTS for the DDR3-1333 timing

2017-06-06 Thread Philipp Tomsich
This adds the DDR3-1333 timing via its own DTS and wires it up. This is not the default timing for the RK3399-Q7 and should be selected explicitly via the config (CONFIG_DEFAULT_DEVICE_TREE). Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- Changes in v2: -

[U-Boot] [PATCH 2/3] rockchip: back-to-bootrom: replace assembly-implementation with C-code

2017-09-15 Thread Philipp Tomsich
) and removes the older assembly-only implementation. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- arch/arm/include/asm/arch-rockchip/bootrom.h | 27 --- arch/arm/mach-rockchip/Makefile | 4 +- arch/arm/mach-rockchip/bootrom.c

[U-Boot] [PATCH 0/3] rockchip: back-to-bootrom: replace assembly-implementation with C-code

2017-09-15 Thread Philipp Tomsich
, but not for AArch64. Philipp Tomsich (3): arm: make save_boot_params_ret prototype visible for AArch64 rockchip: back-to-bootrom: replace assembly-implementation with C-code rockchip: back-to-bootrom: allow passing a cmd to the bootrom arch/arm/include/asm/arch-rockchip/bootrom.h | 30

[U-Boot] [PATCH 3/3] rockchip: back-to-bootrom: allow passing a cmd to the bootrom

2017-09-15 Thread Philipp Tomsich
are adjusted to match the changed function signature. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- arch/arm/include/asm/arch-rockchip/bootrom.h | 5 - arch/arm/mach-rockchip/bootrom.c | 4 ++-- arch/arm/mach-rockchip/rk3036-board-spl.c| 2 +-

[U-Boot] [PATCH 1/3] arm: make save_boot_params_ret prototype visible for AArch64

2017-09-15 Thread Philipp Tomsich
it. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- arch/arm/include/asm/system.h | 62 +-- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/arch/arm/include/asm/system.h b/arch/arm/include/asm/system.h index 7

[U-Boot] [PATCH] rockchip: board: lion-rk3368: avoid ATF overwriting active SPL stage

2017-09-15 Thread Philipp Tomsich
The RK3368-uQ7 ATF has been moved back to 0x10 (1MB from the start of DRAM) to avoid it overwriting the active SPL stage during FIT image loading. This change adapts the .its to match up (again) with our ATF repository for the RK3368-uQ7. Signed-off-by: Philipp Tomsich <philipp.t

[U-Boot] [PATCH 04/15] spl: fit: simplify logic for FDT loading for non-OS boots

2017-09-13 Thread Philipp Tomsich
(if the 'firmware' is an ATF, an OPTEE, or some other image-type and U-Boot is listed in the loadabled). To achieve this goal, we drop the os_boot flag and track the type of image loaded. If it is of type IH_OS_U_BOOT, we append the FDT. Signed-off-by: Philipp Tomsich <philipp.toms...@theobr

[U-Boot] [PATCH 02/15] spl: add a fdt_addr field to spl_image_info

2017-09-13 Thread Philipp Tomsich
When loading a full U-Boot with detached device-tree using the SPL FIT backend, we should store the address of the FDT loaded as part of the SPL image info: this allows us to fixup the FDT with additional info we may want to propagate onward. Signed-off-by: Philipp Tomsich <philipp.t

[U-Boot] [PATCH 14/15] rockchip: defconfig: puma-rk3399: sync up with SPL changes for ATF

2017-09-13 Thread Philipp Tomsich
ned-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- configs/puma-rk3399_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/puma-rk3399_defconfig b/configs/puma-rk3399_defconfig index 62a8d7c..2d08c4e 100644 --- a/configs/puma-rk3399_defconfig +++ b/con

[U-Boot] [PATCH 15/15] rockchip: defconfig: lion-rk3368: sync up with SPL changes for ATF

2017-09-13 Thread Philipp Tomsich
This tracks the SPL changes for ATF for the RK3368-uQ7: * renames ATF_SUPPORT to ATF * drops CONFIG_SPL_ATF_TEXT_BASE (now dynamically retrieved from the .itb file) Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- configs/lion-rk3368_defconfig | 3 +--

[U-Boot] [PATCH 07/15] spl: atf: introduce spl_invoke_atf and make bl31_entry private

2017-09-13 Thread Philipp Tomsich
for the ARM Trusted Firmware to dispatch into the spl_invoke_atf function only if a IH_OS_ARM_TRUSTED_FIRMWARE image is loaded. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- common/spl/spl.c | 11 +++ common/spl/spl_atf.

[U-Boot] [PATCH 01/15] image: add IH_OS_ARM_TRUSTED_FIRMWARE for ARM Trusted Firmware

2017-09-13 Thread Philipp Tomsich
the necessary definitions. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- common/image.c | 1 + include/image.h | 1 + 2 files changed, 2 insertions(+) diff --git a/common/image.c b/common/image.c index 332b5f2..be91be2 100644 --- a/common/image.c +++ b/common/i

[U-Boot] [PATCH 06/15] spl: fit: implement recording of loadables into /fit-images

2017-09-13 Thread Philipp Tomsich
firmware that may overlap the SPL stage). Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- common/spl/spl_fit.c | 95 1 file changed, 81 insertions(+), 14 deletions(-) diff --git a/common/spl/spl_fit.c b/comm

[U-Boot] [PATCH 12/15] rockchip: board: puma-rk3399: update .its file to use new features

2017-09-13 Thread Philipp Tomsich
to use an available area of DRAM as the load-address. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- board/theobroma-systems/puma_rk3399/fit_spl_atf.its | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/board/theobroma-systems/puma_

[U-Boot] [PATCH 10/15] rockchip: dts: rk3399-puma: add /config/arm-trusted-firmware, reset-gpio property

2017-09-13 Thread Philipp Tomsich
). Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- arch/arm/dts/rk3399-puma.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/rk3399-puma.dtsi b/arch/arm/dts/rk3399-puma.dtsi index d33c710..70d551b 100644 --- a/arch/arm/dts/rk3399-puma.dtsi +++

[U-Boot] [PATCH 08/15] spl: rename config item SPL_ATF_SUPPORT to SPL_ATF

2017-09-13 Thread Philipp Tomsich
Having CONFIG_SPL_ATF seems more natural. Rename it, while it it is easy and there's few boards that use it (only RK3399 and RK3368 boards). Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- common/spl/Kconfig | 2 +- common/spl/Makefile | 2 +- 2 files chan

[U-Boot] [PATCH 05/15] spl: fit: implement fdt_record_loadable

2017-09-13 Thread Philipp Tomsich
: if a FDT is loaded for one of the next stages, it can be used to convey the status and location of loadables. This adds a fdt_record_loadable() function that can be invoked to record the status of each loadable below the /fit-images path. Signed-off-by: Philipp Tomsich <philipp.toms...@theobr

[U-Boot] [PATCH 03/15] spl: change load_addr and entry_point to uintptr_t

2017-09-13 Thread Philipp Tomsich
Mainly a stylistic change: convert the load_addr and entry_point fields of struct spl_image_info to uintptr_t (from ulong). Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- include/spl.h | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff

[U-Boot] [PATCH 09/15] spl: atf: drop the SPL_ATF_TEXT_BASE configuration item

2017-09-13 Thread Philipp Tomsich
The SPL_ATF_TEXT_BASE configuration item has become obsolete. Remove it from Kconfig. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- common/spl/Kconfig | 6 -- 1 file changed, 6 deletions(-) diff --git a/common/spl/Kconfig b/common/spl/Kconfig index b

[U-Boot] [PATCH v2 3/5] rockchip: back-to-bootrom: rk3188: chain from SPL via TPL to the BROM

2017-09-18 Thread Philipp Tomsich
TPL should expect the SPL to return control and then further return to the actual bootrom by performing another back-to-bootrom transition. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- Changes in v2: - [added in v2] chain back_to_bootrom calls for SPL, first

[U-Boot] [PATCH v2 2/5] rockchip: back-to-bootrom: replace assembly-implementation with C-code

2017-09-18 Thread Philipp Tomsich
) and removes the older assembly-only implementation. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- Changes in v2: None arch/arm/include/asm/arch-rockchip/bootrom.h | 27 --- arch/arm/mach-rockchip/Makefile | 4 +- arch/arm/mach-rockchip/boo

[U-Boot] [PATCH v2 1/5] arm: make save_boot_params_ret prototype visible for AArch64

2017-09-18 Thread Philipp Tomsich
it. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- Changes in v2: None arch/arm/include/asm/system.h | 62 +-- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/arch/arm/include/asm/system.h b/arch/arm/inclu

Re: [U-Boot] [U-Boot, 1/2] rockchip: sdhci: update reg map for of-platdata

2017-09-18 Thread Philipp Tomsich
> After Simon's patch, the dtoc can work with 64bit address, > so we need to fix reg number for it. > Depend on Simon's patch set: > https://patchwork.ozlabs.org/cover/807266/ > > Signed-off-by: Kever Yang <kever.y...@rock-chips.com> > Acked-by: Philipp Tomsich

Re: [U-Boot] [U-Boot, 2/2] rockchip: ram: rk3399: update reg map for of-platdata

2017-09-18 Thread Philipp Tomsich
> After Simon's patch, the dtoc can work with 64bit address, > so we need to fix reg number for it. > Depend on Simon's patch set: > https://patchwork.ozlabs.org/cover/807266/ > > Signed-off-by: Kever Yang <kever.y...@rock-chips.com> > Reviewed-by: Philipp Tomsich

Re: [U-Boot] [U-Boot, RFC, 2/4] rockchip: timer: update for 32/64bit-aware OF_PLATDATA

2017-09-18 Thread Philipp Tomsich
> With dtoc emitting fdt64_t for addresses (and region sizes), the array > indices for accessing the reg[] array needs to be adjusted. This > adjusts the Rockchip DM timer driver to correctly handle OF_PLATDATA > given this new structure layout. > > Signed-off-by: Philipp Tom

Re: [U-Boot] rockchip: puma_rk3399: increase serialno_str size

2017-09-18 Thread Philipp Tomsich
> Increase serialno_str to 17 bytes so it can hold the 16 bytes long serial > nummer and the terminating null byte added by snprintf. > > Signed-off-by: Klaus Goger <klaus.go...@theobroma-systems.com> > Acked-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com

Re: [U-Boot] [U-Boot, 2/2] rockchip: ram: rk3399: update reg map for of-platdata

2017-09-18 Thread Philipp Tomsich
> After Simon's patch, the dtoc can work with 64bit address, > so we need to fix reg number for it. > Depend on Simon's patch set: > https://patchwork.ozlabs.org/cover/807266/ > > Signed-off-by: Kever Yang <kever.y...@rock-chips.com> > Reviewed-by: Philipp Tomsich

[U-Boot] [PATCH v2 4/5] rockchip: back-to-bootrom: allow passing a cmd to the bootrom

2017-09-18 Thread Philipp Tomsich
are adjusted to match the changed function signature. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- Changes in v2: - adapt the RK3188 spl support file (that I had originally missed) arch/arm/include/asm/arch-rockchip/bootrom.h | 5 - arch/arm/mach-ro

Re: [U-Boot] [U-Boot, 4/4] rockchip: dts: rk3368: reduce the number of nodes seen in TPL

2017-09-18 Thread Philipp Tomsich
> The RK3368 TPL stage always returns to the BootROM, so it has no need > for the eMMC, SD and SPI nodes. This marks those nodes (that should > be included in SPL, but not TPL) as 'u-boot,dm-spl'. > > Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com>

Re: [U-Boot] [U-Boot, 1/2] rockchip: sdhci: update reg map for of-platdata

2017-09-18 Thread Philipp Tomsich
> After Simon's patch, the dtoc can work with 64bit address, > so we need to fix reg number for it. > Depend on Simon's patch set: > https://patchwork.ozlabs.org/cover/807266/ > > Signed-off-by: Kever Yang <kever.y...@rock-chips.com> > Acked-by: Philipp Tomsich

Re: [U-Boot] [U-Boot, RFC, 3/4] rockchip: rk3368: adjust DMC driver for 32/64bit-aware OF_PLATDATA

2017-09-18 Thread Philipp Tomsich
ase), we won't use regmap_init_mem_platdata here and simply > access of_plat.reg[] directly. > > Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> > Acked-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> > Reviewed-by: Simon Glass <s...@chromium.or

[U-Boot] [PATCH v2 0/5] rockchip: back-to-bootrom: replace assembly-implementation with C-code

2017-09-18 Thread Philipp Tomsich
) and further calling through to the BROM from the TPL by invoking back_to_bootrom again - adapt the RK3188 spl support file (that I had originally missed) Philipp Tomsich (5): arm: make save_boot_params_ret prototype visible for AArch64 rockchip: back-to-bootrom: replace assembly-implementation

[U-Boot] [PATCH] rockchip: pinctrl: rk3368: add pinctrl for SDMMC0

2017-09-19 Thread Philipp Tomsich
. This change implements support for setting up the SDMMC pins in pinctrl for the RK3368. Reported-by: Klaus Goger <klaus.go...@theobroma-systems.com> Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- drivers/pinctrl/rockchip/pinctrl_r

Re: [U-Boot] [U-Boot, 4/5] configs: rk3328: add support for pmic rk8xx and regulator and i2c driver

2017-09-13 Thread Philipp Tomsich
rk3328_defconfig | 6 ++ > 1 file changed, 6 insertions(+) > Reviewed-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [U-Boot, 5/8] clk: rockchip: Add rk3328 Saradc clock support

2017-09-13 Thread Philipp Tomsich
++ > 1 file changed, 37 insertions(+) > Acked-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [U-Boot, 6/8] clk: rockchip: Add rk3368 Saradc clock support

2017-09-13 Thread Philipp Tomsich
s/clk/rockchip/clk_rk3368.c | 32 > + > 2 files changed, 37 insertions(+) > Acked-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [U-Boot, 6/8] clk: rockchip: Add rk3368 Saradc clock support

2017-09-13 Thread Philipp Tomsich
On Wed, 13 Sep 2017, David Wu wrote: The clk_saradc is dividing from the 24M, clk_saradc=24MHz/(saradc_div_con+1). Saradc integer divider control register is 8-bits width. Signed-off-by: David Wu <david...@rock-chips.com> Reviewed-by: Philipp Tomsich <philipp.toms...@theobroma-sy

<    6   7   8   9   10   11   12   13   14   15   >