arm: dts: keystone: Update devicetree header comments to sync with v6.3-rc6
[platform/kernel/u-boot.git] / arch / arm / dts / keystone-k2hk-netcp.dtsi
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Device Tree Source for Keystone 2 Hawking Netcp driver
4  *
5  * Copyright (C) 2015-2017 Texas Instruments Incorporated - http://www.ti.com/
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;
15         queue-range     = <0 0x4000>;
16         linkram0        = <0x100000 0x8000>;
17         linkram1        = <0x0 0x10000>;
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         };
47         queue-pools {
48                 qpend {
49                         qpend-0 {
50                                 qrange = <658 8>;
51                                 interrupts =<0 40 0xf04 0 41 0xf04 0 42 0xf04
52                                              0 43 0xf04 0 44 0xf04 0 45 0xf04
53                                              0 46 0xf04 0 47 0xf04>;
54                         };
55                         qpend-1 {
56                                 qrange = <8704 16>;
57                                 interrupts = <0 48 0xf04 0 49 0xf04 0 50 0xf04
58                                               0 51 0xf04 0 52 0xf04 0 53 0xf04
59                                               0 54 0xf04 0 55 0xf04 0 56 0xf04
60                                               0 57 0xf04 0 58 0xf04 0 59 0xf04
61                                               0 60 0xf04 0 61 0xf04 0 62 0xf04
62                                               0 63 0xf04>;
63                                 qalloc-by-id;
64                         };
65                         qpend-2 {
66                                 qrange = <8720 16>;
67                                 interrupts = <0 64 0xf04 0 65 0xf04 0 66 0xf04
68                                               0 59 0xf04 0 68 0xf04 0 69 0xf04
69                                               0 70 0xf04 0 71 0xf04 0 72 0xf04
70                                               0 73 0xf04 0 74 0xf04 0 75 0xf04
71                                               0 76 0xf04 0 77 0xf04 0 78 0xf04
72                                               0 79 0xf04>;
73                         };
74                 };
75                 general-purpose {
76                         gp-0 {
77                                 qrange = <4000 64>;
78                         };
79                         netcp-tx {
80                                 qrange = <640 9>;
81                                 qalloc-by-id;
82                         };
83                         netcpx-tx {
84                                 qrange = <8752 8>;
85                                 qalloc-by-id;
86                         };
87                 };
88         };
89         descriptor-regions {
90                 #address-cells = <1>;
91                 #size-cells = <1>;
92                 ranges;
93                 region-12 {
94                         id = <12>;
95                         region-spec = <8192 128>;       /* num_desc desc_size */
96                         link-index = <0x4000>;
97                 };
98         };
99 }; /* qmss */
100
101 knav_dmas: knav_dmas@0 {
102         compatible = "ti,keystone-navigator-dma";
103         clocks = <&papllclk>;
104         #address-cells = <1>;
105         #size-cells = <1>;
106         ranges;
107         ti,navigator-cloud-address = <0x23a80000 0x23a90000
108                                    0x23aa0000 0x23ab0000>;
109
110         dma_gbe: dma_gbe@0 {
111                 reg = <0x2004000 0x100>,
112                           <0x2004400 0x120>,
113                           <0x2004800 0x300>,
114                           <0x2004c00 0x120>,
115                           <0x2005000 0x400>;
116                 reg-names = "global", "txchan", "rxchan",
117                                 "txsched", "rxflow";
118         };
119 };
120
121 netcp: netcp@2000000 {
122         reg = <0x2620110 0x8>;
123         reg-names = "efuse";
124         compatible = "ti,netcp-1.0";
125         #address-cells = <1>;
126         #size-cells = <1>;
127
128         /* NetCP address range */
129         ranges  = <0 0x2000000 0x100000>;
130
131         clocks = <&papllclk>, <&clkcpgmac>, <&chipclk12>;
132         dma-coherent;
133
134         ti,navigator-dmas = <&dma_gbe 22>,
135                         <&dma_gbe 23>,
136                         <&dma_gbe 8>;
137         ti,navigator-dma-names = "netrx0", "netrx1", "nettx";
138
139         netcp-devices {
140                 ranges;
141                 #address-cells = <1>;
142                 #size-cells = <1>;
143                 gbe@90000 { /* ETHSS */
144                         #address-cells = <1>;
145                         #size-cells = <1>;
146                         label = "netcp-gbe";
147                         compatible = "ti,netcp-gbe";
148                         reg = <0x90000 0x300>, <0x90400 0x400>, <0x90800 0x700>;
149                         /* enable-ale; */
150                         tx-queue = <648>;
151                         tx-channel = "nettx";
152
153                         interfaces {
154                                 gbe0: interface-0 {
155                                         slave-port = <0>;
156                                         link-interface = <1>;
157                                         phy-handle = <&ethphy0>;
158                                 };
159                                 gbe1: interface-1 {
160                                         slave-port = <1>;
161                                         link-interface = <1>;
162                                         phy-handle = <&ethphy1>;
163                                 };
164                         };
165
166                         secondary-slave-ports {
167                                 port-2 {
168                                         slave-port = <2>;
169                                         link-interface  = <2>;
170                                 };
171                                 port-3 {
172                                         slave-port = <3>;
173                                         link-interface  = <2>;
174                                 };
175                         };
176                 };
177         };
178
179         netcp-interfaces {
180                 interface-0 {
181                         rx-channel = "netrx0";
182                         rx-pool = <1024 12>;
183                         tx-pool = <1024 12>;
184                         rx-queue-depth = <128 128 0 0>;
185                         rx-buffer-size = <1518 4096 0 0>;
186                         rx-queue = <8704>;
187                         tx-completion-queue = <8706>;
188                         efuse-mac = <1>;
189                         netcp-gbe = <&gbe0>;
190
191                 };
192                 interface-1 {
193                         rx-channel = "netrx1";
194                         rx-pool = <1024 12>;
195                         tx-pool = <1024 12>;
196                         rx-queue-depth = <128 128 0 0>;
197                         rx-buffer-size = <1518 4096 0 0>;
198                         rx-queue = <8705>;
199                         tx-completion-queue = <8707>;
200                         efuse-mac = <0>;
201                         local-mac-address = [02 18 31 7e 3e 6f];
202                         netcp-gbe = <&gbe1>;
203                 };
204         };
205 };