|
| 1 | +/* |
| 2 | + * Copyright (c) 2025 Egis Technology Inc. |
| 3 | + * |
| 4 | + * SPDX-License-Identifier: Apache-2.0 |
| 5 | + */ |
| 6 | + |
| 7 | +/dts-v1/; |
| 8 | +#include <zephyr/dt-bindings/gpio/gpio.h> |
| 9 | +#include <mem.h> |
| 10 | + |
| 11 | +/ { |
| 12 | + #address-cells = <1>; |
| 13 | + #size-cells = <1>; |
| 14 | + |
| 15 | + cpus { |
| 16 | + #address-cells = <1>; |
| 17 | + #size-cells = <0>; |
| 18 | + |
| 19 | + cpu0: cpu@0 { |
| 20 | + compatible = "andestech,andescore-v5", "riscv"; |
| 21 | + device_type = "cpu"; |
| 22 | + reg = <0>; |
| 23 | + riscv,isa = "rv32imafc_zicsr_zifencei"; |
| 24 | + mmu-type = "riscv,sv32"; |
| 25 | + i-cache-line-size = <32>; |
| 26 | + d-cache-line-size = <32>; |
| 27 | + |
| 28 | + cpu0_intc: interrupt-controller { |
| 29 | + compatible = "riscv,cpu-intc"; |
| 30 | + #address-cells = <0>; |
| 31 | + #interrupt-cells = <1>; |
| 32 | + interrupt-controller; |
| 33 | + }; |
| 34 | + }; |
| 35 | + }; |
| 36 | + |
| 37 | + sram: memory@0 { |
| 38 | + device_type = "memory"; |
| 39 | + compatible = "mmio-sram"; |
| 40 | + reg = <0x00000000 DT_SIZE_K(384)>; |
| 41 | + }; |
| 42 | + |
| 43 | + soc { |
| 44 | + #address-cells = <1>; |
| 45 | + #size-cells = <1>; |
| 46 | + compatible = "egis,et171"; |
| 47 | + ranges; |
| 48 | + |
| 49 | + plic0: interrupt-controller@e4000000 { |
| 50 | + compatible = "sifive,plic-1.0.0", "andestech,nceplic100"; |
| 51 | + #address-cells = <1>; |
| 52 | + #interrupt-cells = <2>; |
| 53 | + interrupt-controller; |
| 54 | + reg = <0xe4000000 0x02000000>; |
| 55 | + riscv,max-priority = <255>; |
| 56 | + riscv,ndev = <1023>; |
| 57 | + interrupts-extended = <&cpu0_intc 11>; |
| 58 | + }; |
| 59 | + |
| 60 | + plic_sw: interrupt-controller@e6400000 { |
| 61 | + compatible = "sifive,plic-1.0.0", "andestech,nceplic100"; |
| 62 | + #address-cells = <1>; |
| 63 | + #interrupt-cells = <2>; |
| 64 | + interrupt-controller; |
| 65 | + reg = <0xe6400000 0x00400000>; |
| 66 | + riscv,max-priority = <255>; |
| 67 | + riscv,ndev = <1023>; |
| 68 | + interrupts-extended = <&cpu0_intc 3>; |
| 69 | + }; |
| 70 | + |
| 71 | + mtimer: timer@e6000000 { |
| 72 | + compatible = "riscv,machine-timer"; |
| 73 | + reg-names = "mtime", "mtimecmp"; |
| 74 | + reg = <0xe6000000 0x8 0xe6000008 0x8>; |
| 75 | + interrupts-extended = <&cpu0_intc 7>; |
| 76 | + }; |
| 77 | + |
| 78 | + syscon: syscon@f0100000 { |
| 79 | + compatible = "syscon", "egis,et171-aosmu"; |
| 80 | + reg = <0xf0100000 0x1000>; |
| 81 | + status = "disabled"; |
| 82 | + }; |
| 83 | + |
| 84 | + uart0: serial@f0200020 { |
| 85 | + compatible = "ns16550"; |
| 86 | + reg = <0xf0200020 0x1000>; |
| 87 | + reg-shift = <2>; |
| 88 | + interrupts = <20 1>; |
| 89 | + interrupt-parent = <&plic0>; |
| 90 | + status = "disabled"; |
| 91 | + }; |
| 92 | + |
| 93 | + pit0: pit@f0400000 { |
| 94 | + compatible = "andestech,atcpit100"; |
| 95 | + reg = <0xf0400000 0x1000>; |
| 96 | + interrupts = <22 1>; |
| 97 | + interrupt-parent = <&plic0>; |
| 98 | + clock-frequency = <60000000>; |
| 99 | + prescaler = <600>; |
| 100 | + status = "disabled"; |
| 101 | + }; |
| 102 | + |
| 103 | + rtc0: rtc@f0600000 { |
| 104 | + compatible = "andestech,atcrtc100"; |
| 105 | + reg = <0xf0600000 0x1000>; |
| 106 | + interrupts = <31 1>; |
| 107 | + interrupt-parent = <&plic0>; |
| 108 | + wakeup-source; |
| 109 | + status = "disabled"; |
| 110 | + }; |
| 111 | + |
| 112 | + gpio0: gpio@f0700000 { |
| 113 | + compatible = "andestech,atcgpio100"; |
| 114 | + reg = <0xf0700000 0x1000>; |
| 115 | + interrupts = <21 1>; |
| 116 | + interrupt-parent = <&plic0>; |
| 117 | + gpio-controller; |
| 118 | + ngpios = <17>; |
| 119 | + #gpio-cells = <2>; |
| 120 | + status = "disabled"; |
| 121 | + }; |
| 122 | + |
| 123 | + i2c0: i2c@f0a00000 { |
| 124 | + compatible = "andestech,atciic100"; |
| 125 | + reg = <0xf0a00000 0x1000>; |
| 126 | + interrupts = <19 1>; |
| 127 | + interrupt-parent = <&plic0>; |
| 128 | + #address-cells = <1>; |
| 129 | + #size-cells = <0>; |
| 130 | + status = "disabled"; |
| 131 | + }; |
| 132 | + |
| 133 | + dma0: dma@f0c00000 { |
| 134 | + compatible = "andestech,atcdmacx00"; |
| 135 | + reg = <0xf0c00000 0x1000>; |
| 136 | + interrupts = <16 1>; |
| 137 | + interrupt-parent = <&plic0>; |
| 138 | + dma-channels = <8>; |
| 139 | + dma-requests = <16>; |
| 140 | + chain-transfer = <1>; |
| 141 | + #dma-cells = <3>; |
| 142 | + status = "disabled"; |
| 143 | + }; |
| 144 | + |
| 145 | + wdt: wdt@f0500000 { |
| 146 | + compatible = "andestech,atcwdt200"; |
| 147 | + reg = <0xf0500000 0x1000>; |
| 148 | + interrupts = <20 1>; |
| 149 | + interrupt-parent = <&plic0>; |
| 150 | + status = "disabled"; |
| 151 | + }; |
| 152 | + }; |
| 153 | +}; |
0 commit comments