-off-by: Christoph Muellner
---
board/theobroma-systems/puma_rk3399/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/board/theobroma-systems/puma_rk3399/Kconfig
b/board/theobroma-systems/puma_rk3399/Kconfig
index e82623a1701..21946d984da 100644
--- a/board/theobroma
from Linux")
Signed-off-by: Christoph Muellner
---
arch/arm/dts/rk3399-puma-haikou-u-boot.dtsi | 12
1 file changed, 12 insertions(+)
diff --git a/arch/arm/dts/rk3399-puma-haikou-u-boot.dtsi
b/arch/arm/dts/rk3399-puma-haikou-u-boot.dtsi
index e7a1aea3a56..e0476ab25c9 100644
that allow parameters in hexadecimal format. So the test above
can be implemented as follows:
=> if test "ff" -heq 0; then echo "equal"; fi
=>
[1] https://www.denx.de/wiki/view/DULG/UBootCommandLineInterface
Signed-off-by: Christoph Muellner
---
cmd/test.c
-by: Christoph Müllner
Signed-off-by: Christoph Muellner
---
Changes in v2:
- Convert argument type from unsigned long to void pointer.
arch/arm/mach-rockchip/rk3399/rk3399.c | 13 +
1 file changed, 13 insertions(+)
diff --git a/arch/arm/mach-rockchip/rk3399/rk3399.c
b/arch/arm/mach
From: Christoph Müllner
Some machines have limited DMA engines, which cannot deal
with arbitrary addresses. This patch introduces a function
to model these restrictions on a machine level.
Signed-off-by: Christoph Müllner
Signed-off-by: Christoph Muellner
---
Changes in v2: None
common
-off-by: Christoph Müllner
Signed-off-by: Christoph Muellner
---
Changes in v2: None
common/bouncebuf.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/common/bouncebuf.c b/common/bouncebuf.c
index a7098e2caf..1b82243b06 100644
--- a/common/bouncebuf.c
+++ b/common/bouncebuf.c
@@ -26,6
buffer method.
Signed-off-by: Christoph Muellner
---
configs/puma-rk3399_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/configs/puma-rk3399_defconfig b/configs/puma-rk3399_defconfig
index 964464ac0f..cb652922e3 100644
--- a/configs/puma-rk3399_defconfig
+++ b/configs/puma
a static
allocated memory location, which is used instead of dynamically
allocated buffers.
Signed-off-by: Christoph Muellner
---
common/Kconfig | 15 +++
common/bouncebuf.c | 14 ++
2 files changed, 29 insertions(+)
diff --git a/common/Kconfig b/common/Kconfig
index
with TF-A v2.1 as BL31.
Signed-off-by: Christoph Muellner
---
arch/arm/mach-rockchip/make_fit_atf.py | 153 ++---
1 file changed, 64 insertions(+), 89 deletions(-)
diff --git a/arch/arm/mach-rockchip/make_fit_atf.py
b/arch/arm/mach-rockchip/make_fit_atf.py
index
From: Christoph Müllner
Some machines have limited DMA engines, which cannot deal
with arbitrary addresses. This patch introduces a function
to model these restrictions on a machine level.
Signed-off-by: Christoph Müllner
Signed-off-by: Christoph Muellner
---
common/board_f.c | 5
Patches on the U-Boot mailing list from Rockchip engineers
indicate, that the RK3399's DMA engines are not able to use
addresses in high-memory (above 0xf800).
This patch models this restriction in an RK3399 specific
mach_addr_is_dmaable() function.
Signed-off-by: Christoph Muellner
Currently addr_aligned() performs an alignment and a length check
to validate the DMA address. However, some machines have stricter
restrictions of DMA-able addresses.
This patch adds a call to mach_addr_is_dmaable() to honor this
machine specific restrictions.
Signed-off-by: Christoph Muellner
This patch adds the missing GRF bit definitions for UART3 on the RK3399.
Signed-off-by: Christoph Muellner
---
arch/arm/include/asm/arch-rockchip/grf_rk3399.h | 4
1 file changed, 4 insertions(+)
diff --git a/arch/arm/include/asm/arch-rockchip/grf_rk3399.h
b/arch/arm/include/asm/arch
The RK3399 SPL does not use a pinctrl driver to setup the UART pins.
Instead it works based on config macros, which set the base address
of the actual UART block.
Currently the RK3399 SPL support UART0 and UART2.
This patch adds UART3 in the same way as UART0.
Signed-off-by: Christoph Muellner
This patch adds the rate for UART1 and UART3 the same way
as already implemented for UART0 and UART2.
This is required for boards, which have their console output
on these UARTs.
Signed-off-by: Christoph Muellner
---
drivers/clk/rockchip/clk_rk3399.c | 2 ++
1 file changed, 2 insertions
A previous commit changed the USB3 node names, which breaks compilation
of the gru DTS files.
This patch addresses this issue by fixing the referenced node names.
Signed-off-by: Christoph Muellner
---
arch/arm/dts/rk3399-gru-chromebook.dtsi | 7 +--
arch/arm/dts/rk3399-gru.dtsi
ommit USB3 was working fine, after the
commit USB3 was broken on all RK3399 boards.
This commit reverts the USB3 changes to the original ones, which provide
the required information for the corresponding drivers in the U-Boot tree.
Signed-off-by: Christoph Muellner
---
arch/arm/dts/rk3399
Puma SoMs have a 4 MB SPI NOR flash.
Therefore we can move the environment to the end of the flash
(4 MiB - 16 kiB) in order to not overlap with SPL.
Reported-by: Jakob Unterwurzacher
Signed-off-by: Christoph Muellner
---
board/theobroma-systems/puma_rk3399/Kconfig | 2 +-
1 file changed, 1
This commit reduces the SPL size by fixing typos in the removed property
string list, switching to the tiny versions of printf/memset and
disabling SPL_DOS/EFI_PARTITION support.
Signed-off-by: Christoph Muellner
---
configs/puma-rk3399_defconfig | 6 +-
1 file changed, 5 insertions(+), 1
This reverts commit c869d63f2785ccde22582f96cf40cb8809f838ba.
Mainline ATF already supports fdt-parsing, which allows us to
pass rk3399-puma specific data to setup things like the correct
UART. Therefore we can re-enable platform parameterss again.
Signed-off-by: Christoph Muellner
(e.g. BASH has xtrace,
which can be enabled by "set -x").
This patch introduces a command tracer for U-Boot, which prints
every command with its arguments before it is executed.
Signed-off-by: Christoph Muellner
---
cmd/Kconfig | 11 +++
common/command.c | 14 +
This reverts commit 5ff776889212c080e3d1a33634ac904405ed6845.
As noted in the comment, the function pinctrl_decode_pin_config_dm()
only served as a temporary solution.
Since the function has no users anymore, we can remove it again.
Signed-off-by: Christoph Muellner
---
drivers/pinctrl
to review feedback.
- Fix pinctrl infrastructure instead of hacking board_init() code.
Christoph Muellner (8):
rockchip: rk3399-puma: Cleanup of vdd_log DTS entry.
power: regulator: Allow PWM regulator to be omitted from SPL.
rockchip: rk3399-puma: enable PWM regulator in Puma defconfig
This patch sets VDD_LOG to 950 mV on RK3399-Q7.
This is required to address stability issues on Puma
in heavy-load use-cases.
Reported-by: Assaf Agmon
Signed-off-by: Philipp Tomsich
Signed-off-by: Christoph Muellner
---
Changes in v4:
- Changed patches according to review feedback.
Changes
This patch enables the full pinctrl driver in the defconfig
for the RK3399-Q7.
Signed-off-by: Christoph Muellner
---
Changes in v4: None
Changes in v3: None
Changes in v2: None
configs/puma-rk3399_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/configs/puma-rk3399_defconfig b
This patch adds a Kconfig option to enable the full pinctrl driver
for the RK3399. This flag needs to be enabed in order to get the
features of the full pinctrl driver compiled in (i.e. a .set_state()
callback).
Signed-off-by: Christoph Muellner
---
Changes in v4: None
Changes in v3: None
pinctrl_decode_pin_config_dm() is basically a feature-equivalent
implementation of pinctrl_decode_pin_config(), which operates
on struct udevice devices and uses the dev_read_*() API.
Signed-off-by: Christoph Muellner
---
Changes in v4: None
Changes in v3: None
Changes in v2: None
drivers
pinmuxing and pullup/pulldown configuration).
This patch has been tested on a RK3399-Q7 SoM (Puma).
Signed-off-by: Christoph Muellner
---
Changes in v4: None
Changes in v3: None
Changes in v2: None
drivers/pinctrl/rockchip/pinctrl_rk3399.c | 227 ++
1 file changed, 227
This patch enables the PWM regulator driver in the defconfig
for the RK3399-Q7.
Signed-off-by: Christoph Muellner
---
Changes in v4: None
Changes in v3: None
Changes in v2: None
configs/puma-rk3399_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/configs/puma-rk3399_defconfig b
This patch allows to enable the PWM regulator driver
independent for U-Boot and SPL.
Signed-off-by: Christoph Muellner
---
Changes in v4: None
Changes in v3: None
Changes in v2: None
drivers/power/regulator/Kconfig | 7 +++
drivers/power/regulator/Makefile | 2 +-
2 files changed, 8
VDD_LOG.
Signed-off-by: Christoph Muellner
---
Changes in v4: None
Changes in v3: None
Changes in v2: None
arch/arm/dts/rk3399-puma.dtsi | 5 +
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/arch/arm/dts/rk3399-puma.dtsi b/arch/arm/dts/rk3399-puma.dtsi
index 9a61fbb453..09f7992f
This patch enables the full pinctrl driver in the defconfig
for the RK3399-Q7.
Signed-off-by: Christoph Muellner
---
Changes in v3: None
Changes in v2: None
configs/puma-rk3399_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/configs/puma-rk3399_defconfig b/configs/puma
pinmuxing and pullup/pulldown configuration).
This patch has been tested on a RK3399-Q7 SoM (Puma).
Signed-off-by: Christoph Muellner
---
Changes in v3: None
Changes in v2: None
drivers/pinctrl/rockchip/pinctrl_rk3399.c | 226 ++
1 file changed, 226 insertions(+)
diff
pinctrl_decode_pin_config_dm() is basically a feature-equivalent
implementation of pinctrl_decode_pin_config(), which operates
on struct udevice devices and uses the dev_read_*() API.
Signed-off-by: Christoph Muellner
---
Changes in v3: None
Changes in v2: None
drivers/pinctrl/pinctrl
This patch sets VDD_LOG to 950 mV on RK3399-Q7.
This is required to address stability issues on Puma
in heavy-load use-cases.
Reported-by: Assaf Agmon
Signed-off-by: Philipp Tomsich
Signed-off-by: Christoph Muellner
---
Changes in v3:
- Fix message verbosity in pinctrl driver.
- Changed
This patch adds a Kconfig option to enable the full pinctrl driver
for the RK3399. This flag needs to be enabed in order to get the
features of the full pinctrl driver compiled in (i.e. a .set_state()
callback).
Signed-off-by: Christoph Muellner
---
Changes in v3: None
Changes in v2: None
This patch allows to enable the PWM regulator driver
independent for U-Boot and SPL.
Signed-off-by: Christoph Muellner
---
Changes in v3: None
Changes in v2: None
drivers/power/regulator/Kconfig | 7 +++
drivers/power/regulator/Makefile | 2 +-
2 files changed, 8 insertions(+), 1
board_init() code.
Christoph Muellner (8):
rockchip: rk3399-puma: Cleanup of vdd_log DTS entry.
power: regulator: Allow PWM regulator to be omitted from SPL.
rockchip: rk3399-puma: enable PWM regulator in Puma defconfig.
dm: pinctrl: Add pinctrl_decode_pin_config_dm().
rockchip: rk3399: Add
VDD_LOG.
Signed-off-by: Christoph Muellner
---
Changes in v3: None
Changes in v2: None
arch/arm/dts/rk3399-puma.dtsi | 5 +
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/arch/arm/dts/rk3399-puma.dtsi b/arch/arm/dts/rk3399-puma.dtsi
index 9a61fbb453..09f7992f65 100644
--- a
This patch enables the PWM regulator driver in the defconfig
for the RK3399-Q7.
Signed-off-by: Christoph Muellner
---
Changes in v3: None
Changes in v2: None
configs/puma-rk3399_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/configs/puma-rk3399_defconfig b/configs/puma
pinctrl_decode_pin_config_dm() is basically a feature-equivalent
implementation of pinctrl_decode_pin_config(), which operates
on struct udevice devices and uses the dev_read_*() API.
Signed-off-by: Christoph Muellner
---
Changes in v2: None
drivers/pinctrl/pinctrl-uclass.c | 15
This patch allows to enable the PWM regulator driver
independent for U-Boot and SPL.
Signed-off-by: Christoph Muellner
---
Changes in v2: None
drivers/power/regulator/Kconfig | 7 +++
drivers/power/regulator/Makefile | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git
This patch sets VDD_LOG to 950 mV on RK3399-Q7.
This is required to address stability issues on Puma
in heavy-load use-cases.
Reported-by: Assaf Agmon
Signed-off-by: Philipp Tomsich
Signed-off-by: Christoph Muellner
---
Changes in v2:
- Changed patches according to review feedback.
- Fix
This patch enables the PWM regulator driver in the defconfig
for the RK3399-Q7.
Signed-off-by: Christoph Muellner
---
Changes in v2: None
configs/puma-rk3399_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/configs/puma-rk3399_defconfig b/configs/puma-rk3399_defconfig
index
pinmuxing and pullup/pulldown configuration).
This patch has been tested on a RK3399-Q7 SoM (Puma).
Signed-off-by: Christoph Muellner
---
Changes in v2: None
drivers/pinctrl/rockchip/pinctrl_rk3399.c | 189 ++
1 file changed, 189 insertions(+)
diff --git a/drivers
to the description in the DTS.
Changes in v2:
- Changed patches according to review feedback.
- Fix pinctrl infrastructure instead of hacking board_init() code.
Christoph Muellner (6):
rockchip: rk3399-puma: Cleanup of vdd_log DTS entry.
power: regulator: Allow PWM regulator to be omitted from
VDD_LOG.
Signed-off-by: Christoph Muellner
---
Changes in v2: None
arch/arm/dts/rk3399-puma.dtsi | 5 +
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/arch/arm/dts/rk3399-puma.dtsi b/arch/arm/dts/rk3399-puma.dtsi
index 9a61fbb4536..09f7992f65c 100644
--- a/arch/arm/dts/rk3399-puma
not successful probing)
regulator vcc5v0_host from the DTS and adds the pinctrl-*
setting to usbhub_enable.
Signed-off-by: Christoph Muellner
---
arch/arm/dts/rk3399-puma.dtsi | 12 ++--
1 file changed, 2 insertions(+), 10 deletions(-)
diff --git a/arch/arm/dts/rk3399-puma.dtsi b/arch
This patch series allows to tune VDD_LOG on RK3399-Q7 Puma boards
using a PWM adjustable regulator.
The effect of the series is, that VDD_LOG will be set to about 950 mV
on Puma. This is required to address stability issues on Puma.
Christoph Muellner (4):
rockchip: rk3399-puma: Cleanup
* Eliminate non-standard entries (rockchip,pwm_id and
rockchip,pwm_voltage).
* Define target voltage level for vdd-log to 950 mV.
Signed-off-by: Christoph Muellner
---
arch/arm/dts/rk3399-puma.dtsi | 5 +
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/arch/arm/dts/rk3399
Signed-off-by: Philipp Tomsich
Signed-off-by: Christoph Muellner
---
board/theobroma-systems/puma_rk3399/puma-rk3399.c | 43 +++
1 file changed, 43 insertions(+)
diff --git a/board/theobroma-systems/puma_rk3399/puma-rk3399.c
b/board/theobroma-systems/puma_rk3399/puma-rk3399.c
index 5
Signed-off-by: Christoph Muellner
---
configs/puma-rk3399_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/configs/puma-rk3399_defconfig b/configs/puma-rk3399_defconfig
index 8e33e09cee8..d23cf4bc523 100644
--- a/configs/puma-rk3399_defconfig
+++ b/configs/puma-rk3399_defconfig
This patch allows to enable the PWM regulator driver
independent for U-Boot and SPL.
Signed-off-by: Christoph Muellner
---
drivers/power/regulator/Kconfig | 7 +++
drivers/power/regulator/Makefile | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/drivers/power/regulator
channel] - show I2C bus info
i2c crc32 chip address[.0, .1, .2] count - compute CRC32 checksum
i2c dev [dev] - show or set current I2C bus
...
Signed-off-by: Christoph Muellner
---
cmd/i2c.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/cmd/i2c.c b/cmd/i2c.c
index 56df8eb3bca..09c4
clk_core_b parent to BPLL instead of LPLL.
Kudos to Mark Kettenis for spotting this.
Signed-off-by: Christoph Muellner
---
arch/arm/include/asm/arch-rockchip/cru_rk3399.h | 22 +--
drivers/clk/rockchip/clk_rk3399.c | 79 ++---
2 files changed, 88 insertions(+), 13
This patch sets the PLL of CPU cluster B (BPLL) to 600 MHz.
This decreases the boot time of Linux 4.19 by about 8%.
The 600 MHz are inspired by the 600 MHz used for LPLL initialization
(came in with commit 9f636a249c1).
Tested on RK3399-Q7 on Haikou base board.
Signed-off-by: Christoph Muellner
56 matches
Mail list logo