|
| 1 | +/* |
| 2 | + * Copyright (c) 2025 ispace inc. |
| 3 | + * |
| 4 | + * SPDX-License-Identifier: Apache-2.0 |
| 5 | + */ |
| 6 | +#include <freq.h> |
| 7 | +#include <mem.h> |
| 8 | +#include <arm/armv7-r.dtsi> |
| 9 | + |
| 10 | +/ { |
| 11 | + cpus { |
| 12 | + #address-cells = <1>; |
| 13 | + #size-cells = <0>; |
| 14 | + |
| 15 | + cpu0: cpu@0 { |
| 16 | + device_type = "cpu"; |
| 17 | + compatible = "arm,cortex-r5"; |
| 18 | + reg = <0>; |
| 19 | + status = "okay"; |
| 20 | + }; |
| 21 | + }; |
| 22 | + |
| 23 | + clocks { |
| 24 | + /* |
| 25 | + * OSC_IN (16 MHZ) |
| 26 | + * -> PLL1 (300 MHz) |
| 27 | + * -> GCLK1 (300 MHz) |
| 28 | + * -> HCLK (150 MHz) |
| 29 | + * -> VCLK (75 MHz) |
| 30 | + * -> RTICLK (75 MHz, divider is bypassed when VCLK is the source) |
| 31 | + */ |
| 32 | + |
| 33 | + osc_in: osc_in { |
| 34 | + compatible = "fixed-clock"; |
| 35 | + #clock-cells = <0>; |
| 36 | + clock-frequency = <DT_FREQ_M(16)>; |
| 37 | + status = "okay"; |
| 38 | + }; |
| 39 | + |
| 40 | + clk_vclk: clk_vclk { |
| 41 | + compatible = "fixed-clock"; |
| 42 | + #clock-cells = <0>; |
| 43 | + clock-frequency = <DT_FREQ_M(75)>; |
| 44 | + status = "okay"; |
| 45 | + }; |
| 46 | + |
| 47 | + clk_rticlk: clk_rticlk { |
| 48 | + compatible = "fixed-clock"; |
| 49 | + #clock-cells = <0>; |
| 50 | + clock-frequency = <DT_FREQ_M(75)>; |
| 51 | + status = "okay"; |
| 52 | + }; |
| 53 | + }; |
| 54 | + |
| 55 | + soc { |
| 56 | + #address-cells = <1>; |
| 57 | + #size-cells = <1>; |
| 58 | + |
| 59 | + sys: sys@ffffff00 { |
| 60 | + reg = <0xffffff00 256>, /* SYS1 */ |
| 61 | + <0xffffe100 256>, /* SYS2 */ |
| 62 | + <0xffff1000 0x800>, /* PCR1 */ |
| 63 | + <0xfcff1000 0x800>, /* PCR2 */ |
| 64 | + <0xfff78000 0x800>, /* PCR3 */ |
| 65 | + <0xfff87000 0x1000>, /* FCR */ |
| 66 | + <0xfffff500 0x100>, /* ESM */ |
| 67 | + <0xFFFFFF00 0xfc>, /* SYSBASE */ |
| 68 | + <0xFFFFFC98 4>, /* WATCHDOG_STATUS */ |
| 69 | + <0xFFFFEC00 44>, /* DCC */ |
| 70 | + <0xFFA04000 0x10>; /* POM_CONTROL_BASE */ |
| 71 | + }; |
| 72 | + |
| 73 | + sram0: memory@8000000 { |
| 74 | + compatible = "mmio-sram"; |
| 75 | + reg = <0x08000000 DT_SIZE_K(512)>; |
| 76 | + }; |
| 77 | + |
| 78 | + flc0: flash_controller@f0000000 { |
| 79 | + compatible = "flash-controller"; |
| 80 | + reg = <0xf0000000 0x00480000>; |
| 81 | + #address-cells = <1>; |
| 82 | + #size-cells = <1>; |
| 83 | + status = "okay"; |
| 84 | + |
| 85 | + flash0: flash@0 { |
| 86 | + compatible = "soc-nv-flash"; |
| 87 | + reg = <0x00000000 DT_SIZE_M(4)>; |
| 88 | + }; |
| 89 | + }; |
| 90 | + }; |
| 91 | +}; |
0 commit comments