Freescale FlexTimer Module (FTM) PWM controller
Schema identifier ($id): "http://devicetree.org/schemas/pwm/fsl,vf610-ftm-pwm.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The same FTM PWM device can have a different endianness on different SoCs. The device tree provides a property to describing this so that an operating system device driver can handle all variants of the device. Refer to the table below for the endianness of the FTM PWM block as integrated into the existing SoCs:
SoC | FTM-PWM endianness --------+------------------- Vybrid | LE LS1 | BE LS2 | LE
Please see ../regmap/regmap.txt for more detail about how to specify endian modes in device tree.
Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"fsl,vf610-ftm-pwm","fsl,imx8qm-ftm-pwm","nxp,s32g2-ftm-pwm"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"nxp,s32g3-ftm-pwm"Item 2
Exact value (
const):"nxp,s32g2-ftm-pwm"
reg — required here #
Maximum number of items (maxItems): 1
#pwm-cells — not listed as required here #
Exact value (const): 3
clocks — required here #
Minimum number of items (minItems): 4
Maximum number of items (maxItems): 4
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"ftm_sys"
Item 2
Exact value (
const):"ftm_ext"
Item 3
Exact value (
const):"ftm_fix"
Item 4
Exact value (
const):"ftm_cnt_clk_en"
pinctrl-0 — not listed as required here #
true — No constraints added by this property rule.
pinctrl-1 — not listed as required here #
true — No constraints added by this property rule.
pinctrl-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"default"
Item 2
Exact value (
const):"sleep"
big-endian — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Boolean property, required if the FTM PWM registers use a big- endian rather than little-endian layout.
Required in this object (required): "compatible", "reg", "clocks", "clock-names"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):pwm.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/vf610-clock.h>
pwm@40038000 {
compatible = "fsl,vf610-ftm-pwm";
reg = <0x40038000 0x1000>;
#pwm-cells = <3>;
clocks = <&clks VF610_CLK_FTM0>,
<&clks VF610_CLK_FTM0_EXT_SEL>,
<&clks VF610_CLK_FTM0_FIX_SEL>,
<&clks VF610_CLK_FTM0_EXT_FIX_EN>;
clock-names = "ftm_sys", "ftm_ext", "ftm_fix", "ftm_cnt_clk_en";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_pwm0_1>;
big-endian;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)