Freescale MXS PWM controller

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

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

Maintainers (maintainers): "Shawn Guo <shawnguo@kernel.org>"

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): "fsl,imx23-pwm"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx28-pwm"

Item 2

Exact value (const): "fsl,imx23-pwm"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

#pwm-cells — not listed as required here #

Exact value (const): 3

fsl,pwm-number — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

u32 value representing the number of PWM devices

Required in this object (required): "compatible", "reg", "clocks", "fsl,pwm-number"

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

false

Not allowed by this rule.

Examples (examples) #

pwm@80064000 {
    compatible = "fsl,imx23-pwm";
    reg = <0x80064000 0x2000>;
    clocks = <&clks 30>;
    #pwm-cells = <3>;
    fsl,pwm-number = <8>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page