Loading...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 | /* * Copyright (c) 2018-2019 Linaro Limited * * SPDX-License-Identifier: Apache-2.0 */ /dts-v1/; #include <mem.h> #include <arm/armv8-m.dtsi> #include <dt-bindings/i2c/i2c.h> / { compatible = "arm,mps2"; #address-cells = <1>; #size-cells = <1>; aliases { led0 = &led_0; led1 = &led_1; sw0 = &user_button_0; sw1 = &user_button_1; watchdog0 = &wdog0; }; chosen { zephyr,console = &uart0; zephyr,shell-uart = &uart0; zephyr,sram = &sram2_3; zephyr,flash = &sram1; }; leds { compatible = "gpio-leds"; led_0: led_0 { gpios = <&gpio_led0 0>; label = "USERLED0"; }; led_1: led_1 { gpios = <&gpio_led0 1>; label = "USERLED1"; }; }; gpio_keys { compatible = "gpio-keys"; user_button_0: button_0 { label = "USERPB0"; gpios = <&gpio_button 0>; }; user_button_1: button_1 { label = "USERPB1"; gpios = <&gpio_button 1>; }; }; cpus { #address-cells = <1>; #size-cells = <0>; cpu@0 { device_type = "cpu"; compatible = "arm,cortex-m33"; reg = <0>; #address-cells = <1>; #size-cells = <1>; mpu: mpu@e000ed90 { compatible = "arm,armv8m-mpu"; reg = <0xe000ed90 0x40>; arm,num-mpu-regions = <16>; }; }; }; /* * The memory regions defined below are according to AN521: * https://documentation-service.arm.com/static/5fa12fe9b1a7c5445f29017f * Please see tables from 3-1 to 3-4. */ sram1: memory@10000000 { compatible = "mmio-sram"; reg = <0x10000000 DT_SIZE_M(4)>; }; sram2_3: memory@38000000 { compatible = "mmio-sram"; reg = <0x38000000 DT_SIZE_M(4)>; }; psram: memory@80000000 { device_type = "memory"; reg = <0x80000000 DT_SIZE_M(16)>; }; soc { peripheral@50000000 { #address-cells = <1>; #size-cells = <1>; ranges = <0x0 0x50000000 0x10000000>; #include "mps2_an521-common.dtsi" }; }; }; &nvic { arm,num-irq-priority-bits = <3>; }; |