Anson Huang | 8d99f03 | 2020-04-21 22:21:26 +0800 | [diff] [blame] | 1 | # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/watchdog/fsl-imx7ulp-wdt.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: Freescale i.MX7ULP Watchdog Timer (WDT) Controller |
| 8 | |
| 9 | maintainers: |
| 10 | - Anson Huang <Anson.Huang@nxp.com> |
| 11 | |
| 12 | allOf: |
| 13 | - $ref: "watchdog.yaml#" |
| 14 | |
| 15 | properties: |
| 16 | compatible: |
| 17 | enum: |
| 18 | - fsl,imx7ulp-wdt |
| 19 | |
| 20 | reg: |
| 21 | maxItems: 1 |
| 22 | |
| 23 | interrupts: |
| 24 | maxItems: 1 |
| 25 | |
| 26 | clocks: |
| 27 | maxItems: 1 |
| 28 | |
| 29 | assigned-clocks: |
| 30 | maxItems: 1 |
| 31 | |
| 32 | assigned-clocks-parents: |
| 33 | maxItems: 1 |
| 34 | |
| 35 | timeout-sec: true |
| 36 | |
| 37 | required: |
| 38 | - compatible |
| 39 | - interrupts |
| 40 | - reg |
| 41 | - clocks |
| 42 | |
| 43 | additionalProperties: false |
| 44 | |
| 45 | examples: |
| 46 | - | |
| 47 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 48 | #include <dt-bindings/clock/imx7ulp-clock.h> |
| 49 | |
| 50 | watchdog@403d0000 { |
| 51 | compatible = "fsl,imx7ulp-wdt"; |
| 52 | reg = <0x403d0000 0x10000>; |
| 53 | interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>; |
| 54 | clocks = <&pcc2 IMX7ULP_CLK_WDG1>; |
| 55 | assigned-clocks = <&pcc2 IMX7ULP_CLK_WDG1>; |
| 56 | assigned-clocks-parents = <&scg1 IMX7ULP_CLK_FIRC_BUS_CLK>; |
| 57 | timeout-sec = <40>; |
| 58 | }; |
| 59 | |
| 60 | ... |