0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003 * Device Tree Source for Keystone 2 Hawking Netcp driver
0004 *
0005 * Copyright (C) 2015-2017 Texas Instruments Incorporated - http://www.ti.com/
0006 */
0007
0008 qmss: qmss@2a40000 {
0009 compatible = "ti,keystone-navigator-qmss";
0010 dma-coherent;
0011 #address-cells = <1>;
0012 #size-cells = <1>;
0013 clocks = <&chipclk13>;
0014 ranges;
0015 queue-range = <0 0x4000>;
0016 linkram0 = <0x100000 0x8000>;
0017 linkram1 = <0x0 0x10000>;
0018
0019 qmgrs {
0020 #address-cells = <1>;
0021 #size-cells = <1>;
0022 ranges;
0023 qmgr0 {
0024 managed-queues = <0 0x2000>;
0025 reg = <0x2a40000 0x20000>,
0026 <0x2a06000 0x400>,
0027 <0x2a02000 0x1000>,
0028 <0x2a03000 0x1000>,
0029 <0x23a80000 0x20000>,
0030 <0x2a80000 0x20000>;
0031 reg-names = "peek", "status", "config",
0032 "region", "push", "pop";
0033 };
0034
0035 qmgr1 {
0036 managed-queues = <0x2000 0x2000>;
0037 reg = <0x2a60000 0x20000>,
0038 <0x2a06400 0x400>,
0039 <0x2a04000 0x1000>,
0040 <0x2a05000 0x1000>,
0041 <0x23aa0000 0x20000>,
0042 <0x2aa0000 0x20000>;
0043 reg-names = "peek", "status", "config",
0044 "region", "push", "pop";
0045 };
0046 };
0047
0048 queue-pools {
0049 qpend {
0050 qpend-0 {
0051 qrange = <658 8>;
0052 interrupts =<0 40 0xf04 0 41 0xf04 0 42 0xf04
0053 0 43 0xf04 0 44 0xf04 0 45 0xf04
0054 0 46 0xf04 0 47 0xf04>;
0055 };
0056 qpend-1 {
0057 qrange = <8704 16>;
0058 interrupts = <0 48 0xf04 0 49 0xf04 0 50 0xf04
0059 0 51 0xf04 0 52 0xf04 0 53 0xf04
0060 0 54 0xf04 0 55 0xf04 0 56 0xf04
0061 0 57 0xf04 0 58 0xf04 0 59 0xf04
0062 0 60 0xf04 0 61 0xf04 0 62 0xf04
0063 0 63 0xf04>;
0064 qalloc-by-id;
0065 };
0066 qpend-2 {
0067 qrange = <8720 16>;
0068 interrupts = <0 64 0xf04 0 65 0xf04 0 66 0xf04
0069 0 59 0xf04 0 68 0xf04 0 69 0xf04
0070 0 70 0xf04 0 71 0xf04 0 72 0xf04
0071 0 73 0xf04 0 74 0xf04 0 75 0xf04
0072 0 76 0xf04 0 77 0xf04 0 78 0xf04
0073 0 79 0xf04>;
0074 };
0075 };
0076 general-purpose {
0077 gp-0 {
0078 qrange = <4000 64>;
0079 };
0080 netcp-tx {
0081 qrange = <640 9>;
0082 qalloc-by-id;
0083 };
0084 netcpx-tx {
0085 qrange = <8752 8>;
0086 qalloc-by-id;
0087 };
0088 };
0089 accumulator {
0090 acc-low-0 {
0091 qrange = <480 32>;
0092 accumulator = <0 47 16 2 50>;
0093 interrupts = <0 226 0xf01>;
0094 multi-queue;
0095 qalloc-by-id;
0096 };
0097 };
0098 };
0099
0100 descriptor-regions {
0101 #address-cells = <1>;
0102 #size-cells = <1>;
0103 ranges;
0104 region-12 {
0105 id = <12>;
0106 region-spec = <8192 128>; /* num_desc desc_size */
0107 link-index = <0x4000>;
0108 };
0109 };
0110
0111 pdsps {
0112 #address-cells = <1>;
0113 #size-cells = <1>;
0114 ranges;
0115 pdsp0@2a10000 {
0116 reg = <0x2a10000 0x1000 /*iram */
0117 0x2a0f000 0x100 /*reg*/
0118 0x2a0c000 0x3c8 /*intd */
0119 0x2a20000 0x4000>; /*cmd*/
0120 id = <0>;
0121 };
0122 };
0123 }; /* qmss */
0124
0125 knav_dmas: knav_dmas@0 {
0126 compatible = "ti,keystone-navigator-dma";
0127 clocks = <&papllclk>;
0128 #address-cells = <1>;
0129 #size-cells = <1>;
0130 ranges;
0131 ti,navigator-cloud-address = <0x23a80000 0x23a90000
0132 0x23aa0000 0x23ab0000>;
0133
0134 dma_gbe: dma_gbe@0 {
0135 reg = <0x2004000 0x100>,
0136 <0x2004400 0x120>,
0137 <0x2004800 0x300>,
0138 <0x2004c00 0x120>,
0139 <0x2005000 0x400>;
0140 reg-names = "global", "txchan", "rxchan",
0141 "txsched", "rxflow";
0142 };
0143 };
0144
0145 netcp: netcp@2000000 {
0146 reg = <0x2620110 0x8>;
0147 reg-names = "efuse";
0148 compatible = "ti,netcp-1.0";
0149 #address-cells = <1>;
0150 #size-cells = <1>;
0151
0152 /* NetCP address range */
0153 ranges = <0 0x2000000 0x100000>;
0154
0155 clocks = <&clkpa>, <&clkcpgmac>;
0156 clock-names = "pa_clk", "ethss_clk";
0157 dma-coherent;
0158
0159 ti,navigator-dmas = <&dma_gbe 22>,
0160 <&dma_gbe 23>,
0161 <&dma_gbe 8>;
0162 ti,navigator-dma-names = "netrx0", "netrx1", "nettx";
0163
0164 netcp-devices {
0165 ranges;
0166 #address-cells = <1>;
0167 #size-cells = <1>;
0168 gbe@90000 { /* ETHSS */
0169 #address-cells = <1>;
0170 #size-cells = <1>;
0171 label = "netcp-gbe";
0172 compatible = "ti,netcp-gbe";
0173 reg = <0x90000 0x300>, <0x90400 0x400>, <0x90800 0x700>;
0174 /* enable-ale; */
0175 tx-queue = <648>;
0176 tx-channel = "nettx";
0177
0178 cpts {
0179 clocks = <&cpts_refclk_mux>;
0180 clock-names = "cpts";
0181
0182 cpts_refclk_mux: cpts-refclk-mux {
0183 #clock-cells = <0>;
0184 clocks = <&chipclk12>, <&chipclk13>,
0185 <&timi0>, <&timi1>,
0186 <&tsrefclk>;
0187 ti,mux-tbl = <0x0>, <0x1>, <0x2>,
0188 <0x3>, <0x8>;
0189 assigned-clocks = <&cpts_refclk_mux>;
0190 assigned-clock-parents = <&chipclk12>;
0191 };
0192 };
0193
0194 interfaces {
0195 gbe0: interface-0 {
0196 slave-port = <0>;
0197 link-interface = <1>;
0198 phy-handle = <ðphy0>;
0199 };
0200 gbe1: interface-1 {
0201 slave-port = <1>;
0202 link-interface = <1>;
0203 phy-handle = <ðphy1>;
0204 };
0205 };
0206
0207 secondary-slave-ports {
0208 port-2 {
0209 slave-port = <2>;
0210 link-interface = <2>;
0211 };
0212 port-3 {
0213 slave-port = <3>;
0214 link-interface = <2>;
0215 };
0216 };
0217 };
0218 };
0219
0220 netcp-interfaces {
0221 interface-0 {
0222 rx-channel = "netrx0";
0223 rx-pool = <1024 12>;
0224 tx-pool = <1024 12>;
0225 rx-queue-depth = <128 128 0 0>;
0226 rx-buffer-size = <1518 4096 0 0>;
0227 rx-queue = <8704>;
0228 tx-completion-queue = <8706>;
0229 efuse-mac = <1>;
0230 netcp-gbe = <&gbe0>;
0231
0232 };
0233 interface-1 {
0234 rx-channel = "netrx1";
0235 rx-pool = <1024 12>;
0236 tx-pool = <1024 12>;
0237 rx-queue-depth = <128 128 0 0>;
0238 rx-buffer-size = <1518 4096 0 0>;
0239 rx-queue = <8705>;
0240 tx-completion-queue = <8707>;
0241 efuse-mac = <0>;
0242 local-mac-address = [02 18 31 7e 3e 6f];
0243 netcp-gbe = <&gbe1>;
0244 };
0245 };
0246 };
0247
0248 sa_subsys: subsys@20c0000 {
0249 compatible = "simple-bus";
0250 #address-cells = <1>;
0251 #size-cells = <1>;
0252 ranges = <0 0x20c0000 0x40000>;
0253
0254 sa_config: subsys@0 {
0255 compatible = "syscon";
0256 reg = <0x0 0x100>;
0257 };
0258
0259 rng@24000 {
0260 compatible = "ti,keystone-rng";
0261 reg = <0x24000 0x1000>;
0262 ti,syscon-sa-cfg = <&sa_config>;
0263 clocks = <&clksa>;
0264 clock-names = "fck";
0265 };
0266 };