Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/display/mediatek/mediatek,gamma.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Mediatek display gamma correction
0008 
0009 maintainers:
0010   - Chun-Kuang Hu <chunkuang.hu@kernel.org>
0011   - Philipp Zabel <p.zabel@pengutronix.de>
0012 
0013 description: |
0014   Mediatek display gamma correction, namely GAMMA, provides a nonlinear
0015   operation used to adjust luminance in display system.
0016   GAMMA device node must be siblings to the central MMSYS_CONFIG node.
0017   For a description of the MMSYS_CONFIG binding, see
0018   Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml
0019   for details.
0020 
0021 properties:
0022   compatible:
0023     oneOf:
0024       - items:
0025           - const: mediatek,mt8173-disp-gamma
0026       - items:
0027           - const: mediatek,mt8183-disp-gamma
0028       - items:
0029           - enum:
0030               - mediatek,mt8186-disp-gamma
0031               - mediatek,mt8192-disp-gamma
0032               - mediatek,mt8195-disp-gamma
0033           - const: mediatek,mt8183-disp-gamma
0034 
0035   reg:
0036     maxItems: 1
0037 
0038   interrupts:
0039     maxItems: 1
0040 
0041   power-domains:
0042     description: A phandle and PM domain specifier as defined by bindings of
0043       the power controller specified by phandle. See
0044       Documentation/devicetree/bindings/power/power-domain.yaml for details.
0045 
0046   clocks:
0047     items:
0048       - description: GAMMA Clock
0049 
0050   mediatek,gce-client-reg:
0051     description: The register of client driver can be configured by gce with
0052       4 arguments defined in this property, such as phandle of gce, subsys id,
0053       register offset and size. Each GCE subsys id is mapping to a client
0054       defined in the header include/dt-bindings/gce/<chip>-gce.h.
0055     $ref: /schemas/types.yaml#/definitions/phandle-array
0056     maxItems: 1
0057 
0058 required:
0059   - compatible
0060   - reg
0061   - interrupts
0062   - power-domains
0063   - clocks
0064 
0065 additionalProperties: false
0066 
0067 examples:
0068   - |
0069     #include <dt-bindings/interrupt-controller/arm-gic.h>
0070     #include <dt-bindings/clock/mt8173-clk.h>
0071     #include <dt-bindings/power/mt8173-power.h>
0072     #include <dt-bindings/gce/mt8173-gce.h>
0073 
0074     soc {
0075         #address-cells = <2>;
0076         #size-cells = <2>;
0077 
0078         gamma@14016000 {
0079             compatible = "mediatek,mt8173-disp-gamma";
0080             reg = <0 0x14016000 0 0x1000>;
0081             interrupts = <GIC_SPI 190 IRQ_TYPE_LEVEL_LOW>;
0082             power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>;
0083             clocks = <&mmsys CLK_MM_DISP_GAMMA>;
0084             mediatek,gce-client-reg = <&gce SUBSYS_1401XXXX 0x6000 0x1000>;
0085         };
0086     };