1/* 2 * Copyright (c) 2020 Antmicro <www.antmicro.com> 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7#include <mem.h> 8#include <arm/armv7-m.dtsi> 9#include <zephyr/dt-bindings/gpio/gpio.h> 10 11/ { 12 cpus { 13 #address-cells = <1>; 14 #size-cells = <0>; 15 16 cpu0: cpu@0 { 17 device_type = "cpu"; 18 compatible = "arm,cortex-m4f"; 19 reg = <0>; 20 #address-cells = <1>; 21 #size-cells = <1>; 22 23 mpu: mpu@e000ed90 { 24 compatible = "arm,armv7m-mpu"; 25 reg = <0xe000ed90 0x40>; 26 arm,num-mpu-regions = <8>; 27 }; 28 }; 29 }; 30 31 sram0: memory@20000000 { 32 compatible = "mmio-sram"; 33 reg = <0x20000000 DT_SIZE_K(512)>; 34 }; 35 36 uartclk: uart-clock { 37 compatible = "fixed-clock"; 38 clock-frequency = <5120000>; 39 #clock-cells = <0>; 40 }; 41 42 soc { 43 uart0: uart@40010000 { 44 compatible = "arm,pl011"; 45 reg = <0x40010000 DT_SIZE_K(4)>; 46 clocks = <&uartclk>; 47 interrupts = <7 3>; 48 interrupt-names = "rx"; 49 }; 50 51 uart1: uart@40020000 { 52 compatible = "quicklogic,usbserialport-s3b"; 53 reg = <0x40020000 DT_SIZE_K(4)>; 54 status = "disabled"; 55 }; 56 57 gpio: gpio@40005000 { 58 compatible = "quicklogic,eos-s3-gpio"; 59 reg = <0x40005000 DT_SIZE_K(4)>; 60 status = "disabled"; 61 interrupts = <5 2>; 62 #gpio-cells = <2>; 63 ngpios = <8>; 64 pin-secondary-config = <0x00>; 65 gpio-controller; 66 }; 67 68 pinctrl: pinctrl@40004c00 { 69 compatible = "quicklogic,eos-s3-pinctrl"; 70 reg = <0x40004c00 0x1b0>; 71 }; 72 }; 73}; 74 75&nvic { 76 arm,num-irq-priority-bits = <3>; 77}; 78