1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2c66ec88fSEmmanuel Vadot%YAML 1.2 3c66ec88fSEmmanuel Vadot--- 4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/timer/fsl,imxgpt.yaml# 5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6c66ec88fSEmmanuel Vadot 7c66ec88fSEmmanuel Vadottitle: Freescale i.MX General Purpose Timer (GPT) 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadotmaintainers: 10c66ec88fSEmmanuel Vadot - Sascha Hauer <s.hauer@pengutronix.de> 11c66ec88fSEmmanuel Vadot 12c66ec88fSEmmanuel Vadotproperties: 13c66ec88fSEmmanuel Vadot compatible: 14c66ec88fSEmmanuel Vadot oneOf: 15c66ec88fSEmmanuel Vadot - const: fsl,imx1-gpt 16c66ec88fSEmmanuel Vadot - const: fsl,imx21-gpt 17c66ec88fSEmmanuel Vadot - items: 18c66ec88fSEmmanuel Vadot - const: fsl,imx27-gpt 19c66ec88fSEmmanuel Vadot - const: fsl,imx21-gpt 20c66ec88fSEmmanuel Vadot - const: fsl,imx31-gpt 21c66ec88fSEmmanuel Vadot - items: 22c66ec88fSEmmanuel Vadot - enum: 23c66ec88fSEmmanuel Vadot - fsl,imx25-gpt 24c66ec88fSEmmanuel Vadot - fsl,imx50-gpt 25c66ec88fSEmmanuel Vadot - fsl,imx51-gpt 26c66ec88fSEmmanuel Vadot - fsl,imx53-gpt 27c66ec88fSEmmanuel Vadot - fsl,imx6q-gpt 28c66ec88fSEmmanuel Vadot - const: fsl,imx31-gpt 29c66ec88fSEmmanuel Vadot - const: fsl,imx6dl-gpt 30c66ec88fSEmmanuel Vadot - items: 31c66ec88fSEmmanuel Vadot - enum: 32c66ec88fSEmmanuel Vadot - fsl,imx6sl-gpt 33c66ec88fSEmmanuel Vadot - fsl,imx6sx-gpt 34*8bab661aSEmmanuel Vadot - fsl,imxrt1050-gpt 35*8bab661aSEmmanuel Vadot - fsl,imxrt1170-gpt 36c66ec88fSEmmanuel Vadot - const: fsl,imx6dl-gpt 37c66ec88fSEmmanuel Vadot 38c66ec88fSEmmanuel Vadot reg: 39c66ec88fSEmmanuel Vadot maxItems: 1 40c66ec88fSEmmanuel Vadot 41c66ec88fSEmmanuel Vadot interrupts: 42c66ec88fSEmmanuel Vadot maxItems: 1 43c66ec88fSEmmanuel Vadot 44c66ec88fSEmmanuel Vadot clocks: 45c66ec88fSEmmanuel Vadot items: 46c66ec88fSEmmanuel Vadot - description: SoC GPT ipg clock 47c66ec88fSEmmanuel Vadot - description: SoC GPT per clock 48c66ec88fSEmmanuel Vadot 49c66ec88fSEmmanuel Vadot clock-names: 50c66ec88fSEmmanuel Vadot items: 51c66ec88fSEmmanuel Vadot - const: ipg 52c66ec88fSEmmanuel Vadot - const: per 53c66ec88fSEmmanuel Vadot 54c66ec88fSEmmanuel Vadotrequired: 55c66ec88fSEmmanuel Vadot - compatible 56c66ec88fSEmmanuel Vadot - reg 57c66ec88fSEmmanuel Vadot - interrupts 58c66ec88fSEmmanuel Vadot - clocks 59c66ec88fSEmmanuel Vadot - clock-names 60c66ec88fSEmmanuel Vadot 61c66ec88fSEmmanuel VadotadditionalProperties: false 62c66ec88fSEmmanuel Vadot 63c66ec88fSEmmanuel Vadotexamples: 64c66ec88fSEmmanuel Vadot - | 65c66ec88fSEmmanuel Vadot #include <dt-bindings/clock/imx27-clock.h> 66c66ec88fSEmmanuel Vadot 67c66ec88fSEmmanuel Vadot timer@10003000 { 68c66ec88fSEmmanuel Vadot compatible = "fsl,imx27-gpt", "fsl,imx21-gpt"; 69c66ec88fSEmmanuel Vadot reg = <0x10003000 0x1000>; 70c66ec88fSEmmanuel Vadot interrupts = <26>; 71c66ec88fSEmmanuel Vadot clocks = <&clks IMX27_CLK_GPT1_IPG_GATE>, 72c66ec88fSEmmanuel Vadot <&clks IMX27_CLK_PER1_GATE>; 73c66ec88fSEmmanuel Vadot clock-names = "ipg", "per"; 74c66ec88fSEmmanuel Vadot }; 75