Freescale i.MX TPM PWM controller

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

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

Maintainers (maintainers): "Shawn Guo <shawnguo@kernel.org>", "Sascha Hauer <s.hauer@pengutronix.de>", "Fabio Estevam <festevam@gmail.com>"

The TPM counter and period counter are shared between multiple channels, so all channels should use same period setting.

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

#pwm-cells — not listed as required here #

Exact value (const): 3

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

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

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx93-pwm", "fsl,imx94-pwm", "fsl,imx95-pwm"

Item 2

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

reg — required here #

Maximum number of items (maxItems): 1

assigned-clocks — not listed as required here #

Maximum number of items (maxItems): 1

assigned-clock-parents — not listed as required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

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

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/imx7ulp-clock.h>

pwm@40250000 {
    compatible = "fsl,imx7ulp-pwm";
    reg = <0x40250000 0x1000>;
    assigned-clocks = <&pcc2 IMX7ULP_CLK_LPTPM4>;
    assigned-clock-parents = <&scg1 IMX7ULP_CLK_SOSC_BUS_CLK>;
    clocks = <&pcc2 IMX7ULP_CLK_LPTPM4>;
    #pwm-cells = <3>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page