1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0 2*f126890aSEmmanuel Vadot/* 3*f126890aSEmmanuel Vadot * Device Tree Source for Keystone 2 Hawking 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 0x4000>; 16*f126890aSEmmanuel Vadot linkram0 = <0x100000 0x8000>; 17*f126890aSEmmanuel Vadot linkram1 = <0x0 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 qmgr1 { 36*f126890aSEmmanuel Vadot managed-queues = <0x2000 0x2000>; 37*f126890aSEmmanuel Vadot reg = <0x2a60000 0x20000>, 38*f126890aSEmmanuel Vadot <0x2a06400 0x400>, 39*f126890aSEmmanuel Vadot <0x2a04000 0x1000>, 40*f126890aSEmmanuel Vadot <0x2a05000 0x1000>, 41*f126890aSEmmanuel Vadot <0x23aa0000 0x20000>, 42*f126890aSEmmanuel Vadot <0x2aa0000 0x20000>; 43*f126890aSEmmanuel Vadot reg-names = "peek", "status", "config", 44*f126890aSEmmanuel Vadot "region", "push", "pop"; 45*f126890aSEmmanuel Vadot }; 46*f126890aSEmmanuel Vadot }; 47*f126890aSEmmanuel Vadot 48*f126890aSEmmanuel Vadot queue-pools { 49*f126890aSEmmanuel Vadot qpend { 50*f126890aSEmmanuel Vadot qpend-0 { 51*f126890aSEmmanuel Vadot qrange = <658 8>; 52*f126890aSEmmanuel Vadot interrupts = <0 40 0xf04 0 41 0xf04 0 42 0xf04 53*f126890aSEmmanuel Vadot 0 43 0xf04 0 44 0xf04 0 45 0xf04 54*f126890aSEmmanuel Vadot 0 46 0xf04 0 47 0xf04>; 55*f126890aSEmmanuel Vadot }; 56*f126890aSEmmanuel Vadot qpend-1 { 57*f126890aSEmmanuel Vadot qrange = <8704 16>; 58*f126890aSEmmanuel Vadot interrupts = <0 48 0xf04 0 49 0xf04 0 50 0xf04 59*f126890aSEmmanuel Vadot 0 51 0xf04 0 52 0xf04 0 53 0xf04 60*f126890aSEmmanuel Vadot 0 54 0xf04 0 55 0xf04 0 56 0xf04 61*f126890aSEmmanuel Vadot 0 57 0xf04 0 58 0xf04 0 59 0xf04 62*f126890aSEmmanuel Vadot 0 60 0xf04 0 61 0xf04 0 62 0xf04 63*f126890aSEmmanuel Vadot 0 63 0xf04>; 64*f126890aSEmmanuel Vadot qalloc-by-id; 65*f126890aSEmmanuel Vadot }; 66*f126890aSEmmanuel Vadot qpend-2 { 67*f126890aSEmmanuel Vadot qrange = <8720 16>; 68*f126890aSEmmanuel Vadot interrupts = <0 64 0xf04 0 65 0xf04 0 66 0xf04 69*f126890aSEmmanuel Vadot 0 59 0xf04 0 68 0xf04 0 69 0xf04 70*f126890aSEmmanuel Vadot 0 70 0xf04 0 71 0xf04 0 72 0xf04 71*f126890aSEmmanuel Vadot 0 73 0xf04 0 74 0xf04 0 75 0xf04 72*f126890aSEmmanuel Vadot 0 76 0xf04 0 77 0xf04 0 78 0xf04 73*f126890aSEmmanuel Vadot 0 79 0xf04>; 74*f126890aSEmmanuel Vadot }; 75*f126890aSEmmanuel Vadot }; 76*f126890aSEmmanuel Vadot general-purpose { 77*f126890aSEmmanuel Vadot gp-0 { 78*f126890aSEmmanuel Vadot qrange = <4000 64>; 79*f126890aSEmmanuel Vadot }; 80*f126890aSEmmanuel Vadot netcp-tx { 81*f126890aSEmmanuel Vadot qrange = <640 9>; 82*f126890aSEmmanuel Vadot qalloc-by-id; 83*f126890aSEmmanuel Vadot }; 84*f126890aSEmmanuel Vadot netcpx-tx { 85*f126890aSEmmanuel Vadot qrange = <8752 8>; 86*f126890aSEmmanuel Vadot qalloc-by-id; 87*f126890aSEmmanuel Vadot }; 88*f126890aSEmmanuel Vadot }; 89*f126890aSEmmanuel Vadot accumulator { 90*f126890aSEmmanuel Vadot acc-low-0 { 91*f126890aSEmmanuel Vadot qrange = <480 32>; 92*f126890aSEmmanuel Vadot accumulator = <0 47 16 2 50>; 93*f126890aSEmmanuel Vadot interrupts = <0 226 0xf01>; 94*f126890aSEmmanuel Vadot multi-queue; 95*f126890aSEmmanuel Vadot qalloc-by-id; 96*f126890aSEmmanuel Vadot }; 97*f126890aSEmmanuel Vadot }; 98*f126890aSEmmanuel Vadot }; 99*f126890aSEmmanuel Vadot 100*f126890aSEmmanuel Vadot descriptor-regions { 101*f126890aSEmmanuel Vadot #address-cells = <1>; 102*f126890aSEmmanuel Vadot #size-cells = <1>; 103*f126890aSEmmanuel Vadot ranges; 104*f126890aSEmmanuel Vadot region-12 { 105*f126890aSEmmanuel Vadot id = <12>; 106*f126890aSEmmanuel Vadot region-spec = <8192 128>; /* num_desc desc_size */ 107*f126890aSEmmanuel Vadot link-index = <0x4000>; 108*f126890aSEmmanuel Vadot }; 109*f126890aSEmmanuel Vadot }; 110*f126890aSEmmanuel Vadot 111*f126890aSEmmanuel Vadot pdsps { 112*f126890aSEmmanuel Vadot #address-cells = <1>; 113*f126890aSEmmanuel Vadot #size-cells = <1>; 114*f126890aSEmmanuel Vadot ranges; 115*f126890aSEmmanuel Vadot pdsp0@2a10000 { 116*f126890aSEmmanuel Vadot reg = <0x2a10000 0x1000 /*iram */ 117*f126890aSEmmanuel Vadot 0x2a0f000 0x100 /*reg*/ 118*f126890aSEmmanuel Vadot 0x2a0c000 0x3c8 /*intd */ 119*f126890aSEmmanuel Vadot 0x2a20000 0x4000>; /*cmd*/ 120*f126890aSEmmanuel Vadot id = <0>; 121*f126890aSEmmanuel Vadot }; 122*f126890aSEmmanuel Vadot }; 123*f126890aSEmmanuel Vadot}; /* qmss */ 124*f126890aSEmmanuel Vadot 125*f126890aSEmmanuel Vadotknav_dmas: knav_dmas@0 { 126*f126890aSEmmanuel Vadot compatible = "ti,keystone-navigator-dma"; 127*f126890aSEmmanuel Vadot clocks = <&papllclk>; 128*f126890aSEmmanuel Vadot #address-cells = <1>; 129*f126890aSEmmanuel Vadot #size-cells = <1>; 130*f126890aSEmmanuel Vadot ranges; 131*f126890aSEmmanuel Vadot ti,navigator-cloud-address = <0x23a80000 0x23a90000 132*f126890aSEmmanuel Vadot 0x23aa0000 0x23ab0000>; 133*f126890aSEmmanuel Vadot 134*f126890aSEmmanuel Vadot dma_gbe: dma_gbe@0 { 135*f126890aSEmmanuel Vadot reg = <0x2004000 0x100>, 136*f126890aSEmmanuel Vadot <0x2004400 0x120>, 137*f126890aSEmmanuel Vadot <0x2004800 0x300>, 138*f126890aSEmmanuel Vadot <0x2004c00 0x120>, 139*f126890aSEmmanuel Vadot <0x2005000 0x400>; 140*f126890aSEmmanuel Vadot reg-names = "global", "txchan", "rxchan", 141*f126890aSEmmanuel Vadot "txsched", "rxflow"; 142*f126890aSEmmanuel Vadot }; 143*f126890aSEmmanuel Vadot}; 144*f126890aSEmmanuel Vadot 145*f126890aSEmmanuel Vadotnetcp: netcp@2000000 { 146*f126890aSEmmanuel Vadot reg = <0x2620110 0x8>; 147*f126890aSEmmanuel Vadot reg-names = "efuse"; 148*f126890aSEmmanuel Vadot compatible = "ti,netcp-1.0"; 149*f126890aSEmmanuel Vadot #address-cells = <1>; 150*f126890aSEmmanuel Vadot #size-cells = <1>; 151*f126890aSEmmanuel Vadot 152*f126890aSEmmanuel Vadot /* NetCP address range */ 153*f126890aSEmmanuel Vadot ranges = <0 0x2000000 0x100000>; 154*f126890aSEmmanuel Vadot 155*f126890aSEmmanuel Vadot clocks = <&clkpa>, <&clkcpgmac>; 156*f126890aSEmmanuel Vadot clock-names = "pa_clk", "ethss_clk"; 157*f126890aSEmmanuel Vadot dma-coherent; 158*f126890aSEmmanuel Vadot 159*f126890aSEmmanuel Vadot ti,navigator-dmas = <&dma_gbe 22>, 160*f126890aSEmmanuel Vadot <&dma_gbe 23>, 161*f126890aSEmmanuel Vadot <&dma_gbe 8>; 162*f126890aSEmmanuel Vadot ti,navigator-dma-names = "netrx0", "netrx1", "nettx"; 163*f126890aSEmmanuel Vadot 164*f126890aSEmmanuel Vadot netcp-devices { 165*f126890aSEmmanuel Vadot ranges; 166*f126890aSEmmanuel Vadot #address-cells = <1>; 167*f126890aSEmmanuel Vadot #size-cells = <1>; 168*f126890aSEmmanuel Vadot gbe@90000 { /* ETHSS */ 169*f126890aSEmmanuel Vadot #address-cells = <1>; 170*f126890aSEmmanuel Vadot #size-cells = <1>; 171*f126890aSEmmanuel Vadot label = "netcp-gbe"; 172*f126890aSEmmanuel Vadot compatible = "ti,netcp-gbe"; 173*f126890aSEmmanuel Vadot reg = <0x90000 0x300>, <0x90400 0x400>, <0x90800 0x700>; 174*f126890aSEmmanuel Vadot /* enable-ale; */ 175*f126890aSEmmanuel Vadot tx-queue = <648>; 176*f126890aSEmmanuel Vadot tx-channel = "nettx"; 177*f126890aSEmmanuel Vadot 178*f126890aSEmmanuel Vadot cpts { 179*f126890aSEmmanuel Vadot clocks = <&cpts_refclk_mux>; 180*f126890aSEmmanuel Vadot clock-names = "cpts"; 181*f126890aSEmmanuel Vadot 182*f126890aSEmmanuel Vadot cpts_refclk_mux: cpts-refclk-mux { 183*f126890aSEmmanuel Vadot #clock-cells = <0>; 184*f126890aSEmmanuel Vadot clocks = <&chipclk12>, <&chipclk13>, 185*f126890aSEmmanuel Vadot <&timi0>, <&timi1>, 186*f126890aSEmmanuel Vadot <&tsrefclk>; 187*f126890aSEmmanuel Vadot ti,mux-tbl = <0x0>, <0x1>, <0x2>, 188*f126890aSEmmanuel Vadot <0x3>, <0x8>; 189*f126890aSEmmanuel Vadot assigned-clocks = <&cpts_refclk_mux>; 190*f126890aSEmmanuel Vadot assigned-clock-parents = <&chipclk12>; 191*f126890aSEmmanuel Vadot }; 192*f126890aSEmmanuel Vadot }; 193*f126890aSEmmanuel Vadot 194*f126890aSEmmanuel Vadot interfaces { 195*f126890aSEmmanuel Vadot gbe0: interface-0 { 196*f126890aSEmmanuel Vadot slave-port = <0>; 197*f126890aSEmmanuel Vadot link-interface = <1>; 198*f126890aSEmmanuel Vadot phy-handle = <ðphy0>; 199*f126890aSEmmanuel Vadot }; 200*f126890aSEmmanuel Vadot gbe1: interface-1 { 201*f126890aSEmmanuel Vadot slave-port = <1>; 202*f126890aSEmmanuel Vadot link-interface = <1>; 203*f126890aSEmmanuel Vadot phy-handle = <ðphy1>; 204*f126890aSEmmanuel Vadot }; 205*f126890aSEmmanuel Vadot }; 206*f126890aSEmmanuel Vadot 207*f126890aSEmmanuel Vadot secondary-slave-ports { 208*f126890aSEmmanuel Vadot port-2 { 209*f126890aSEmmanuel Vadot slave-port = <2>; 210*f126890aSEmmanuel Vadot link-interface = <2>; 211*f126890aSEmmanuel Vadot }; 212*f126890aSEmmanuel Vadot port-3 { 213*f126890aSEmmanuel Vadot slave-port = <3>; 214*f126890aSEmmanuel Vadot link-interface = <2>; 215*f126890aSEmmanuel Vadot }; 216*f126890aSEmmanuel Vadot }; 217*f126890aSEmmanuel Vadot }; 218*f126890aSEmmanuel Vadot }; 219*f126890aSEmmanuel Vadot 220*f126890aSEmmanuel Vadot netcp-interfaces { 221*f126890aSEmmanuel Vadot interface-0 { 222*f126890aSEmmanuel Vadot rx-channel = "netrx0"; 223*f126890aSEmmanuel Vadot rx-pool = <1024 12>; 224*f126890aSEmmanuel Vadot tx-pool = <1024 12>; 225*f126890aSEmmanuel Vadot rx-queue-depth = <128 128 0 0>; 226*f126890aSEmmanuel Vadot rx-buffer-size = <1518 4096 0 0>; 227*f126890aSEmmanuel Vadot rx-queue = <8704>; 228*f126890aSEmmanuel Vadot tx-completion-queue = <8706>; 229*f126890aSEmmanuel Vadot efuse-mac = <1>; 230*f126890aSEmmanuel Vadot netcp-gbe = <&gbe0>; 231*f126890aSEmmanuel Vadot 232*f126890aSEmmanuel Vadot }; 233*f126890aSEmmanuel Vadot interface-1 { 234*f126890aSEmmanuel Vadot rx-channel = "netrx1"; 235*f126890aSEmmanuel Vadot rx-pool = <1024 12>; 236*f126890aSEmmanuel Vadot tx-pool = <1024 12>; 237*f126890aSEmmanuel Vadot rx-queue-depth = <128 128 0 0>; 238*f126890aSEmmanuel Vadot rx-buffer-size = <1518 4096 0 0>; 239*f126890aSEmmanuel Vadot rx-queue = <8705>; 240*f126890aSEmmanuel Vadot tx-completion-queue = <8707>; 241*f126890aSEmmanuel Vadot efuse-mac = <0>; 242*f126890aSEmmanuel Vadot local-mac-address = [02 18 31 7e 3e 6f]; 243*f126890aSEmmanuel Vadot netcp-gbe = <&gbe1>; 244*f126890aSEmmanuel Vadot }; 245*f126890aSEmmanuel Vadot }; 246*f126890aSEmmanuel Vadot}; 247*f126890aSEmmanuel Vadot 248*f126890aSEmmanuel Vadotsa_subsys: subsys@20c0000 { 249*f126890aSEmmanuel Vadot compatible = "simple-bus"; 250*f126890aSEmmanuel Vadot #address-cells = <1>; 251*f126890aSEmmanuel Vadot #size-cells = <1>; 252*f126890aSEmmanuel Vadot ranges = <0 0x20c0000 0x40000>; 253*f126890aSEmmanuel Vadot 254*f126890aSEmmanuel Vadot sa_config: subsys@0 { 255*f126890aSEmmanuel Vadot compatible = "syscon"; 256*f126890aSEmmanuel Vadot reg = <0x0 0x100>; 257*f126890aSEmmanuel Vadot }; 258*f126890aSEmmanuel Vadot 259*f126890aSEmmanuel Vadot rng@24000 { 260*f126890aSEmmanuel Vadot compatible = "ti,keystone-rng"; 261*f126890aSEmmanuel Vadot reg = <0x24000 0x1000>; 262*f126890aSEmmanuel Vadot ti,syscon-sa-cfg = <&sa_config>; 263*f126890aSEmmanuel Vadot clocks = <&clksa>; 264*f126890aSEmmanuel Vadot clock-names = "fck"; 265*f126890aSEmmanuel Vadot }; 266*f126890aSEmmanuel Vadot}; 267