linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/5] memory: brcmstb_dpfe: support DPFE API v4
@ 2024-01-19 21:52 Markus Mayer
  2024-01-19 21:52 ` [PATCH v2 1/5] dt-bindings: memory: remove generic compatible string brcm,dpfe-cpu Markus Mayer
                   ` (4 more replies)
  0 siblings, 5 replies; 16+ messages in thread
From: Markus Mayer @ 2024-01-19 21:52 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Florian Fainelli, Rob Herring, Conor Dooley
  Cc: Markus Mayer, Linux ARM Kernel List, Device Tree Mailing List

It has become necessary to distinguish between the various DPFE API
versions by version number. Having just chip-specific compatible strings
no longer meeting our needs. Furthermore, the generic compatible string
"brcm,dpfe-cpu" is being removed as it doesn't serve any actual purpose.
Finally, a new DPFE API version, v4, needs to be supported by the
driver.

To select between the different API versions, a new compatible string
format is being introduced: brcm,dpfe-cpu-v<N> where <N> represents the
API version number.

This approach is needed, because the API version has changed in the past
for some chip, which means it cannot be derived reliably just based on
the chip name.

We rely on the boot firmware to populate Device Tree with the proper
compatible string for the correct DPFE API version. The boot firmware
already has this information and can easily pass it to the kernel in
this manner.

Changes since v1:
  - remove compatible string brcm,dpfe-cpu
  - add compatible strings brcm,bcm7278-dpfe-cpu, brcm,bcm7211-dpfe-cpu
  - add "description" section to the binding
  - drop patch that contained API probing and detection code
  - tweak and clarify a few code comments

Markus Mayer (5):
  dt-bindings: memory: remove generic compatible string brcm,dpfe-cpu
  dt-bindings: memory: add two chip-specific compatible string
  dt-bindings: memory: additional compatible strings for Broadcom DPFE
  memory: brcmstb_dpfe: introduce version-specific compatible strings
  memory: brcmstb_dpfe: support DPFE API v4

 .../memory-controllers/brcm,dpfe-cpu.yaml     | 24 ++++++++++-
 drivers/memory/brcmstb_dpfe.c                 | 41 ++++++++++++++++++-
 2 files changed, 62 insertions(+), 3 deletions(-)

-- 
2.43.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2024-02-02  7:24 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-19 21:52 [PATCH v2 0/5] memory: brcmstb_dpfe: support DPFE API v4 Markus Mayer
2024-01-19 21:52 ` [PATCH v2 1/5] dt-bindings: memory: remove generic compatible string brcm,dpfe-cpu Markus Mayer
2024-01-23 21:22   ` Krzysztof Kozlowski
2024-02-01 22:01     ` Markus Mayer
2024-01-19 21:52 ` [PATCH v2 2/5] dt-bindings: memory: add two chip-specific compatible string Markus Mayer
2024-01-23 21:23   ` Krzysztof Kozlowski
2024-02-01 22:03     ` Markus Mayer
2024-01-19 21:52 ` [PATCH v2 3/5] dt-bindings: memory: additional compatible strings for Broadcom DPFE Markus Mayer
2024-01-23 21:27   ` Krzysztof Kozlowski
2024-02-01 22:36     ` Markus Mayer
2024-02-02  7:17       ` Krzysztof Kozlowski
2024-01-19 21:52 ` [PATCH v2 4/5] memory: brcmstb_dpfe: introduce version-specific compatible strings Markus Mayer
2024-01-23 21:27   ` Krzysztof Kozlowski
2024-02-01 22:40     ` Markus Mayer
2024-02-02  7:24       ` Krzysztof Kozlowski
2024-01-19 21:52 ` [PATCH v2 5/5] memory: brcmstb_dpfe: support DPFE API v4 Markus Mayer

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).