[PATCH v2 4/4] arm64: defconfig: Enable MediaTek DRAMC common driver

2021-04-16 Thread Po-Kai Chi
This commit enables MediaTek DRAMC common driver to be built as a module by default for the ARM64 builds. Signed-off-by: Po-Kai Chi --- arch/arm64/configs/defconfig |1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index d612f63

[PATCH v2] memory: mediatek: add DRAM controller driver

2021-04-16 Thread Po-Kai Chi
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

[PATCH v2 2/4] memory: mediatek: add DRAM controller driver

2021-04-16 Thread Po-Kai Chi
MediaTek DRAM controller (DRAMC) driver provides cross-platform features as below: 1. provide APIs for low power feature queries 2. create sysfs to pass the DRAM information to user-space Signed-off-by: Po-Kai Chi --- drivers/memory/Kconfig |1 + drivers/memory/Makefile

[PATCH v2 3/4] arm64: dts: add DRAMC node for MT6779

2021-04-16 Thread Po-Kai Chi
register settings, encapsulated as compatible data for better DTS compatibility. Signed-off-by: Po-Kai Chi --- arch/arm64/boot/dts/mediatek/mt6779-evb.dts |9 + arch/arm64/boot/dts/mediatek/mt6779.dtsi| 18 ++ 2 files changed, 27 insertions(+) diff --git a/arch

[PATCH v2 1/4] dt-bindings: memory: Add binding for MediaTek DRAM Controller

2021-04-16 Thread Po-Kai Chi
This patch adds the documentation of the device-tree binding for MediaTek DRAM Controller. Signed-off-by: Po-Kai Chi --- .../memory-controllers/mediatek,dramc.yaml | 162 1 file changed, 162 insertions(+) create mode 100644 Documentation/devicetree/bindings

Re: [PATCH v1 1/4] dt-bindings: memory: Add binding for MediaTek Common DRAM Controller

2021-04-01 Thread Po-Kai Chi
Hello Rob, Thanks for the remind about dt_binding_check fail and the comments, my reply is as follows and will fix it in the next version (v2). Po-Kai On Tue, 2021-03-30 at 21:58 +0800, Rob Herring wrote: > On Tue, Mar 30, 2021 at 01:22:08PM +0800, Po-Kai Chi wrote: > > This patch

[PATCH v1 3/4] arm64: dts: add DRAMC node for MT6779

2021-03-29 Thread Po-Kai Chi
-specific register settings, encapsulated as compatible data for better DTS compatibility. Signed-off-by: Po-Kai Chi --- arch/arm64/boot/dts/mediatek/mt6779-evb.dts |9 + arch/arm64/boot/dts/mediatek/mt6779.dtsi| 18 ++ 2 files changed, 27 insertions

[PATCH v1 4/4] arm64: defconfig: Enable MediaTek DRAMC common driver

2021-03-29 Thread Po-Kai Chi
This commit enables MediaTek DRAMC common driver to be built as a module by default for the ARM64 builds. Signed-off-by: Po-Kai Chi --- arch/arm64/configs/defconfig |1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index d612f63

[PATCH v1 2/4] memory: mediatek: add DRAM controller driver

2021-03-29 Thread Po-Kai Chi
data rate to user-space for MediaTek ecosystem. Signed-off-by: Po-Kai Chi --- drivers/memory/Kconfig |1 + drivers/memory/Makefile |1 + drivers/memory/mediatek/Kconfig |9 + drivers/memory/mediatek/Makefile|3 + drivers/memory/mediatek/mtk

[PATCH v1 1/4] dt-bindings: memory: Add binding for MediaTek Common DRAM Controller

2021-03-29 Thread Po-Kai Chi
This patch adds the documentation of the device-tree binding for MediaTek Common DRAM Controller. Signed-off-by: Po-Kai Chi --- .../memory-controllers/mediatek,dramc.yaml | 155 1 file changed, 155 insertions(+) create mode 100644 Documentation/devicetree

[PATCH v1] memory: mediatek: add DRAM controller driver

2021-03-29 Thread Po-Kai Chi
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 c