Andrew Davis | 856ec34 | 2023-04-11 13:25:02 -0500 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Lokesh Vutla | 2c14c64 | 2015-09-19 15:00:22 +0530 | [diff] [blame] | 2 | /* |
| 3 | * Device Tree Source for Keystone 2 Edison Netcp driver |
| 4 | * |
Nishanth Menon | eaa39c6 | 2023-11-01 15:56:03 -0500 | [diff] [blame] | 5 | * Copyright (C) 2015-2017 Texas Instruments Incorporated - https://www.ti.com/ |
Lokesh Vutla | 2c14c64 | 2015-09-19 15:00:22 +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 0x2000>; |
| 16 | linkram0 = <0x100000 0x4000>; |
| 17 | linkram1 = <0 0x10000>; |
Lokesh Vutla | 2c14c64 | 2015-09-19 15:00:22 +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 | queue-pools { |
| 36 | qpend { |
| 37 | qpend-0 { |
| 38 | qrange = <658 8>; |
| 39 | interrupts =<0 40 0xf04 0 41 0xf04 0 42 0xf04 |
| 40 | 0 43 0xf04 0 44 0xf04 0 45 0xf04 |
| 41 | 0 46 0xf04 0 47 0xf04>; |
| 42 | }; |
| 43 | qpend-1 { |
| 44 | qrange = <528 16>; |
| 45 | interrupts = <0 48 0xf04 0 49 0xf04 0 50 0xf04 |
| 46 | 0 51 0xf04 0 52 0xf04 0 53 0xf04 |
| 47 | 0 54 0xf04 0 55 0xf04 0 56 0xf04 |
| 48 | 0 57 0xf04 0 58 0xf04 0 59 0xf04 |
| 49 | 0 60 0xf04 0 61 0xf04 0 62 0xf04 |
| 50 | 0 63 0xf04>; |
| 51 | qalloc-by-id; |
| 52 | }; |
| 53 | qpend-2 { |
| 54 | qrange = <544 16>; |
| 55 | interrupts = <0 64 0xf04 0 65 0xf04 0 66 0xf04 |
| 56 | 0 59 0xf04 0 68 0xf04 0 69 0xf04 |
| 57 | 0 70 0xf04 0 71 0xf04 0 72 0xf04 |
| 58 | 0 73 0xf04 0 74 0xf04 0 75 0xf04 |
| 59 | 0 76 0xf04 0 77 0xf04 0 78 0xf04 |
| 60 | 0 79 0xf04>; |
| 61 | }; |
| 62 | }; |
| 63 | general-purpose { |
| 64 | gp-0 { |
| 65 | qrange = <4000 64>; |
| 66 | }; |
| 67 | netcp-tx { |
| 68 | qrange = <896 128>; |
| 69 | qalloc-by-id; |
| 70 | }; |
| 71 | }; |
| 72 | }; |
| 73 | descriptor-regions { |
| 74 | #address-cells = <1>; |
| 75 | #size-cells = <1>; |
| 76 | ranges; |
| 77 | region-12 { |
| 78 | id = <12>; |
| 79 | region-spec = <8192 128>; /* num_desc desc_size */ |
| 80 | link-index = <0x4000>; |
| 81 | }; |
| 82 | }; |
| 83 | }; /* qmss */ |
| 84 | |
| 85 | knav_dmas: knav_dmas@0 { |
| 86 | compatible = "ti,keystone-navigator-dma"; |
| 87 | clocks = <&papllclk>; |
| 88 | #address-cells = <1>; |
| 89 | #size-cells = <1>; |
| 90 | ranges; |
| 91 | ti,navigator-cloud-address = <0x23a80000 0x23a90000 |
| 92 | 0x23a80000 0x23a90000>; |
| 93 | |
| 94 | dma_gbe: dma_gbe@0 { |
| 95 | reg = <0x24186000 0x100>, |
| 96 | <0x24187000 0x2a0>, |
| 97 | <0x24188000 0xb60>, |
| 98 | <0x24186100 0x80>, |
| 99 | <0x24189000 0x1000>; |
| 100 | reg-names = "global", "txchan", "rxchan", |
| 101 | "txsched", "rxflow"; |
| 102 | }; |
| 103 | }; |
| 104 | |
| 105 | netcp: netcp@24000000 { |
| 106 | reg = <0x2620110 0x8>; |
| 107 | reg-names = "efuse"; |
| 108 | compatible = "ti,netcp-1.0"; |
| 109 | #address-cells = <1>; |
| 110 | #size-cells = <1>; |
| 111 | |
| 112 | /* NetCP address range */ |
| 113 | ranges = <0 0x24000000 0x1000000>; |
| 114 | |
| 115 | clocks = <&papllclk>, <&clkcpgmac>, <&chipclk12>; |
| 116 | dma-coherent; |
| 117 | |
| 118 | ti,navigator-dmas = <&dma_gbe 0>, |
| 119 | <&dma_gbe 8>, |
| 120 | <&dma_gbe 0>; |
| 121 | ti,navigator-dma-names = "netrx0", "netrx1", "nettx"; |
| 122 | |
| 123 | netcp-devices { |
| 124 | #address-cells = <1>; |
| 125 | #size-cells = <1>; |
| 126 | ranges; |
| 127 | gbe@200000 { /* ETHSS */ |
| 128 | label = "netcp-gbe"; |
| 129 | compatible = "ti,netcp-gbe-9"; |
| 130 | reg = <0x200000 0x900>, <0x220000 0x20000>; |
| 131 | /* enable-ale; */ |
| 132 | tx-queue = <896>; |
| 133 | tx-channel = "nettx"; |
| 134 | |
| 135 | interfaces { |
| 136 | gbe0: interface-0 { |
| 137 | slave-port = <0>; |
Andrew Davis | 33e399a | 2023-04-11 13:25:09 -0500 | [diff] [blame] | 138 | link-interface = <1>; |
| 139 | phy-handle = <ðphy0>; |
Lokesh Vutla | 2c14c64 | 2015-09-19 15:00:22 +0530 | [diff] [blame] | 140 | }; |
| 141 | gbe1: interface-1 { |
| 142 | slave-port = <1>; |
Andrew Davis | 33e399a | 2023-04-11 13:25:09 -0500 | [diff] [blame] | 143 | link-interface = <1>; |
| 144 | phy-handle = <ðphy1>; |
Lokesh Vutla | 2c14c64 | 2015-09-19 15:00:22 +0530 | [diff] [blame] | 145 | }; |
| 146 | }; |
| 147 | |
| 148 | secondary-slave-ports { |
| 149 | port-2 { |
| 150 | slave-port = <2>; |
Andrew Davis | 33e399a | 2023-04-11 13:25:09 -0500 | [diff] [blame] | 151 | link-interface = <2>; |
Lokesh Vutla | 2c14c64 | 2015-09-19 15:00:22 +0530 | [diff] [blame] | 152 | }; |
| 153 | port-3 { |
| 154 | slave-port = <3>; |
Andrew Davis | 33e399a | 2023-04-11 13:25:09 -0500 | [diff] [blame] | 155 | link-interface = <2>; |
Lokesh Vutla | 2c14c64 | 2015-09-19 15:00:22 +0530 | [diff] [blame] | 156 | }; |
| 157 | port-4 { |
| 158 | slave-port = <4>; |
Andrew Davis | 33e399a | 2023-04-11 13:25:09 -0500 | [diff] [blame] | 159 | link-interface = <2>; |
Lokesh Vutla | 2c14c64 | 2015-09-19 15:00:22 +0530 | [diff] [blame] | 160 | }; |
| 161 | port-5 { |
| 162 | slave-port = <5>; |
Andrew Davis | 33e399a | 2023-04-11 13:25:09 -0500 | [diff] [blame] | 163 | link-interface = <2>; |
Lokesh Vutla | 2c14c64 | 2015-09-19 15:00:22 +0530 | [diff] [blame] | 164 | }; |
| 165 | port-6 { |
| 166 | slave-port = <6>; |
Andrew Davis | 33e399a | 2023-04-11 13:25:09 -0500 | [diff] [blame] | 167 | link-interface = <2>; |
Lokesh Vutla | 2c14c64 | 2015-09-19 15:00:22 +0530 | [diff] [blame] | 168 | }; |
| 169 | port-7 { |
| 170 | slave-port = <7>; |
Andrew Davis | 33e399a | 2023-04-11 13:25:09 -0500 | [diff] [blame] | 171 | link-interface = <2>; |
Lokesh Vutla | 2c14c64 | 2015-09-19 15:00:22 +0530 | [diff] [blame] | 172 | }; |
| 173 | }; |
| 174 | }; |
| 175 | }; |
| 176 | |
| 177 | netcp-interfaces { |
| 178 | interface-0 { |
| 179 | rx-channel = "netrx0"; |
| 180 | rx-pool = <1024 12>; |
| 181 | tx-pool = <1024 12>; |
| 182 | rx-queue-depth = <128 128 0 0>; |
| 183 | rx-buffer-size = <1518 4096 0 0>; |
| 184 | rx-queue = <528>; |
| 185 | tx-completion-queue = <530>; |
| 186 | efuse-mac = <1>; |
| 187 | netcp-gbe = <&gbe0>; |
| 188 | |
| 189 | }; |
| 190 | interface-1 { |
| 191 | rx-channel = "netrx1"; |
| 192 | rx-pool = <1024 12>; |
| 193 | tx-pool = <1024 12>; |
| 194 | rx-queue-depth = <128 128 0 0>; |
| 195 | rx-buffer-size = <1518 4096 0 0>; |
| 196 | rx-queue = <529>; |
| 197 | tx-completion-queue = <531>; |
| 198 | efuse-mac = <0>; |
| 199 | local-mac-address = [02 18 31 7e 3e 00]; |
| 200 | netcp-gbe = <&gbe1>; |
| 201 | }; |
| 202 | }; |
| 203 | }; |