dt-bindings: soc: Add MT8183 emi dt-bindings
Subsystems (3)
v5 cover dt-bindings: soc: Add MT8183 emi dt-bindings
Add emi dt-bindings of MT8183 in binding document.
--- .../bindings/memory-controllers/mediatek,emi.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Documentation/devicetree/bindings/memory-controllers/mediatek,emi.txt
Documentation/devicetree/bindings/memory-controllers/mediatek,emi.txt new file +19 -0
@@ -0,0 +1,19 @@ +EMI (External Memory Interface) + +Required properties: +- compatible : must be one of : + "mediatek,mt8183-emi" +- reg : the register and size of the EMI block. +- interrupts : includes MPU, CGM, ELM. + +Example: + emi@10219000 { + compatible = "mediatek,mt8183-emi"; + reg = <0 0x10219000 0 0x1000>, /* CEN EMI */ + <0 0x10226000 0 0x1000>, /* EMI MPU */ + <0 0x1022d000 0 0x1000>, /* CHA EMI */ + <0 0x10235000 0 0x1000>; /* CHB EMI */ + interrupts = <GIC_SPI 147 IRQ_TYPE_LEVEL_LOW>, /* MPU */ + <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>, /* CGM */ + <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>; /* ELM */ +};
Signature · 1 line
1.9.1
A message that is not in the archive (sent off-list or not yet received): 1557296297-28138-1-git-send-email-xixi.chen-NuS5LvNUpcJWk0Htik3J/[email protected]
PATCH v5 1/2 arm64: dts: mt8183: add emi node
Add emi dts node.
Change-Id Ic12dd7a425e98eaf0e5e853e2e80dec29d874f6a
--- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+)
arch/arm64/boot/dts/mediatek/mt8183.dtsi +11 -0
@@ -269,6 +269,17 @@ clock-names = "spi", "wrap"; }; + emi@10219000 { + compatible = "mediatek,mt8183-emi"; + reg = <0 0x10219000 0 0x1000>, /* CEN EMI */ + <0 0x10226000 0 0x1000>, /* EMI MPU */ + <0 0x1022d000 0 0x1000>, /* CHA EMI */ + <0 0x10235000 0 0x1000>; /* CHB EMI */ + interrupts = <GIC_SPI 147 IRQ_TYPE_LEVEL_LOW>, /* MPU */ + <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>, /* CGM */ + <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>; /* ELM */ + }; + uart0: serial@11002000 { compatible = "mediatek,mt8183-uart", "mediatek,mt6577-uart";
Signature · 1 line
1.9.1
PATCH v5 2/2 mt8183: emi: add bandwidth driver support
In reply to a message not in the archiveEMI provides interface for get bandwidth on every 1 miliseconds. Currently, just support GPU bandwidth info.
--- drivers/memory/Kconfig | 9 ++ drivers/memory/Makefile | 1 + drivers/memory/mtk-emi.c | 395 +++++++++++++++++++++++++++++++++++++++++++++ include/soc/mediatek/emi.h | 116 +++++++++++++ 4 files changed, 521 insertions(+) create mode 100644 drivers/memory/mtk-emi.c create mode 100644 include/soc/mediatek/emi.h
drivers/memory/Kconfig +9 -0
@@ -129,6 +129,15 @@ config JZ4780_NEMC the Ingenic JZ4780. This controller is used to handle external memory devices such as NAND and SRAM. +config MTK_EMI_MBW + bool "Mediatek EMI bandwidth driver" + depends on ARCH_MEDIATEK || COMPILE_TEST + help + This driver is for MTK EMI control. + If unsure, use N. + This is the first time emi upstream. + Only support emi bw statistics. + config MTK_SMI bool depends on ARCH_MEDIATEK || COMPILE_TEST
drivers/memory/Makefile +1 -0
@@ -17,6 +17,7 @@ obj-$(CONFIG_FSL_CORENET_CF) += fsl-corenet-cf.o obj-$(CONFIG_FSL_IFC) += fsl_ifc.o obj-$(CONFIG_MVEBU_DEVBUS) += mvebu-devbus.o obj-$(CONFIG_JZ4780_NEMC) += jz4780-nemc.o +obj-$(CONFIG_MTK_EMI_MBW) += mtk-emi.o obj-$(CONFIG_MTK_SMI) += mtk-smi.o obj-$(CONFIG_DA8XX_DDRCTL) += da8xx-ddrctl.o obj-$(CONFIG_PL353_SMC) += pl353-smc.o
drivers/memory/mtk-emi.c new file +395 -0
395 lines not on this page · raw message
include/soc/mediatek/emi.h new file +116 -0
116 lines not on this page · raw message
Signature · 1 line
1.9.1