All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V2 0/2] Broadcom's PMB (Power Management Bus) support
@ 2020-12-14 18:07 Rafał Miłecki
  2020-12-14 18:07 ` [PATCH V2 1/2] dt-bindings: power: document Broadcom's PMB binding Rafał Miłecki
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Rafał Miłecki @ 2020-12-14 18:07 UTC (permalink / raw)
  To: Florian Fainelli, Rob Herring
  Cc: Philipp Zabel, Rafael J . Wysocki, Kevin Hilman, Ulf Hansson,
	devicetree, bcm-kernel-feedback-list, linux-kernel,
	Rafał Miłecki

From: Rafał Miłecki <rafal@milecki.pl>

PMB is a hardware block used for powering SoC devices like PCIe, USB,
SATA. Initially I planned to treat it as a reset controller and Philipp
pointed out in review that PMB driver should use a power subsystem.

This is my refactored support.

***

Please note one difference when compared to the initial reset attempt.

As I store info about SoC devices in the driver now, I had to put
support for multiple buses there. That's required to avoid things like:

compatible = "brcm,bcm4908-pmb-no-1";
compatible = "brcm,bcm4908-pmb-no-2";

So now a single "reg" covers bigger buses (e.g. 0x40) in size, see:

reg = <0x802800e0 0x40>;

Other SoCs my use something like:

reg = <0x802800e0 0x20>;
reg = <0x802800e0 0x60>;

***

AFAIU this should go through Florian's tree. I based in on top of the
soc-arm64/next.

V2: Use drivers/soc/bcm/bcm63xx/ and add Kconfig help message

Rafał Miłecki (2):
  dt-bindings: power: document Broadcom's PMB binding
  soc: bcm: add PM driver for Broadcom's PMB

 .../bindings/power/brcm,bcm-pmb.yaml          |  50 +++
 MAINTAINERS                                   |  10 +
 drivers/soc/bcm/Makefile                      |   2 +-
 drivers/soc/bcm/bcm63xx/Kconfig               |   9 +
 drivers/soc/bcm/bcm63xx/Makefile              |   1 +
 drivers/soc/bcm/bcm63xx/bcm-pmb.c             | 333 ++++++++++++++++++
 include/dt-bindings/soc/bcm-pmb.h             |  11 +
 7 files changed, 415 insertions(+), 1 deletion(-)
 create mode 100644 Documentation/devicetree/bindings/power/brcm,bcm-pmb.yaml
 create mode 100644 drivers/soc/bcm/bcm63xx/bcm-pmb.c
 create mode 100644 include/dt-bindings/soc/bcm-pmb.h

-- 
2.26.2


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

end of thread, other threads:[~2021-01-13  4:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-14 18:07 [PATCH V2 0/2] Broadcom's PMB (Power Management Bus) support Rafał Miłecki
2020-12-14 18:07 ` [PATCH V2 1/2] dt-bindings: power: document Broadcom's PMB binding Rafał Miłecki
2020-12-15 17:51   ` Rob Herring
2020-12-15 18:22   ` Florian Fainelli
2021-01-12 13:14   ` Ulf Hansson
2020-12-14 18:07 ` [PATCH V2 2/2] soc: bcm: add PM driver for Broadcom's PMB Rafał Miłecki
2020-12-15 18:24   ` Florian Fainelli
2021-01-12 13:14     ` Ulf Hansson
2021-01-13  4:46 ` [PATCH V2 0/2] Broadcom's PMB (Power Management Bus) support Florian Fainelli

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.