Commit 7e07d332 authored by Allen-KH Cheng's avatar Allen-KH Cheng Committed by Matthias Brugger

arm64: dts: mediatek: mt8186: Add display nodes

Add display nodes and the GCE (Global Command Engine) properties
to the display nodes in order to enable the usage of the CMDQ
(Command Queue), which is required for operating the display.
Signed-off-by: default avatarAllen-KH Cheng <allen-kh.cheng@mediatek.com>
Reviewed-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20230324021258.15863-7-allen-kh.cheng@mediatek.comSigned-off-by: default avatarMatthias Brugger <matthias.bgg@gmail.com>
parent 41218847
...@@ -20,6 +20,13 @@ / { ...@@ -20,6 +20,13 @@ / {
#address-cells = <2>; #address-cells = <2>;
#size-cells = <2>; #size-cells = <2>;
aliases {
ovl0 = &ovl0;
ovl_2l0 = &ovl_2l0;
rdma0 = &rdma0;
rdma1 = &rdma1;
};
cpus { cpus {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
...@@ -1207,6 +1214,20 @@ mmsys: syscon@14000000 { ...@@ -1207,6 +1214,20 @@ mmsys: syscon@14000000 {
reg = <0 0x14000000 0 0x1000>; reg = <0 0x14000000 0 0x1000>;
#clock-cells = <1>; #clock-cells = <1>;
#reset-cells = <1>; #reset-cells = <1>;
mboxes = <&gce 0 CMDQ_THR_PRIO_HIGHEST>,
<&gce 1 CMDQ_THR_PRIO_HIGHEST>;
mediatek,gce-client-reg = <&gce SUBSYS_1400XXXX 0 0x1000>;
};
mutex: mutex@14001000 {
compatible = "mediatek,mt8186-disp-mutex";
reg = <0 0x14001000 0 0x1000>;
clocks = <&mmsys CLK_MM_DISP_MUTEX0>;
interrupts = <GIC_SPI 295 IRQ_TYPE_LEVEL_HIGH 0>;
mediatek,gce-client-reg = <&gce SUBSYS_1401XXXX 0x1000 0x1000>;
mediatek,gce-events = <CMDQ_EVENT_DISP_STREAM_DONE_ENG_EVENT_0>,
<CMDQ_EVENT_DISP_STREAM_DONE_ENG_EVENT_1>;
power-domains = <&spm MT8186_POWER_DOMAIN_DIS>;
}; };
smi_common: smi@14002000 { smi_common: smi@14002000 {
...@@ -1240,6 +1261,45 @@ larb1: smi@14004000 { ...@@ -1240,6 +1261,45 @@ larb1: smi@14004000 {
power-domains = <&spm MT8186_POWER_DOMAIN_DIS>; power-domains = <&spm MT8186_POWER_DOMAIN_DIS>;
}; };
ovl0: ovl@14005000 {
compatible = "mediatek,mt8186-disp-ovl", "mediatek,mt8192-disp-ovl";
reg = <0 0x14005000 0 0x1000>;
clocks = <&mmsys CLK_MM_DISP_OVL0>;
interrupts = <GIC_SPI 297 IRQ_TYPE_LEVEL_HIGH 0>;
iommus = <&iommu_mm IOMMU_PORT_L0_OVL_RDMA0>;
mediatek,gce-client-reg = <&gce SUBSYS_1400XXXX 0x5000 0x1000>;
power-domains = <&spm MT8186_POWER_DOMAIN_DIS>;
};
ovl_2l0: ovl@14006000 {
compatible = "mediatek,mt8186-disp-ovl-2l", "mediatek,mt8192-disp-ovl-2l";
reg = <0 0x14006000 0 0x1000>;
clocks = <&mmsys CLK_MM_DISP_OVL0_2L>;
interrupts = <GIC_SPI 298 IRQ_TYPE_LEVEL_HIGH 0>;
iommus = <&iommu_mm IOMMU_PORT_L1_OVL_2L_RDMA0>;
mediatek,gce-client-reg = <&gce SUBSYS_1400XXXX 0x6000 0x1000>;
power-domains = <&spm MT8186_POWER_DOMAIN_DIS>;
};
rdma0: rdma@14007000 {
compatible = "mediatek,mt8186-disp-rdma", "mediatek,mt8183-disp-rdma";
reg = <0 0x14007000 0 0x1000>;
clocks = <&mmsys CLK_MM_DISP_RDMA0>;
interrupts = <GIC_SPI 299 IRQ_TYPE_LEVEL_HIGH 0>;
iommus = <&iommu_mm IOMMU_PORT_L1_DISP_RDMA0>;
mediatek,gce-client-reg = <&gce SUBSYS_1400XXXX 0x7000 0x1000>;
power-domains = <&spm MT8186_POWER_DOMAIN_DIS>;
};
color: color@14009000 {
compatible = "mediatek,mt8186-disp-color", "mediatek,mt8173-disp-color";
reg = <0 0x14009000 0 0x1000>;
clocks = <&mmsys CLK_MM_DISP_COLOR0>;
interrupts = <GIC_SPI 301 IRQ_TYPE_LEVEL_HIGH 0>;
mediatek,gce-client-reg = <&gce SUBSYS_1400XXXX 0x8000 0x1000>;
power-domains = <&spm MT8186_POWER_DOMAIN_DIS>;
};
dpi: dpi@1400a000 { dpi: dpi@1400a000 {
compatible = "mediatek,mt8186-dpi"; compatible = "mediatek,mt8186-dpi";
reg = <0 0x1400a000 0 0x1000>; reg = <0 0x1400a000 0 0x1000>;
...@@ -1257,6 +1317,52 @@ port { ...@@ -1257,6 +1317,52 @@ port {
}; };
}; };
ccorr: ccorr@1400b000 {
compatible = "mediatek,mt8186-disp-ccorr", "mediatek,mt8192-disp-ccorr";
reg = <0 0x1400b000 0 0x1000>;
clocks = <&mmsys CLK_MM_DISP_CCORR0>;
interrupts = <GIC_SPI 302 IRQ_TYPE_LEVEL_HIGH 0>;
mediatek,gce-client-reg = <&gce SUBSYS_1400XXXX 0xb000 0x1000>;
power-domains = <&spm MT8186_POWER_DOMAIN_DIS>;
};
aal: aal@1400c000 {
compatible = "mediatek,mt8186-disp-aal", "mediatek,mt8183-disp-aal";
reg = <0 0x1400c000 0 0x1000>;
clocks = <&mmsys CLK_MM_DISP_AAL0>;
interrupts = <GIC_SPI 304 IRQ_TYPE_LEVEL_HIGH 0>;
mediatek,gce-client-reg = <&gce SUBSYS_1400XXXX 0xc000 0x1000>;
power-domains = <&spm MT8186_POWER_DOMAIN_DIS>;
};
gamma: gamma@1400d000 {
compatible = "mediatek,mt8186-disp-gamma", "mediatek,mt8183-disp-gamma";
reg = <0 0x1400d000 0 0x1000>;
clocks = <&mmsys CLK_MM_DISP_GAMMA0>;
interrupts = <GIC_SPI 305 IRQ_TYPE_LEVEL_HIGH 0>;
mediatek,gce-client-reg = <&gce SUBSYS_1400XXXX 0xd000 0x1000>;
power-domains = <&spm MT8186_POWER_DOMAIN_DIS>;
};
postmask: postmask@1400e000 {
compatible = "mediatek,mt8186-disp-postmask",
"mediatek,mt8192-disp-postmask";
reg = <0 0x1400e000 0 0x1000>;
clocks = <&mmsys CLK_MM_DISP_POSTMASK0>;
interrupts = <GIC_SPI 306 IRQ_TYPE_LEVEL_HIGH 0>;
mediatek,gce-client-reg = <&gce SUBSYS_1400XXXX 0xe000 0x1000>;
power-domains = <&spm MT8186_POWER_DOMAIN_DIS>;
};
dither: dither@1400f000 {
compatible = "mediatek,mt8186-disp-dither", "mediatek,mt8183-disp-dither";
reg = <0 0x1400f000 0 0x1000>;
clocks = <&mmsys CLK_MM_DISP_DITHER0>;
interrupts = <GIC_SPI 307 IRQ_TYPE_LEVEL_HIGH 0>;
mediatek,gce-client-reg = <&gce SUBSYS_1400XXXX 0xf000 0x1000>;
power-domains = <&spm MT8186_POWER_DOMAIN_DIS>;
};
dsi0: dsi@14013000 { dsi0: dsi@14013000 {
compatible = "mediatek,mt8186-dsi"; compatible = "mediatek,mt8186-dsi";
reg = <0 0x14013000 0 0x1000>; reg = <0 0x14013000 0 0x1000>;
...@@ -1290,6 +1396,16 @@ &larb13 &larb14 &larb16 &larb17 ...@@ -1290,6 +1396,16 @@ &larb13 &larb14 &larb16 &larb17
#iommu-cells = <1>; #iommu-cells = <1>;
}; };
rdma1: rdma@1401f000 {
compatible = "mediatek,mt8186-disp-rdma", "mediatek,mt8183-disp-rdma";
reg = <0 0x1401f000 0 0x1000>;
clocks = <&mmsys CLK_MM_DISP_RDMA1>;
interrupts = <GIC_SPI 308 IRQ_TYPE_LEVEL_HIGH 0>;
iommus = <&iommu_mm IOMMU_PORT_L1_DISP_RDMA1>;
mediatek,gce-client-reg = <&gce SUBSYS_1401XXXX 0xf000 0x1000>;
power-domains = <&spm MT8186_POWER_DOMAIN_DIS>;
};
wpesys: clock-controller@14020000 { wpesys: clock-controller@14020000 {
compatible = "mediatek,mt8186-wpesys"; compatible = "mediatek,mt8186-wpesys";
reg = <0 0x14020000 0 0x1000>; reg = <0 0x14020000 0 0x1000>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment