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,ls1021a-wdt 39 - fsl,ls1043a-wdt 40 - fsl,vf610-wdt 41 - const: fsl,imx21-wdt 42 43 reg: 44 maxItems: 1 45 46 interrupts: 47 maxItems: 1 48 49 clocks: 50 maxItems: 1 51 52 big-endian: true 53 54 fsl,ext-reset-output: 55 $ref: /schemas/types.yaml#/definitions/flag 56 description: | 57 If present, the watchdog device is configured to assert its 58 external reset (WDOG_B) instead of issuing a software reset. 59 60 fsl,suspend-in-wait: 61 $ref: /schemas/types.yaml#/definitions/flag 62 description: | 63 If present, the watchdog device is suspended in WAIT mode 64 (Suspend-to-Idle). Only supported on certain devices. 65 66required: 67 - compatible 68 - interrupts 69 - reg 70 71allOf: 72 - $ref: watchdog.yaml# 73 - if: 74 not: 75 properties: 76 compatible: 77 contains: 78 enum: 79 - fsl,imx25-wdt 80 - fsl,imx35-wdt 81 - fsl,imx50-wdt 82 - fsl,imx51-wdt 83 - fsl,imx53-wdt 84 - fsl,imx6q-wdt 85 - fsl,imx6sl-wdt 86 - fsl,imx6sll-wdt 87 - fsl,imx6sx-wdt 88 - fsl,imx6ul-wdt 89 - fsl,imx7d-wdt 90 - fsl,imx8mm-wdt 91 - fsl,imx8mn-wdt 92 - fsl,imx8mp-wdt 93 - fsl,imx8mq-wdt 94 - fsl,vf610-wdt 95 then: 96 properties: 97 fsl,suspend-in-wait: false 98 99 - if: 100 not: 101 properties: 102 compatible: 103 contains: 104 enum: 105 - fsl,ls1012a-wdt 106 - fsl,ls1021a-wdt 107 - fsl,ls1043a-wdt 108 then: 109 properties: 110 big-endian: false 111 112unevaluatedProperties: false 113 114examples: 115 - | 116 #include <dt-bindings/interrupt-controller/arm-gic.h> 117 #include <dt-bindings/clock/imx6qdl-clock.h> 118 119 watchdog@20bc000 { 120 compatible = "fsl,imx21-wdt"; 121 reg = <0x020bc000 0x4000>; 122 interrupts = <0 80 IRQ_TYPE_LEVEL_HIGH>; 123 clocks = <&clks IMX6QDL_CLK_IPG>; 124 }; 125 126... 127