Andrew Davis | 856ec34 | 2023-04-11 13:25:02 -0500 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Lokesh Vutla | 050d8ab | 2015-09-19 15:00:20 +0530 | [diff] [blame] | 2 | /* |
| 3 | * Device Tree Source for Keystone 2 Hawking Netcp driver |
| 4 | * |
Andrew Davis | 856ec34 | 2023-04-11 13:25:02 -0500 | [diff] [blame] | 5 | * Copyright (C) 2015-2017 Texas Instruments Incorporated - http://www.ti.com/ |
Lokesh Vutla | 050d8ab | 2015-09-19 15:00:20 +0530 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | qmss: qmss@2a40000 { |
| 9 | compatible = "ti,keystone-navigator-qmss"; |
| 10 | dma-coherent; |
| 11 | #address-cells = <1>; |
| 12 | #size-cells = <1>; |
| 13 | clocks = <&chipclk13>; |
| 14 | ranges; |
Andrew Davis | 33e399a | 2023-04-11 13:25:09 -0500 | [diff] [blame] | 15 | queue-range = <0 0x4000>; |
| 16 | linkram0 = <0x100000 0x8000>; |
| 17 | linkram1 = <0x0 0x10000>; |
Lokesh Vutla | 050d8ab | 2015-09-19 15:00:20 +0530 | [diff] [blame] | 18 | |
| 19 | qmgrs { |
| 20 | #address-cells = <1>; |
| 21 | #size-cells = <1>; |
| 22 | ranges; |
| 23 | qmgr0 { |
| 24 | managed-queues = <0 0x2000>; |
| 25 | reg = <0x2a40000 0x20000>, |
| 26 | <0x2a06000 0x400>, |
| 27 | <0x2a02000 0x1000>, |
| 28 | <0x2a03000 0x1000>, |
| 29 | <0x23a80000 0x20000>, |
| 30 | <0x2a80000 0x20000>; |
| 31 | reg-names = "peek", "status", "config", |
| 32 | "region", "push", "pop"; |
| 33 | }; |
| 34 | |
| 35 | qmgr1 { |
| 36 | managed-queues = <0x2000 0x2000>; |
| 37 | reg = <0x2a60000 0x20000>, |
| 38 | <0x2a06400 0x400>, |
| 39 | <0x2a04000 0x1000>, |
| 40 | <0x2a05000 0x1000>, |
| 41 | <0x23aa0000 0x20000>, |
| 42 | <0x2aa0000 0x20000>; |
| 43 | reg-names = "peek", "status", "config", |
| 44 | "region", "push", "pop"; |
| 45 | }; |
| 46 | }; |
Andrew Davis | 33e399a | 2023-04-11 13:25:09 -0500 | [diff] [blame] | 47 | |
Lokesh Vutla | 050d8ab | 2015-09-19 15:00:20 +0530 | [diff] [blame] | 48 | queue-pools { |
| 49 | qpend { |
| 50 | qpend-0 { |
| 51 | qrange = <658 8>; |
| 52 | interrupts =<0 40 0xf04 0 41 0xf04 0 42 0xf04 |
| 53 | 0 43 0xf04 0 44 0xf04 0 45 0xf04 |
| 54 | 0 46 0xf04 0 47 0xf04>; |
| 55 | }; |
| 56 | qpend-1 { |
| 57 | qrange = <8704 16>; |
| 58 | interrupts = <0 48 0xf04 0 49 0xf04 0 50 0xf04 |
| 59 | 0 51 0xf04 0 52 0xf04 0 53 0xf04 |
| 60 | 0 54 0xf04 0 55 0xf04 0 56 0xf04 |
| 61 | 0 57 0xf04 0 58 0xf04 0 59 0xf04 |
| 62 | 0 60 0xf04 0 61 0xf04 0 62 0xf04 |
| 63 | 0 63 0xf04>; |
| 64 | qalloc-by-id; |
| 65 | }; |
| 66 | qpend-2 { |
| 67 | qrange = <8720 16>; |
| 68 | interrupts = <0 64 0xf04 0 65 0xf04 0 66 0xf04 |
| 69 | 0 59 0xf04 0 68 0xf04 0 69 0xf04 |
| 70 | 0 70 0xf04 0 71 0xf04 0 72 0xf04 |
| 71 | 0 73 0xf04 0 74 0xf04 0 75 0xf04 |
| 72 | 0 76 0xf04 0 77 0xf04 0 78 0xf04 |
| 73 | 0 79 0xf04>; |
| 74 | }; |
| 75 | }; |
| 76 | general-purpose { |
| 77 | gp-0 { |
| 78 | qrange = <4000 64>; |
| 79 | }; |
| 80 | netcp-tx { |
| 81 | qrange = <640 9>; |
| 82 | qalloc-by-id; |
| 83 | }; |
| 84 | netcpx-tx { |
| 85 | qrange = <8752 8>; |
| 86 | qalloc-by-id; |
| 87 | }; |
| 88 | }; |
| 89 | }; |
Andrew Davis | 33e399a | 2023-04-11 13:25:09 -0500 | [diff] [blame] | 90 | |
Lokesh Vutla | 050d8ab | 2015-09-19 15:00:20 +0530 | [diff] [blame] | 91 | descriptor-regions { |
| 92 | #address-cells = <1>; |
| 93 | #size-cells = <1>; |
| 94 | ranges; |
| 95 | region-12 { |
| 96 | id = <12>; |
| 97 | region-spec = <8192 128>; /* num_desc desc_size */ |
| 98 | link-index = <0x4000>; |
| 99 | }; |
| 100 | }; |
| 101 | }; /* qmss */ |
| 102 | |
| 103 | knav_dmas: knav_dmas@0 { |
| 104 | compatible = "ti,keystone-navigator-dma"; |
| 105 | clocks = <&papllclk>; |
| 106 | #address-cells = <1>; |
| 107 | #size-cells = <1>; |
| 108 | ranges; |
| 109 | ti,navigator-cloud-address = <0x23a80000 0x23a90000 |
| 110 | 0x23aa0000 0x23ab0000>; |
| 111 | |
| 112 | dma_gbe: dma_gbe@0 { |
| 113 | reg = <0x2004000 0x100>, |
| 114 | <0x2004400 0x120>, |
| 115 | <0x2004800 0x300>, |
| 116 | <0x2004c00 0x120>, |
| 117 | <0x2005000 0x400>; |
| 118 | reg-names = "global", "txchan", "rxchan", |
| 119 | "txsched", "rxflow"; |
| 120 | }; |
| 121 | }; |
| 122 | |
| 123 | netcp: netcp@2000000 { |
| 124 | reg = <0x2620110 0x8>; |
| 125 | reg-names = "efuse"; |
| 126 | compatible = "ti,netcp-1.0"; |
| 127 | #address-cells = <1>; |
| 128 | #size-cells = <1>; |
| 129 | |
| 130 | /* NetCP address range */ |
Andrew Davis | 33e399a | 2023-04-11 13:25:09 -0500 | [diff] [blame] | 131 | ranges = <0 0x2000000 0x100000>; |
Lokesh Vutla | 050d8ab | 2015-09-19 15:00:20 +0530 | [diff] [blame] | 132 | |
| 133 | clocks = <&papllclk>, <&clkcpgmac>, <&chipclk12>; |
| 134 | dma-coherent; |
| 135 | |
| 136 | ti,navigator-dmas = <&dma_gbe 22>, |
| 137 | <&dma_gbe 23>, |
| 138 | <&dma_gbe 8>; |
| 139 | ti,navigator-dma-names = "netrx0", "netrx1", "nettx"; |
| 140 | |
| 141 | netcp-devices { |
| 142 | ranges; |
| 143 | #address-cells = <1>; |
| 144 | #size-cells = <1>; |
| 145 | gbe@90000 { /* ETHSS */ |
| 146 | #address-cells = <1>; |
| 147 | #size-cells = <1>; |
| 148 | label = "netcp-gbe"; |
| 149 | compatible = "ti,netcp-gbe"; |
| 150 | reg = <0x90000 0x300>, <0x90400 0x400>, <0x90800 0x700>; |
| 151 | /* enable-ale; */ |
| 152 | tx-queue = <648>; |
| 153 | tx-channel = "nettx"; |
| 154 | |
| 155 | interfaces { |
| 156 | gbe0: interface-0 { |
| 157 | slave-port = <0>; |
| 158 | link-interface = <1>; |
| 159 | phy-handle = <ðphy0>; |
| 160 | }; |
| 161 | gbe1: interface-1 { |
| 162 | slave-port = <1>; |
| 163 | link-interface = <1>; |
| 164 | phy-handle = <ðphy1>; |
| 165 | }; |
| 166 | }; |
| 167 | |
| 168 | secondary-slave-ports { |
| 169 | port-2 { |
| 170 | slave-port = <2>; |
Andrew Davis | 33e399a | 2023-04-11 13:25:09 -0500 | [diff] [blame] | 171 | link-interface = <2>; |
Lokesh Vutla | 050d8ab | 2015-09-19 15:00:20 +0530 | [diff] [blame] | 172 | }; |
| 173 | port-3 { |
| 174 | slave-port = <3>; |
Andrew Davis | 33e399a | 2023-04-11 13:25:09 -0500 | [diff] [blame] | 175 | link-interface = <2>; |
Lokesh Vutla | 050d8ab | 2015-09-19 15:00:20 +0530 | [diff] [blame] | 176 | }; |
| 177 | }; |
| 178 | }; |
| 179 | }; |
| 180 | |
| 181 | netcp-interfaces { |
| 182 | interface-0 { |
| 183 | rx-channel = "netrx0"; |
| 184 | rx-pool = <1024 12>; |
| 185 | tx-pool = <1024 12>; |
| 186 | rx-queue-depth = <128 128 0 0>; |
| 187 | rx-buffer-size = <1518 4096 0 0>; |
| 188 | rx-queue = <8704>; |
| 189 | tx-completion-queue = <8706>; |
| 190 | efuse-mac = <1>; |
| 191 | netcp-gbe = <&gbe0>; |
| 192 | |
| 193 | }; |
| 194 | interface-1 { |
| 195 | rx-channel = "netrx1"; |
| 196 | rx-pool = <1024 12>; |
| 197 | tx-pool = <1024 12>; |
| 198 | rx-queue-depth = <128 128 0 0>; |
| 199 | rx-buffer-size = <1518 4096 0 0>; |
| 200 | rx-queue = <8705>; |
| 201 | tx-completion-queue = <8707>; |
| 202 | efuse-mac = <0>; |
| 203 | local-mac-address = [02 18 31 7e 3e 6f]; |
| 204 | netcp-gbe = <&gbe1>; |
| 205 | }; |
| 206 | }; |
| 207 | }; |