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/pwm/mediatek,pwm-disp.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: MediaTek DISP_PWM Controller Device Tree Bindings
0008 
0009 maintainers:
0010   - Jitao Shi <jitao.shi@mediatek.com>
0011   - Xinlei Lee <xinlei.lee@mediatek.com>
0012 
0013 allOf:
0014   - $ref: pwm.yaml#
0015 
0016 properties:
0017   compatible:
0018     oneOf:
0019       - enum:
0020           - mediatek,mt2701-disp-pwm
0021           - mediatek,mt6595-disp-pwm
0022           - mediatek,mt8173-disp-pwm
0023           - mediatek,mt8183-disp-pwm
0024       - items:
0025           - const: mediatek,mt8167-disp-pwm
0026           - const: mediatek,mt8173-disp-pwm
0027       - items:
0028           - enum:
0029               - mediatek,mt8186-disp-pwm
0030               - mediatek,mt8192-disp-pwm
0031               - mediatek,mt8195-disp-pwm
0032           - const: mediatek,mt8183-disp-pwm
0033 
0034   reg:
0035     maxItems: 1
0036 
0037   "#pwm-cells":
0038     const: 2
0039 
0040   interrupts:
0041     maxItems: 1
0042 
0043   clocks:
0044     items:
0045       - description: Main Clock
0046       - description: Mm Clock
0047 
0048   clock-names:
0049     items:
0050       - const: main
0051       - const: mm
0052 
0053 required:
0054   - compatible
0055   - reg
0056   - "#pwm-cells"
0057   - clocks
0058   - clock-names
0059 
0060 additionalProperties: false
0061 
0062 examples:
0063   - |
0064     #include <dt-bindings/interrupt-controller/arm-gic.h>
0065     #include <dt-bindings/clock/mt8173-clk.h>
0066     #include <dt-bindings/interrupt-controller/irq.h>
0067 
0068     pwm0: pwm@1401e000 {
0069         compatible = "mediatek,mt8173-disp-pwm";
0070         reg = <0x1401e000 0x1000>;
0071         #pwm-cells = <2>;
0072         clocks = <&mmsys CLK_MM_DISP_PWM026M>,
0073                  <&mmsys CLK_MM_DISP_PWM0MM>;
0074         clock-names = "main", "mm";
0075     };