devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] reset: gpio: ASoC: shared GPIO resets
@ 2023-12-22 15:01 Krzysztof Kozlowski
  2023-12-22 15:01 ` [PATCH 1/4] reset: instantiate reset GPIO controller for shared reset-gpios Krzysztof Kozlowski
                   ` (5 more replies)
  0 siblings, 6 replies; 28+ messages in thread
From: Krzysztof Kozlowski @ 2023-12-22 15:01 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Srinivas Kandagatla,
	Banajit Goswami, Liam Girdwood, Mark Brown, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Philipp Zabel, Jaroslav Kysela,
	Takashi Iwai, linux-arm-msm, alsa-devel, linux-sound, devicetree,
	linux-kernel
  Cc: Krzysztof Kozlowski, Chris Packham, Bartosz Golaszewski,
	Sean Anderson

Hi,

We have at least few cases where hardware engineers decided to use one
powerdown/shutdown/reset GPIO line for multiple devices:

1. WSA884x (this and previous patch):
https://lore.kernel.org/all/b7aeda24-d638-45b7-8e30-80d287f498f8@sirena.org.uk/
2. https://lore.kernel.org/all/20231027033104.1348921-1-chris.packham@alliedtelesis.co.nz/
3. https://lore.kernel.org/lkml/20191030120440.3699-1-peter.ujfalusi@ti.com/
4. https://lore.kernel.org/all/20211018234923.1769028-1-sean.anderson@seco.com/
5. https://social.treehouse.systems/@marcan/111268780311634160

I try to solve my case, hopefuly Chris' (2), partially Sean's (4) and maybe
Hectors (5), using Rob's suggestion:

https://lore.kernel.org/all/YXi5CUCEi7YmNxXM@robh.at.kernel.org/

Best regards,
Krzysztof

Cc: Chris Packham <chris.packham@alliedtelesis.co.nz>
Cc: Bartosz Golaszewski <brgl@bgdev.pl>
Cc: Sean Anderson <sean.anderson@seco.com>

Krzysztof Kozlowski (4):
  reset: instantiate reset GPIO controller for shared reset-gpios
  reset: add GPIO-based reset controller
  ASoC: dt-bindings: qcom,wsa8840: Add reset-gpios for shared line
  ASoC: codecs: wsa884x: Allow sharing reset GPIO

 .../bindings/sound/qcom,wsa8840.yaml          |   9 +-
 MAINTAINERS                                   |   5 +
 drivers/reset/Kconfig                         |   9 ++
 drivers/reset/Makefile                        |   1 +
 drivers/reset/core.c                          |  70 ++++++++++--
 drivers/reset/reset-gpio.c                    | 105 ++++++++++++++++++
 include/linux/reset-controller.h              |   2 +
 sound/soc/codecs/wsa884x.c                    |  52 +++++++--
 8 files changed, 231 insertions(+), 22 deletions(-)
 create mode 100644 drivers/reset/reset-gpio.c

-- 
2.34.1


^ permalink raw reply	[flat|nested] 28+ messages in thread
* Re: [PATCH 2/4] reset: add GPIO-based reset controller
@ 2024-02-29 17:26 Tim Harvey
  2024-02-29 17:45 ` Krzysztof Kozlowski
  0 siblings, 1 reply; 28+ messages in thread
From: Tim Harvey @ 2024-02-29 17:26 UTC (permalink / raw)
  To: Sean Anderson, Krzysztof Kozlowski
  Cc: Linux-ALSA, andersson, bgoswami, brgl, Mark Brown, Conor Dooley,
	Device Tree Mailing List, konrad.dybcio, Krzysztof Kozlowski,
	Liam Girdwood, linux-arm-msm, open list, linux-sound,
	Philipp Zabel, perex, Rob Herring, srinivas.kandagatla, tiwai

> On 1/9/24 04:41, Krzysztof Kozlowski wrote:
>
> I think a separate pseudo-device is necessary a generic solution. So I
> guess I will revive my patchset.
>

Sean and Krzysztof,

I see a lot of value in a generic reset-gpio driver that you have both
tried to get accepted in the past. I support boards that have a number
of SPI and I2C devices that often have GPIO resets wired to them that
are pulled in hardware to the in-reset state and find no support in
the various drivers for reset handling. I've often wondered why a
generic gpio reset wasn't supported in the SPI/I2C cores like it is
for some other subsystems.

The approach of a gpios-reset solution makes sense to me.

Will you be submitting a follow-on series to your previous attempts?

Best Regards,

Tim

^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2024-02-29 17:45 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-22 15:01 [PATCH 0/4] reset: gpio: ASoC: shared GPIO resets Krzysztof Kozlowski
2023-12-22 15:01 ` [PATCH 1/4] reset: instantiate reset GPIO controller for shared reset-gpios Krzysztof Kozlowski
2023-12-22 17:31   ` Bartosz Golaszewski
2023-12-27 12:35     ` Krzysztof Kozlowski
2023-12-27 19:13       ` Bartosz Golaszewski
2023-12-22 15:01 ` [PATCH 2/4] reset: add GPIO-based reset controller Krzysztof Kozlowski
2023-12-22 15:08   ` Krzysztof Kozlowski
2023-12-28 16:05   ` Sean Anderson
2024-01-04  8:57     ` Krzysztof Kozlowski
2024-01-04 16:04       ` Sean Anderson
2024-01-04 16:08         ` Krzysztof Kozlowski
2024-01-04 16:30           ` Sean Anderson
2024-01-04 19:08             ` Krzysztof Kozlowski
2024-01-05 14:31               ` Philipp Zabel
2024-01-09  9:41                 ` Krzysztof Kozlowski
2024-01-09 15:51                   ` Sean Anderson
2024-01-05 14:33               ` Mark Brown
2024-01-06 15:32                 ` Krzysztof Kozlowski
2024-01-04 16:11         ` Krzysztof Kozlowski
2023-12-22 15:01 ` [PATCH 3/4] ASoC: dt-bindings: qcom,wsa8840: Add reset-gpios for shared line Krzysztof Kozlowski
2023-12-22 15:16   ` Krzysztof Kozlowski
2023-12-22 16:18   ` Rob Herring
2023-12-22 15:01 ` [PATCH 4/4] ASoC: codecs: wsa884x: Allow sharing reset GPIO Krzysztof Kozlowski
2023-12-22 15:22   ` Krzysztof Kozlowski
2023-12-22 15:09 ` [PATCH 0/4] reset: gpio: ASoC: shared GPIO resets Krzysztof Kozlowski
2023-12-22 15:18 ` Mark Brown
  -- strict thread matches above, loose matches on Subject: below --
2024-02-29 17:26 [PATCH 2/4] reset: add GPIO-based reset controller Tim Harvey
2024-02-29 17:45 ` Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).