[PATCH 2/5] clk: starfive: jh7110: Add security clocks

2023-10-30 Thread Chanho Park
Add STGCLK_SEC_HCLK and STGCLK_SEC_MISCAHB clocks for JH7110 TRNG device. Signed-off-by: Chanho Park --- drivers/clk/starfive/clk-jh7110.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/clk/starfive/clk-jh7110.c b/drivers/clk/starfive/clk-jh7110.c index 31aaf3340f94..a8

[PATCH 4/5] riscv: dts: jh7110: Add rng device tree node

2023-10-30 Thread Chanho Park
Adds jh7110 trng device tree node. Signed-off-by: Chanho Park --- arch/riscv/dts/jh7110.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/riscv/dts/jh7110.dtsi b/arch/riscv/dts/jh7110.dtsi index ec237a46ffba..13c47f7caa36 100644 --- a/arch/riscv/dts/jh7110.dtsi +++ b/arch

[PATCH 0/5] Add support for StarFive JH7110 TRNG driver

2023-10-30 Thread Chanho Park
This patchset adds to support StarFive JH7110 TRNG driver. Due to lack of readl_relaxed API, the first patch tries to import the APIs(read/write_relaxed) from Linux kernel's implementation. The second patch adds the missing security clocks which are required by the trng IP. This IP can support 128

[PATCH 5/5] configs: visionfive2: Enable JH7110 RNG driver

2023-10-30 Thread Chanho Park
Enables JH7110 RNG driver to visionfive2 board. Signed-off-by: Chanho Park --- configs/starfive_visionfive2_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/starfive_visionfive2_defconfig b/configs/starfive_visionfive2_defconfig index b21754feafce..b15e7d24db19 100644 ---

[PATCH 1/5] riscv: import read/write_relaxed functions

2023-10-30 Thread Chanho Park
This imports mmio functions from Linux's arch/riscv/include/asm/mmio.h to use read/write[b|w|l|q]_relaxed functions. Signed-off-by: Chanho Park --- arch/riscv/include/asm/io.h | 45 + 1 file changed, 45 insertions(+) diff --git a/arch/riscv/include/asm/io.h b

[PATCH 3/5] rng: Add StarFive JH7110 RNG driver

2023-10-30 Thread Chanho Park
Adds to support JH7110 TRNG driver which is based on linux kernel's jh7110-trng.c. This can support to generate 256-bit random numbers and 128-bit but this makes 256-bit default for convenience. Signed-off-by: Chanho Park --- drivers/rng/Kconfig | 6 + drivers/rng/Makefile | 1 + dr

Re: [PATCH 00/14] bloblist: Align to firmware handoff

2023-10-30 Thread Michal Simek
On 10/28/23 07:35, Simon Glass wrote: Hi Michal, On Wed, 6 Sept 2023 at 12:22, Michal Simek wrote: Hi Simon, út 25. 7. 2023 v 23:36 odesílatel Simon Glass napsal: In moving from v0.8 to v0.9 the Firmware Handoff specification made some changes, including: - Use a packed format for

Re: [RFC v2 1/2] riscv: allow resume after exception

2023-10-30 Thread Leo Liang
On Sun, Oct 29, 2023 at 09:45:32AM +0100, Heinrich Schuchardt wrote: > If CSRs like seed are readable by S-mode, may not be determinable by > S-mode. For safe driver probing allow to resume via a longjmp after an > exception. > > Signed-off-by: Heinrich Schuchardt > --- > v2: > new patch >

Re: [RFC v2 2/2] rng: Provide a RNG based on the RISC-V Zkr ISA extension

2023-10-30 Thread Leo Liang
On Sun, Oct 29, 2023 at 09:45:33AM +0100, Heinrich Schuchardt wrote: > The Zkr ISA extension (ratified Nov 2021) introduced the seed CSR. It > provides an interface to a physical entropy source. > > A RNG driver based on the seed CSR is provided. It depends on > mseccfg.sseed being set in the SBI

Re: [PATCH 1/1] CI: use OpenSBI 1.3.1 for testing

2023-10-30 Thread Leo Liang
On Wed, Oct 25, 2023 at 12:15:43AM +0200, Heinrich Schuchardt wrote: > Use the most recent upstream release of OpenSBI for CI testing. > > Signed-off-by: Heinrich Schuchardt > --- > .azure-pipelines.yml | 8 > .gitlab-ci.yml | 8 > 2 files changed, 8 insertions(+), 8 dele

Re: [PATCH 1/3] tpm: sandbox: Support self-test continue in emulator

2023-10-30 Thread Ilias Apalodimas
On Sun, Oct 29, 2023 at 05:28:12PM +1300, Simon Glass wrote: > Add support for the self-test continue command in the TPM v1.2 emulator, > to match the functionality in the TPM v2 emulator. > > Signed-off-by: Simon Glass > --- > > drivers/tpm/tpm_tis_sandbox.c | 1 + > 1 file changed, 1 insertio

Re: [PATCH] dfu: mmc: Add support for exposing whole mmc device

