MediaTek mmsys controller
Schema identifier ($id): "http://devicetree.org/schemas/arm/mediatek/mediatek,mmsys.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Matthias Brugger <matthias.bgg@gmail.com>"
The MediaTek mmsys system controller provides clock control, routing control, and miscellaneous control in mmsys partition.
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^syscon@[0-9a-f]+$"
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"mediatek,mt2701-mmsys","mediatek,mt2712-mmsys","mediatek,mt6765-mmsys","mediatek,mt6779-mmsys","mediatek,mt6795-mmsys","mediatek,mt6797-mmsys","mediatek,mt8167-mmsys","mediatek,mt8173-mmsys","mediatek,mt8183-mmsys","mediatek,mt8186-mmsys","mediatek,mt8188-vdosys0","mediatek,mt8188-vdosys1","mediatek,mt8188-vppsys0","mediatek,mt8188-vppsys1","mediatek,mt8192-mmsys","mediatek,mt8195-vdosys1","mediatek,mt8195-vppsys0","mediatek,mt8195-vppsys1","mediatek,mt8365-mmsys"Item 2
Exact value (
const):"syscon"
Rule 2
vdosys0 and vdosys1 are 2 display HW pipelines, so mt8195 binding should be deprecated.
Deprecated (
deprecated):trueArray item rules (
items)Item 1
Exact value (
const):"mediatek,mt8195-mmsys"Item 2
Exact value (
const):"syscon"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"mediatek,mt7623-mmsys"Item 2
Exact value (
const):"mediatek,mt2701-mmsys"Item 3
Exact value (
const):"syscon"
Rule 4
Array item rules (
items)Item 1
Exact value (
const):"mediatek,mt8195-vdosys0"Item 2
Exact value (
const):"mediatek,mt8195-mmsys"Item 3
Exact value (
const):"syscon"
reg — required here #
Maximum number of items (maxItems): 1
power-domains — not listed as required here #
A phandle and PM domain specifier as defined by bindings of the power controller specified by phandle. See Documentation/devicetree/bindings/power/power-domain.yaml for details.
mboxes — not listed as required here #
Using mailbox to communicate with GCE, it should have this property and list of phandle, mailbox specifiers. See Documentation/devicetree/bindings/mailbox/mediatek,gce-mailbox.yaml for details.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
mediatek,gce-client-reg — not listed as required here #
The register of client driver can be configured by gce with 4 arguments defined in this property, such as phandle of gce, subsys id, register offset and size. Each subsys id is mapping to a base address of display function blocks register which is defined in the gce header include/dt-bindings/gce/<chip>-gce.h.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Maximum number of items (maxItems): 1
#clock-cells — required here #
Exact value (const): 1
#reset-cells — not listed as required here #
Exact value (const): 1
port — not listed as required here #
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
Output port node. This port connects the MMSYS/VDOSYS output to the first component of one display pipeline, for example one of the available OVL or RDMA blocks. Some MediaTek SoCs support multiple display outputs per MMSYS.
Properties and child nodes (properties) #
endpoint@0 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/endpoint
Output to the primary display pipeline
endpoint@1 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/endpoint
Output to the secondary display pipeline
endpoint@2 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/endpoint
Output to the tertiary display pipeline
At least one of these rules must match (anyOf) #
Rule 1
Rule 2
Rule 3
Required in this object (required): "compatible", "reg", "#clock-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/power/mt8173-power.h>
#include <dt-bindings/gce/mt8173-gce.h>
mmsys: syscon@14000000 {
compatible = "mediatek,mt8173-mmsys", "syscon";
reg = <0x14000000 0x1000>;
power-domains = <&spm MT8173_POWER_DOMAIN_MM>;
#clock-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>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)