TI SOC EHRPWM based PWM controller

Schema identifier ($id): "http://devicetree.org/schemas/pwm/pwm-tiehrpwm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Vignesh R <vigneshr@ti.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "ti,am3352-ehrpwm"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "ti,da850-ehrpwm", "ti,am4372-ehrpwm", "ti,dra746-ehrpwm", "ti,am654-ehrpwm", "ti,am64-epwm"

Item 2

Exact value (const): "ti,am3352-ehrpwm"

reg — required here #

Maximum number of items (maxItems): 1

#pwm-cells — not listed as required here #

Exact value (const): 3

See pwm.yaml in this directory for a description of the cells format. The only third cell flag supported by this binding is PWM_POLARITY_INVERTED.

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "tbclk"

Item 2

Exact value (const): "fck"

clocks — required here #

Maximum number of items (maxItems): 2

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "clocks", "clock-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

ehrpwm0: pwm@48300200 { /* EHRPWM on am33xx */
    compatible = "ti,am3352-ehrpwm";
    #pwm-cells = <3>;
    reg = <0x48300200 0x100>;
    clocks = <&ehrpwm0_tbclk>, <&l4ls_gclk>;
    clock-names = "tbclk", "fck";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page