All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/3] reset: npcm: add NPCM reset driver support
@ 2019-11-06  9:58 Tomer Maimon
  2019-11-06  9:58 ` [PATCH v4 1/3] dt-bindings: reset: add NPCM reset controller documentation Tomer Maimon
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Tomer Maimon @ 2019-11-06  9:58 UTC (permalink / raw)
  To: p.zabel, robh+dt, mark.rutland, yuenn, venture, benjaminfair,
	avifishman70, joel
  Cc: openbmc, linux-kernel, devicetree, Tomer Maimon

This patch set adds reset controller support 
for the Nuvoton NPCM Baseboard Management Controller (BMC).

Apart of controlling all NPCM BMC reset module lines the NPCM reset driver
support NPCM BMC software reset to restarting the NPCM BMC.

Supporting NPCM USB-PHY reset as follow:

NPCM BMC USB-PHY connected to two modules USB device (UDC) and USB host.

If we will restart the USB-PHY at the UDC probe and later the 
USB host probe will restart USB-PHY again it will disable the UDC
and vice versa.

The solution is to reset the USB-PHY at the reset probe stage before 
the UDC and the USB host are initializing.

NPCM reset driver tested on NPCM750 evaluation board.

Addressed comments from:.
 - Rob Herring : https://lkml.org/lkml/2019/11/5/918

Changes since version 3:
 - Modify to dt-bindings in the commit subject.
 - Remove footer from all the sent patches.
 
Changes since version 2:
 - Remove unnecessary details in the dt-binding documentation.
 - Modify device tree binding constants.
 - initialize gcr_regmap parameter to NULL.
 - Add of_xlate support.
 - Enable NPCM reset driver by default.
 - Remove unused header include.
 - Using devm_platform_ioremap_resource instead of_address_to_resource 
	and devm_ioremap_resource.
 - Modify number of resets.
 - Using devm_reset_controller_register instead reset_controller_register.
 - Remove unnecessary probe print.
  
Changes since version 1:
 - Check if gcr_regmap parameter initialized before using it.

Tomer Maimon (3):
  dt-bindings: reset: add NPCM reset controller documentation
  dt-bindings: reset: Add binding constants for NPCM7xx reset controller
  reset: npcm: add NPCM reset controller driver

 .../bindings/reset/nuvoton,npcm-reset.txt     |  32 ++
 drivers/reset/Kconfig                         |   7 +
 drivers/reset/Makefile                        |   1 +
 drivers/reset/reset-npcm.c                    | 281 ++++++++++++++++++
 .../dt-bindings/reset/nuvoton,npcm7xx-reset.h |  91 ++++++
 5 files changed, 412 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/reset/nuvoton,npcm-reset.txt
 create mode 100644 drivers/reset/reset-npcm.c
 create mode 100644 include/dt-bindings/reset/nuvoton,npcm7xx-reset.h

-- 
2.22.0


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

end of thread, other threads:[~2019-11-06 11:25 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-06  9:58 [PATCH v4 0/3] reset: npcm: add NPCM reset driver support Tomer Maimon
2019-11-06  9:58 ` [PATCH v4 1/3] dt-bindings: reset: add NPCM reset controller documentation Tomer Maimon
2019-11-06  9:58 ` [PATCH v4 2/3] dt-bindings: reset: Add binding constants for NPCM7xx reset controller Tomer Maimon
2019-11-06  9:58 ` [PATCH v4 3/3] reset: npcm: add NPCM reset controller driver Tomer Maimon
2019-11-06 10:39   ` Philipp Zabel
2019-11-06 10:39     ` Philipp Zabel
2019-11-06 11:14     ` Tomer Maimon
2019-11-06 11:25       ` Philipp Zabel
2019-11-06 11:25         ` Philipp Zabel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.