14ed545e7Sjason-jh.lin# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 24ed545e7Sjason-jh.lin%YAML 1.2 34ed545e7Sjason-jh.lin--- 44ed545e7Sjason-jh.lin$id: http://devicetree.org/schemas/display/mediatek/mediatek,aal.yaml# 54ed545e7Sjason-jh.lin$schema: http://devicetree.org/meta-schemas/core.yaml# 64ed545e7Sjason-jh.lin 74ed545e7Sjason-jh.lintitle: Mediatek display adaptive ambient light processor 84ed545e7Sjason-jh.lin 94ed545e7Sjason-jh.linmaintainers: 104ed545e7Sjason-jh.lin - Chun-Kuang Hu <chunkuang.hu@kernel.org> 114ed545e7Sjason-jh.lin - Philipp Zabel <p.zabel@pengutronix.de> 124ed545e7Sjason-jh.lin 134ed545e7Sjason-jh.lindescription: | 144ed545e7Sjason-jh.lin Mediatek display adaptive ambient light processor, namely AAL, 154ed545e7Sjason-jh.lin is responsible for backlight power saving and sunlight visibility improving. 164ed545e7Sjason-jh.lin AAL device node must be siblings to the central MMSYS_CONFIG node. 174ed545e7Sjason-jh.lin For a description of the MMSYS_CONFIG binding, see 184ed545e7Sjason-jh.lin Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml 194ed545e7Sjason-jh.lin for details. 204ed545e7Sjason-jh.lin 214ed545e7Sjason-jh.linproperties: 224ed545e7Sjason-jh.lin compatible: 234ed545e7Sjason-jh.lin oneOf: 24402fc936SRex-BC Chen - enum: 25402fc936SRex-BC Chen - mediatek,mt8173-disp-aal 26402fc936SRex-BC Chen - mediatek,mt8183-disp-aal 27dacfb5ddSMoudy Ho - mediatek,mt8195-mdp3-aal 284ed545e7Sjason-jh.lin - items: 294ed545e7Sjason-jh.lin - enum: 304ed545e7Sjason-jh.lin - mediatek,mt2712-disp-aal 31d8720452SAngeloGioacchino Del Regno - mediatek,mt6795-disp-aal 3246bc0d98SRex-BC Chen - const: mediatek,mt8173-disp-aal 338a26ea19SRex-BC Chen - items: 348a26ea19SRex-BC Chen - enum: 358a26ea19SRex-BC Chen - mediatek,mt8186-disp-aal 36b5386f29SNathan Lu - mediatek,mt8188-disp-aal 374ee7b961SRex-BC Chen - mediatek,mt8192-disp-aal 384ee7b961SRex-BC Chen - mediatek,mt8195-disp-aal 39*759b1194SAlexandre Mergnat - mediatek,mt8365-disp-aal 408a26ea19SRex-BC Chen - const: mediatek,mt8183-disp-aal 414ed545e7Sjason-jh.lin 424ed545e7Sjason-jh.lin reg: 434ed545e7Sjason-jh.lin maxItems: 1 444ed545e7Sjason-jh.lin 454ed545e7Sjason-jh.lin interrupts: 464ed545e7Sjason-jh.lin maxItems: 1 474ed545e7Sjason-jh.lin 484ed545e7Sjason-jh.lin power-domains: 494ed545e7Sjason-jh.lin description: A phandle and PM domain specifier as defined by bindings of 504ed545e7Sjason-jh.lin the power controller specified by phandle. See 514ed545e7Sjason-jh.lin Documentation/devicetree/bindings/power/power-domain.yaml for details. 524ed545e7Sjason-jh.lin 534ed545e7Sjason-jh.lin clocks: 544ed545e7Sjason-jh.lin items: 554ed545e7Sjason-jh.lin - description: AAL Clock 564ed545e7Sjason-jh.lin 574ed545e7Sjason-jh.lin mediatek,gce-client-reg: 584ed545e7Sjason-jh.lin description: The register of client driver can be configured by gce with 594ed545e7Sjason-jh.lin 4 arguments defined in this property, such as phandle of gce, subsys id, 604ed545e7Sjason-jh.lin register offset and size. Each GCE subsys id is mapping to a client 614ed545e7Sjason-jh.lin defined in the header include/dt-bindings/gce/<chip>-gce.h. 624ed545e7Sjason-jh.lin $ref: /schemas/types.yaml#/definitions/phandle-array 634ed545e7Sjason-jh.lin maxItems: 1 644ed545e7Sjason-jh.lin 654ed545e7Sjason-jh.linrequired: 664ed545e7Sjason-jh.lin - compatible 674ed545e7Sjason-jh.lin - reg 684ed545e7Sjason-jh.lin - interrupts 694ed545e7Sjason-jh.lin - power-domains 704ed545e7Sjason-jh.lin - clocks 714ed545e7Sjason-jh.lin 724ed545e7Sjason-jh.linadditionalProperties: false 734ed545e7Sjason-jh.lin 744ed545e7Sjason-jh.linexamples: 754ed545e7Sjason-jh.lin - | 76bff4e302SAngeloGioacchino Del Regno #include <dt-bindings/interrupt-controller/arm-gic.h> 77bff4e302SAngeloGioacchino Del Regno #include <dt-bindings/clock/mt8173-clk.h> 78bff4e302SAngeloGioacchino Del Regno #include <dt-bindings/power/mt8173-power.h> 79bff4e302SAngeloGioacchino Del Regno #include <dt-bindings/gce/mt8173-gce.h> 80bff4e302SAngeloGioacchino Del Regno 81bff4e302SAngeloGioacchino Del Regno soc { 82bff4e302SAngeloGioacchino Del Regno #address-cells = <2>; 83bff4e302SAngeloGioacchino Del Regno #size-cells = <2>; 844ed545e7Sjason-jh.lin 854ed545e7Sjason-jh.lin aal@14015000 { 864ed545e7Sjason-jh.lin compatible = "mediatek,mt8173-disp-aal"; 874ed545e7Sjason-jh.lin reg = <0 0x14015000 0 0x1000>; 884ed545e7Sjason-jh.lin interrupts = <GIC_SPI 189 IRQ_TYPE_LEVEL_LOW>; 894ed545e7Sjason-jh.lin power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; 904ed545e7Sjason-jh.lin clocks = <&mmsys CLK_MM_DISP_AAL>; 914ed545e7Sjason-jh.lin mediatek,gce-client-reg = <&gce SUBSYS_1401XXXX 0x5000 0x1000>; 924ed545e7Sjason-jh.lin }; 93bff4e302SAngeloGioacchino Del Regno }; 94