Freescale i.MX General Purpose Timer (GPT)
Schema identifier ($id): "http://devicetree.org/schemas/timer/fsl,imxgpt.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Sascha Hauer <s.hauer@pengutronix.de>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"fsl,imx1-gpt"
Rule 2
Exact value (
const):"fsl,imx21-gpt"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"fsl,imx27-gpt"Item 2
Exact value (
const):"fsl,imx21-gpt"
Rule 4
Exact value (
const):"fsl,imx31-gpt"
Rule 5
Array item rules (
items)Item 1
Allowed values (
enum):"fsl,imx25-gpt","fsl,imx35-gpt","fsl,imx50-gpt","fsl,imx51-gpt","fsl,imx53-gpt","fsl,imx6q-gpt"Item 2
Exact value (
const):"fsl,imx31-gpt"
Rule 6
Exact value (
const):"fsl,imx6dl-gpt"
Rule 7
Array item rules (
items)Item 1
Allowed values (
enum):"fsl,imx6sl-gpt","fsl,imx6sx-gpt","fsl,imx7d-gpt","fsl,imx8mp-gpt","fsl,imxrt1050-gpt","fsl,imxrt1170-gpt"Item 2
Exact value (
const):"fsl,imx6dl-gpt"
Rule 8
Array item rules (
items)Item 1
Item 2
Exact value (
const):"fsl,imx6sx-gpt"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 2
Array item rules (items) #
Item 1
SoC GPT ipg clock
Item 2
SoC GPT per clock
Item 3
SoC GPT osc per clock
clock-names — required here #
Minimum number of items (minItems): 2
Array item rules (items) #
Item 1
Exact value (
const):"ipg"
Item 2
Exact value (
const):"per"
Item 3
Exact value (
const):"osc_per"
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):3
clock-names— not listed as required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):3When the condition does not match (
else) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):2
clock-names— not listed as required hereMaximum number of items (
maxItems):2
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/imx27-clock.h>
timer@10003000 {
compatible = "fsl,imx27-gpt", "fsl,imx21-gpt";
reg = <0x10003000 0x1000>;
interrupts = <26>;
clocks = <&clks IMX27_CLK_GPT1_IPG_GATE>,
<&clks IMX27_CLK_PER1_GATE>;
clock-names = "ipg", "per";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)