|
| 1 | +/* |
| 2 | + * Copyright (c) 2021 Weidmueller Interface GmbH & Co. KG |
| 3 | + * SPDX-License-Identifier: Apache-2.0 |
| 4 | + */ |
| 5 | + |
| 6 | +#include <mem.h> |
| 7 | +#include <arm/armv7-a.dtsi> |
| 8 | +#include <dt-bindings/interrupt-controller/arm-gic.h> |
| 9 | +#include <dt-bindings/ethernet/xlnx_gem.h> |
| 10 | + |
| 11 | +/ { |
| 12 | + cpus { |
| 13 | + #address-cells = <1>; |
| 14 | + #size-cells = <0>; |
| 15 | + |
| 16 | + cpu@0 { |
| 17 | + device_type = "cpu"; |
| 18 | + compatible = "arm,cortex-a9"; |
| 19 | + reg = <0>; |
| 20 | + }; |
| 21 | + }; |
| 22 | + |
| 23 | + soc { |
| 24 | + interrupt-parent = <&gic>; |
| 25 | + |
| 26 | + ocm_low: memory@1000 { |
| 27 | + compatible = "xlnx,zynq-ocm"; |
| 28 | + reg = <0x00001000 DT_SIZE_K(188)>; |
| 29 | + }; |
| 30 | + |
| 31 | + ocm_high: memory@fffc0000 { |
| 32 | + compatible = "xlnx,zynq-ocm"; |
| 33 | + reg = <0xFFFC0000 DT_SIZE_K(256)>; |
| 34 | + }; |
| 35 | + |
| 36 | + arch_timer: timer@f8f00200 { |
| 37 | + compatible = "arm,armv8-timer"; |
| 38 | + status = "okay"; |
| 39 | + interrupt-names = "irq_0", "irq_1", "irq_2", "irq_3"; |
| 40 | + interrupts = <GIC_PPI 13 IRQ_TYPE_EDGE |
| 41 | + IRQ_DEFAULT_PRIORITY>, |
| 42 | + <GIC_PPI 14 IRQ_TYPE_EDGE |
| 43 | + IRQ_DEFAULT_PRIORITY>, |
| 44 | + <GIC_PPI 11 IRQ_TYPE_EDGE |
| 45 | + IRQ_DEFAULT_PRIORITY>, |
| 46 | + <GIC_PPI 10 IRQ_TYPE_EDGE |
| 47 | + IRQ_DEFAULT_PRIORITY>; |
| 48 | + reg = <0xf8f00200 0x1C>; |
| 49 | + label = "arch_timer"; |
| 50 | + }; |
| 51 | + |
| 52 | + gic: interrupt-controller@f8f01000 { |
| 53 | + compatible = "arm,gic"; |
| 54 | + status = "okay"; |
| 55 | + reg = <0xf8f01000 0x1000>, |
| 56 | + <0xf8f00100 0x100>; |
| 57 | + interrupt-controller; |
| 58 | + #interrupt-cells = <4>; |
| 59 | + label = "gic"; |
| 60 | + }; |
| 61 | + |
| 62 | + gem0: ethernet@e000b000 { |
| 63 | + compatible = "xlnx,gem"; |
| 64 | + status = "disabled"; |
| 65 | + reg = <0xe000b000 0x1000>, |
| 66 | + <0xf8000140 0x4>; |
| 67 | + interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL |
| 68 | + IRQ_DEFAULT_PRIORITY>, |
| 69 | + <GIC_SPI 23 IRQ_TYPE_LEVEL |
| 70 | + IRQ_DEFAULT_PRIORITY>; |
| 71 | + interrupt-names = "irq_0", "irq_1"; |
| 72 | + label = "gem0"; |
| 73 | + mdio-phy-address = <XLNX_GEM_PHY_AUTO_DETECT>; |
| 74 | + phy-poll-interval = <1000>; |
| 75 | + link-speed = <XLNX_GEM_LINK_SPEED_100MBIT>; |
| 76 | + amba-ahb-dbus-width = <XLNX_GEM_AMBA_AHB_DBUS_WIDTH_32BIT>; |
| 77 | + amba-ahb-burst-length = <XLNX_GEM_AMBA_AHB_BURST_SINGLE>; |
| 78 | + hw-rx-buffer-size = <XLNX_GEM_HW_RX_BUFFER_SIZE_8KB>; |
| 79 | + hw-rx-buffer-offset = <0>; |
| 80 | + hw-tx-buffer-size-full; |
| 81 | + rx-buffer-descriptors = <32>; |
| 82 | + tx-buffer-descriptors = <32>; |
| 83 | + rx-buffer-size = <512>; |
| 84 | + tx-buffer-size = <512>; |
| 85 | + discard-rx-fcs; |
| 86 | + unicast-hash; |
| 87 | + full-duplex; |
| 88 | + }; |
| 89 | + |
| 90 | + gem1: ethernet@e000c000 { |
| 91 | + compatible = "xlnx,gem"; |
| 92 | + status = "disabled"; |
| 93 | + reg = <0xe000c000 0x1000>, |
| 94 | + <0xf8000144 0x4>; |
| 95 | + interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL |
| 96 | + IRQ_DEFAULT_PRIORITY>, |
| 97 | + <GIC_SPI 46 IRQ_TYPE_LEVEL |
| 98 | + IRQ_DEFAULT_PRIORITY>; |
| 99 | + interrupt-names = "irq_0", "irq_1"; |
| 100 | + label = "gem1"; |
| 101 | + mdio-phy-address = <XLNX_GEM_PHY_AUTO_DETECT>; |
| 102 | + phy-poll-interval = <1000>; |
| 103 | + link-speed = <XLNX_GEM_LINK_SPEED_100MBIT>; |
| 104 | + amba-ahb-dbus-width = <XLNX_GEM_AMBA_AHB_DBUS_WIDTH_32BIT>; |
| 105 | + amba-ahb-burst-length = <XLNX_GEM_AMBA_AHB_BURST_SINGLE>; |
| 106 | + hw-rx-buffer-size = <XLNX_GEM_HW_RX_BUFFER_SIZE_8KB>; |
| 107 | + hw-rx-buffer-offset = <0>; |
| 108 | + hw-tx-buffer-size-full; |
| 109 | + rx-buffer-descriptors = <32>; |
| 110 | + tx-buffer-descriptors = <32>; |
| 111 | + rx-buffer-size = <512>; |
| 112 | + tx-buffer-size = <512>; |
| 113 | + discard-rx-fcs; |
| 114 | + unicast-hash; |
| 115 | + full-duplex; |
| 116 | + }; |
| 117 | + |
| 118 | + uart0: uart@e0000000 { |
| 119 | + compatible = "xlnx,xuartps"; |
| 120 | + status = "disabled"; |
| 121 | + reg = <0xe0000000 0x4c>; |
| 122 | + interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL |
| 123 | + IRQ_DEFAULT_PRIORITY>; |
| 124 | + interrupt-names = "irq_0"; |
| 125 | + label = "uart0"; |
| 126 | + }; |
| 127 | + |
| 128 | + uart1: uart@e0001000 { |
| 129 | + compatible = "xlnx,xuartps"; |
| 130 | + status = "disabled"; |
| 131 | + reg = <0xe0001000 0x4c>; |
| 132 | + interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL |
| 133 | + IRQ_DEFAULT_PRIORITY>; |
| 134 | + interrupt-names = "irq_0"; |
| 135 | + label = "uart1"; |
| 136 | + }; |
| 137 | + |
| 138 | + }; |
| 139 | +}; |
0 commit comments