dts: Add standard alias for watchdog

Introduce a standard watchdog alias 'watchdog0' that can be utilized
by sample/test code in the future.  This helps remove the need for
CONFIG_WDT_0_NAME in dts_fixup.h files.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2019-11-04 12:17:05 -06:00 committed by Maureen Helm
commit dc2cb92c4a
12 changed files with 32 additions and 5 deletions

View file

@ -9,7 +9,6 @@
compatible = "arduino,due", "atmel,sam3x8e", "atmel,sam3x";
aliases {
wdog = &wdog;
uart-0 = &uart0;
i2c-0 = &i2c0;
i2c-1 = &i2c1;

View file

@ -17,7 +17,6 @@
led0 = &yellow_led_1;
led1 = &yellow_led_2;
sw0 = &user_button;
wdog = &wdog;
};
chosen {

View file

@ -19,7 +19,6 @@
i2c-2 = &i2c2;
led0 = &green_led;
sw0 = &sw0_user_button;
wdog = &wdog;
};
chosen {

View file

@ -8,6 +8,10 @@
#include <dt-bindings/i2c/i2c.h>
/ {
aliases {
watchdog0 = &wdog;
};
cpus {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -9,6 +9,10 @@
#include <dt-bindings/gpio/gpio.h>
/ {
aliases {
watchdog0 = &wdog;
};
cpus {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -9,6 +9,10 @@
#include <dt-bindings/i2c/i2c.h>
/ {
aliases {
watchdog0 = &wdog;
};
cpus {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -10,6 +10,10 @@
#include <dt-bindings/gpio/gpio.h>
/ {
aliases {
watchdog0 = &wdog;
};
cpus {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -11,6 +11,11 @@
#include <dt-bindings/i2c/i2c.h>
/ {
aliases {
watchdog0 = &wdog;
};
cpus {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -7,6 +7,11 @@
#include <dt-bindings/i2c/i2c.h>
/ {
aliases {
watchdog0 = &wdog;
};
cpus {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -41,7 +41,7 @@
uart-3 = &lpuart3;
uart-4 = &lpuart4;
usbd-0 = &usbd;
wdt-0 = &wdog;
watchdog0 = &wdog;
};
cpus {

View file

@ -13,7 +13,7 @@
/ {
aliases {
rtc-0 = &rtc0;
wdt-0 = &wdog0;
watchdog0 = &wdog0;
uart-0 = &uart0;
uart-1 = &uart1;
uart-2 = &uart2;

View file

@ -7,6 +7,10 @@
#include <dt-bindings/i2c/i2c.h>
/ {
aliases {
watchdog0 = &wdog;
};
cpus {
#address-cells = <1>;
#size-cells = <0>;