dts: stm32: Add watchdog nodes to STM32 dtsi files
Provide watchdog node definition to stm32 dtsi files to enable watchdog configuration by device tree. Add matching st,stm32-watchdog binding. Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
1a05f2fae3
commit
12166b61ee
9 changed files with 85 additions and 0 deletions
|
@ -160,6 +160,12 @@
|
||||||
label = "SPI_1";
|
label = "SPI_1";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
idwg: watchdog@40003000 {
|
||||||
|
compatible = "st,stm32-watchdog";
|
||||||
|
reg = <0x40003000 0x400>;
|
||||||
|
label = "IWDG";
|
||||||
|
};
|
||||||
|
|
||||||
timers1: timers@40012c00 {
|
timers1: timers@40012c00 {
|
||||||
compatible = "st,stm32-timers";
|
compatible = "st,stm32-timers";
|
||||||
reg = <0x40012c00 0x400>;
|
reg = <0x40012c00 0x400>;
|
||||||
|
|
|
@ -157,6 +157,13 @@
|
||||||
label = "SPI_1";
|
label = "SPI_1";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
idwg: watchdog@40003000 {
|
||||||
|
compatible = "st,stm32-watchdog";
|
||||||
|
reg = <0x40003000 0x400>;
|
||||||
|
label = "IWDG";
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
timers1: timers@40012c00 {
|
timers1: timers@40012c00 {
|
||||||
compatible = "st,stm32-timers";
|
compatible = "st,stm32-timers";
|
||||||
reg = <0x40012c00 0x400>;
|
reg = <0x40012c00 0x400>;
|
||||||
|
|
|
@ -140,6 +140,13 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
idwg: watchdog@40003000 {
|
||||||
|
compatible = "st,stm32-watchdog";
|
||||||
|
reg = <0x40003000 0x400>;
|
||||||
|
label = "IWDG";
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
usart1: serial@40011000 {
|
usart1: serial@40011000 {
|
||||||
compatible = "st,stm32-usart", "st,stm32-uart";
|
compatible = "st,stm32-usart", "st,stm32-uart";
|
||||||
reg = <0x40011000 0x400>;
|
reg = <0x40011000 0x400>;
|
||||||
|
|
|
@ -103,6 +103,13 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
idwg: watchdog@40003000 {
|
||||||
|
compatible = "st,stm32-watchdog";
|
||||||
|
reg = <0x40003000 0x400>;
|
||||||
|
label = "IWDG";
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
usart1: serial@40013800 {
|
usart1: serial@40013800 {
|
||||||
compatible = "st,stm32-usart", "st,stm32-uart";
|
compatible = "st,stm32-usart", "st,stm32-uart";
|
||||||
reg = <0x40013800 0x400>;
|
reg = <0x40013800 0x400>;
|
||||||
|
|
|
@ -114,6 +114,12 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
idwg: watchdog@40003000 {
|
||||||
|
compatible = "st,stm32-watchdog";
|
||||||
|
reg = <0x40003000 0x400>;
|
||||||
|
label = "IWDG";
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
usart1: serial@40011000 {
|
usart1: serial@40011000 {
|
||||||
compatible = "st,stm32-usart", "st,stm32-uart";
|
compatible = "st,stm32-usart", "st,stm32-uart";
|
||||||
|
|
|
@ -140,6 +140,13 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
idwg: watchdog@40003000 {
|
||||||
|
compatible = "st,stm32-watchdog";
|
||||||
|
reg = <0x40003000 0x400>;
|
||||||
|
label = "IWDG";
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
usart1: serial@40011000 {
|
usart1: serial@40011000 {
|
||||||
compatible = "st,stm32-usart", "st,stm32-uart";
|
compatible = "st,stm32-usart", "st,stm32-uart";
|
||||||
reg = <0x40011000 0x400>;
|
reg = <0x40011000 0x400>;
|
||||||
|
|
|
@ -105,6 +105,13 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
idwg: watchdog@40003000 {
|
||||||
|
compatible = "st,stm32-watchdog";
|
||||||
|
reg = <0x40003000 0x400>;
|
||||||
|
label = "IWDG";
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
usart1: serial@40013800 {
|
usart1: serial@40013800 {
|
||||||
compatible = "st,stm32-usart", "st,stm32-uart";
|
compatible = "st,stm32-usart", "st,stm32-uart";
|
||||||
reg = <0x40013800 0x400>;
|
reg = <0x40013800 0x400>;
|
||||||
|
|
|
@ -98,6 +98,13 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
idwg: watchdog@40003000 {
|
||||||
|
compatible = "st,stm32-watchdog";
|
||||||
|
reg = <0x40003000 0x400>;
|
||||||
|
label = "IWDG";
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
usart1: serial@40013800 {
|
usart1: serial@40013800 {
|
||||||
compatible = "st,stm32-usart", "st,stm32-uart";
|
compatible = "st,stm32-usart", "st,stm32-uart";
|
||||||
reg = <0x40013800 0x400>;
|
reg = <0x40013800 0x400>;
|
||||||
|
|
31
dts/bindings/watchdog/st,stm32-watchdog.yaml
Normal file
31
dts/bindings/watchdog/st,stm32-watchdog.yaml
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
#
|
||||||
|
# Copyright (c) 2019, Linaro Limited
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
#
|
||||||
|
---
|
||||||
|
title: STMicroelectronics STM32 watchdog driver
|
||||||
|
version: 0.1
|
||||||
|
|
||||||
|
description: >
|
||||||
|
This is a representation of the STM32 watchdog
|
||||||
|
|
||||||
|
properties:
|
||||||
|
compatible:
|
||||||
|
type: string
|
||||||
|
category: required
|
||||||
|
description: compatible strings
|
||||||
|
constraint: "st,stm32-watchdog"
|
||||||
|
generation: define
|
||||||
|
|
||||||
|
reg:
|
||||||
|
type: int
|
||||||
|
description: mmio register space
|
||||||
|
generation: define
|
||||||
|
category: required
|
||||||
|
|
||||||
|
label:
|
||||||
|
type: string
|
||||||
|
category: required
|
||||||
|
description: Human readable string describing the device (used by Zephyr for API name)
|
||||||
|
generation: define
|
Loading…
Add table
Add a link
Reference in a new issue