From 1ca0fb49fdf6c968d69859e1d99fd279a2e6c676 Mon Sep 17 00:00:00 2001 From: Andrei Emeltchenko Date: Fri, 28 Jul 2023 17:39:56 +0300 Subject: [PATCH] boards: ehl_crb: Add watchdog support Add watchdog support to ELkhart Lake board basically copying configuration from Raptor Lake. Signed-off-by: Andrei Emeltchenko --- boards/x86/ehl_crb/ehl_crb.dts | 1 + boards/x86/ehl_crb/ehl_crb.yaml | 1 + dts/x86/intel/elkhart_lake.dtsi | 7 +++++++ 3 files changed, 9 insertions(+) diff --git a/boards/x86/ehl_crb/ehl_crb.dts b/boards/x86/ehl_crb/ehl_crb.dts index f8ebe0e8dad..0889e01079a 100644 --- a/boards/x86/ehl_crb/ehl_crb.dts +++ b/boards/x86/ehl_crb/ehl_crb.dts @@ -23,6 +23,7 @@ }; aliases { + watchdog0 = &tco_wdt; rtc = &rtc; }; }; diff --git a/boards/x86/ehl_crb/ehl_crb.yaml b/boards/x86/ehl_crb/ehl_crb.yaml index d9fbe61bfe3..69a3aee68af 100644 --- a/boards/x86/ehl_crb/ehl_crb.yaml +++ b/boards/x86/ehl_crb/ehl_crb.yaml @@ -10,6 +10,7 @@ supported: - gpio - smbus - rtc + - watchdog testing: ignore_tags: - net diff --git a/dts/x86/intel/elkhart_lake.dtsi b/dts/x86/intel/elkhart_lake.dtsi index d039d41c915..5dda4d8dbcd 100644 --- a/dts/x86/intel/elkhart_lake.dtsi +++ b/dts/x86/intel/elkhart_lake.dtsi @@ -689,6 +689,13 @@ status = "okay"; }; + tco_wdt: tco_wdt@400 { + compatible = "intel,tco-wdt"; + reg = <0x0400 0x20>; + + status = "disabled"; + }; + rtc: counter: rtc@70 { compatible = "motorola,mc146818"; reg = <0x70 0x0D 0x71 0x0D>;