1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/watchdog/fsl-imx-wdt.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Freescale i.MX Watchdog Timer (WDT) Controller 8 9maintainers: 10 - Shawn Guo <shawnguo@kernel.org> 11 - Sascha Hauer <s.hauer@pengutronix.de> 12 - Fabio Estevam <festevam@gmail.com> 13 14properties: 15 compatible: 16 oneOf: 17 - const: fsl,imx21-wdt 18 - items: 19 - enum: 20 - fsl,imx25-wdt 21 - fsl,imx27-wdt 22 - fsl,imx31-wdt 23 - fsl,imx35-wdt 24 - fsl,imx50-wdt 25 - fsl,imx51-wdt 26 - fsl,imx53-wdt 27 - fsl,imx6q-wdt 28 - fsl,imx6sl-wdt 29 - fsl,imx6sll-wdt 30 - fsl,imx6sx-wdt 31 - fsl,imx6ul-wdt 32 - fsl,imx7d-wdt 33 - fsl,imx8mm-wdt 34 - fsl,imx8mn-wdt 35 - fsl,imx8mp-wdt 36 - fsl,imx8mq-wdt 37 - fsl,ls1012a-wdt 38 - fsl,ls1043a-wdt 39 - fsl,vf610-wdt 40 - const: fsl,imx21-wdt 41 42 reg: 43 maxItems: 1 44 45 interrupts: 46 maxItems: 1 47 48 clocks: 49 maxItems: 1 50 51 big-endian: true 52 53 fsl,ext-reset-output: 54 $ref: /schemas/types.yaml#/definitions/flag 55 description: | 56 If present, the watchdog device is configured to assert its 57 external reset (WDOG_B) instead of issuing a software reset. 58 59 fsl,suspend-in-wait: 60 $ref: /schemas/types.yaml#/definitions/flag 61 description: | 62 If present, the watchdog device is suspended in WAIT mode 63 (Suspend-to-Idle). Only supported on certain devices. 64 65required: 66 - compatible 67 - interrupts 68 - reg 69 70allOf: 71 - $ref: watchdog.yaml# 72 - if: 73 not: 74 properties: 75 compatible: 76 contains: 77 enum: 78 - fsl,imx25-wdt 79 - fsl,imx35-wdt 80 - fsl,imx50-wdt 81 - fsl,imx51-wdt 82 - fsl,imx53-wdt 83 - fsl,imx6q-wdt 84 - fsl,imx6sl-wdt 85 - fsl,imx6sll-wdt 86 - fsl,imx6sx-wdt 87 - fsl,imx6ul-wdt 88 - fsl,imx7d-wdt 89 - fsl,imx8mm-wdt 90 - fsl,imx8mn-wdt 91 - fsl,imx8mp-wdt 92 - fsl,imx8mq-wdt 93 - fsl,vf610-wdt 94 then: 95 properties: 96 fsl,suspend-in-wait: false 97 98 - if: 99 not: 100 properties: 101 compatible: 102 contains: 103 enum: 104 - fsl,ls1012a-wdt 105 - fsl,ls1043a-wdt 106 then: 107 properties: 108 big-endian: false 109 110unevaluatedProperties: false 111 112examples: 113 - | 114 #include <dt-bindings/interrupt-controller/arm-gic.h> 115 #include <dt-bindings/clock/imx6qdl-clock.h> 116 117 watchdog@20bc000 { 118 compatible = "fsl,imx21-wdt"; 119 reg = <0x020bc000 0x4000>; 120 interrupts = <0 80 IRQ_TYPE_LEVEL_HIGH>; 121 clocks = <&clks IMX6QDL_CLK_IPG>; 122 }; 123 124... 125