1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0 2*f126890aSEmmanuel Vadot/* 3*f126890aSEmmanuel Vadot * Device Tree Source for Keystone 2 Edison Netcp driver 4*f126890aSEmmanuel Vadot * 5*f126890aSEmmanuel Vadot * Copyright (C) 2015-2017 Texas Instruments Incorporated - http://www.ti.com/ 6*f126890aSEmmanuel Vadot */ 7*f126890aSEmmanuel Vadot 8*f126890aSEmmanuel Vadotqmss: qmss@2a40000 { 9*f126890aSEmmanuel Vadot compatible = "ti,keystone-navigator-qmss"; 10*f126890aSEmmanuel Vadot dma-coherent; 11*f126890aSEmmanuel Vadot #address-cells = <1>; 12*f126890aSEmmanuel Vadot #size-cells = <1>; 13*f126890aSEmmanuel Vadot clocks = <&chipclk13>; 14*f126890aSEmmanuel Vadot ranges; 15*f126890aSEmmanuel Vadot queue-range = <0 0x2000>; 16*f126890aSEmmanuel Vadot linkram0 = <0x100000 0x4000>; 17*f126890aSEmmanuel Vadot linkram1 = <0 0x10000>; 18*f126890aSEmmanuel Vadot 19*f126890aSEmmanuel Vadot qmgrs { 20*f126890aSEmmanuel Vadot #address-cells = <1>; 21*f126890aSEmmanuel Vadot #size-cells = <1>; 22*f126890aSEmmanuel Vadot ranges; 23*f126890aSEmmanuel Vadot qmgr0 { 24*f126890aSEmmanuel Vadot managed-queues = <0 0x2000>; 25*f126890aSEmmanuel Vadot reg = <0x2a40000 0x20000>, 26*f126890aSEmmanuel Vadot <0x2a06000 0x400>, 27*f126890aSEmmanuel Vadot <0x2a02000 0x1000>, 28*f126890aSEmmanuel Vadot <0x2a03000 0x1000>, 29*f126890aSEmmanuel Vadot <0x23a80000 0x20000>, 30*f126890aSEmmanuel Vadot <0x2a80000 0x20000>; 31*f126890aSEmmanuel Vadot reg-names = "peek", "status", "config", 32*f126890aSEmmanuel Vadot "region", "push", "pop"; 33*f126890aSEmmanuel Vadot }; 34*f126890aSEmmanuel Vadot }; 35*f126890aSEmmanuel Vadot queue-pools { 36*f126890aSEmmanuel Vadot qpend { 37*f126890aSEmmanuel Vadot qpend-0 { 38*f126890aSEmmanuel Vadot qrange = <658 8>; 39*f126890aSEmmanuel Vadot interrupts = <0 40 0xf04 0 41 0xf04 0 42 0xf04 40*f126890aSEmmanuel Vadot 0 43 0xf04 0 44 0xf04 0 45 0xf04 41*f126890aSEmmanuel Vadot 0 46 0xf04 0 47 0xf04>; 42*f126890aSEmmanuel Vadot }; 43*f126890aSEmmanuel Vadot qpend-1 { 44*f126890aSEmmanuel Vadot qrange = <528 16>; 45*f126890aSEmmanuel Vadot interrupts = <0 48 0xf04 0 49 0xf04 0 50 0xf04 46*f126890aSEmmanuel Vadot 0 51 0xf04 0 52 0xf04 0 53 0xf04 47*f126890aSEmmanuel Vadot 0 54 0xf04 0 55 0xf04 0 56 0xf04 48*f126890aSEmmanuel Vadot 0 57 0xf04 0 58 0xf04 0 59 0xf04 49*f126890aSEmmanuel Vadot 0 60 0xf04 0 61 0xf04 0 62 0xf04 50*f126890aSEmmanuel Vadot 0 63 0xf04>; 51*f126890aSEmmanuel Vadot qalloc-by-id; 52*f126890aSEmmanuel Vadot }; 53*f126890aSEmmanuel Vadot qpend-2 { 54*f126890aSEmmanuel Vadot qrange = <544 16>; 55*f126890aSEmmanuel Vadot interrupts = <0 64 0xf04 0 65 0xf04 0 66 0xf04 56*f126890aSEmmanuel Vadot 0 59 0xf04 0 68 0xf04 0 69 0xf04 57*f126890aSEmmanuel Vadot 0 70 0xf04 0 71 0xf04 0 72 0xf04 58*f126890aSEmmanuel Vadot 0 73 0xf04 0 74 0xf04 0 75 0xf04 59*f126890aSEmmanuel Vadot 0 76 0xf04 0 77 0xf04 0 78 0xf04 60*f126890aSEmmanuel Vadot 0 79 0xf04>; 61*f126890aSEmmanuel Vadot }; 62*f126890aSEmmanuel Vadot }; 63*f126890aSEmmanuel Vadot general-purpose { 64*f126890aSEmmanuel Vadot gp-0 { 65*f126890aSEmmanuel Vadot qrange = <4000 64>; 66*f126890aSEmmanuel Vadot }; 67*f126890aSEmmanuel Vadot netcp-tx { 68*f126890aSEmmanuel Vadot qrange = <896 128>; 69*f126890aSEmmanuel Vadot qalloc-by-id; 70*f126890aSEmmanuel Vadot }; 71*f126890aSEmmanuel Vadot }; 72*f126890aSEmmanuel Vadot accumulator { 73*f126890aSEmmanuel Vadot acc-low-0 { 74*f126890aSEmmanuel Vadot qrange = <480 32>; 75*f126890aSEmmanuel Vadot accumulator = <0 47 16 2 50>; 76*f126890aSEmmanuel Vadot interrupts = <0 226 0xf01>; 77*f126890aSEmmanuel Vadot multi-queue; 78*f126890aSEmmanuel Vadot qalloc-by-id; 79*f126890aSEmmanuel Vadot }; 80*f126890aSEmmanuel Vadot }; 81*f126890aSEmmanuel Vadot }; 82*f126890aSEmmanuel Vadot 83*f126890aSEmmanuel Vadot descriptor-regions { 84*f126890aSEmmanuel Vadot #address-cells = <1>; 85*f126890aSEmmanuel Vadot #size-cells = <1>; 86*f126890aSEmmanuel Vadot ranges; 87*f126890aSEmmanuel Vadot region-12 { 88*f126890aSEmmanuel Vadot id = <12>; 89*f126890aSEmmanuel Vadot region-spec = <8192 128>; /* num_desc desc_size */ 90*f126890aSEmmanuel Vadot link-index = <0x4000>; 91*f126890aSEmmanuel Vadot }; 92*f126890aSEmmanuel Vadot }; 93*f126890aSEmmanuel Vadot 94*f126890aSEmmanuel Vadot pdsps { 95*f126890aSEmmanuel Vadot #address-cells = <1>; 96*f126890aSEmmanuel Vadot #size-cells = <1>; 97*f126890aSEmmanuel Vadot ranges; 98*f126890aSEmmanuel Vadot pdsp0@2a10000 { 99*f126890aSEmmanuel Vadot reg = <0x2a10000 0x1000 /*iram */ 100*f126890aSEmmanuel Vadot 0x2a0f000 0x100 /*reg*/ 101*f126890aSEmmanuel Vadot 0x2a0c000 0x3c8 /*intd */ 102*f126890aSEmmanuel Vadot 0x2a20000 0x4000>; /*cmd*/ 103*f126890aSEmmanuel Vadot id = <0>; 104*f126890aSEmmanuel Vadot }; 105*f126890aSEmmanuel Vadot }; 106*f126890aSEmmanuel Vadot}; /* qmss */ 107*f126890aSEmmanuel Vadot 108*f126890aSEmmanuel Vadotknav_dmas: knav_dmas@0 { 109*f126890aSEmmanuel Vadot compatible = "ti,keystone-navigator-dma"; 110*f126890aSEmmanuel Vadot clocks = <&papllclk>; 111*f126890aSEmmanuel Vadot #address-cells = <1>; 112*f126890aSEmmanuel Vadot #size-cells = <1>; 113*f126890aSEmmanuel Vadot ranges; 114*f126890aSEmmanuel Vadot ti,navigator-cloud-address = <0x23a80000 0x23a90000 115*f126890aSEmmanuel Vadot 0x23a80000 0x23a90000>; 116*f126890aSEmmanuel Vadot 117*f126890aSEmmanuel Vadot dma_gbe: dma_gbe@0 { 118*f126890aSEmmanuel Vadot reg = <0x24186000 0x100>, 119*f126890aSEmmanuel Vadot <0x24187000 0x2a0>, 120*f126890aSEmmanuel Vadot <0x24188000 0xb60>, 121*f126890aSEmmanuel Vadot <0x24186100 0x80>, 122*f126890aSEmmanuel Vadot <0x24189000 0x1000>; 123*f126890aSEmmanuel Vadot reg-names = "global", "txchan", "rxchan", 124*f126890aSEmmanuel Vadot "txsched", "rxflow"; 125*f126890aSEmmanuel Vadot }; 126*f126890aSEmmanuel Vadot}; 127*f126890aSEmmanuel Vadot 128*f126890aSEmmanuel Vadotnetcp: netcp@24000000 { 129*f126890aSEmmanuel Vadot reg = <0x2620110 0x8>; 130*f126890aSEmmanuel Vadot reg-names = "efuse"; 131*f126890aSEmmanuel Vadot compatible = "ti,netcp-1.0"; 132*f126890aSEmmanuel Vadot #address-cells = <1>; 133*f126890aSEmmanuel Vadot #size-cells = <1>; 134*f126890aSEmmanuel Vadot 135*f126890aSEmmanuel Vadot /* NetCP address range */ 136*f126890aSEmmanuel Vadot ranges = <0 0x24000000 0x1000000>; 137*f126890aSEmmanuel Vadot 138*f126890aSEmmanuel Vadot clocks = <&clkpa>, <&clkcpgmac>; 139*f126890aSEmmanuel Vadot clock-names = "pa_clk", "ethss_clk"; 140*f126890aSEmmanuel Vadot dma-coherent; 141*f126890aSEmmanuel Vadot 142*f126890aSEmmanuel Vadot ti,navigator-dmas = <&dma_gbe 0>, 143*f126890aSEmmanuel Vadot <&dma_gbe 8>, 144*f126890aSEmmanuel Vadot <&dma_gbe 0>; 145*f126890aSEmmanuel Vadot ti,navigator-dma-names = "netrx0", "netrx1", "nettx"; 146*f126890aSEmmanuel Vadot 147*f126890aSEmmanuel Vadot netcp-devices { 148*f126890aSEmmanuel Vadot #address-cells = <1>; 149*f126890aSEmmanuel Vadot #size-cells = <1>; 150*f126890aSEmmanuel Vadot ranges; 151*f126890aSEmmanuel Vadot gbe@200000 { /* ETHSS */ 152*f126890aSEmmanuel Vadot label = "netcp-gbe"; 153*f126890aSEmmanuel Vadot compatible = "ti,netcp-gbe-9"; 154*f126890aSEmmanuel Vadot reg = <0x200000 0x900>, <0x220000 0x20000>; 155*f126890aSEmmanuel Vadot /* enable-ale; */ 156*f126890aSEmmanuel Vadot tx-queue = <896>; 157*f126890aSEmmanuel Vadot tx-channel = "nettx"; 158*f126890aSEmmanuel Vadot 159*f126890aSEmmanuel Vadot cpts { 160*f126890aSEmmanuel Vadot clocks = <&cpts_refclk_mux>; 161*f126890aSEmmanuel Vadot clock-names = "cpts"; 162*f126890aSEmmanuel Vadot 163*f126890aSEmmanuel Vadot cpts_refclk_mux: cpts-refclk-mux { 164*f126890aSEmmanuel Vadot #clock-cells = <0>; 165*f126890aSEmmanuel Vadot clocks = <&chipclk12>, <&chipclk13>, 166*f126890aSEmmanuel Vadot <&timi0>, <&timi1>, 167*f126890aSEmmanuel Vadot <&tsipclka>, <&tsrefclk>, 168*f126890aSEmmanuel Vadot <&tsipclkb>; 169*f126890aSEmmanuel Vadot ti,mux-tbl = <0x0>, <0x1>, <0x2>, 170*f126890aSEmmanuel Vadot <0x3>, <0x4>, <0x8>, <0xc>; 171*f126890aSEmmanuel Vadot assigned-clocks = <&cpts_refclk_mux>; 172*f126890aSEmmanuel Vadot assigned-clock-parents = <&chipclk12>; 173*f126890aSEmmanuel Vadot }; 174*f126890aSEmmanuel Vadot }; 175*f126890aSEmmanuel Vadot 176*f126890aSEmmanuel Vadot interfaces { 177*f126890aSEmmanuel Vadot gbe0: interface-0 { 178*f126890aSEmmanuel Vadot slave-port = <0>; 179*f126890aSEmmanuel Vadot link-interface = <1>; 180*f126890aSEmmanuel Vadot phy-handle = <ðphy0>; 181*f126890aSEmmanuel Vadot }; 182*f126890aSEmmanuel Vadot gbe1: interface-1 { 183*f126890aSEmmanuel Vadot slave-port = <1>; 184*f126890aSEmmanuel Vadot link-interface = <1>; 185*f126890aSEmmanuel Vadot phy-handle = <ðphy1>; 186*f126890aSEmmanuel Vadot }; 187*f126890aSEmmanuel Vadot }; 188*f126890aSEmmanuel Vadot 189*f126890aSEmmanuel Vadot secondary-slave-ports { 190*f126890aSEmmanuel Vadot port-2 { 191*f126890aSEmmanuel Vadot slave-port = <2>; 192*f126890aSEmmanuel Vadot link-interface = <2>; 193*f126890aSEmmanuel Vadot }; 194*f126890aSEmmanuel Vadot port-3 { 195*f126890aSEmmanuel Vadot slave-port = <3>; 196*f126890aSEmmanuel Vadot link-interface = <2>; 197*f126890aSEmmanuel Vadot }; 198*f126890aSEmmanuel Vadot port-4 { 199*f126890aSEmmanuel Vadot slave-port = <4>; 200*f126890aSEmmanuel Vadot link-interface = <2>; 201*f126890aSEmmanuel Vadot }; 202*f126890aSEmmanuel Vadot port-5 { 203*f126890aSEmmanuel Vadot slave-port = <5>; 204*f126890aSEmmanuel Vadot link-interface = <2>; 205*f126890aSEmmanuel Vadot }; 206*f126890aSEmmanuel Vadot port-6 { 207*f126890aSEmmanuel Vadot slave-port = <6>; 208*f126890aSEmmanuel Vadot link-interface = <2>; 209*f126890aSEmmanuel Vadot }; 210*f126890aSEmmanuel Vadot port-7 { 211*f126890aSEmmanuel Vadot slave-port = <7>; 212*f126890aSEmmanuel Vadot link-interface = <2>; 213*f126890aSEmmanuel Vadot }; 214*f126890aSEmmanuel Vadot }; 215*f126890aSEmmanuel Vadot }; 216*f126890aSEmmanuel Vadot }; 217*f126890aSEmmanuel Vadot 218*f126890aSEmmanuel Vadot netcp-interfaces { 219*f126890aSEmmanuel Vadot interface-0 { 220*f126890aSEmmanuel Vadot rx-channel = "netrx0"; 221*f126890aSEmmanuel Vadot rx-pool = <1024 12>; 222*f126890aSEmmanuel Vadot tx-pool = <1024 12>; 223*f126890aSEmmanuel Vadot rx-queue-depth = <128 128 0 0>; 224*f126890aSEmmanuel Vadot rx-buffer-size = <1518 4096 0 0>; 225*f126890aSEmmanuel Vadot rx-queue = <528>; 226*f126890aSEmmanuel Vadot tx-completion-queue = <530>; 227*f126890aSEmmanuel Vadot efuse-mac = <1>; 228*f126890aSEmmanuel Vadot netcp-gbe = <&gbe0>; 229*f126890aSEmmanuel Vadot 230*f126890aSEmmanuel Vadot }; 231*f126890aSEmmanuel Vadot interface-1 { 232*f126890aSEmmanuel Vadot rx-channel = "netrx1"; 233*f126890aSEmmanuel Vadot rx-pool = <1024 12>; 234*f126890aSEmmanuel Vadot tx-pool = <1024 12>; 235*f126890aSEmmanuel Vadot rx-queue-depth = <128 128 0 0>; 236*f126890aSEmmanuel Vadot rx-buffer-size = <1518 4096 0 0>; 237*f126890aSEmmanuel Vadot rx-queue = <529>; 238*f126890aSEmmanuel Vadot tx-completion-queue = <531>; 239*f126890aSEmmanuel Vadot efuse-mac = <0>; 240*f126890aSEmmanuel Vadot local-mac-address = [02 18 31 7e 3e 00]; 241*f126890aSEmmanuel Vadot netcp-gbe = <&gbe1>; 242*f126890aSEmmanuel Vadot }; 243*f126890aSEmmanuel Vadot }; 244*f126890aSEmmanuel Vadot}; 245*f126890aSEmmanuel Vadot 246*f126890aSEmmanuel Vadotsa_subsys: subsys@24080000 { 247*f126890aSEmmanuel Vadot #address-cells = <1>; 248*f126890aSEmmanuel Vadot #size-cells = <1>; 249*f126890aSEmmanuel Vadot compatible = "simple-bus"; 250*f126890aSEmmanuel Vadot ranges = <0 0x24080000 0x40000>; 251*f126890aSEmmanuel Vadot 252*f126890aSEmmanuel Vadot sa_config: subsys@0 { 253*f126890aSEmmanuel Vadot compatible = "syscon"; 254*f126890aSEmmanuel Vadot reg = <0x0 0x100>; 255*f126890aSEmmanuel Vadot }; 256*f126890aSEmmanuel Vadot 257*f126890aSEmmanuel Vadot rng@24000 { 258*f126890aSEmmanuel Vadot compatible = "ti,keystone-rng"; 259*f126890aSEmmanuel Vadot reg = <0x24000 0x1000>; 260*f126890aSEmmanuel Vadot ti,syscon-sa-cfg = <&sa_config>; 261*f126890aSEmmanuel Vadot clocks = <&clksa>; 262*f126890aSEmmanuel Vadot clock-names = "fck"; 263*f126890aSEmmanuel Vadot }; 264*f126890aSEmmanuel Vadot}; 265