|
| 1 | +/* |
| 2 | + * Copyright (c) 2024 Realtek Semiconductor Corp. |
| 3 | + * |
| 4 | + * SPDX-License-Identifier: Apache-2.0 |
| 5 | + */ |
| 6 | + |
| 7 | +#include <mem.h> |
| 8 | +#include <freq.h> |
| 9 | +#include <arm/armv8.1-m.dtsi> |
| 10 | + |
| 11 | +#include <zephyr/dt-bindings/gpio/gpio.h> |
| 12 | + |
| 13 | +/ { |
| 14 | + cpus { |
| 15 | + #address-cells = <1>; |
| 16 | + #size-cells = <0>; |
| 17 | + |
| 18 | + cpu0: cpu@0 { |
| 19 | + device_type = "cpu"; |
| 20 | + compatible = "arm,cortex-m55"; |
| 21 | + reg = <0>; |
| 22 | + d-cache-line-size = <32>; |
| 23 | + #address-cells = <1>; |
| 24 | + #size-cells = <1>; |
| 25 | + }; |
| 26 | + }; |
| 27 | + |
| 28 | + clocks { |
| 29 | + clk_sys: clk_sys { |
| 30 | + #clock-cells = <0>; |
| 31 | + compatible = "fixed-clock"; |
| 32 | + clock-frequency = <DT_FREQ_M(260)>; |
| 33 | + }; |
| 34 | + }; |
| 35 | + |
| 36 | + soc { |
| 37 | + sram0: memory@20010020 { |
| 38 | + compatible = "mmio-sram"; |
| 39 | + reg = <0x20010020 0x00030000>; |
| 40 | + }; |
| 41 | + |
| 42 | + ram_image2_entry: memory@20004da0 { |
| 43 | + compatible = "zephyr,memory-region"; |
| 44 | + reg = <0x20004da0 0x20>; |
| 45 | + zephyr,memory-region = "KM4_IMG2_ENTRY"; |
| 46 | + }; |
| 47 | + |
| 48 | + pinctrl: pinctrl@41008800 { |
| 49 | + compatible = "realtek,ameba-pinctrl"; |
| 50 | + reg = <0x41008800 0x200>; |
| 51 | + status = "disabled"; |
| 52 | + }; |
| 53 | + |
| 54 | + loguart: serial@4100f000 { |
| 55 | + compatible = "realtek,ameba-loguart"; |
| 56 | + reg = <0x4100f000 0x100>; |
| 57 | + interrupts = <27 0>; |
| 58 | + current-speed = <1500000>; |
| 59 | + status = "disabled"; |
| 60 | + }; |
| 61 | + |
| 62 | + gpioa: gpio@41010000 { |
| 63 | + compatible = "realtek,ameba-gpio"; |
| 64 | + reg = <0x41010000 0x400>; |
| 65 | + gpio-controller; |
| 66 | + #gpio-cells = <2>; |
| 67 | + interrupts = <28 0>; |
| 68 | + status = "disabled"; |
| 69 | + }; |
| 70 | + |
| 71 | + gpiob: gpio@41010400 { |
| 72 | + compatible = "realtek,ameba-gpio"; |
| 73 | + reg = <0x41010400 0x400>; |
| 74 | + gpio-controller; |
| 75 | + #gpio-cells = <2>; |
| 76 | + interrupts = <29 0>; |
| 77 | + status = "disabled"; |
| 78 | + }; |
| 79 | + |
| 80 | + spic: flash-controller@40128000 { |
| 81 | + compatible = "realtek,ameba-flash-controller"; |
| 82 | + reg = <0x40128000 0x200>; |
| 83 | + |
| 84 | + #address-cells = <1>; |
| 85 | + #size-cells = <1>; |
| 86 | + status = "disabled"; |
| 87 | + |
| 88 | + flash0: flash@e000020 { |
| 89 | + compatible = "soc-nv-flash"; |
| 90 | + erase-block-size = <DT_SIZE_K(4)>; |
| 91 | + write-block-size = <4>; |
| 92 | + }; |
| 93 | + }; |
| 94 | + }; |
| 95 | +}; |
| 96 | + |
| 97 | +&nvic { |
| 98 | + arm,num-irq-priority-bits = <3>; |
| 99 | +}; |
0 commit comments