mbox series

[v5,0/3] Add Broadcom STB memory controller driver

Message ID 20220812222533.2428033-1-f.fainelli@gmail.com (mailing list archive)
Headers show
Series Add Broadcom STB memory controller driver | expand

Message

Florian Fainelli Aug. 12, 2022, 10:25 p.m. UTC
Hi Krzysztof,

This small patch series adds basic support for controlling self-refresh
power down on Broadcom STB memory controllers. We might be able to
contribute more features to the memory controller driver in the future
like accurate reporting of the memory type, timings, and possibly some
performance counters.

Changes in v5:

- use DEFINE_SIMPLE_PM_OPS() to avoid keeping the __maybe_unused

Changes in v4:

- drop unnecessary owner assignment for the platform_driver
- use pm_ptr() as directed

Changes in v3:

- made 'frequency' property optional to avoid introducing warnings for
  existing BMIPS and BCM7445 DTS files
- updated sysfs document to use a shorter and universal path

Changes in v2:

- merged the v1 first two patches
- added a sysfs document describing attributes exposed
- addressed feedback from Krzysztof regarding style and API usage

Florian Fainelli (3):
  dt-bindings: memory-controller: Document Broadcom STB MEMC
  Documentation: sysfs: Document Broadcom STB memc sysfs knobs
  memory: Add Broadcom STB memory controller driver

 .../ABI/testing/sysfs-platform-brcmstb-memc   |  15 +
 .../bindings/arm/bcm/brcm,brcmstb.txt         |  11 +-
 .../brcm,brcmstb-memc-ddr.yaml                |  52 +++
 drivers/memory/Kconfig                        |   9 +
 drivers/memory/Makefile                       |   1 +
 drivers/memory/brcmstb_memc.c                 | 301 ++++++++++++++++++
 6 files changed, 380 insertions(+), 9 deletions(-)
 create mode 100644 Documentation/ABI/testing/sysfs-platform-brcmstb-memc
 create mode 100644 Documentation/devicetree/bindings/memory-controllers/brcm,brcmstb-memc-ddr.yaml
 create mode 100644 drivers/memory/brcmstb_memc.c

Comments

Krzysztof Kozlowski Aug. 17, 2022, 7:16 a.m. UTC | #1
On Fri, 12 Aug 2022 15:25:30 -0700, Florian Fainelli wrote:
> This small patch series adds basic support for controlling self-refresh
> power down on Broadcom STB memory controllers. We might be able to
> contribute more features to the memory controller driver in the future
> like accurate reporting of the memory type, timings, and possibly some
> performance counters.
> 
> Changes in v5:
> 
> [...]

Applied, thanks!

[1/3] dt-bindings: memory-controller: Document Broadcom STB MEMC
      https://git.kernel.org/krzk/linux-mem-ctrl/c/0da0b6bf854dcfb047fec70bbbadabb7ff0fcb3e
[2/3] Documentation: sysfs: Document Broadcom STB memc sysfs knobs
      https://git.kernel.org/krzk/linux-mem-ctrl/c/df0269bb936430c2e5c45b158fbbe5a13728d53f
[3/3] memory: Add Broadcom STB memory controller driver
      https://git.kernel.org/krzk/linux-mem-ctrl/c/65991a63d02decf269e7d5334620df0dd5919762

Best regards,