All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] memory: mediatek: add DRAM controller driver
@ 2021-04-16  9:32 ` Po-Kai Chi
  0 siblings, 0 replies; 22+ messages in thread
From: Po-Kai Chi @ 2021-04-16  9:32 UTC (permalink / raw)
  To: Matthias Brugger
  Cc: linux-kernel, linux-mediatek, devicetree, wsd_upstream, CC Hwang

These patch series introduces the MediaTek DRAM controller driver (DRAMC)
on MT6779 SoC, and enables to be built as a module by default for the
ARM64 builds.

MediaTek DRAMC driver provides cross-platform features as below:
  - API provided to other kernel modules for querying DRAM type,
    rank count, rank size, channel count and mode register settings.
  - Sysfs interface used to pass DRAM mode register settings and current
    DRAM data rate to user-space for MediaTek ecosystem.

The API user includes MediaTek External Memory Interface (EMI) and
DVFS Resource Control (DVFSRC), which will be sent to mainline later.

Changes since v1:
- add prefix to vendor properties in device tree, dt-binding and drivers
- fix dt-binding check fail

Po-Kai Chi (4):
  dt-bindings: memory: Add binding for MediaTek DRAM Controller
  memory: mediatek: add DRAM controller driver
  arm64: dts: add DRAMC node for MT6779
  arm64: defconfig: Enable MediaTek DRAMC common driver

 .../memory-controllers/mediatek,dramc.yaml    | 162 ++++
 arch/arm64/boot/dts/mediatek/mt6779-evb.dts   |   9 +
 arch/arm64/boot/dts/mediatek/mt6779.dtsi      |  18 +
 arch/arm64/configs/defconfig                  |   1 +
 drivers/memory/Kconfig                        |   1 +
 drivers/memory/Makefile                       |   1 +
 drivers/memory/mediatek/Kconfig               |   9 +
 drivers/memory/mediatek/Makefile              |   3 +
 drivers/memory/mediatek/mtk-dramc.c           | 711 ++++++++++++++++++
 include/memory/mediatek/dramc.h               |  18 +
 10 files changed, 933 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/memory-controllers/mediatek,dramc.yaml
 create mode 100644 drivers/memory/mediatek/Kconfig
 create mode 100644 drivers/memory/mediatek/Makefile
 create mode 100644 drivers/memory/mediatek/mtk-dramc.c
 create mode 100644 include/memory/mediatek/dramc.h


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

end of thread, other threads:[~2021-05-04 14:07 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-16  9:32 [PATCH v2] memory: mediatek: add DRAM controller driver Po-Kai Chi
2021-04-16  9:32 ` Po-Kai Chi
2021-04-16  9:32 ` [PATCH v2 1/4] dt-bindings: memory: Add binding for MediaTek DRAM Controller Po-Kai Chi
2021-04-16  9:32   ` Po-Kai Chi
2021-05-04 14:00   ` Krzysztof Kozlowski
2021-05-04 14:00     ` Krzysztof Kozlowski
2021-04-16  9:32 ` [PATCH v2 2/4] memory: mediatek: add DRAM controller driver Po-Kai Chi
2021-04-16  9:32   ` Po-Kai Chi
2021-04-20 18:28   ` Rob Herring
2021-04-20 18:28     ` Rob Herring
2021-04-27  5:13     ` Po-Kai Chi
2021-04-27  5:13       ` Po-Kai Chi
2021-05-04 14:05   ` Krzysztof Kozlowski
2021-05-04 14:05     ` Krzysztof Kozlowski
2021-04-16  9:32 ` [PATCH v2 3/4] arm64: dts: add DRAMC node for MT6779 Po-Kai Chi
2021-04-16  9:32   ` Po-Kai Chi
2021-04-16  9:32 ` [PATCH v2 4/4] arm64: defconfig: Enable MediaTek DRAMC common driver Po-Kai Chi
2021-04-16  9:32   ` Po-Kai Chi
2021-05-04 14:06   ` Krzysztof Kozlowski
2021-05-04 14:06     ` Krzysztof Kozlowski
2021-05-04 13:56 ` [PATCH v2] memory: mediatek: add DRAM controller driver Krzysztof Kozlowski
2021-05-04 13:56   ` Krzysztof Kozlowski

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.