2023-10-30 Thread Lukasz Majewski
On Sun, 29 Oct 2023 23:37:22 +0100 Marek Vasut wrote: > Add support for exposing the whole mmc device by setting the 'size' > parameter to 0. This can be useful in case it is not clear what the > total device size is up front. Update the documentation accordingly. > > Signed-off-by: Marek Vasut

[PATCH v2 0/4] Add AM62x LP SK support

2023-10-30 Thread Nitin Yadav
This series adds support of AM62x LP SK. The AM62x LP SK board is similar to AM62x SK but has some significant changes that requires different set of device tree at each stage of bootloader. Also refactors to have common nodes at k3-am62x-r5-sk-common.dtsi and k3-am62x-sk-common-u-boot.dtsi for all

[PATCH v2 1/4] arm: dts: Refactor common dtsi file for R5 and A53 SPL

2023-10-30 Thread Nitin Yadav
Add k3-am62x-r5-sk-common to include nodes common for R5 SPL from k3-am625-r5-sk for AM62x SoC based boards. Add k3-am62x-sk-common-u-boot to move common nodes of A53 SPL stage from k3-am625-sk-u-boot. Replace 'bootph-pre-ram' from 'bootph-all' as it's not available at u-boot proper before relocat

[PATCH v2 3/4] board: ti: am62x: add am62x_lpsk_*_defconfigs fragments

2023-10-30 Thread Nitin Yadav
Add defconfig fragments for AM62x LP SK for for AM62x LP SK. Signed-off-by: Nitin Yadav --- board/ti/am62x/am62x_lpsk_a53.config | 5 + board/ti/am62x/am62x_lpsk_r5.config | 5 + 2 files changed, 10 insertions(+) create mode 100644 board/ti/am62x/am62x_lpsk_a53.config create mode 1006

[PATCH v2 2/4] arm: dts: Add support for AM62x LP SK

2023-10-30 Thread Nitin Yadav
The AM62x LP SK board is similar to the AM62x SK board, but has some significant changes that requires different device tree. The differences are mainly: - AM62x SoC in the AMC package that meets AECQ100 automotive standard. - LPDDR4 versus DDR4 on the AM62x SK. - TPS65219 PMIC instead of discrete

[PATCH v2 4/4] doc: ti: Add AM62x LP SK Board information

2023-10-30 Thread Nitin Yadav
Add link for AM62x LP SK in platform information. AM62x LP SK has config fragments to build U-boot, Adding information to update UBOOT_CFG_CORTEXR with lpsk fragments over am62x defconfig. Signed-off-by: Nitin Yadav --- doc/board/ti/am62x_sk.rst | 8 1 file changed, 8 insertions(+) dif

Re: [PATCH 2/3] tpm: Convert sandbox-focussed tests to C

2023-10-30 Thread Ilias Apalodimas
Hi Tom On Sun, 29 Oct 2023 at 16:33, Tom Rini wrote: > > On Sun, Oct 29, 2023 at 05:28:13PM +1300, Simon Glass wrote: > > > Some of the Python tests are a pain because they don't reset the TPM > > state before each test. Driver model tests do this, so convert the > > tests to C. > > > > This mean

Re: [PATCH 2/3] tpm: Convert sandbox-focussed tests to C

2023-10-30 Thread Ilias Apalodimas
Hi Simon, Thanks for fixing this. On Sun, 29 Oct 2023 at 06:28, Simon Glass wrote: > > Some of the Python tests are a pain because they don't reset the TPM > state before each test. Driver model tests do this, so convert the > tests to C. > > This means that these tests won't run on real hardwar

Re: [PATCH 3/3] tpm: Drop unwanted special cases for sandbox

2023-10-30 Thread Ilias Apalodimas
On Sun, 29 Oct 2023 at 06:28, Simon Glass wrote: > > These don't seem to be needed. Please metnion something we can refer to in the future. e.g. "A previous patch moves most of the sandbox tests to C code, those arent needed anymore" etc > > Add a few notes about what to do next. Also mention pa

Re: [PATCH 0/3] tpm: Start to tidy up TPM tests

2023-10-30 Thread Ilias Apalodimas
Thanks Simon, Apart from a nit in patch#2 this looks good. Pleas note that this doesn't apply on -master so please rebase On Sun, 29 Oct 2023 at 06:28, Simon Glass wrote: > > This series is a starting point only. It tries to provide some direction > for how the TPM tests should be run on real ha

[PATCH] rockchip: dts: fix bootph tags for rv1126

2023-10-30 Thread Tim Lunn
RV1126 fails to boot on 2024.01-rc1. Commit 9e64428 changed the behaviour of bootph-pre-ram, to limit nodes to spl phase. This caused rv1126 boards to fail to boot with the current dts. This patch updates the pmu/grf nodes to bootph-all tags as they are needed in all phases. This fixes the boot i

Re: [PATCH v2] dm: core: Report bootph-pre-ram/sram node as pre-reloc after relocation

2023-10-30 Thread Tom Rini
On Sun, Aug 20, 2023 at 10:03:18PM +, Jonas Karlman wrote: > Nodes with bootph-pre-sram/ram props are bound in multiple phases: > 1. At TPL (bootph-pre-sram) or SPL (bootph-pre-ram) phase > 2. At U-Boot proper pre-relocation phase > 3. At U-Boot proper normal phase > > However the binding and

