mfd: syscon: Allow reset control for syscon devices
authorJeremy Kerr <jk@codeconstruct.com.au>
Thu, 5 Jan 2023 00:50:10 +0000 (08:50 +0800)
committerLee Jones <lee@kernel.org>
Wed, 22 Feb 2023 08:25:53 +0000 (08:25 +0000)
commit7d1e3bd94828ad9fc86f55253cd6fec8edd65394
treeb19469e3307042d770c948dfb46d52aee5ac70ae
parent0f4d261989a89aa78f309eb0c5cb816028182bca
mfd: syscon: Allow reset control for syscon devices

Simple syscon devices may require deassertion of a reset signal in order
to access their register set. Rather than requiring a custom driver to
implement this, we can use the generic "resets" specifiers to link a
reset line to the syscon.

This change adds an optional reset line to the syscon device
description, and deasserts the reset if detected.

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20230105005010.124948-3-jk@codeconstruct.com.au
drivers/mfd/syscon.c