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