|
| 1 | +/* |
| 2 | + * Copyright (c) 2018-2021 Linaro Limited |
| 3 | + * |
| 4 | + * SPDX-License-Identifier: Apache-2.0 |
| 5 | + */ |
| 6 | + |
| 7 | +/dts-v1/; |
| 8 | + |
| 9 | +#include <arm/armv8.1-m.dtsi> |
| 10 | +#include <dt-bindings/i2c/i2c.h> |
| 11 | +#include <mem.h> |
| 12 | + |
| 13 | +/ { |
| 14 | + compatible = "arm,mps3-an547"; |
| 15 | + #address-cells = <1>; |
| 16 | + #size-cells = <1>; |
| 17 | + |
| 18 | + aliases { |
| 19 | + led0 = &led_0; |
| 20 | + led1 = &led_1; |
| 21 | + sw0 = &user_button_0; |
| 22 | + sw1 = &user_button_1; |
| 23 | + }; |
| 24 | + |
| 25 | + chosen { |
| 26 | + zephyr,console = &uart0; |
| 27 | + zephyr,shell-uart = &uart0; |
| 28 | + zephyr,sram = &ram; |
| 29 | + zephyr,flash = &code; |
| 30 | + }; |
| 31 | + |
| 32 | + leds { |
| 33 | + compatible = "gpio-leds"; |
| 34 | + led_0: led_0 { |
| 35 | + gpios = <&gpio_led0 0>; |
| 36 | + label = "USERLED0"; |
| 37 | + }; |
| 38 | + led_1: led_1 { |
| 39 | + gpios = <&gpio_led0 1>; |
| 40 | + label = "USERLED1"; |
| 41 | + }; |
| 42 | + }; |
| 43 | + |
| 44 | + gpio_keys { |
| 45 | + compatible = "gpio-keys"; |
| 46 | + user_button_0: button_0 { |
| 47 | + label = "USERPB0"; |
| 48 | + gpios = <&gpio_button 0>; |
| 49 | + }; |
| 50 | + user_button_1: button_1 { |
| 51 | + label = "USERPB1"; |
| 52 | + gpios = <&gpio_button 1>; |
| 53 | + }; |
| 54 | + }; |
| 55 | + |
| 56 | + cpus { |
| 57 | + #address-cells = <1>; |
| 58 | + #size-cells = <0>; |
| 59 | + |
| 60 | + cpu@0 { |
| 61 | + device_type = "cpu"; |
| 62 | + compatible = "arm,cortex-m55"; |
| 63 | + reg = <0>; |
| 64 | + #address-cells = <1>; |
| 65 | + #size-cells = <1>; |
| 66 | + |
| 67 | + mpu: mpu@e000ed90 { |
| 68 | + compatible = "arm,armv8.1m-mpu"; |
| 69 | + reg = <0xe000ed90 0x40>; |
| 70 | + arm,num-mpu-regions = <16>; |
| 71 | + }; |
| 72 | + }; |
| 73 | + }; |
| 74 | + |
| 75 | + /* We utilize the secure addresses, if you subtract 0x10000000 |
| 76 | + * you'll get the non-secure alias |
| 77 | + */ |
| 78 | + itcm: itcm@10000000 { /* alias @ 0x0 */ |
| 79 | + reg = <0x10000000 DT_SIZE_K(512)>; |
| 80 | + }; |
| 81 | + |
| 82 | + sram: sram@1000000 { /* alias @ 0x11000000 */ |
| 83 | + compatible = "mmio-sram"; |
| 84 | + reg = <0x1000000 DT_SIZE_M(2)>; |
| 85 | + }; |
| 86 | + |
| 87 | + dtcm: dtcm@20000000 { /* alias @ 0x30000000 */ |
| 88 | + reg = <0x20000000 DT_SIZE_K(512)>; |
| 89 | + }; |
| 90 | + |
| 91 | + isram: sram@31000000 {/* alias @ 0x21000000 */ |
| 92 | + compatible = "mmio-sram"; |
| 93 | + reg = <0x31000000 DT_SIZE_M(4)>; |
| 94 | + }; |
| 95 | + |
| 96 | + /* DDR4 - 2G, alternates non-secure/secure every 256M */ |
| 97 | + ddr4: memory@60000000 { |
| 98 | + device_type = "memory"; |
| 99 | + reg = <0x60000000 DT_SIZE_M(256) |
| 100 | + 0x70000000 DT_SIZE_M(256) |
| 101 | + 0x80000000 DT_SIZE_M(256) |
| 102 | + 0x90000000 DT_SIZE_M(256) |
| 103 | + 0xa0000000 DT_SIZE_M(256) |
| 104 | + 0xb0000000 DT_SIZE_M(256) |
| 105 | + 0xc0000000 DT_SIZE_M(256) |
| 106 | + 0xd0000000 DT_SIZE_M(256)>; |
| 107 | + }; |
| 108 | + |
| 109 | + reserved-memory { |
| 110 | + #address-cells = <1>; |
| 111 | + #size-cells = <1>; |
| 112 | + ranges; |
| 113 | + |
| 114 | + /* The memory regions defined below must match what the TF-M |
| 115 | + * project has defined for that board - a single image boot is |
| 116 | + * assumed. Please see the memory layout in: |
| 117 | + * https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/tree/platform/ext/target/mps3/an547/partition/flash_layout.h |
| 118 | + */ |
| 119 | + |
| 120 | + code: memory@01060000 { |
| 121 | + reg = <0x01060000 DT_SIZE_K(384)>; |
| 122 | + }; |
| 123 | + |
| 124 | + ram: memory@21000000 { |
| 125 | + reg = <0x21000000 DT_SIZE_M(2)>; |
| 126 | + }; |
| 127 | + }; |
| 128 | + |
| 129 | + soc { |
| 130 | + peripheral@40000000 { |
| 131 | + #address-cells = <1>; |
| 132 | + #size-cells = <1>; |
| 133 | + ranges = <0x0 0x40000000 0x10000000>; |
| 134 | + |
| 135 | + #include "mps3_an547-common.dtsi" |
| 136 | + }; |
| 137 | + }; |
| 138 | +}; |
| 139 | + |
| 140 | +&nvic { |
| 141 | + arm,num-irq-priority-bits = <3>; |
| 142 | +}; |
0 commit comments