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:
parent
2472fee5cc
commit
6bf4fb39ad
21 changed files with 68 additions and 0 deletions
|
@ -71,6 +71,7 @@
|
|||
sw0 = &user_key;
|
||||
pwm-led0 = &pwm_led;
|
||||
eeprom-0 = &eeprom0;
|
||||
watchdog0 = &fwdgt;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -133,3 +134,7 @@
|
|||
pinctrl-0 = <&dac_default>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
||||
&fwdgt {
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
@ -11,3 +11,5 @@ toolchain:
|
|||
- zephyr
|
||||
- gnuarmemb
|
||||
- xtools
|
||||
supported:
|
||||
- watchdog
|
||||
|
|
|
@ -47,6 +47,7 @@
|
|||
led0 = &led1;
|
||||
sw0 = &user_key;
|
||||
pwm-led0 = &pwm_led;
|
||||
watchdog0 = &fwdgt;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -75,3 +76,7 @@
|
|||
pinctrl-names = "default";
|
||||
};
|
||||
};
|
||||
|
||||
&fwdgt {
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
@ -14,3 +14,4 @@ toolchain:
|
|||
supported:
|
||||
- pwm
|
||||
- gpio
|
||||
- watchdog
|
||||
|
|
|
@ -19,6 +19,10 @@
|
|||
zephyr,shell-uart = &usart0;
|
||||
zephyr,flash-controller = &fmc;
|
||||
};
|
||||
|
||||
aliases {
|
||||
watchdog0 = &fwdgt;
|
||||
};
|
||||
};
|
||||
|
||||
&usart0 {
|
||||
|
@ -35,3 +39,7 @@
|
|||
pinctrl-0 = <&adc0_default>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
||||
&fwdgt {
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
@ -11,3 +11,5 @@ toolchain:
|
|||
- zephyr
|
||||
- gnuarmemb
|
||||
- xtools
|
||||
supported:
|
||||
- watchdog
|
||||
|
|
|
@ -74,6 +74,7 @@
|
|||
led1 = &led3;
|
||||
sw0 = &user_key1;
|
||||
pwm-led0 = &pwm_led;
|
||||
watchdog0 = &fwdgt;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -112,3 +113,7 @@
|
|||
pinctrl-names = "default";
|
||||
};
|
||||
};
|
||||
|
||||
&fwdgt {
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
@ -13,3 +13,4 @@ toolchain:
|
|||
- xtools
|
||||
supported:
|
||||
- pwm
|
||||
- watchdog
|
||||
|
|
|
@ -68,6 +68,7 @@
|
|||
pwm-led0 = &pwm_led;
|
||||
eeprom-0 = &eeprom0;
|
||||
spi-flash0 = &nor_flash;
|
||||
watchdog0 = &fwdgt;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -159,3 +160,7 @@
|
|||
jedec-id = [c8 40 15];
|
||||
};
|
||||
};
|
||||
|
||||
&fwdgt {
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
@ -13,3 +13,4 @@ toolchain:
|
|||
- xtools
|
||||
supported:
|
||||
- pwm
|
||||
- watchdog
|
||||
|
|
|
@ -68,6 +68,7 @@
|
|||
pwm-led0 = &pwm_led;
|
||||
eeprom-0 = &eeprom0;
|
||||
spi-flash0 = &nor_flash;
|
||||
watchdog0 = &fwdgt;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -145,3 +146,7 @@
|
|||
jedec-id = [c8 40 15];
|
||||
};
|
||||
};
|
||||
|
||||
&fwdgt {
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
@ -18,3 +18,4 @@ supported:
|
|||
- pwm
|
||||
- spi
|
||||
- uart
|
||||
- watchdog
|
||||
|
|
|
@ -68,6 +68,7 @@
|
|||
pwm-led0 = &pwm_led;
|
||||
eeprom-0 = &eeprom0;
|
||||
spi-flash0 = &nor_flash;
|
||||
watchdog0 = &fwdgt;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -149,3 +150,7 @@
|
|||
jedec-id = [c8 40 15];
|
||||
};
|
||||
};
|
||||
|
||||
&fwdgt {
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
@ -18,3 +18,4 @@ supported:
|
|||
- pwm
|
||||
- spi
|
||||
- uart
|
||||
- watchdog
|
||||
|
|
|
@ -50,6 +50,7 @@
|
|||
led0 = &led1;
|
||||
sw0 = &key_a;
|
||||
pwm-led0 = &pwm_led;
|
||||
watchdog0 = &fwdgt;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -86,3 +87,7 @@
|
|||
pinctrl-names = "default";
|
||||
};
|
||||
};
|
||||
|
||||
&fwdgt {
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
@ -13,3 +13,4 @@ supported:
|
|||
- uart
|
||||
- gpio
|
||||
- pwm
|
||||
- watchdog
|
||||
|
|
|
@ -79,6 +79,7 @@
|
|||
sw0 = &key_cet;
|
||||
pwm-led0 = &pwm_led;
|
||||
spi-flash0 = &nor_flash;
|
||||
watchdog0 = &fwdgt;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -144,3 +145,7 @@
|
|||
pinctrl-0 = <&adc0_default>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
||||
&fwdgt {
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
@ -13,3 +13,4 @@ supported:
|
|||
- uart
|
||||
- gpio
|
||||
- pwm
|
||||
- watchdog
|
||||
|
|
|
@ -59,6 +59,7 @@
|
|||
pwm-led0 = &pwm_led_green;
|
||||
pwm-led1 = &pwm_led_blue;
|
||||
sw0 = &button_boot0;
|
||||
watchdog0 = &fwdgt;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -116,3 +117,7 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
&fwdgt {
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
@ -7,3 +7,5 @@ toolchain:
|
|||
- xtools
|
||||
flash: 128
|
||||
ram: 32
|
||||
supported:
|
||||
- watchdog
|
||||
|
|
|
@ -7,3 +7,5 @@ toolchain:
|
|||
- xtools
|
||||
flash: 64
|
||||
ram: 20
|
||||
supported:
|
||||
- watchdog
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue