1*c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0 2*c66ec88fSEmmanuel Vadot%YAML 1.2 3*c66ec88fSEmmanuel Vadot--- 4*c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/pwm/renesas,pwm-rcar.yaml# 5*c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*c66ec88fSEmmanuel Vadot 7*c66ec88fSEmmanuel Vadottitle: Renesas R-Car PWM Timer Controller 8*c66ec88fSEmmanuel Vadot 9*c66ec88fSEmmanuel Vadotmaintainers: 10*c66ec88fSEmmanuel Vadot - Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> 11*c66ec88fSEmmanuel Vadot 12*c66ec88fSEmmanuel Vadotproperties: 13*c66ec88fSEmmanuel Vadot compatible: 14*c66ec88fSEmmanuel Vadot items: 15*c66ec88fSEmmanuel Vadot - enum: 16*c66ec88fSEmmanuel Vadot - renesas,pwm-r8a7743 # RZ/G1M 17*c66ec88fSEmmanuel Vadot - renesas,pwm-r8a7744 # RZ/G1N 18*c66ec88fSEmmanuel Vadot - renesas,pwm-r8a7745 # RZ/G1E 19*c66ec88fSEmmanuel Vadot - renesas,pwm-r8a77470 # RZ/G1C 20*c66ec88fSEmmanuel Vadot - renesas,pwm-r8a774a1 # RZ/G2M 21*c66ec88fSEmmanuel Vadot - renesas,pwm-r8a774b1 # RZ/G2N 22*c66ec88fSEmmanuel Vadot - renesas,pwm-r8a774c0 # RZ/G2E 23*c66ec88fSEmmanuel Vadot - renesas,pwm-r8a7778 # R-Car M1A 24*c66ec88fSEmmanuel Vadot - renesas,pwm-r8a7779 # R-Car H1 25*c66ec88fSEmmanuel Vadot - renesas,pwm-r8a7790 # R-Car H2 26*c66ec88fSEmmanuel Vadot - renesas,pwm-r8a7791 # R-Car M2-W 27*c66ec88fSEmmanuel Vadot - renesas,pwm-r8a7794 # R-Car E2 28*c66ec88fSEmmanuel Vadot - renesas,pwm-r8a7795 # R-Car H3 29*c66ec88fSEmmanuel Vadot - renesas,pwm-r8a7796 # R-Car M3-W 30*c66ec88fSEmmanuel Vadot - renesas,pwm-r8a77961 # R-Car M3-W+ 31*c66ec88fSEmmanuel Vadot - renesas,pwm-r8a77965 # R-Car M3-N 32*c66ec88fSEmmanuel Vadot - renesas,pwm-r8a77970 # R-Car V3M 33*c66ec88fSEmmanuel Vadot - renesas,pwm-r8a77980 # R-Car V3H 34*c66ec88fSEmmanuel Vadot - renesas,pwm-r8a77990 # R-Car E3 35*c66ec88fSEmmanuel Vadot - renesas,pwm-r8a77995 # R-Car D3 36*c66ec88fSEmmanuel Vadot - const: renesas,pwm-rcar 37*c66ec88fSEmmanuel Vadot 38*c66ec88fSEmmanuel Vadot reg: 39*c66ec88fSEmmanuel Vadot # base address and length of the registers block for the PWM. 40*c66ec88fSEmmanuel Vadot maxItems: 1 41*c66ec88fSEmmanuel Vadot 42*c66ec88fSEmmanuel Vadot '#pwm-cells': 43*c66ec88fSEmmanuel Vadot # should be 2. See pwm.yaml in this directory for a description of 44*c66ec88fSEmmanuel Vadot # the cells format. 45*c66ec88fSEmmanuel Vadot const: 2 46*c66ec88fSEmmanuel Vadot 47*c66ec88fSEmmanuel Vadot clocks: 48*c66ec88fSEmmanuel Vadot # clock phandle and specifier pair. 49*c66ec88fSEmmanuel Vadot maxItems: 1 50*c66ec88fSEmmanuel Vadot 51*c66ec88fSEmmanuel Vadot power-domains: 52*c66ec88fSEmmanuel Vadot maxItems: 1 53*c66ec88fSEmmanuel Vadot 54*c66ec88fSEmmanuel Vadot resets: 55*c66ec88fSEmmanuel Vadot maxItems: 1 56*c66ec88fSEmmanuel Vadot 57*c66ec88fSEmmanuel Vadotrequired: 58*c66ec88fSEmmanuel Vadot - compatible 59*c66ec88fSEmmanuel Vadot - reg 60*c66ec88fSEmmanuel Vadot - '#pwm-cells' 61*c66ec88fSEmmanuel Vadot - clocks 62*c66ec88fSEmmanuel Vadot 63*c66ec88fSEmmanuel VadotadditionalProperties: false 64*c66ec88fSEmmanuel Vadot 65*c66ec88fSEmmanuel Vadotexamples: 66*c66ec88fSEmmanuel Vadot - | 67*c66ec88fSEmmanuel Vadot #include <dt-bindings/clock/r8a7743-cpg-mssr.h> 68*c66ec88fSEmmanuel Vadot #include <dt-bindings/power/r8a7743-sysc.h> 69*c66ec88fSEmmanuel Vadot 70*c66ec88fSEmmanuel Vadot pwm0: pwm@e6e30000 { 71*c66ec88fSEmmanuel Vadot compatible = "renesas,pwm-r8a7743", "renesas,pwm-rcar"; 72*c66ec88fSEmmanuel Vadot reg = <0xe6e30000 0x8>; 73*c66ec88fSEmmanuel Vadot clocks = <&cpg CPG_MOD 523>; 74*c66ec88fSEmmanuel Vadot power-domains = <&sysc R8A7743_PD_ALWAYS_ON>; 75*c66ec88fSEmmanuel Vadot resets = <&cpg 523>; 76*c66ec88fSEmmanuel Vadot #pwm-cells = <2>; 77*c66ec88fSEmmanuel Vadot pinctrl-0 = <&pwm0_pins>; 78*c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 79*c66ec88fSEmmanuel Vadot }; 80