From 9a140ca67d6a8bd158e71c7a64cad532e7489d25 Mon Sep 17 00:00:00 2001 From: Andrei Emeltchenko Date: Mon, 22 May 2023 09:16:10 +0530 Subject: [PATCH] boards: intel_adl: Disable UARTs by default and enabled when needed Disabled uart0 and uart1 by default in alder_lake.dtsi and enable only for intel_adl_crb board. Signed-off-by: Andrei Emeltchenko --- boards/x86/intel_adl/intel_adl_crb.dts | 8 ++++++++ boards/x86/intel_adl/intel_adl_rvp.dts | 4 ---- dts/x86/intel/alder_lake.dtsi | 13 ++++++++++++- 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/boards/x86/intel_adl/intel_adl_crb.dts b/boards/x86/intel_adl/intel_adl_crb.dts index 1499c36f04..8b67cd5d36 100644 --- a/boards/x86/intel_adl/intel_adl_crb.dts +++ b/boards/x86/intel_adl/intel_adl_crb.dts @@ -12,3 +12,11 @@ zephyr,shell-uart = &uart0; }; }; + +&uart0 { + status = "okay"; +}; + +&uart1 { + status = "okay"; +}; diff --git a/boards/x86/intel_adl/intel_adl_rvp.dts b/boards/x86/intel_adl/intel_adl_rvp.dts index 0556268257..eb74a98a70 100644 --- a/boards/x86/intel_adl/intel_adl_rvp.dts +++ b/boards/x86/intel_adl/intel_adl_rvp.dts @@ -12,7 +12,3 @@ zephyr,shell-uart = &uart0_legacy; }; }; - -&uart0 { - status = "disabled"; -}; diff --git a/dts/x86/intel/alder_lake.dtsi b/dts/x86/intel/alder_lake.dtsi index 68d8393a2f..728e14f60c 100644 --- a/dts/x86/intel/alder_lake.dtsi +++ b/dts/x86/intel/alder_lake.dtsi @@ -65,8 +65,19 @@ interrupts = ; interrupt-parent = <&intc>; + status = "disabled"; + }; - status = "okay"; + uart1: uart1 { + compatible = "ns16550"; + vendor-id = <0x8086>; + device-id = <0x54A9>; + clock-frequency = <1843200>; + current-speed = <115200>; + reg-shift = <2>; + interrupts = ; + interrupt-parent = <&intc>; + status = "disabled"; }; };