Re: [PATCH 3/3] arm64: boot: Support Flat Image Tree

2023-10-30 Thread Russell King (Oracle)
On Sun, Oct 29, 2023 at 05:46:12AM +1300, Simon Glass wrote: > Hi Masahiro, > > Sure, but that is a separate issue, isn't it? We already support > various boot targets in arm64 but not one that includes the DTs, so > far as I can see. The old arm 'uImage' target is pretty out-of-date > now. Does

Dropping common.h usage

2023-10-30 Thread Tom Rini
Hey all, Now that checkpatch.pl complains about adding common.h to new files, I would like to ask custodians to try and fixup patches that had been submitted already and use the header. In general, we can just drop the file entirely. If we can't it's often a quick fix of which include file was mis

Re: [PATCH 3/3] arm64: boot: Support Flat Image Tree

2023-10-30 Thread Tom Rini
On Mon, Oct 30, 2023 at 03:35:34PM +, Russell King (Oracle) wrote: > On Sun, Oct 29, 2023 at 05:46:12AM +1300, Simon Glass wrote: > > Hi Masahiro, > > > > Sure, but that is a separate issue, isn't it? We already support > > various boot targets in arm64 but not one that includes the DTs, so >

[PATCH] spi: cadence-quadspi: Fix error message on stuck busy state

2023-10-30 Thread Jan Kiszka
From: Jan Kiszka We are not iterating CQSPI_REG_RETRY, we are waiting 'timeout' ms, since day 1. Signed-off-by: Jan Kiszka --- We are unfortunately seeing that message right now, rarely but then prominently... drivers/spi/cadence_qspi_apb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletio

[PATCH] exynos: Avoid duplicate reset_cpu with SYSRESET enabled

2023-10-30 Thread Sam Protsenko
The sysreset uclass unconditionally provides a definition of the reset_cpu() function. So does the exynos soc code. Fix the build with SYSRESET enabled by omitting the function from the soc code in that case. The code still needs to be kept around for use in SPL. This commit was inspired by commit

[PATCH v3] board: ti: common: board_detect: Fix EEPROM offset read for 1-byte

2023-10-30 Thread Prasanth Babu Mantena
EEPROM detection logic in ti_i2c_eeprom_get() involves reading the total size and the 1-byte size with an offset 1. The commit 9f393a2d7af8 ("board: ti: common: board_detect: Fix EEPROM read quirk for 2-byte") that attempts to fix this uses a wrong pointer to compare. The value with one offset is

[PATCH] buildman: Support upstream branch name containing /

2023-10-30 Thread Simon Glass
Buildman assumes that branch names do not have a slash in them, since slash is used to delimit remotes, etc. This means that a branch called 'WIP/tryme' in remote dm ends up being 'tryme'. Adjust the logic a little, to try to accommodate this. For now, no tests are added for this behaviour. Sign

Re: [PATCH] exynos: Avoid duplicate reset_cpu with SYSRESET enabled

2023-10-30 Thread Tom Rini
On Mon, Oct 30, 2023 at 11:55:02AM -0500, Sam Protsenko wrote: > The sysreset uclass unconditionally provides a definition of the > reset_cpu() function. So does the exynos soc code. Fix the build with > SYSRESET enabled by omitting the function from the soc code in that > case. The code still nee

Re: [PATCH] buildman: Support upstream branch name containing /

2023-10-30 Thread Tom Rini
On Mon, Oct 30, 2023 at 10:22:30AM -0700, Simon Glass wrote: > Buildman assumes that branch names do not have a slash in them, since > slash is used to delimit remotes, etc. This means that a branch called > 'WIP/tryme' in remote dm ends up being 'tryme'. > > Adjust the logic a little, to try to

[PATCH] bootstd: Skip over bad device during bootflows scanning

2023-10-30 Thread Tony Dinh
During scanning for the next bootdev, if bootdev_next_prio() encounters a device error (e.g. ENOSYS), let it continue scanning the next devices, not stopping prematurely. Background: During scanning for bootflows, it's possible for bootstd to encounter a faulty device controller. Also when the sa

Re: [PULL] u-boot-sh/master_tmio_fixes

2023-10-30 Thread Tom Rini
On Sat, Oct 28, 2023 at 05:55:35PM +0200, Marek Vasut wrote: > The following changes since commit fb428b61819444b9337075f49c72f326f5d12085: > > Merge branch '2023-10-24-assorted-general-fixes-and-updates' (2023-10-24 > 19:12:21 -0400) > > are available in the Git repository at: > > https:/

Re: [PATCH] common: Reword CONSOLE_RECORD_.*SIZE help texts

2023-10-30 Thread Tom Rini
On Thu, Oct 19, 2023 at 11:04:35AM -0400, Tom Rini wrote: > Make it clear that in the options for setting the console record buffer > sizes that we are talking about buffers for that feature specifically > and not the general console buffers. > > Signed-off-by: Tom Rini Applied to u-boot/master

Re: [PATCH 1/1] tools: mkimage: fix sfspl_image_extract_subimage()

2023-10-30 Thread Tom Rini
On Tue, Oct 24, 2023 at 09:26:38AM +0200, Heinrich Schuchardt wrote: > Do not leak file descriptor if writing fails. > Correct the error text if opening a file fails. > > Addresses-Coverity-ID: 467054 Resource leaks > Fixes: 64fd30d367a1 ("tools: mkimage: Add StarFive SPL image support") > Signed

Re: [PATCH] arm_ffa: fix: remove deadcode in ffa_print_error_log()

2023-10-30 Thread Tom Rini
On Fri, Oct 20, 2023 at 02:15:33PM +0100, Abdellatif El Khlifi wrote: > address the CID 464361 Control flow issues [1] > > [1]: https://lore.kernel.org/all/20230821210927.GL3953269@bill-the-cat/ > > Signed-off-by: Abdellatif El Khlifi > Cc: Tom Rini Applied to u-boot/master, thanks! -- Tom

Re: [PATCH] get_maintainer.pl: update from Linux kernel v6.5

2023-10-30 Thread Tom Rini
On Sat, Oct 28, 2023 at 12:58:27PM -0400, Tom Rini wrote: > Update U-Boot's version of scripts/get_maintainer.pl to sync it up with > the latest changes to the Linux kernel's version of the same script. > > The last sync was with Linux kernel version v5.13-rc6. The commits to > the kernel's get_m

Re: [PATCH v4] misc: i2c_eeprom: consider pagesize when writing to eeprom

2023-10-30 Thread Tom Rini
On Thu, Oct 26, 2023 at 05:47:41AM +, Michel Alex wrote: > Calculate the maximum length of the buffer when writing > across the page boundary. If the buffer length (len) > exceeds the page boundary (pagesize), split it. Use this > length instead of comparing the length with the pagesize, > bec

Re: [PATCH] addrmap: Fix off by one in addrmap_set_entry()

2023-10-30 Thread Tom Rini
On Tue, Jul 25, 2023 at 09:50:40AM +0300, Dan Carpenter wrote: > The > comparison needs to be changed to >= to prevent an out of bounds > write on th next line. > > Signed-off-by: Dan Carpenter > Reviewed-by: Simon Glass While Simon had comments of a more general nature that would be good to h

Re: [PATCH] Kconfig: Remove all default n/no options

2023-10-30 Thread Tom Rini
On Wed, Oct 25, 2023 at 09:25:37AM +0200, Michal Simek wrote: > Similar change was done by commit b4c2c151b14b ("Kconfig: Remove all > default n/no options") and again sync is required. > > default n/no doesn't need to be specified. It is default option anyway. > > Signed-off-by: Michal Simek >

[PATCH v2 2/7] clk/qcom: move ipq4019 driver from mach-ipq40xx

2023-10-30 Thread Caleb Connolly
This driver is just a stub, but it's necessary to support the upcoming reset driver changes. Signed-off-by: Caleb Connolly --- arch/arm/Kconfig | 1 + arch/arm/mach-ipq40xx/Makefile | 1 - drivers/clk/qcom/Kconfig

[PATCH v2 0/7] arm: mach-snapdragon: Qualcomm clock driver cleanup

2023-10-30 Thread Caleb Connolly
This series begins making some headway towards cleaning up Qualcomm platform support in u-boot. The following is a rough overview of the changes: * Move the Qualcomm clock drivers out of mach-snapdragon and into clk/qcom * Introduce per-platform clock driver configs to decouple Qualcomm platform

[PATCH v2 1/7] clk/qcom: move from mach-snapdragon

2023-10-30 Thread Caleb Connolly
Clock drivers don't belong here, move them to the right place and declutter mach-snapdragon a bit. To de-couple these drivers from specific "target" platforms, add additional config options to enable each clock driver gated behind a common CLK_QCOM option and enable them by default for the respect

[PATCH v2 4/7] clk/qcom: sdm845: add register map for simple gate clocks

2023-10-30 Thread Caleb Connolly
Many gate clocks can be enabled with a single register write, add support for defining these simple gate clocks and add the ones found on SDM845. While we're here, inline clk_init_uart() into msm_set_rate(). Signed-off-by: Caleb Connolly --- .../mach-snapdragon/include/mach/sysmap-sdm845.h |

[PATCH v2 3/7] clk/qcom: handle resets and clocks in one device

2023-10-30 Thread Caleb Connolly
From: Konrad Dybcio Qualcomm's clock controller blocks actually do much more than it says on the tin.. They provide clocks, resets and power domains. Currently, U-Boot requires one to spawn 2 separate devices for controlling clocks and resets, both spanning the same register space. Refactor the c

[PATCH v2 5/7] clk/qcom: use function pointers for enable and set_rate

2023-10-30 Thread Caleb Connolly
Currently, it isn't possible to build clock drivers for more than one platform due to how the msm_enable() and msm_set_rate() callbacks are implemented. Extend qcom_clk_data to include function pointers for these and convert all platforms to use them. Previously, clock drivers relied on include/c

[PATCH v2 6/7] clk/qcom: add mnd_width to clk_rcg_set_rate_mnd()

