boards: Enable watchdog node for boards that implements GD32 SoCs

Enable watchdog in each GD32 implemented board.
Add the watchdog function as a supported function in each yaml files.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
This commit is contained in:
TOKITA Hiroshi 2022-07-27 19:40:40 +09:00 committed by Carles Cufí
commit 6bf4fb39ad
21 changed files with 68 additions and 0 deletions

View file

@ -71,6 +71,7 @@
sw0 = &user_key; sw0 = &user_key;
pwm-led0 = &pwm_led; pwm-led0 = &pwm_led;
eeprom-0 = &eeprom0; eeprom-0 = &eeprom0;
watchdog0 = &fwdgt;
}; };
}; };
@ -133,3 +134,7 @@
pinctrl-0 = <&dac_default>; pinctrl-0 = <&dac_default>;
pinctrl-names = "default"; pinctrl-names = "default";
}; };
&fwdgt {
status = "okay";
};

View file

@ -11,3 +11,5 @@ toolchain:
- zephyr - zephyr
- gnuarmemb - gnuarmemb
- xtools - xtools
supported:
- watchdog

View file

@ -47,6 +47,7 @@
led0 = &led1; led0 = &led1;
sw0 = &user_key; sw0 = &user_key;
pwm-led0 = &pwm_led; pwm-led0 = &pwm_led;
watchdog0 = &fwdgt;
}; };
}; };
@ -75,3 +76,7 @@
pinctrl-names = "default"; pinctrl-names = "default";
}; };
}; };
&fwdgt {
status = "okay";
};

View file

@ -14,3 +14,4 @@ toolchain:
supported: supported:
- pwm - pwm
- gpio - gpio
- watchdog

View file

@ -19,6 +19,10 @@
zephyr,shell-uart = &usart0; zephyr,shell-uart = &usart0;
zephyr,flash-controller = &fmc; zephyr,flash-controller = &fmc;
}; };
aliases {
watchdog0 = &fwdgt;
};
}; };
&usart0 { &usart0 {
@ -35,3 +39,7 @@
pinctrl-0 = <&adc0_default>; pinctrl-0 = <&adc0_default>;
pinctrl-names = "default"; pinctrl-names = "default";
}; };
&fwdgt {
status = "okay";
};

View file

@ -11,3 +11,5 @@ toolchain:
- zephyr - zephyr
- gnuarmemb - gnuarmemb
- xtools - xtools
supported:
- watchdog

View file

@ -74,6 +74,7 @@
led1 = &led3; led1 = &led3;
sw0 = &user_key1; sw0 = &user_key1;
pwm-led0 = &pwm_led; pwm-led0 = &pwm_led;
watchdog0 = &fwdgt;
}; };
}; };
@ -112,3 +113,7 @@
pinctrl-names = "default"; pinctrl-names = "default";
}; };
}; };
&fwdgt {
status = "okay";
};

View file

@ -13,3 +13,4 @@ toolchain:
- xtools - xtools
supported: supported:
- pwm - pwm
- watchdog

View file

@ -68,6 +68,7 @@
pwm-led0 = &pwm_led; pwm-led0 = &pwm_led;
eeprom-0 = &eeprom0; eeprom-0 = &eeprom0;
spi-flash0 = &nor_flash; spi-flash0 = &nor_flash;
watchdog0 = &fwdgt;
}; };
}; };
@ -159,3 +160,7 @@
jedec-id = [c8 40 15]; jedec-id = [c8 40 15];
}; };
}; };
&fwdgt {
status = "okay";
};

View file

@ -13,3 +13,4 @@ toolchain:
- xtools - xtools
supported: supported:
- pwm - pwm
- watchdog

View file

@ -68,6 +68,7 @@
pwm-led0 = &pwm_led; pwm-led0 = &pwm_led;
eeprom-0 = &eeprom0; eeprom-0 = &eeprom0;
spi-flash0 = &nor_flash; spi-flash0 = &nor_flash;
watchdog0 = &fwdgt;
}; };
}; };
@ -145,3 +146,7 @@
jedec-id = [c8 40 15]; jedec-id = [c8 40 15];
}; };
}; };
&fwdgt {
status = "okay";
};

View file

@ -18,3 +18,4 @@ supported:
- pwm - pwm
- spi - spi
- uart - uart
- watchdog

View file

@ -68,6 +68,7 @@
pwm-led0 = &pwm_led; pwm-led0 = &pwm_led;
eeprom-0 = &eeprom0; eeprom-0 = &eeprom0;
spi-flash0 = &nor_flash; spi-flash0 = &nor_flash;
watchdog0 = &fwdgt;
}; };
}; };
@ -149,3 +150,7 @@
jedec-id = [c8 40 15]; jedec-id = [c8 40 15];
}; };
}; };
&fwdgt {
status = "okay";
};

View file

@ -18,3 +18,4 @@ supported:
- pwm - pwm
- spi - spi
- uart - uart
- watchdog

View file

@ -50,6 +50,7 @@
led0 = &led1; led0 = &led1;
sw0 = &key_a; sw0 = &key_a;
pwm-led0 = &pwm_led; pwm-led0 = &pwm_led;
watchdog0 = &fwdgt;
}; };
}; };
@ -86,3 +87,7 @@
pinctrl-names = "default"; pinctrl-names = "default";
}; };
}; };
&fwdgt {
status = "okay";
};

View file

@ -13,3 +13,4 @@ supported:
- uart - uart
- gpio - gpio
- pwm - pwm
- watchdog

View file

@ -79,6 +79,7 @@
sw0 = &key_cet; sw0 = &key_cet;
pwm-led0 = &pwm_led; pwm-led0 = &pwm_led;
spi-flash0 = &nor_flash; spi-flash0 = &nor_flash;
watchdog0 = &fwdgt;
}; };
}; };
@ -144,3 +145,7 @@
pinctrl-0 = <&adc0_default>; pinctrl-0 = <&adc0_default>;
pinctrl-names = "default"; pinctrl-names = "default";
}; };
&fwdgt {
status = "okay";
};

View file

@ -13,3 +13,4 @@ supported:
- uart - uart
- gpio - gpio
- pwm - pwm
- watchdog

View file

@ -59,6 +59,7 @@
pwm-led0 = &pwm_led_green; pwm-led0 = &pwm_led_green;
pwm-led1 = &pwm_led_blue; pwm-led1 = &pwm_led_blue;
sw0 = &button_boot0; sw0 = &button_boot0;
watchdog0 = &fwdgt;
}; };
}; };
@ -116,3 +117,7 @@
}; };
}; };
}; };
&fwdgt {
status = "okay";
};

View file

@ -7,3 +7,5 @@ toolchain:
- xtools - xtools
flash: 128 flash: 128
ram: 32 ram: 32
supported:
- watchdog

View file

@ -7,3 +7,5 @@ toolchain:
- xtools - xtools
flash: 64 flash: 64
ram: 20 ram: 20
supported:
- watchdog