From a0a9a1f90529af32b94baca7bedff752c7547174 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Mon, 1 Apr 2019 18:05:35 -0400 Subject: [PATCH] dts : arm : Add Microchip MEC1501 SoC device tree Initial support for Microchip MEC1501 series is added to the tree. Additional support for UART is also included. This SoC supports two operational modes for interrupts (Direct and Aggregated). For this commit, the direct capable interrupts are configured in direct mode. Signed-off-by: Scott Worley --- CODEOWNERS | 1 + dts/arm/microchip/mec1501hsz.dtsi | 60 +++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 dts/arm/microchip/mec1501hsz.dtsi diff --git a/CODEOWNERS b/CODEOWNERS index 83aee9acd3..aff3a4c5a0 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -153,6 +153,7 @@ /dts/arm/st/ @erwango /dts/arm/nordic/ @ioannisg @carlescufi /dts/arm/nxp/ @MaureenHelm +/dts/arm/microchip/ @franciscomunoz @albertofloyd @scottwcpg /dts/bindings/ @galak /dts/bindings/can/ @alexanderwachter /dts/bindings/serial/ns16550.yaml @gnuless diff --git a/dts/arm/microchip/mec1501hsz.dtsi b/dts/arm/microchip/mec1501hsz.dtsi new file mode 100644 index 0000000000..7162d2c577 --- /dev/null +++ b/dts/arm/microchip/mec1501hsz.dtsi @@ -0,0 +1,60 @@ +/* + * Copyright (c) 2019 Intel Corporation + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#include + +/ { + cpus { + #address-cells = <1>; + #size-cells = <0>; + + cpu@0 { + device_type = "cpu"; + compatible = "arm,cortex-m4"; + reg = <0>; + }; + }; + + flash0: flash@e0000 { + reg = <0x000E0000 0x38000>; + }; + + sram0: memory@118000 { + compatible = "mmio-sram"; + reg = <0x00118000 0x8000>; + }; + + soc { + uart0: uart@400f2400 { + compatible = "ns16550"; + reg = <0x400f2400 0x400>; + interrupts = <40 0>; + current-speed = <38400>; + label = "UART_0"; + reg-shift = <0>; + }; + uart1: uart@400f2800 { + compatible = "ns16550"; + reg = <0x400f2800 0x400>; + interrupts = <41 0>; + current-speed = <38400>; + label = "UART_1"; + reg-shift = <0>; + }; + uart2: uart@400f2c00 { + compatible = "ns16550"; + reg = <0x400f2c00 0x400>; + interrupts = <44 0>; + current-speed = <38400>; + label = "UART_2"; + reg-shift = <0>; + }; + }; +}; + +&nvic { + arm,num-irq-priority-bits = <3>; +};