2023-10-30 Thread Caleb Connolly
This property is needed on some platforms to ensure that only the relevant bits are set in the M/N/D registers. Signed-off-by: Caleb Connolly Reviewed-by: Sumit Garg --- drivers/clk/qcom/clock-apq8016.c | 4 ++-- drivers/clk/qcom/clock-apq8096.c | 4 ++-- drivers/clk/qcom/clock-qcom.c| 11

[PATCH v2 7/7] clk/qcom: fix rcg divider value

2023-10-30 Thread Caleb Connolly
The RCG divider field takes a value of (2*h - 1) where h is the divisor. This allows fractional dividers to be supported by calculating them at compile time using a macro. However, the clk_rcg_set_rate_mnd() function was also performing the calculation. Clean this all up and consistently use the F

[PATCH 0/2] rockchip: Support otp on rv1126

2023-10-30 Thread Tim Lunn
This series adds support for reading the otp on rv1126 and then uses this to generate a persistant MAC address from cpuid. Tim Lunn (2): rockchip: otp: Add support for RV1126 rockchip: rv1126: Read cpuid from otp and set ethaddr arch/arm/dts/rv1126-u-boot.dtsi | 12 ++ arch/arm/mach-rock

[PATCH 1/2] rockchip: otp: Add support for RV1126

2023-10-30 Thread Tim Lunn
Extend the otp driver to read rv1126 otp. This driver code was adapted from the Rockchip BSP stack. Signed-off-by: Tim Lunn --- drivers/misc/rockchip-otp.c | 76 + 1 file changed, 76 insertions(+) diff --git a/drivers/misc/rockchip-otp.c b/drivers/misc/rockch

[PATCH 2/2] rockchip: rv1126: Read cpuid from otp and set ethaddr

2023-10-30 Thread Tim Lunn
Provide configuration to read cpuid and generate a persistant MAC address in ethaddr Signed-off-by: Tim Lunn --- arch/arm/dts/rv1126-u-boot.dtsi | 12 arch/arm/mach-rockchip/Kconfig | 2 ++ 2 files changed, 14 insertions(+) diff --git a/arch/arm/dts/rv1126-u-boot.dtsi b/arch/arm/

[PATCH] clk: sunxi: Use the right symbol in the Makefile

2023-10-30 Thread Samuel Holland
CONFIG_ARCH_SUNXI will not be enabled for RISC-V SoCs using this driver. Use the symbol for the driver itself instead. Signed-off-by: Samuel Holland --- drivers/clk/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile index 26b

[PATCH] pinctrl: sunxi: Avoid using .bss for SPL

2023-10-30 Thread Samuel Holland
sunxi platforms put .bss in DRAM, so .bss is not available in SPL before DRAM controller initialization. Therefore, this buffer must be placed in the .data section. Signed-off-by: Samuel Holland --- drivers/pinctrl/sunxi/pinctrl-sunxi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) dif

Re: [PATCH v2 2/2] mmc: Add quirk to disable PWREN for dw_mmc

2023-10-30 Thread Jaehoon Chung
On 7/10/23 22:00, David Hewitt wrote: > This is required for correct booting of the PINE64 PineTab2. If > PWREN is pulled high on this device, the SD card cannot be detected. > > This is required in other PINE64 devices (e.g. Quartz64 Model A) too. > > See commit ba33172a36f298641f51a5e6b855c3e89

Re: [PATCH v2 1/2] power: pmic: support TI TPS65913 PMIC

2023-10-30 Thread Jaehoon Chung
On 7/16/23 03:34, Svyatoslav Ryhel wrote: > Existing PALMAS PMIC driver is fully compatible with TI TPS65913 > PMIC found in many Tegra 4 devices, like Tegra Note 7 and ASUS > TF701T. TPS65913 shares same structure of regulators like TPS659038 > so data can be reused. > > Tested-by: Svyatoslav Ryh

Re: [PATCH v2 2/2] power: pmic: fix regulators behaviour

2023-10-30 Thread Jaehoon Chung
On 7/16/23 03:34, Svyatoslav Ryhel wrote: > Currently device tree entries of regulators are completely > ignored and regulators are probed only if they are called > by the device which uses it. This results into two issues: > regulators which must run under boot-on or always-on mode > are ignored a

Re: [PATCH] mmc: spl: select SPL_BLK for SPL_DM_MMC

2023-10-30 Thread Jaehoon Chung
On 8/24/23 00:45, Oleksandr Suvorov wrote: > mmc_bind() in mmc-uclass.c calls blk_create_devicef() which is > defined in blk-uclass.c, so SPL_BLK is required by SPL_DM_MMC. > Implicitly select SPL_BLK for SPL_DM_MMC. > > Signed-off-by: Oleksandr Suvorov > Reviewed-by: Tom Rini Reviewed-by: Jaeh

Re: [PATCH] power: mp5416: Fix LDO SVAL for MP5416 PMIC

2023-10-30 Thread Jaehoon Chung
On 9/25/23 07:30, Sidharth Prabukumar wrote: > The MP5416 PMIC's LDO set-value formula is incorrect. This patch fixes > it by using the correct formula. > > Signed-off-by: Sidharth Prabukumar > Cc: Jaehoon Chung Reviewed-by: Jaehoon Chung Best Regards, Jaehoon Chung > --- > include/power/mp

