1*5956d97fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*5956d97fSEmmanuel Vadot%YAML 1.2 3*5956d97fSEmmanuel Vadot--- 4*5956d97fSEmmanuel Vadot$id: http://devicetree.org/schemas/pwm/pwm-tiehrpwm.yaml# 5*5956d97fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*5956d97fSEmmanuel Vadot 7*5956d97fSEmmanuel Vadottitle: TI SOC EHRPWM based PWM controller 8*5956d97fSEmmanuel Vadot 9*5956d97fSEmmanuel Vadotmaintainers: 10*5956d97fSEmmanuel Vadot - Vignesh R <vigneshr@ti.com> 11*5956d97fSEmmanuel Vadot 12*5956d97fSEmmanuel VadotallOf: 13*5956d97fSEmmanuel Vadot - $ref: pwm.yaml# 14*5956d97fSEmmanuel Vadot 15*5956d97fSEmmanuel Vadotproperties: 16*5956d97fSEmmanuel Vadot compatible: 17*5956d97fSEmmanuel Vadot oneOf: 18*5956d97fSEmmanuel Vadot - const: ti,am3352-ehrpwm 19*5956d97fSEmmanuel Vadot - items: 20*5956d97fSEmmanuel Vadot - enum: 21*5956d97fSEmmanuel Vadot - ti,da850-ehrpwm 22*5956d97fSEmmanuel Vadot - ti,am4372-ehrpwm 23*5956d97fSEmmanuel Vadot - ti,dra746-ehrpwm 24*5956d97fSEmmanuel Vadot - ti,am654-ehrpwm 25*5956d97fSEmmanuel Vadot - ti,am64-epwm 26*5956d97fSEmmanuel Vadot - const: ti,am3352-ehrpwm 27*5956d97fSEmmanuel Vadot 28*5956d97fSEmmanuel Vadot reg: 29*5956d97fSEmmanuel Vadot maxItems: 1 30*5956d97fSEmmanuel Vadot 31*5956d97fSEmmanuel Vadot "#pwm-cells": 32*5956d97fSEmmanuel Vadot const: 3 33*5956d97fSEmmanuel Vadot description: | 34*5956d97fSEmmanuel Vadot See pwm.yaml in this directory for a description of the cells format. 35*5956d97fSEmmanuel Vadot The only third cell flag supported by this binding is PWM_POLARITY_INVERTED. 36*5956d97fSEmmanuel Vadot 37*5956d97fSEmmanuel Vadot clock-names: 38*5956d97fSEmmanuel Vadot items: 39*5956d97fSEmmanuel Vadot - const: tbclk 40*5956d97fSEmmanuel Vadot - const: fck 41*5956d97fSEmmanuel Vadot 42*5956d97fSEmmanuel Vadot clocks: 43*5956d97fSEmmanuel Vadot maxItems: 2 44*5956d97fSEmmanuel Vadot 45*5956d97fSEmmanuel Vadot power-domains: 46*5956d97fSEmmanuel Vadot maxItems: 1 47*5956d97fSEmmanuel Vadot 48*5956d97fSEmmanuel Vadotrequired: 49*5956d97fSEmmanuel Vadot - compatible 50*5956d97fSEmmanuel Vadot - reg 51*5956d97fSEmmanuel Vadot - clocks 52*5956d97fSEmmanuel Vadot - clock-names 53*5956d97fSEmmanuel Vadot 54*5956d97fSEmmanuel VadotadditionalProperties: false 55*5956d97fSEmmanuel Vadot 56*5956d97fSEmmanuel Vadotexamples: 57*5956d97fSEmmanuel Vadot - | 58*5956d97fSEmmanuel Vadot ehrpwm0: pwm@48300200 { /* EHRPWM on am33xx */ 59*5956d97fSEmmanuel Vadot compatible = "ti,am3352-ehrpwm"; 60*5956d97fSEmmanuel Vadot #pwm-cells = <3>; 61*5956d97fSEmmanuel Vadot reg = <0x48300200 0x100>; 62*5956d97fSEmmanuel Vadot clocks = <&ehrpwm0_tbclk>, <&l4ls_gclk>; 63*5956d97fSEmmanuel Vadot clock-names = "tbclk", "fck"; 64*5956d97fSEmmanuel Vadot }; 65