|
| 1 | +// SPDX-License-Identifier: GPL-2.0 |
| 2 | +/* |
| 3 | + * dts file for AMD MicroBlaze V |
| 4 | + * |
| 5 | + * (C) Copyright 2024, Advanced Micro Devices, Inc. |
| 6 | + * |
| 7 | + * Michal Simek < [email protected]> |
| 8 | + */ |
| 9 | + |
| 10 | +/dts-v1/; |
| 11 | + |
| 12 | +/ { |
| 13 | + #address-cells = <1>; |
| 14 | + #size-cells = <1>; |
| 15 | + model = "AMD MicroBlaze V 32bit"; |
| 16 | + compatible = "qemu,mbv", "amd,mbv"; |
| 17 | + |
| 18 | + cpus: cpus { |
| 19 | + #address-cells = <1>; |
| 20 | + #size-cells = <0>; |
| 21 | + timebase-frequency = <100000000>; |
| 22 | + cpu_0: cpu@0 { |
| 23 | + compatible = "amd,mbv32", "riscv"; |
| 24 | + device_type = "cpu"; |
| 25 | + reg = <0>; |
| 26 | + riscv,isa = "rv32imafdc"; |
| 27 | + i-cache-size = <32768>; |
| 28 | + d-cache-size = <32768>; |
| 29 | + clock-frequency = <100000000>; |
| 30 | + cpu0_intc: interrupt-controller { |
| 31 | + compatible = "riscv,cpu-intc"; |
| 32 | + interrupt-controller; |
| 33 | + #interrupt-cells = <1>; |
| 34 | + }; |
| 35 | + }; |
| 36 | + }; |
| 37 | + |
| 38 | + aliases { |
| 39 | + serial0 = &uart0; |
| 40 | + }; |
| 41 | + |
| 42 | + chosen { |
| 43 | + bootargs = "earlycon=sbi console=ttyUL0,115200"; |
| 44 | + stdout-path = "serial0:115200n8"; |
| 45 | + zephyr,console = &uart0; |
| 46 | + zephyr,shell-uart = &uart0; |
| 47 | + zephyr,sram = &ram0; |
| 48 | + }; |
| 49 | + |
| 50 | + ram0: memory@80000000 { |
| 51 | + device_type = "memory"; |
| 52 | + reg = <0x80000000 0x80000000>; |
| 53 | + }; |
| 54 | + |
| 55 | + lmb0: memory@0 { |
| 56 | + compatible = "mmio-sram"; |
| 57 | + reg = <0 0x20000>; |
| 58 | + }; |
| 59 | + |
| 60 | + clk100: clock { |
| 61 | + compatible = "fixed-clock"; |
| 62 | + #clock-cells = <0>; |
| 63 | + clock-frequency = <100000000>; |
| 64 | + }; |
| 65 | + |
| 66 | + axi: soc { |
| 67 | + #address-cells = <1>; |
| 68 | + #size-cells = <1>; |
| 69 | + compatible = "simple-bus"; |
| 70 | + ranges; |
| 71 | + bootph-all; |
| 72 | + |
| 73 | + axi_intc: interrupt-controller@41200000 { |
| 74 | + compatible = "xlnx,xps-intc-1.00.a"; |
| 75 | + reg = <0x41200000 0x1000>; |
| 76 | + interrupt-controller; |
| 77 | + interrupt-parent = <&cpu0_intc>; |
| 78 | + #interrupt-cells = <2>; |
| 79 | + interrupts-extended = <&cpu0_intc 11>; |
| 80 | + xlnx,kind-of-intr = <0x1a>; |
| 81 | + xlnx,num-intr-inputs = <11>; |
| 82 | + }; |
| 83 | + |
| 84 | + xlnx_timer0: timer@41c00000 { |
| 85 | + compatible = "amd,xps-timer-1.00.a"; |
| 86 | + reg = <0x41c00000 0x1000>; |
| 87 | + interrupt-parent = <&axi_intc>; |
| 88 | + interrupts = <0 2>; |
| 89 | + xlnx,one-timer-only = <0>; |
| 90 | + clocks = <&clk100>; |
| 91 | + }; |
| 92 | + |
| 93 | + uart0: serial@40600000 { |
| 94 | + compatible = "xlnx,xps-uartlite-1.00.a"; |
| 95 | + reg = <0x40600000 0x1000>; |
| 96 | + interrupt-parent = <&axi_intc>; |
| 97 | + interrupts = <1 2>; |
| 98 | + clocks = <&clk100>; |
| 99 | + current-speed = <115200>; |
| 100 | + }; |
| 101 | + }; |
| 102 | +}; |
0 commit comments