Re: [PATCH] spl: mmc: Resolve emmc not load image after switched hw partition

2023-10-30 Thread Jaehoon Chung
On 10/3/23 13:16, Kuan Lim Lee wrote: > When selecting MMCSD_MODE_EMMCBOOT as boot_mode, emmc do not load U-boot > proper image after switched hardware partition. > > Signed-off-by: Kuan Lim Lee > Reviewed-by: Chee Hong Ang > Reviewed-by: Wei Liang Lim Reviewed-by: Jaehoon Chung Best Regard

[RESEND PATCH v3] serial: ns16550: Enable clocks during probe

2023-10-30 Thread Samuel Holland
If the UART bus or baud clock has a gate, it must be enabled before the UART can be used. Reviewed-by: Stefan Roese Signed-off-by: Samuel Holland --- Changes in v3: - Switch back to the original patch, now that the phycore-rk3288 build is fixed by enabling LTO. Changes in v2: - Only enabl

Re: [PATCH v2 1/2] power: pmic: support TI TPS65913 PMIC

2023-10-30 Thread Svyatoslav Ryhel
31 жовтня 2023 р. 07:02:54 GMT+02:00, Jaehoon Chung написав(-ла): >On 7/16/23 03:34, Svyatoslav Ryhel wrote: >> Existing PALMAS PMIC driver is fully compatible with TI TPS65913 >> PMIC found in many Tegra 4 devices, like Tegra Note 7 and ASUS >> TF701T. TPS65913 shares same structure of regula

Re: [PATCH v2 2/2] power: pmic: fix regulators behaviour

2023-10-30 Thread Svyatoslav Ryhel
31 жовтня 2023 р. 07:03:17 GMT+02:00, Jaehoon Chung написав(-ла): >On 7/16/23 03:34, Svyatoslav Ryhel wrote: >> Currently device tree entries of regulators are completely >> ignored and regulators are probed only if they are called >> by the device which uses it. This results into two issues:

RE: [PATCH v2 2/2] power: pmic: fix regulators behaviour

2023-10-30 Thread Jaehoon Chung
Hi, If will resend this patch according Simon's comment, I will check again. Best Regards, Jaehoon Chung > -Original Message- > From: Simon Glass > Sent: Wednesday, July 19, 2023 10:08 AM > To: Svyatoslav Ryhel > Cc: Jaehoon Chung ; Patrick Delaunay > ; u- > b...@lists.denx.de > Subje

RE: [PATCH v2 2/2] power: pmic: fix regulators behaviour

2023-10-30 Thread Svyatoslav Ryhel
31 жовтня 2023 р. 07:11:02 GMT+02:00, Jaehoon Chung написав(-ла): >Hi, > >If will resend this patch according Simon's comment, I will check again. > >Best Regards, >Jaehoon Chung > It will not be updated since it was split into 2 different bigger patchsets one of which was dropped as well. Yo

[PATCH v3 0/4] sunxi: SPL FIT support for 32-bit sunxi SoCs

2023-10-30 Thread Samuel Holland
This series makes the necessary changes so 32-bit sunxi SoCs can load additional device trees or firmware from SPL along with U-Boot proper. Crust (SCP firmware) has support for A33 and H3, and H3 also needs to load an eGon blob to support CPU 0 hotplug (a silicon bug workaround). FIT unlocks more

[PATCH v3 1/4] sunxi: spl: Disable padding from SPL_PAD_TO

2023-10-30 Thread Samuel Holland
Starting with H6, Allwinner removed the artificial 32 KiB SPL size limit from the boot ROM. Now SPL size is only limited by the available SRAM. This limit ranges from 152 KiB on H6 to a whopping 2052 KiB on R329. To take advantage of this additional space, we must increase SPL_MAX_SIZE. Since we do

[PATCH v3 2/4] sunxi: binman: Move BL31 and SCP firmware addresses to Kconfig

2023-10-30 Thread Samuel Holland
This is easier to read than the #ifdef staircase, provides better visibility into the memory map (alongside the other Kconfig definitions), and allows these addresses to be reused from code. Reviewed-by: Simon Glass Signed-off-by: Samuel Holland --- (no changes since v2) Changes in v2: - New

[PATCH v3 3/4] sunxi: binman: Support FIT generation for 32-bit SoCs

2023-10-30 Thread Samuel Holland
Some 32-bit SoCs can use SCP firmware to implement additional PSCI functionality, such as system suspend. In order to load this firmware from SPL, we need to generate and use a FIT instead of a legacy image. Adjust the binman FIT definition so it does not rely on TF-A BL31, as this is not used on

[PATCH v3 4/4] sunxi: Enable SPL FIT loading for 32-bit SoCs

2023-10-30 Thread Samuel Holland
Now that 32-bit SoCs can load U-Boot proper (and possibly other firmware) from a FIT, use this method by default. SPL_FIT_IMAGE_TINY is required to stay within the 24 or 32 KiB SPL size limit on early SoCs; for consistency, enable it everywhere. Signed-off-by: Samuel Holland --- (no changes sinc

[PATCH 1/2] sunxi: mmc: Sort compatible strings numerically

2023-10-30 Thread Samuel Holland
commit 95168d77d391 ("sunxi: add Allwinner R528/T113 SoC support") added the new entry out of order. Signed-off-by: Samuel Holland --- drivers/mmc/sunxi_mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/sunxi_mmc.c b/drivers/mmc/sunxi_mmc.c index 4d6351bf275.

[PATCH 2/2] sunxi: mmc: Move header to the driver directory

2023-10-30 Thread Samuel Holland
The MMC controller driver is (and ought to be) the only user of these register definitions. Put them in a header next to the driver to remove the dependency on a specific ARM platform's headers. Due to the sunxi_mmc_init() prototype, the file was not renamed. None of the register definitions were

[PATCH] net: sun8i_emac: Drop DM_GPIO checks

2023-10-30 Thread Samuel Holland
DM_GPIO is always enable in U-Boot proper for ARCH_SUNXI, and this driver is never enabled in SPL, so the condition is always true. Signed-off-by: Samuel Holland --- drivers/net/sun8i_emac.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/drivers/net/sun8i_emac.c b/drivers/net/su

[PATCH] riscv: Sort target configs alphabetically

2023-10-30 Thread Samuel Holland
Clean things up for the next time somebody adds a target. Signed-off-by: Samuel Holland --- arch/riscv/Kconfig | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 8fc81fb284c..6d0d812ddb5 100644 --- a/arch/riscv/Kc

[PATCH] riscv: Align the trap handler to 64 bytes

2023-10-30 Thread Samuel Holland
This is required on CPUs which always operate in CLIC mode, such as the T-HEAD E906 and E907. Per the CLIC specification: "In this mode, the trap vector base address held in mtvec is constrained to be aligned on a 64-byte or larger power-of-two boundary." Reported-by: Madushan Nishantha Signed-of

[PATCH] riscv: Weakly define invalidate_icache_range()

2023-10-30 Thread Samuel Holland
Some RISC-V CPUs, such as the T-HEAD XuanTie series, have a vendor-specific way to invalidate a portion of the instruction cache. Allow them to override invalidate_icache_range(). Signed-off-by: Samuel Holland --- arch/riscv/lib/cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) dif

Re: [PATCH v2] cmd: mmc: Add mmc reg read command for reading card registers

2023-10-30 Thread Jaehoon Chung
Hi Marek, On 10/10/23 21:47, Marek Vasut wrote: > Add extension to the 'mmc' command to read out the card registers. > Currently, only the eMMC OCR/CID/CSD/EXTCSD/RCA/DSR register are > supported. A register value can either be displayed or read into > an environment variable. > > Signed-off-by:

Re: [PATCH] mmc: pci: Drop the superfluous cast

2023-10-30 Thread Jaehoon Chung
On 10/11/23 20:00, Bin Meng wrote: > dm_pci_map_bar() return a value of (void *) already, hence no need > to cast it again before assigning to host->ioaddr. > > Signed-off-by: Bin Meng > Reviewed-by: Simon Glass Reviewed-by: Jaehoon Chung Best Regards, Jaehoon Chung > --- > > drivers/mmc/p

Re: [PATCH 3/3] power: regulator: add AXP313 support

2023-10-30 Thread Jaehoon Chung
On 10/19/23 00:50, Andre Przywara wrote: > The X-Powers AXP313a is a small PMIC with just three buck converters and > three LDOs, one of which is actually fixed (so not modelled here). > > Add the compatible string and the respective regulator ranges to allow > drivers to adjust voltages. > > Sig

Re: [RFC v2 2/2] rng: Provide a RNG based on the RISC-V Zkr ISA extension

2023-10-30 Thread merle w
drivers/rng/riscv_zkr_rng.c:10:10: fatal error: interrupt.h: No such file or directory 10 | #include | ^ compilation terminated. Where is this interrupt.h? Regards, Xiang W Heinrich Schuchardt 于2023年10月29日周日 16:46写道: > > The Zkr ISA extension (ratified Nov 2021) introduced the seed

RE: [PATCH v2] cmd: mmc: Add mmc reg read command for reading card registers

2023-10-30 Thread Jaehoon Chung
Hi, > -Original Message- > From: U-Boot On Behalf Of Jaehoon Chung > Sent: Tuesday, October 31, 2023 3:08 PM > To: Marek Vasut ; u-boot@lists.denx.de > Cc: Abdellatif El Khlifi ; Heinrich Schuchardt > ; > Ilias Apalodimas ; Ramon Fried > ; Roger Knecht > ; Sean Edmond ; Simon Glass > ;

RE: [PATCH 1/2] sunxi: mmc: Sort compatible strings numerically

2023-10-30 Thread Jaehoon Chung
> -Original Message- > From: Samuel Holland > Sent: Tuesday, October 31, 2023 2:23 PM > To: u-boot@lists.denx.de; Jagan Teki ; Andre > Przywara > > Cc: Samuel Holland ; Jaehoon Chung > ; Peng Fan > > Subject: [PATCH 1/2] sunxi: mmc: Sort compatible strings numerically > > commit 95

