[PATCH v4 0/5] reset: Introduce reset_reset.*() API

Michal Simek michal.simek at amd.com
Mon Jun 8 10:48:45 CEST 2026



On 5/25/26 13:45, Michal Simek wrote:
> Hi,
> 
> the patchset is adding reset_reset.*() interface which is common
> in Linux. And implement it for ZynqMP.
> 
> Thanks,
> Michal
> 
> Changes in v4:
> - change reset test logic
> 
> Changes in v3:
> - extend function documentation
> - align commit message with implementation
> - new patch in series
> 
> Changes in v2:
> - Add delay_us parameter to specify delay between assert and deassert
> - Pass delay_us to rst_reset op so drivers can use it if needed
> - Return -ENOSYS in stubs when !CONFIG_DM_RESET (like clk.h)
> - Fix line length to stay within 80 characters
> - Add reset_count field to track reset pulse operations
> - Implement sandbox_reset_reset() for rst_reset op
> - Add sandbox_reset_get_count() to query reset pulse count
> - Clear reset_count when reset is requested
> - Update tests to verify reset pulse actually happened
> - Pass 10us via parameter
> 
> Michal Simek (5):
>    reset: Add reset_reset() and reset_reset_bulk() API
>    reset: Add sandbox tests for reset_reset() and reset_reset_bulk()
>    reset: sandbox: Cover reset_reset() fallback with second sandbox
>      provider
>    spi: cadence: Use reset_reset_bulk() for proper reset cycling
>    reset: zynqmp: Implement rst_reset using PM_RESET_ACTION_PULSE
> 
>   arch/sandbox/dts/test.dts          |  10 ++-
>   arch/sandbox/include/asm/reset.h   |   3 +
>   drivers/reset/reset-uclass.c       |  34 +++++++++
>   drivers/reset/reset-zynqmp.c       |  11 +++
>   drivers/reset/sandbox-reset-test.c |  14 ++++
>   drivers/reset/sandbox-reset.c      |  58 ++++++++++++++++
>   drivers/spi/cadence_qspi.c         |  16 ++---
>   include/reset-uclass.h             |  19 +++++
>   include/reset.h                    |  49 +++++++++++++
>   test/dm/reset.c                    | 107 +++++++++++++++++++++++++++++
>   10 files changed, 307 insertions(+), 14 deletions(-)
> 

Applied.
M


More information about the U-Boot mailing list