1d5b0e70fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2d5b0e70fSEmmanuel Vadot%YAML 1.2 3d5b0e70fSEmmanuel Vadot--- 4d5b0e70fSEmmanuel Vadot$id: http://devicetree.org/schemas/pwm/mediatek,pwm-disp.yaml# 5d5b0e70fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6d5b0e70fSEmmanuel Vadot 77ef62cebSEmmanuel Vadottitle: MediaTek DISP_PWM Controller 8d5b0e70fSEmmanuel Vadot 9d5b0e70fSEmmanuel Vadotmaintainers: 10d5b0e70fSEmmanuel Vadot - Jitao Shi <jitao.shi@mediatek.com> 11d5b0e70fSEmmanuel Vadot 12d5b0e70fSEmmanuel VadotallOf: 13d5b0e70fSEmmanuel Vadot - $ref: pwm.yaml# 14d5b0e70fSEmmanuel Vadot 15d5b0e70fSEmmanuel Vadotproperties: 16d5b0e70fSEmmanuel Vadot compatible: 17d5b0e70fSEmmanuel Vadot oneOf: 18d5b0e70fSEmmanuel Vadot - enum: 19d5b0e70fSEmmanuel Vadot - mediatek,mt2701-disp-pwm 20d5b0e70fSEmmanuel Vadot - mediatek,mt6595-disp-pwm 21d5b0e70fSEmmanuel Vadot - mediatek,mt8173-disp-pwm 22d5b0e70fSEmmanuel Vadot - mediatek,mt8183-disp-pwm 23d5b0e70fSEmmanuel Vadot - items: 24f126890aSEmmanuel Vadot - enum: 25f126890aSEmmanuel Vadot - mediatek,mt6795-disp-pwm 26f126890aSEmmanuel Vadot - mediatek,mt8167-disp-pwm 27d5b0e70fSEmmanuel Vadot - const: mediatek,mt8173-disp-pwm 28d5b0e70fSEmmanuel Vadot - items: 29d5b0e70fSEmmanuel Vadot - enum: 30d5b0e70fSEmmanuel Vadot - mediatek,mt8186-disp-pwm 317ef62cebSEmmanuel Vadot - mediatek,mt8188-disp-pwm 32d5b0e70fSEmmanuel Vadot - mediatek,mt8192-disp-pwm 33d5b0e70fSEmmanuel Vadot - mediatek,mt8195-disp-pwm 34*7d0873ebSEmmanuel Vadot - mediatek,mt8365-disp-pwm 35d5b0e70fSEmmanuel Vadot - const: mediatek,mt8183-disp-pwm 36d5b0e70fSEmmanuel Vadot 37d5b0e70fSEmmanuel Vadot reg: 38d5b0e70fSEmmanuel Vadot maxItems: 1 39d5b0e70fSEmmanuel Vadot 40d5b0e70fSEmmanuel Vadot "#pwm-cells": 41d5b0e70fSEmmanuel Vadot const: 2 42d5b0e70fSEmmanuel Vadot 43d5b0e70fSEmmanuel Vadot interrupts: 44d5b0e70fSEmmanuel Vadot maxItems: 1 45d5b0e70fSEmmanuel Vadot 46d5b0e70fSEmmanuel Vadot clocks: 47d5b0e70fSEmmanuel Vadot items: 48d5b0e70fSEmmanuel Vadot - description: Main Clock 49d5b0e70fSEmmanuel Vadot - description: Mm Clock 50d5b0e70fSEmmanuel Vadot 51d5b0e70fSEmmanuel Vadot clock-names: 52d5b0e70fSEmmanuel Vadot items: 53d5b0e70fSEmmanuel Vadot - const: main 54d5b0e70fSEmmanuel Vadot - const: mm 55d5b0e70fSEmmanuel Vadot 5601950c46SEmmanuel Vadot power-domains: 5701950c46SEmmanuel Vadot maxItems: 1 5801950c46SEmmanuel Vadot 59d5b0e70fSEmmanuel Vadotrequired: 60d5b0e70fSEmmanuel Vadot - compatible 61d5b0e70fSEmmanuel Vadot - reg 62d5b0e70fSEmmanuel Vadot - clocks 63d5b0e70fSEmmanuel Vadot - clock-names 64d5b0e70fSEmmanuel Vadot 65d5b0e70fSEmmanuel VadotadditionalProperties: false 66d5b0e70fSEmmanuel Vadot 67d5b0e70fSEmmanuel Vadotexamples: 68d5b0e70fSEmmanuel Vadot - | 69d5b0e70fSEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 70d5b0e70fSEmmanuel Vadot #include <dt-bindings/clock/mt8173-clk.h> 71d5b0e70fSEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 72d5b0e70fSEmmanuel Vadot 73d5b0e70fSEmmanuel Vadot pwm0: pwm@1401e000 { 74d5b0e70fSEmmanuel Vadot compatible = "mediatek,mt8173-disp-pwm"; 75d5b0e70fSEmmanuel Vadot reg = <0x1401e000 0x1000>; 76d5b0e70fSEmmanuel Vadot #pwm-cells = <2>; 77d5b0e70fSEmmanuel Vadot clocks = <&mmsys CLK_MM_DISP_PWM026M>, 78d5b0e70fSEmmanuel Vadot <&mmsys CLK_MM_DISP_PWM0MM>; 79d5b0e70fSEmmanuel Vadot clock-names = "main", "mm"; 80d5b0e70fSEmmanuel Vadot }; 81