RE: [PATCH 2/2] sunxi: mmc: Move header to the driver directory

2023-10-30 Thread Jaehoon Chung
> -Original Message- > From: Samuel Holland > Sent: Tuesday, October 31, 2023 2:23 PM > To: u-boot@lists.denx.de; Jagan Teki ; Andre > Przywara > > Cc: Samuel Holland ; Jaehoon Chung > ; Peng Fan > > Subject: [PATCH 2/2] sunxi: mmc: Move header to the driver directory > > The MMC c

Re: [RFC v2 2/2] rng: Provide a RNG based on the RISC-V Zkr ISA extension

2023-10-30 Thread Heinrich Schuchardt
merle w schrieb am Di., 31. Okt. 2023, 08:16: > drivers/rng/riscv_zkr_rng.c:10:10: fatal error: interrupt.h: No such > file or directory > 10 | #include > | ^ > compilation terminated. > > Where is this interrupt.h? > Please, see patch 1/2. Best regards Heinrich > Regards, > Xi

[PATCH 0/5] sunxi: Control USB VBUS supplies via DT regulators

2023-10-30 Thread Samuel Holland
This series converts sunxi boards from controlling VBUS suppllies using GPIO name strings in Kconfig to using regulator devices probed via the devicetree. ARCH_SUNXI already implies DM_REGULATOR_FIXED, so the only new driver needed is for the AXP PMIC drivevbus regulator. This is part 2 of 3 for re

[PATCH 1/5] power: regulator: Add a driver for the AXP PMIC drivevbus

2023-10-30 Thread Samuel Holland
AXP PMICs have a pin which can either report the USB VBUS state, or driving a regulator that supplies USB VBUS. Add a regulator driver for controlling this pin. The selection between input and output is done via the x-powers,drive-vbus-en pin on the PMIC (parent) node. Signed-off-by: Samuel Hollan

[PATCH 2/5] sunxi: Enable PMIC drivevbus regulator support for USB supplies

2023-10-30 Thread Samuel Holland
On many boards, the USB ports are powered by the PMIC's "drivevbus" regulator. In preparation for switching the USB PHY driver to use the regulator uclass instead of a virtual GPIO pin, ensure these boards have AXP PMIC regulator support enabled. Signed-off-by: Samuel Holland --- configs/A33-OL

[PATCH 3/5] phy: sun4i-usb: Control supplies via the regulator uclass

2023-10-30 Thread Samuel Holland
The device tree binding for the PHY provides VBUS supplies as regulator references. Now that all boards have the appropriate regulator uclass drivers enabled, the PHY driver can switch to using them. This replaces direct GPIO usage, which in some cases needed a special DM-incompatible "virtual" GPI

[PATCH 4/5] sunxi: Remove obsolete USBx_VBUS_PIN Kconfig symbols

2023-10-30 Thread Samuel Holland
Now that the USB PHY driver uses the device tree to get VBUS supply regulators, these Kconfig symbols are unused. Remove them. Signed-off-by: Samuel Holland --- arch/arm/mach-sunxi/Kconfig | 29 configs/A10s-OLinuXino-M_defconfig | 1 - configs/A

[PATCH 5/5] gpio: axp: Remove virtual VBUS enable GPIO

2023-10-30 Thread Samuel Holland
Now that this functionality is modeled using the device tree and regulator uclass, the named GPIO is not referenced anywhere. Remove it, along with the rest of the support for AXP virtual GPIOs. Signed-off-by: Samuel Holland --- drivers/gpio/axp_gpio.c | 75 +++

RE: [PATCH 1/3] sunxi: board: simplify early PMIC setup conditions

2023-10-30 Thread Jaehoon Chung
Hi, > -Original Message- > From: Andre Przywara > Sent: Sunday, October 22, 2023 6:19 AM > To: Jernej Škrabec > Cc: Jagan Teki ; Jaehoon Chung > ; Samuel Holland > ; SASANO Takayoshi ; Mikhail > Kalashnikov ; > Piotr Oniszczuk ; u-boot@lists.denx.de; > linux-su...@lists.linux.dev > Su

RE: [PATCH v9 1/8] power: pmic: palmas: support TI TPS65913 PMIC

2023-10-30 Thread Jaehoon Chung
> -Original Message- > From: Svyatoslav Ryhel > Sent: Friday, October 27, 2023 5:26 PM > To: Tom Rini ; Jaehoon Chung ; > Simon Glass > ; Svyatoslav Ryhel > Cc: u-boot@lists.denx.de > Subject: [PATCH v9 1/8] power: pmic: palmas: support TI TPS65913 PMIC > > Existing PALMAS PMIC drive

Re: [RFC v2 2/2] rng: Provide a RNG based on the RISC-V Zkr ISA extension

2023-10-30 Thread Leo Liang
Hi Xiang, On Tue, Oct 31, 2023 at 02:16:22PM +0800, merle w wrote: > drivers/rng/riscv_zkr_rng.c:10:10: fatal error: interrupt.h: No such > file or directory > 10 | #include > | ^ > compilation terminated. > > Where is this interrupt.h? I think this file is created by the first patch