1c9ccf3a3SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2c9ccf3a3SEmmanuel Vadot%YAML 1.2 3c9ccf3a3SEmmanuel Vadot--- 4c9ccf3a3SEmmanuel Vadot$id: http://devicetree.org/schemas/display/mediatek/mediatek,postmask.yaml# 5c9ccf3a3SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6c9ccf3a3SEmmanuel Vadot 7c9ccf3a3SEmmanuel Vadottitle: Mediatek display postmask 8c9ccf3a3SEmmanuel Vadot 9c9ccf3a3SEmmanuel Vadotmaintainers: 10c9ccf3a3SEmmanuel Vadot - Chun-Kuang Hu <chunkuang.hu@kernel.org> 11c9ccf3a3SEmmanuel Vadot - Philipp Zabel <p.zabel@pengutronix.de> 12c9ccf3a3SEmmanuel Vadot 13c9ccf3a3SEmmanuel Vadotdescription: | 14c9ccf3a3SEmmanuel Vadot Mediatek display postmask, namely POSTMASK, provides round corner pattern 15c9ccf3a3SEmmanuel Vadot generation. 16c9ccf3a3SEmmanuel Vadot POSTMASK device node must be siblings to the central MMSYS_CONFIG node. 17c9ccf3a3SEmmanuel Vadot For a description of the MMSYS_CONFIG binding, see 18c9ccf3a3SEmmanuel Vadot Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml 19c9ccf3a3SEmmanuel Vadot for details. 20c9ccf3a3SEmmanuel Vadot 21c9ccf3a3SEmmanuel Vadotproperties: 22c9ccf3a3SEmmanuel Vadot compatible: 23c9ccf3a3SEmmanuel Vadot oneOf: 24*fac71e4eSEmmanuel Vadot - enum: 25*fac71e4eSEmmanuel Vadot - mediatek,mt8192-disp-postmask 26d5b0e70fSEmmanuel Vadot - items: 27d5b0e70fSEmmanuel Vadot - enum: 28d5b0e70fSEmmanuel Vadot - mediatek,mt8186-disp-postmask 29cb7aa33aSEmmanuel Vadot - mediatek,mt8188-disp-postmask 30d5b0e70fSEmmanuel Vadot - const: mediatek,mt8192-disp-postmask 31c9ccf3a3SEmmanuel Vadot 32c9ccf3a3SEmmanuel Vadot reg: 33c9ccf3a3SEmmanuel Vadot maxItems: 1 34c9ccf3a3SEmmanuel Vadot 35c9ccf3a3SEmmanuel Vadot interrupts: 36c9ccf3a3SEmmanuel Vadot maxItems: 1 37c9ccf3a3SEmmanuel Vadot 38c9ccf3a3SEmmanuel Vadot power-domains: 39c9ccf3a3SEmmanuel Vadot description: A phandle and PM domain specifier as defined by bindings of 40c9ccf3a3SEmmanuel Vadot the power controller specified by phandle. See 41c9ccf3a3SEmmanuel Vadot Documentation/devicetree/bindings/power/power-domain.yaml for details. 42c9ccf3a3SEmmanuel Vadot 43c9ccf3a3SEmmanuel Vadot clocks: 44c9ccf3a3SEmmanuel Vadot items: 45c9ccf3a3SEmmanuel Vadot - description: POSTMASK Clock 46c9ccf3a3SEmmanuel Vadot 47c9ccf3a3SEmmanuel Vadot mediatek,gce-client-reg: 48c9ccf3a3SEmmanuel Vadot description: The register of client driver can be configured by gce with 49c9ccf3a3SEmmanuel Vadot 4 arguments defined in this property, such as phandle of gce, subsys id, 50c9ccf3a3SEmmanuel Vadot register offset and size. Each GCE subsys id is mapping to a client 51c9ccf3a3SEmmanuel Vadot defined in the header include/dt-bindings/gce/<chip>-gce.h. 52c9ccf3a3SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/phandle-array 53c9ccf3a3SEmmanuel Vadot maxItems: 1 54c9ccf3a3SEmmanuel Vadot 55c9ccf3a3SEmmanuel Vadotrequired: 56c9ccf3a3SEmmanuel Vadot - compatible 57c9ccf3a3SEmmanuel Vadot - reg 58c9ccf3a3SEmmanuel Vadot - interrupts 59c9ccf3a3SEmmanuel Vadot - power-domains 60c9ccf3a3SEmmanuel Vadot - clocks 61c9ccf3a3SEmmanuel Vadot 62c9ccf3a3SEmmanuel VadotadditionalProperties: false 63c9ccf3a3SEmmanuel Vadot 64c9ccf3a3SEmmanuel Vadotexamples: 65c9ccf3a3SEmmanuel Vadot - | 66c9ccf3a3SEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 67c9ccf3a3SEmmanuel Vadot #include <dt-bindings/clock/mt8192-clk.h> 68c9ccf3a3SEmmanuel Vadot #include <dt-bindings/power/mt8192-power.h> 69c9ccf3a3SEmmanuel Vadot #include <dt-bindings/gce/mt8192-gce.h> 70c9ccf3a3SEmmanuel Vadot 71c9ccf3a3SEmmanuel Vadot soc { 72c9ccf3a3SEmmanuel Vadot #address-cells = <2>; 73c9ccf3a3SEmmanuel Vadot #size-cells = <2>; 74c9ccf3a3SEmmanuel Vadot 75c9ccf3a3SEmmanuel Vadot postmask0: postmask@1400d000 { 76c9ccf3a3SEmmanuel Vadot compatible = "mediatek,mt8192-disp-postmask"; 77c9ccf3a3SEmmanuel Vadot reg = <0 0x1400d000 0 0x1000>; 78c9ccf3a3SEmmanuel Vadot interrupts = <GIC_SPI 262 IRQ_TYPE_LEVEL_HIGH 0>; 79c9ccf3a3SEmmanuel Vadot power-domains = <&scpsys MT8192_POWER_DOMAIN_DISP>; 80c9ccf3a3SEmmanuel Vadot clocks = <&mmsys CLK_MM_DISP_POSTMASK0>; 81c9ccf3a3SEmmanuel Vadot mediatek,gce-client-reg = <&gce SUBSYS_1400XXXX 0xd000 0x1000>; 82c9ccf3a3SEmmanuel Vadot }; 83c9ccf3a3SEmmanuel Vadot }; 84