nabled
> (!PINTRL_FULL).
>
> Fixes: 2454b719fb87 ("rockchip: rk3288: Add pinctrl support for the...")
> Signed-off-by: Romain Perier
> Acked-by: Philipp Tomsich
> ---
> drivers/pinctrl/rockchip/pinctrl_rk3288.c | 4
> 1 file c
th a different amount of EEPROMs. To make
> this more transparent let's add an alias for the eeprom which stores the
> module variant.
>
> Signed-off-by: Wadim Egorov
> Acked-by: Philipp Tomsich
> ---
> arch/arm/dts/rk3288-phycore-som.dtsi | 8
> 1 file
> Add dwc2 node for fastboot to init dwc2 controller.
>
> Signed-off-by: Meng Dongyang
> Acked-by: Philipp Tomsich
> ---
> arch/arm/dts/rk3229-evb.dts | 4
> arch/arm/dts/rk322x.dtsi| 10 ++
> 2 files changed, 14 insertions(+)
>
R
> The rkpwm reg order has fixed by below patch:
> e3ef41d rockchip: pwm: fix the register layout for the PWM controller
>
> We need to correct the parameter order for pwm_set_config() to make
> the pwm regulator works correctly.
>
> Signed-off-by: Kever Yang
> A
> Use mask to clear old setting before direct set the new config,
> or else there it will mess up the config when it's not the same
> with default value.
> Fixs: 3851059 rockchip: Setup default PWM flags
>
> Signed-off-by: Kever Yang
> Acked-by: Philipp Tomsich
> -
> According to my test, some of firefly-rk3399 hang after dram init
> when using ddr3-1333 config, while using ddr3-1600 config works
> for all the board I have test.
>
> Signed-off-by: Kever Yang
> Acked-by: Philipp Tomsich
> ---
>
> arch/arm/dts/rk3399-firefly.d
> The DRAM start address is not 0, so need to update the last bank size
> as:
> DRAM start addr + DRAM_SIZE - last bank start addr
>
> Signed-off-by: Kever Yang
> Acked-by: Philipp Tomsich
> ---
>
> arch/arm/mach-rockchip/rk322x-board.c | 10 ++
> 1 fi
> The regulator_enable() should be called from upper layer like
> regulators_enable_boot_on(), remove it from pwm regulator driver.
>
> Signed-off-by: Kever Yang
> Acked-by: Philipp Tomsich
> ---
>
> drivers/power/regulator/pwm_regulator.c | 8 +---
> 1 file
> The dram channel info will be auto detect by the driver,
> we do not need it.
>
> Signed-off-by: Kever Yang
> Acked-by: Philipp Tomsich
> ---
>
> arch/arm/dts/rk3229-evb.dts | 1 -
> 1 file changed, 1 deletion(-)
>
ps typically.
>
> This commit adds support for handling drive-strength of 12ma, when it's
> defined in the DT.
>
> Signed-off-by: Romain Perier
> Acked-by: Philipp Tomsich
> ---
> drivers/pinctrl/rockchip/pinctrl_rk3288.c | 10 +-
> 1 file changed, 9
> Add the 'usbkbd' environment variable to the 'stdin', the contents of
> the keyboard input can be auto-displayed on the serial terminal,so
> you don't need to manually set the environment variable 'stdin'.
>
> Signed-off-by: Leo Wen
> Acked-
off-by: Kever Yang
> Acked-by: Philipp Tomsich
> ---
>
> arch/arm/dts/rk3399-firefly.dts | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
Reviewed-by: Philipp Tomsich
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot
iki/Specifications/DiscoverablePartitionsSpec/
> ARM 32bit: 69dad710-2ce4-4e3c-b16c-21a1d49abed3
> ARM 64bit: b921b045-1df0-41c3-af44-4c6f280d3fae
>
> Signed-off-by: Kever Yang
> Acked-by: Philipp Tomsich
> ---
>
> include/configs/rockchip-common.h | 8 +++-
>
> add node for sdmmc in dts and rk3229-evb.
>
> Signed-off-by: Kever Yang
> Acked-by: Philipp Tomsich
> ---
>
> arch/arm/dts/rk3229-evb.dts | 12 +
> arch/arm/dts/rk322x.dtsi| 62
> +
> 2 files changed, 74
> Add four macros of CONFIG_USB_KEYBOARD,CONFIG_DM_KEYBOARD,etc in the
> firefly-rk3288_defconfig,can support usb keyboard device when these four
> macros are enabled.
>
> Signed-off-by: Leo Wen
> Acked-by: Philipp Tomsich
> ---
> configs/firefly-rk3288_defconfig | 4 +
> Add "preboot=usb start" to ROCKCHIP_DEVICE_SETTINGS,you don't
> need to input "usb start" in command line of u-boot console,it
> can auto-start the USB device,after that usb keyboard can work.
>
> Signed-off-by: Leo Wen
> Acked-by: Philipp Tomsich
&g
(which is my guess)?
Signed-off-by: Kever Yang
Acked-by: Philipp Tomsich
---
arch/arm/dts/rk3229-evb.dts | 2 --
arch/arm/dts/rk322x.dtsi| 4 ++--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/arch/arm/dts/rk3229-evb.dts b/arch/arm/dts/rk3229-evb.dts
index 1eac37d..ae0b0a4
Kever,
On Wed, 26 Jul 2017, Kever Yang wrote:
Lets set the all the DDR region as non secure in SPL, the
trust like OPTEE should have the correct setting for it if
there is one.
Signed-off-by: Kever Yang
Acked-by: Philipp Tomsich
---
arch/arm/mach-rockchip/rk322x-board-spl.c | 3 +++
1 file
: Philipp Tomsich
---
drivers/pinctrl/rockchip/pinctrl_rk322x.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/pinctrl/rockchip/pinctrl_rk322x.c
b/drivers/pinctrl/rockchip/pinctrl_rk322x.c
index 7aaf4b5..576b037 100644
--- a/drivers/pinctrl/rockchip/pinctrl_rk322x.c
On Wed, 26 Jul 2017, Kever Yang wrote:
Use DIV_ROUND_UP instead RATE_TO_DIV for all Rockchip SoC
clock driver.
I think nobody is happier than me to see this go ;-)
However, there's a few comments below.
Signed-off-by: Kever Yang
Acked-by: Philipp Tomsich
---
drivers/clk/roc
treat this a a div-2 between the CRU and the DWMMC or capture
the fact that the SDMMC_CLKDIV of 0 does not mean 'bypass' (in which case
we should double-check that the generic designware MMC driver does not
make assumptions that do not apply to us).
Signed-off-by: Kever Yang
ff-by: Romain Perier
> Acked-by: Philipp Tomsich
> ---
> drivers/pinctrl/rockchip/pinctrl_rk3288.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
Reviewed-by: Philipp Tomsich
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot
v2:
> - add comment for the change and update the commit message
>
> arch/arm/mach-rockchip/rk322x-board-spl.c | 4
> 1 file changed, 4 insertions(+)
>
Reviewed-by: Philipp Tomsich
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot
h
> - update commit message to explain why this patch needed.
>
> arch/arm/dts/rk3229-evb.dts | 1 -
> arch/arm/dts/rk322x.dtsi| 4 ++--
> 2 files changed, 2 insertions(+), 3 deletions(-)
>
Reviewed-by: Philipp Tomsich
__
| 1 +
> drivers/clk/rockchip/clk_rk3328.c | 9 +
> drivers/clk/rockchip/clk_rk3399.c | 12
> 6 files changed, 24 insertions(+), 17 deletions(-)
>
Reviewed-by: Philipp Tomsich
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot
h
> - update commit message to explain why this patch needed.
>
> arch/arm/dts/rk3229-evb.dts | 1 -
> arch/arm/dts/rk322x.dtsi| 4 ++--
> 2 files changed, 2 insertions(+), 3 deletions(-)
>
Acked-by: Philipp Tomsich
__
ivers/clk/rockchip/clk_rv1108.c | 3 ---
> 7 files changed, 21 insertions(+), 29 deletions(-)
>
Reviewed-by: Philipp Tomsich
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot
v2:
> - add comment for the change and update the commit message
>
> arch/arm/mach-rockchip/rk322x-board-spl.c | 4
> 1 file changed, 4 insertions(+)
>
Acked-by: Philipp Tomsich
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot
ivers/clk/rockchip/clk_rv1108.c | 3 ---
> 7 files changed, 21 insertions(+), 29 deletions(-)
>
Acked-by: Philipp Tomsich
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot
| 1 +
> drivers/clk/rockchip/clk_rk3328.c | 9 +
> drivers/clk/rockchip/clk_rk3399.c | 12
> 6 files changed, 24 insertions(+), 17 deletions(-)
>
Acked-by: Philipp Tomsich
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot
> This changes the rockchip-efuse driver to use dev_read_addr instead of
> devfdt_get_addr.
>
> Signed-off-by: Philipp Tomsich
> Acked-by: Philipp Tomsich
> ---
>
> drivers/misc/rockchip-efuse.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
Appl
> We are about to reuse the rockchip timer (header file) for 64bit ARMv8
> chips, so it seems a good time to make the register sizes explicit by
> changing from 'unsigned int' to 'u32'.
>
> Signed-off-by: Philipp Tomsich
> Acked-by: Philipp Tomsich
> ---
ff-by: Romain Perier
> Acked-by: Philipp Tomsich
> Reviewed-by: Philipp Tomsich
> ---
> drivers/pinctrl/rockchip/pinctrl_rk3288.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
Applied to u-boot-rockchip, thanks!
___
nabled
> (!PINTRL_FULL).
>
> Fixes: 2454b719fb87 ("rockchip: rk3288: Add pinctrl support for the...")
> Signed-off-by: Romain Perier
> Acked-by: Philipp Tomsich
> Reviewed-by: Philipp Tomsich
> ---
> drivers/pinctrl/rockchip/pinctrl_rk3288.c | 4
> 1 f
th a different amount of EEPROMs. To make
> this more transparent let's add an alias for the eeprom which stores the
> module variant.
>
> Signed-off-by: Wadim Egorov
> Acked-by: Philipp Tomsich
> Reviewed-by: Philipp Tomsich
> ---
> arch/arm/dts/rk3288-phycore-som
> According to my test, some of firefly-rk3399 hang after dram init
> when using ddr3-1333 config, while using ddr3-1600 config works
> for all the board I have test.
>
> Signed-off-by: Kever Yang
> Acked-by: Philipp Tomsich
> Reviewed-by: Philipp Tomsich
> ---
&
off-by: Kever Yang
> Acked-by: Philipp Tomsich
> Reviewed-by: Philipp Tomsich
> ---
>
> arch/arm/dts/rk3399-firefly.dts | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
Applied to u-boot-rockchip, thanks!
___
U-Boot
> The regulator_enable() should be called from upper layer like
> regulators_enable_boot_on(), remove it from pwm regulator driver.
>
> Signed-off-by: Kever Yang
> Acked-by: Philipp Tomsich
> Reviewed-by: Philipp Tomsich
> ---
>
> drivers/power/regulator/pwm_re
> Use mask to clear old setting before direct set the new config,
> or else there it will mess up the config when it's not the same
> with default value.
> Fixs: 3851059 rockchip: Setup default PWM flags
>
> Signed-off-by: Kever Yang
> Acked-by: Philipp Tomsich
>
> The rkpwm reg order has fixed by below patch:
> e3ef41d rockchip: pwm: fix the register layout for the PWM controller
>
> We need to correct the parameter order for pwm_set_config() to make
> the pwm regulator works correctly.
>
> Signed-off-by: Kever Yang
> A
> Add dwc2 node for fastboot to init dwc2 controller.
>
> Signed-off-by: Meng Dongyang
> Acked-by: Philipp Tomsich
> Reviewed-by: Philipp Tomsich
> ---
> arch/arm/dts/rk3229-evb.dts | 4
> arch/arm/dts/rk322x.dtsi| 10 ++
> 2 files changed, 14 ins
dy Yan
> Reviewed-by: Simon Glass
> Acked-by: Philipp Tomsich
> ---
>
> Changes in v3: None
> Changes in v2: None
>
> configs/evb-rk3036_defconfig | 1 +
> configs/kylin-rk3036_defconfig | 1 +
> 2 files changed, 2 insertions(+)
>
Reviewed-by: Philipp Toms
> Add this dts to enable debug uart releated devices
> before relocation.
>
> Signed-off-by: Andy Yan
> Reviewed-by: Simon Glass
> Acked-by: Philipp Tomsich
> ---
>
> Changes in v3: None
> Changes in v2: None
>
> arch/arm/dts/rk3036-sdk-u-boot.dtsi |
> RK3036 has no enough sapce use ARCH_MEMCPY/MEMSET in spl stage
>
> Signed-off-by: Andy Yan
> Reviewed-by: Simon Glass
> Acked-by: Philipp Tomsich
> ---
>
> Changes in v3: None
> Changes in v2: None
>
> configs/evb-rk3036_defconfig | 2 ++
> config
here is no need to run DM, so disable
> SPL_DM_SERIAL.
>
> Signed-off-by: Andy Yan
> Reviewed-by: Simon Glass
> Acked-by: Philipp Tomsich
> ---
>
> Changes in v3:
> - disable SPL_DM_SERIAL
>
> Changes in v2: None
>
> arch/arm/mach-rockchip/rk30
> printf will increase the code size more than 1kb, but platform
> like rk3036 has no enough space for it.
>
> Signed-off-by: Andy Yan
> Acked-by: Philipp Tomsich
> ---
>
> Changes in v3:
> - use puts instead of printf, which suggested by Simon
>
> Change
ion malloc pool according to
> the memory space indepently.
>
> Signed-off-by: Andy Yan
> Reviewed-by: Tom Rini
> Acked-by: Philipp Tomsich
> ---
>
> Changes in v3:
> - use CONFIG_VAL(), which suggested by Simon
>
> Changes in v2:
> - introduce a new control CONFIG_S
: Daniel Schwierzeck
Acked-by: Philipp Tomsich
---
Changes in v3:
- use CONFIG_VAL(), which suggested by Simon
Changes in v2: None
arch/mips/cpu/start.S | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/mips/cpu/start.S b/arch/mips/cpu/start.S
index d01ee9f..aa07654
: Philipp Tomsich
---
Changes in v3:
- use CONFIG_VAL(), which suggested by Simon
Changes in v2: None
arch/powerpc/cpu/mpc83xx/start.S | 8
arch/powerpc/cpu/mpc85xx/start.S | 11 +--
2 files changed, 9 insertions(+), 10 deletions(-)
diff --git a/arch/powerpc/cpu/mpc83xx/start.S
n.
Signed-off-by: Andy Yan
Acked-by: Philipp Tomsich
---
Changes in v3:
- use CONFIG_VAL(), which suggested by Simon
Changes in v2: None
arch/microblaze/cpu/start.S | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/arch/microblaze/cpu/start.S b/arch/microblaze/cpu/sta
ested by Simon
>
> Changes in v2: None
>
> arch/sandbox/cpu/start.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> Acked-by: Philipp Tomsich
>
Reviewed-by: Philipp Tomsich
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot
> Add the 'usbkbd' environment variable to the 'stdin', the contents of
> the keyboard input can be auto-displayed on the serial terminal,so
> you don't need to manually set the environment variable 'stdin'.
>
> Signed-off-by: Leo Wen
> Acke
> Add four macros of CONFIG_USB_KEYBOARD,CONFIG_DM_KEYBOARD,etc in the
> firefly-rk3288_defconfig,can support usb keyboard device when these four
> macros are enabled.
>
> Signed-off-by: Leo Wen
> Acked-by: Philipp Tomsich
> Reviewed-by: Philipp Tomsich
>
> Add "preboot=usb start" to ROCKCHIP_DEVICE_SETTINGS,you don't
> need to input "usb start" in command line of u-boot console,it
> can auto-start the USB device,after that usb keyboard can work.
>
> Signed-off-by: Leo Wen
> Acked-by: Phil
iki/Specifications/DiscoverablePartitionsSpec/
> ARM 32bit: 69dad710-2ce4-4e3c-b16c-21a1d49abed3
> ARM 64bit: b921b045-1df0-41c3-af44-4c6f280d3fae
>
> Signed-off-by: Kever Yang
> Acked-by: Philipp Tomsich
> Reviewed-by: Philipp Tomsich
> ---
>
> include/configs/rockch
ps typically.
>
> This commit adds support for handling drive-strength of 12ma, when it's
> defined in the DT.
>
> Signed-off-by: Romain Perier
> Acked-by: Philipp Tomsich
> Reviewed-by: Philipp Tomsich
> ---
> drivers/pinctrl/rockchip/pinctrl_rk3288.c | 10
pass the SPL build
> - SPL_DRIVERS_MISC_SUPPORT is needed to pass the SPL build
>
> Signed-off-by: Philipp Tomsich
> Acked-by: Philipp Tomsich
> ---
>
> Changes in v2:
> - fixes the naming of SPL_DRIVERS_MISC_SUPPORT (shortened to
> SPL_DRIVERS_MISC in v1 of this patch)
>
> arch/a
y: Daniel Schwierzeck
> Acked-by: Philipp Tomsich
> ---
>
> Changes in v3:
> - use CONFIG_VAL(), which suggested by Simon
>
> Changes in v2: None
>
> arch/mips/cpu/start.S | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
Reviewed-by: Philipp Tomsich
> Some platforms has very small sram to run spl code, so
> it may have no enough sapce for so much malloc pool before
> relocation in spl stage as the normal u-boot stage.
> Use CONFIG_VAL(SYS_MALLOC_F_LEN) to fit this condition.
>
> Signed-off-by: Andy Yan
> Acke
> Some platforms has very small sram to run spl code, so
> it may have no enough sapce for so much malloc pool before
> relocation in spl stage as the normal u-boot stage.
> Use CONFIG_VAL(SYS_MALLOC_F_LEN) to fit this condition.
>
> Signed-off-by: Andy Yan
> Acke
ested by Simon
>
> Changes in v2: None
>
> arch/sandbox/cpu/start.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> Acked-by: Philipp Tomsich
> Reviewed-by: Philipp Tomsich
>
Applied to u-boot-rockchip, thanks!
ion malloc pool according to
> the memory space indepently.
>
> Signed-off-by: Andy Yan
> Reviewed-by: Tom Rini
> Acked-by: Philipp Tomsich
> Reviewed-by: Philipp Tomsich
> ---
>
> Changes in v3:
> - use CONFIG_VAL(), which suggested by Simon
>
> Changes in v2:
>
y: Daniel Schwierzeck
> Acked-by: Philipp Tomsich
> Reviewed-by: Philipp Tomsich
> ---
>
> Changes in v3:
> - use CONFIG_VAL(), which suggested by Simon
>
> Changes in v2: None
>
> arch/mips/cpu/start.S | 6 +++---
> 1 file changed, 3 insertions(+),
> RK3036 has no enough sapce use ARCH_MEMCPY/MEMSET in spl stage
>
> Signed-off-by: Andy Yan
> Reviewed-by: Simon Glass
> Acked-by: Philipp Tomsich
> Reviewed-by: Philipp Tomsich
> ---
>
> Changes in v3: None
> Changes in v2: None
>
> configs/evb-rk3036
> Add this dts to enable debug uart releated devices
> before relocation.
>
> Signed-off-by: Andy Yan
> Reviewed-by: Simon Glass
> Acked-by: Philipp Tomsich
> Reviewed-by: Philipp Tomsich
> ---
>
> Changes in v3: None
> Changes in v2: None
>
> a
dy Yan
> Reviewed-by: Simon Glass
> Acked-by: Philipp Tomsich
> Reviewed-by: Philipp Tomsich
> ---
>
> Changes in v3: None
> Changes in v2: None
>
> configs/evb-rk3036_defconfig | 1 +
> configs/kylin-rk3036_defconfig | 1 +
> 2 files changed,
> printf will increase the code size more than 1kb, but platform
> like rk3036 has no enough space for it.
>
> Signed-off-by: Andy Yan
> Acked-by: Philipp Tomsich
> Reviewed-by: Philipp Tomsich
> ---
>
> Changes in v3:
> - use puts instead of printf, which sugg
> Some platforms has very small sram to run spl code, so
> it may have no enough sapce for so much malloc pool before
> relocation in spl stage as the normal u-boot stage.
> Use CONFIG_VAL(SYS_MALLOC_F_LEN) to fit this condition.
>
> Signed-off-by: Andy Yan
> Acke
here is no need to run DM, so disable
> SPL_DM_SERIAL.
>
> Signed-off-by: Andy Yan
> Reviewed-by: Simon Glass
> Acked-by: Philipp Tomsich
> Reviewed-by: Philipp Tomsich
> ---
>
> Changes in v3:
> - disable SPL_DM_SERIAL
>
> Changes in v2: No
> Some platforms has very small sram to run spl code, so
> it may have no enough sapce for so much malloc pool before
> relocation in spl stage as the normal u-boot stage.
> Use CONFIG_VAL(SYS_MALLOC_F_LEN) to fit this condition.
>
> Signed-off-by: Andy Yan
> Acke
USB mass
storage emulation on our RK3399-Q7 with data-caches on.
Signed-off-by: Philipp Tomsich
---
Changes in v3: None
Changes in v2: None
drivers/usb/dwc3/core.c | 2 ++
drivers/usb/dwc3/gadget.c | 5 +++--
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/usb/dw
age of this
function consistently uses 'uintptr_t' for correct behaviour even
when the allocated buffers (to be flushed) reside outside of the
lower 32bits of memory.
Signed-off-by: Philipp Tomsich
---
Changes in v3:
- split into two separate patches
Changes in v2:
- consistently use uintp
The RK3399-Q7 (Puma) DTS should (of course) be dual-licensed.
This updates the licensing info in the rk3399-puma.dts.
Signed-off-by: Philipp Tomsich
---
arch/arm/dts/rk3399-puma.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/dts/rk3399-puma.dts b/arch/arm/dts
to the SRAM region that ATF expects it in.
Signed-off-by: Klaus Goger
Signed-off-by: Philipp Tomsich
---
Changes in v2:
- fixes dram_init_banksize() to have the correct return type and to
return 0 (success) unconditionally
arch/arm/mach-rockchip/rk3399/Kconfig | 19 ++
Signed-off-by: Philipp Tomsich
Tested-by: Jakob Unterwurzacher
Tested-by: Klaus Goger
Cover-Letter:
rockchip: spi: rk3399: add SPI support for the RK3399
This series adds SPI support for the RK3399 (SPI1 and SPI5). This
consists of the following individual changes:
- clock support for the SPI
To provide more (runtime) configuration points for the SPI data rate
at higher speeds (e.g. above 9MHz), we increase the module input rate
to 198MHz (from 99MHz) for the RK3399.
Signed-off-by: Philipp Tomsich
---
Changes in v3:
- increase the module input clock from 99MHz to 198MHz for the
ing to its compatible
list to allow reuse of the existing driver.
X-AffectedPlatforms: RK3399-Q7
Signed-off-by: Philipp Tomsich
Tested-by: Jakob Unterwurzacher
---
Changes in v3: None
Changes in v2: None
drivers/spi/rk_spi.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/spi/
and then clamps to whatever the DTS allows
as a maximum (board-specific) frequency.
Signed-off-by: Philipp Tomsich
---
Changes in v3:
- change the top bitrate permissible (without generating a -EINVAL)
from 48MHz/MBit to half the input clockrate (i.e. 49.5MHz/MBit for
a 99MHz module input
To include the ability to load from an SPI flash in SPL, it's not
sufficient to define SPL_SPI_SUPPORT and SPL_SPI_FLASH_SUPPORT via
Kconfig... so we conditionally define SPL_SPI_LOAD if SPI support
is already enabled for SPL via Kconfig.
Signed-off-by: Philipp Tomsich
---
Changes in v3:
MHz ... 49.5 MHz
- fixes an off-by-one for the RK3399 that cause the SPI module input
clock to be misstated as 84MHz (even though it was running at 99MHz)
Jakob Unterwurzacher (1):
rockchip: spi: enable support for the rk_spi driver for the RK3399
Philipp Tomsich (6):
rockchip: clk: rk3399
27;/config' to the list of nodes to be retained for the SPL stage.
Signed-off-by: Philipp Tomsich
---
scripts/Makefile.spl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/Makefile.spl b/scripts/Makefile.spl
index eb24292..182b300 100644
--- a/scripts/Makefile.sp
er-read), which reads the divider
from the register and then passes it through the DIV_RATE macro
Given that this code is not time-critical, the more readable solution
(i.e. calling the appropriate get_rate function) is implemented in this
change.
Signed-off-by: Philipp Tomsich
Tested-by: Klaus G
-AffectedPlatforms: RK3399-Q7
Signed-off-by: Philipp Tomsich
Tested-by: Jakob Unterwurzacher
---
Changes in v3: None
Changes in v2: None
arch/arm/include/asm/arch-rockchip/grf_rk3399.h | 12
arch/arm/include/asm/arch-rockchip/periph.h | 3 +++
drivers/pinctrl/rockchip
This adds documentation on the u-boot,spl-payload-offset property
(which overrides CONFIG_SYS_SPI_U_BOOT_OFFS during the SPI loading in
the SPL stage, if present).
Signed-off-by: Philipp Tomsich
---
doc/device-tree-bindings/config.txt | 5 +
1 file changed, 5 insertions(+)
diff --git a
U-Boot images, we
introduce a the '/config/u-boot,spl-payload-offset' property node
allow it to override the default setting.
Signed-off-by: Philipp Tomsich
---
common/spl/spl_spi.c | 15 ---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/common/spl/s
adds verbose in-line comments to ensure that we
won't fall into the same pit in the future...
Tested on the RK3399 (with has a boot0-style payload) with SD/MMC and SPI.
Signed-off-by: Philipp Tomsich
---
tools/rkcommon.c | 20 ++--
tools/rkcommon.h | 10 --
tools/r
ader) had to be added to quickly check the image
type being handled
Note that with the refactored calculation of the image-size, we
don't pad the image to the maximum SPL size any longer, but pad
SD/MMC to the next 512 byte block (RK_BLK_SIZE) and SPI to the
next 2K boundary.
Philipp Tom
Dumpimage (it invoked with "-T rkspi" or "-T rksd") would not work due
to check_params failing. These changes ensure that we can both be called
with an empty imagename.
Signed-off-by: Philipp Tomsich
---
tools/rkcommon.c | 16 +---
1 file changed, 13 insert
f the image:
$ ./tools/dumpimage -l ./spl.img
Image Type: Rockchip RK33 (SD/MMC) boot image
^^ SD/MMC vs. SPI indication
spl_hdr indicated by the image
Data Size:79872 bytes
Signed-off-by: Philipp Tomsich
---
tools/rkcom
Signed-off-by: Philipp Tomsich
---
tools/rksd.c | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/tools/rksd.c b/tools/rksd.c
index 6dafedf..8627b6d 100644
--- a/tools/rksd.c
+++ b/tools/rksd.c
@@ -62,8 +62,11 @@ static int rksd_check_image_type(uint8_t type)
static
-date).
This change brings the comment back in-sync with what the code is
doing.
Signed-off-by: Philipp Tomsich
---
tools/rkcommon.c | 22 +-
1 file changed, 13 insertions(+), 9 deletions(-)
diff --git a/tools/rkcommon.c b/tools/rkcommon.c
index 1311d65..cfd40ac 100644
--- a/
ff-by: Philipp Tomsich
---
tools/rkcommon.c | 20 +---
1 file changed, 17 insertions(+), 3 deletions(-)
diff --git a/tools/rkcommon.c b/tools/rkcommon.c
index cfd40ac..ed29ef9 100644
--- a/tools/rkcommon.c
+++ b/tools/rkcommon.c
@@ -13,6 +13,8 @@
#include "mkimage.h"
#incl
Our earlier change broke the generation of SPI images, by excluding the
2K used for header0 from the size-calculation.
This commit makes sure that these are included before calculating the
required total size (including the padding from the 2K-from-every-4K
conversion).
Signed-off-by: Philipp
- cleans up some graffiti (i.e. unwanted source edits) from the
DDR3-1333 timing we had submitted earlier
Philipp Tomsich (2):
rockchip: dts: Clean up graffiti in rk3399-sdram-ddr3-1333.dtsi
rockchip: dts: rk3399-puma: Add DDR3-1600 timings and use for Puma
arch/arm/dts/rk3399-puma.dts
The DDR3-1333 timings for the RK3399-Q7 (Puma) has some unintended
left-over comments in them. This change cleans the file up.
Signed-off-by: Philipp Tomsich
---
arch/arm/dts/rk3399-sdram-ddr3-1333.dtsi | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/arch/arm/dts
fact better than having verify just return 0 (which previously broke
dumpimage, as dumpimage assumed that we had handled the image and did
not continue to probe further).
Signed-off-by: Philipp Tomsich
---
tools/rkimage.c | 21 +++--
1 file changed, 3 insertions(+), 18 deletions
With the validation done for DDR3-1600 (i.e. 800 MHz bus clock), we
add the timings (rk3399-sdram-ddr3-1600.dtsi) and change rk3399-puma.dts
to use these by default.
Signed-off-by: Philipp Tomsich
---
arch/arm/dts/rk3399-puma.dts |6 +-
arch/arm/dts/rk3399-sdram-ddr3-1600.dtsi
An assignment (of a value to itself) was left over (after removing and
addition from the line) from moving the common padding code into
rkcommon_vrec_header.
This change removes this to avoid a spurious warning in static code
analysis (i.e. Coverity).
Signed-off-by: Philipp Tomsich
---
tools
not in range(128)
from Heiko's email address:
[..., u'"Heiko St\xfcbner" ', ...]
While with this change added this encodes to:
"=?UTF-8?q?Heiko=20St=C3=BCbner?= "
Signed-off-by: Philipp Tomsich
---
tools/patman/series.py | 4 ++--
1 file changed, 2 inserti
to related
Makefiles) and sort those alphabetically. And as this already means
touching most of the file, we also reformat the help text to not exceed
80 characters (but make full use of those 80 characters).
Signed-off-by: Philipp Tomsich
---
Changes in v2:
- sort options alphabetically and use a com
801 - 900 of 3364 matches
Mail list logo