Michal Simek | 962c10a | 2023-11-06 12:56:47 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
| 3 | * dts file for AMD MicroBlaze V |
| 4 | * |
| 5 | * (C) Copyright 2023, Advanced Micro Devices, Inc. |
| 6 | * |
| 7 | * Michal Simek <michal.simek@amd.com> |
| 8 | */ |
| 9 | |
| 10 | /dts-v1/; |
Michal Simek | 54a898c | 2024-02-14 12:52:33 +0100 | [diff] [blame] | 11 | |
| 12 | #include "binman.dtsi" |
| 13 | |
Michal Simek | 962c10a | 2023-11-06 12:56:47 +0100 | [diff] [blame] | 14 | / { |
| 15 | #address-cells = <1>; |
| 16 | #size-cells = <1>; |
| 17 | model = "AMD MicroBlaze V 32bit"; |
Michal Simek | d0f9f3a | 2023-12-20 15:53:28 +0100 | [diff] [blame] | 18 | compatible = "qemu,mbv", "amd,mbv"; |
Michal Simek | 962c10a | 2023-11-06 12:56:47 +0100 | [diff] [blame] | 19 | |
| 20 | cpus: cpus { |
| 21 | #address-cells = <1>; |
| 22 | #size-cells = <0>; |
| 23 | timebase-frequency = <102000000>; |
| 24 | cpu_0: cpu@0 { |
| 25 | compatible = "amd,mbv32", "riscv"; |
| 26 | device_type = "cpu"; |
| 27 | reg = <0>; |
| 28 | riscv,isa = "rv32imafdc"; |
| 29 | i-cache-size = <32768>; |
| 30 | d-cache-size = <32768>; |
| 31 | clock-frequency = <102000000>; |
| 32 | cpu0_intc: interrupt-controller { |
| 33 | compatible = "riscv,cpu-intc"; |
| 34 | interrupt-controller; |
| 35 | #interrupt-cells = <1>; |
| 36 | }; |
| 37 | }; |
| 38 | }; |
| 39 | |
| 40 | aliases { |
| 41 | serial0 = &uart0; |
| 42 | }; |
| 43 | |
| 44 | chosen { |
| 45 | bootargs = "earlycon"; |
| 46 | stdout-path = "serial0:115200n8"; |
| 47 | }; |
| 48 | |
| 49 | memory@20000000 { |
| 50 | device_type = "memory"; |
| 51 | reg = <0x20000000 0x20000000>; |
| 52 | }; |
| 53 | |
| 54 | clk102: clock { |
| 55 | compatible = "fixed-clock"; |
| 56 | #clock-cells = <0>; |
| 57 | clock-frequency = <102000000>; |
| 58 | }; |
| 59 | |
| 60 | axi: axi { |
| 61 | #address-cells = <1>; |
| 62 | #size-cells = <1>; |
| 63 | compatible = "simple-bus"; |
| 64 | ranges; |
| 65 | bootph-all; |
| 66 | |
| 67 | axi_intc: interrupt-controller@41200000 { |
| 68 | compatible = "xlnx,xps-intc-1.00.a"; |
| 69 | reg = <0x41200000 0x1000>; |
| 70 | interrupt-controller; |
| 71 | interrupt-parent = <&cpu0_intc>; |
| 72 | #interrupt-cells = <2>; |
| 73 | kind-of-intr = <0>; |
| 74 | }; |
| 75 | |
| 76 | xlnx_timer0: timer@41c00000 { |
| 77 | compatible = "xlnx,xps-timer-1.00.a"; |
| 78 | reg = <0x41c00000 0x1000>; |
| 79 | interrupt-parent = <&axi_intc>; |
| 80 | interrupts = <1 2>; |
| 81 | bootph-all; |
| 82 | xlnx,one-timer-only = <0>; |
| 83 | clock-names = "s_axi_aclk"; |
| 84 | clocks = <&clk102>; |
| 85 | }; |
| 86 | |
| 87 | xlnx_timer1: timer@41c20000 { |
| 88 | compatible = "xlnx,xps-timer-1.00.a"; |
| 89 | reg = <0x41c20000 0x1000>; |
| 90 | interrupt-parent = <&axi_intc>; |
| 91 | interrupts = <0 2>; |
| 92 | xlnx,one-timer-only = <0>; |
| 93 | clock-names = "s_axi_aclk"; |
| 94 | clocks = <&clk102>; |
| 95 | }; |
| 96 | |
| 97 | uart0: serial@40600000 { |
| 98 | compatible = "xlnx,xps-uartlite-1.00.a"; |
| 99 | reg = <0x40600000 0x1000>; |
| 100 | interrupt-parent = <&axi_intc>; |
| 101 | interrupts = <2 2>; |
| 102 | bootph-all; |
| 103 | clocks = <&clk102>; |
| 104 | current-speed = <115200>; |
| 105 | xlnx,data-bits = <8>; |
| 106 | xlnx,use-parity = <0>; |
| 107 | }; |
| 108 | }; |
| 109 | }; |