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-tiecap.yaml# 5*5956d97fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*5956d97fSEmmanuel Vadot 7*5956d97fSEmmanuel Vadottitle: TI SOC ECAP based APWM 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-ecap 19*5956d97fSEmmanuel Vadot - items: 20*5956d97fSEmmanuel Vadot - enum: 21*5956d97fSEmmanuel Vadot - ti,da850-ecap 22*5956d97fSEmmanuel Vadot - ti,am4372-ecap 23*5956d97fSEmmanuel Vadot - ti,dra746-ecap 24*5956d97fSEmmanuel Vadot - ti,k2g-ecap 25*5956d97fSEmmanuel Vadot - ti,am654-ecap 26*5956d97fSEmmanuel Vadot - ti,am64-ecap 27*5956d97fSEmmanuel Vadot - const: ti,am3352-ecap 28*5956d97fSEmmanuel Vadot 29*5956d97fSEmmanuel Vadot reg: 30*5956d97fSEmmanuel Vadot maxItems: 1 31*5956d97fSEmmanuel Vadot 32*5956d97fSEmmanuel Vadot "#pwm-cells": 33*5956d97fSEmmanuel Vadot const: 3 34*5956d97fSEmmanuel Vadot description: | 35*5956d97fSEmmanuel Vadot See pwm.yaml in this directory for a description of the cells format. 36*5956d97fSEmmanuel Vadot The only third cell flag supported by this binding is PWM_POLARITY_INVERTED. 37*5956d97fSEmmanuel Vadot 38*5956d97fSEmmanuel Vadot clock-names: 39*5956d97fSEmmanuel Vadot const: fck 40*5956d97fSEmmanuel Vadot 41*5956d97fSEmmanuel Vadot clocks: 42*5956d97fSEmmanuel Vadot maxItems: 1 43*5956d97fSEmmanuel Vadot 44*5956d97fSEmmanuel Vadot power-domains: 45*5956d97fSEmmanuel Vadot maxItems: 1 46*5956d97fSEmmanuel Vadot 47*5956d97fSEmmanuel Vadotrequired: 48*5956d97fSEmmanuel Vadot - compatible 49*5956d97fSEmmanuel Vadot - reg 50*5956d97fSEmmanuel Vadot - clocks 51*5956d97fSEmmanuel Vadot - clock-names 52*5956d97fSEmmanuel Vadot 53*5956d97fSEmmanuel VadotadditionalProperties: false 54*5956d97fSEmmanuel Vadot 55*5956d97fSEmmanuel Vadotexamples: 56*5956d97fSEmmanuel Vadot - | 57*5956d97fSEmmanuel Vadot ecap0: pwm@48300100 { /* ECAP on am33xx */ 58*5956d97fSEmmanuel Vadot compatible = "ti,am3352-ecap"; 59*5956d97fSEmmanuel Vadot #pwm-cells = <3>; 60*5956d97fSEmmanuel Vadot reg = <0x48300100 0x80>; 61*5956d97fSEmmanuel Vadot clocks = <&l4ls_gclk>; 62*5956d97fSEmmanuel Vadot clock-names = "fck"; 63*5956d97fSEmmanuel Vadot }; 64