|
| 1 | +/dts-v1/; |
| 2 | + |
| 3 | +/ { |
| 4 | + #address-cells = <2>; |
| 5 | + #size-cells = <2>; |
| 6 | + compatible = "andestech,ae350"; |
| 7 | + model = "andestech,ax45"; |
| 8 | + aliases { |
| 9 | + uart0 = &serial0; |
| 10 | + spi0 = &spi; |
| 11 | + }; |
| 12 | + |
| 13 | + chosen { |
| 14 | + bootargs = "console=ttyS0,115200n8 debug loglevel=7 earlycon=sbi"; |
| 15 | + stdout-path = "uart0:115200n8"; |
| 16 | + }; |
| 17 | + cpus { |
| 18 | + #address-cells = <1>; |
| 19 | + #size-cells = <0>; |
| 20 | + timebase-frequency = <60000000>; |
| 21 | + CPU0: cpu@0 { |
| 22 | + device_type = "cpu"; |
| 23 | + reg = <0>; |
| 24 | + status = "okay"; |
| 25 | + compatible = "riscv"; |
| 26 | + riscv,isa = "rv64imafdcv_sscofpmf_svpbmt_zicbom_xandes_xandespmu_xandesvmm"; |
| 27 | + riscv,cbom-block-size = <64>; |
| 28 | + mmu-type = "riscv,sv48"; |
| 29 | + clock-frequency = <60000000>; |
| 30 | + i-cache-size = <0x8000>; |
| 31 | + i-cache-sets = <256>; |
| 32 | + i-cache-line-size = <64>; |
| 33 | + i-cache-block-size = <64>; |
| 34 | + d-cache-size = <0x8000>; |
| 35 | + d-cache-sets = <128>; |
| 36 | + d-cache-line-size = <64>; |
| 37 | + d-cache-block-size = <64>; |
| 38 | + next-level-cache = <&L2>; |
| 39 | + CPU0_intc: interrupt-controller { |
| 40 | + #interrupt-cells = <1>; |
| 41 | + interrupt-controller; |
| 42 | + compatible = "andestech,cpu-intc", "riscv,cpu-intc"; |
| 43 | + }; |
| 44 | + }; |
| 45 | + }; |
| 46 | + L2: l2-cache@e0500000 { |
| 47 | + compatible = "cache"; |
| 48 | + cache-level = <2>; |
| 49 | + cache-size = <0x200000>; |
| 50 | + reg = <0x00000000 0xe0500000 0x00000000 0x00010000>; |
| 51 | + andes,inst-prefetch = <3>; |
| 52 | + andes,data-prefetch = <3>; |
| 53 | + // The value format is <XRAMOCTL XRAMICTL> |
| 54 | + andes,tag-ram-ctl = <0 0>; |
| 55 | + andes,data-ram-ctl = <0 0>; |
| 56 | + }; |
| 57 | + reserved-memory { |
| 58 | + #address-cells = <2>; |
| 59 | + #size-cells = <2>; |
| 60 | + ranges; |
| 61 | + |
| 62 | + hvm0: andes_hvm@90000000 { |
| 63 | + compatible = "andestech,hvm"; |
| 64 | + reg = <0x0 0x90000000 0x0 0x800000>; |
| 65 | + andes,hvm_bank = <0x02>; |
| 66 | + andes,hvm_subp = <0x01>; |
| 67 | + no-map; |
| 68 | + }; |
| 69 | + andes_inject@100000 { |
| 70 | + compatible = "inject"; |
| 71 | + reg = <0x00 0x100000 0x00 0x100000>; |
| 72 | + reusable; |
| 73 | + }; |
| 74 | + }; |
| 75 | + memory@0 { |
| 76 | + reg = <0x00000000 0x00000000 0x00000000 0x40000000>; |
| 77 | + device_type = "memory"; |
| 78 | + }; |
| 79 | + soc { |
| 80 | + #address-cells = <2>; |
| 81 | + #size-cells = <2>; |
| 82 | + compatible = "andestech,riscv-ae350-soc", "simple-bus"; |
| 83 | + ranges; |
| 84 | + plic0: interrupt-controller@e4000000 { |
| 85 | + compatible = "riscv,plic0"; |
| 86 | + reg = <0x00000000 0xe4000000 0x00000000 0x02000000>; |
| 87 | + interrupts-extended = < &CPU0_intc 11 &CPU0_intc 9>; |
| 88 | + interrupt-controller; |
| 89 | + #address-cells = <2>; |
| 90 | + #interrupt-cells = <2>; |
| 91 | + riscv,ndev = <71>; |
| 92 | + }; |
| 93 | + plic1: interrupt-controller@e6400000 { |
| 94 | + compatible = "andestech,plicsw"; |
| 95 | + reg = <0x00000000 0xe6400000 0x00000000 0x00400000>; |
| 96 | + interrupts-extended = < &CPU0_intc 3>; |
| 97 | + interrupt-controller; |
| 98 | + #address-cells = <2>; |
| 99 | + #interrupt-cells = <2>; |
| 100 | + riscv,ndev = <1>; |
| 101 | + }; |
| 102 | + plmt0: plmt0@e6000000 { |
| 103 | + compatible = "andestech,plmt0"; |
| 104 | + reg = <0x00000000 0xe6000000 0x00000000 0x00100000>; |
| 105 | + interrupts-extended = < &CPU0_intc 7>; |
| 106 | + }; |
| 107 | + spiclk: virt_100mhz { |
| 108 | + compatible = "fixed-clock"; |
| 109 | + #clock-cells = <0>; |
| 110 | + clock-frequency = <100000000>; |
| 111 | + }; |
| 112 | + timer0: timer@f0400000 { |
| 113 | + compatible = "andestech,atcpit100"; |
| 114 | + reg = <0x00000000 0xf0400000 0x00000000 0x00001000>; |
| 115 | + interrupts = <3 4>; |
| 116 | + interrupt-parent = <&plic0>; |
| 117 | + clock-frequency = <60000000>; |
| 118 | + }; |
| 119 | + pwm: pwm@f0400000 { |
| 120 | + compatible = "andestech,atcpit100-pwm"; |
| 121 | + reg = <0x00000000 0xf0400000 0x00000000 0x00001000>; |
| 122 | + interrupts = <3 4>; |
| 123 | + interrupt-parent = <&plic0>; |
| 124 | + clock-frequency = <60000000>; |
| 125 | + pwm-cells = <2>; |
| 126 | + }; |
| 127 | + wdt: wdt@f0500000 { |
| 128 | + compatible = "andestech,atcwdt200"; |
| 129 | + reg = <0x00000000 0xf0500000 0x00000000 0x00001000>; |
| 130 | + interrupts = <3 4>; |
| 131 | + interrupt-parent = <&plic0>; |
| 132 | + clock-frequency = <60000000>; |
| 133 | + }; |
| 134 | + serial0: serial@f0300000 { |
| 135 | + compatible = "andestech,uart16550", "ns16550a"; |
| 136 | + reg = <0x00000000 0xf0300000 0x00000000 0x00001000>; |
| 137 | + interrupts = <9 4>; |
| 138 | + interrupt-parent = <&plic0>; |
| 139 | + clock-frequency = <19660800>; |
| 140 | + current-speed = <115200>; |
| 141 | + reg-shift = <2>; |
| 142 | + reg-offset = <32>; |
| 143 | + reg-io-width = <4>; |
| 144 | + no-loopback-test = <1>; |
| 145 | + }; |
| 146 | + rtc0: rtc@f0600000 { |
| 147 | + compatible = "andestech,atcrtc100"; |
| 148 | + reg = <0x00000000 0xf0600000 0x00000000 0x00001000>; |
| 149 | + interrupts = <1 4 2 4>; |
| 150 | + interrupt-parent = <&plic0>; |
| 151 | + wakeup-source; |
| 152 | + }; |
| 153 | + gpio: gpio@f0700000 { |
| 154 | + compatible = "andestech,atcgpio100"; |
| 155 | + reg = <0x00000000 0xf0700000 0x00000000 0x00001000>; |
| 156 | + interrupts = <7 4>; |
| 157 | + interrupt-parent = <&plic0>; |
| 158 | + wakeup-source; |
| 159 | + }; |
| 160 | + mac0: mac@e0100000 { |
| 161 | + compatible = "andestech,atmac100"; |
| 162 | + reg = <0x00000000 0xe0100000 0x00000000 0x00001000>; |
| 163 | + interrupts = <19 4>; |
| 164 | + interrupt-parent = <&plic0>; |
| 165 | + dma-noncoherent; |
| 166 | + }; |
| 167 | + smu: smu@f0100000 { |
| 168 | + compatible = "andestech,atcsmu"; |
| 169 | + reg = <0x00000000 0xf0100000 0x00000000 0x00001000>; |
| 170 | + }; |
| 171 | + mmc0: mmc@f0e00000 { |
| 172 | + compatible = "andestech,atfsdc010"; |
| 173 | + reg = <0x00000000 0xf0e00000 0x00000000 0x00001000>; |
| 174 | + interrupts = <18 4>; |
| 175 | + interrupt-parent = <&plic0>; |
| 176 | + clock-freq-min-max = <400000 100000000>; |
| 177 | + max-frequency = <100000000>; |
| 178 | + fifo-depth = <16>; |
| 179 | + dmas = <&dma0 9>; |
| 180 | + dma-names = "rxtx"; |
| 181 | + dma-noncoherent; |
| 182 | + }; |
| 183 | + dma0: dma@f0c00000 { |
| 184 | + compatible = "andestech,atcdmac300"; |
| 185 | + reg = <0x00000000 0xf0c00000 0x00000000 0x00001000>; |
| 186 | + interrupts = <10 4>; |
| 187 | + interrupt-parent = <&plic0>; |
| 188 | + dma-channels = <8>; |
| 189 | + #dma-cells = <1>; |
| 190 | + dma-noncoherent; |
| 191 | + }; |
| 192 | + pmu: pmu { |
| 193 | + compatible = "riscv,pmu"; |
| 194 | + device_type = "pmu"; |
| 195 | + }; |
| 196 | + spi: spi@f0b00000 { |
| 197 | + compatible = "andestech,atcspi200"; |
| 198 | + reg = <0x00000000 0xf0b00000 0x00000000 0x00001000>; |
| 199 | + interrupts = <4 4>; |
| 200 | + interrupt-parent = <&plic0>; |
| 201 | + #address-cells = <1>; |
| 202 | + #size-cells = <0>; |
| 203 | + num-cs = <1>; |
| 204 | + clocks = <&spiclk>; |
| 205 | + dmas = <&dma0 0>, <&dma0 1>; |
| 206 | + dma-names = "spi_tx", "spi_rx"; |
| 207 | + |
| 208 | + flash@0 { |
| 209 | + compatible = "jedec,spi-nor"; |
| 210 | + reg = <0x00000000>; |
| 211 | + spi-max-frequency = <50000000>; |
| 212 | + spi-cpol; |
| 213 | + spi-cpha; |
| 214 | + }; |
| 215 | + }; |
| 216 | + }; |
| 217 | +}; |
0 commit comments