summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-cavium/dts/sff8104-linux.dts
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/linux/linux-cavium/dts/sff8104-linux.dts')
-rw-r--r--recipes-kernel/linux/linux-cavium/dts/sff8104-linux.dts301
1 files changed, 301 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-cavium/dts/sff8104-linux.dts b/recipes-kernel/linux/linux-cavium/dts/sff8104-linux.dts
new file mode 100644
index 0000000..0190995
--- /dev/null
+++ b/recipes-kernel/linux/linux-cavium/dts/sff8104-linux.dts
@@ -0,0 +1,301 @@
1/*
2 * Cavium Thunder DTS file - Thunder board description
3 *
4 * Copyright (C) 2016, Cavium Inc.
5 *
6 * This file is dual-licensed: you can use it either under the terms
7 * of the GPL or the X11 license, at your option. Note that this dual
8 * licensing only applies to this file, and not this project as a
9 * whole.
10 *
11 * a) This library is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License as
13 * published by the Free Software Foundation; either version 2 of the
14 * License, or (at your option) any later version.
15 *
16 * This library is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public
22 * License along with this library; if not, write to the Free
23 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
24 * MA 02110-1301 USA
25 *
26 * Or, alternatively,
27 *
28 * b) Permission is hereby granted, free of charge, to any person
29 * obtaining a copy of this software and associated documentation
30 * files (the "Software"), to deal in the Software without
31 * restriction, including without limitation the rights to use,
32 * copy, modify, merge, publish, distribute, sublicense, and/or
33 * sell copies of the Software, and to permit persons to whom the
34 * Software is furnished to do so, subject to the following
35 * conditions:
36 *
37 * The above copyright notice and this permission notice shall be
38 * included in all copies or substantial portions of the Software.
39 *
40 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
41 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
42 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
43 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
44 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
45 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
46 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
47 * OTHER DEALINGS IN THE SOFTWARE.
48 */
49
50/dts-v1/;
51
52/include/ "cn81xx-linux.dtsi"
53
54&mrml_bridge {
55 mdio-nexus@1,3 {
56 mdio0@87e005003800 {
57 rgmii00: rgmii00 {
58 reg = <0> ;
59 compatible = "marvell,88e1510", "ethernet-phy-ieee802.3-c22";
60 };
61
62 qsgmii00: qsgmii00 {
63 qlm-mode = "0x000,qsgmii";
64 reg = <0x10> ;
65 compatible = "vitesse,vsc8574", "ethernet-phy-ieee802.3-c22";
66 };
67 qsgmii01: qsgmii01 {
68 qlm-mode = "0x001,qsgmii";
69 reg = <0x11> ;
70 compatible = "vitesse,vsc8574", "ethernet-phy-ieee802.3-c22";
71 };
72 qsgmii02: qsgmii02 {
73 qlm-mode = "0x002,qsgmii";
74 reg = <0x12> ;
75 compatible = "vitesse,vsc8574", "ethernet-phy-ieee802.3-c22";
76 };
77 qsgmii03: qsgmii03 {
78 qlm-mode = "0x003,qsgmii";
79 reg = <0x13> ;
80 compatible = "vitesse,vsc8574", "ethernet-phy-ieee802.3-c22";
81 };
82 };
83 mdio1@87e005003880 {
84 xfi00: xfi00 {
85 qlm-mode = "0x000,xfi";
86 reg = <0x0>;
87 compatible = "aquantia,aqr105", "ethernet-phy-ieee802.3-c45";
88 };
89 };
90 };
91
92 rgx0 {
93 rgmii00 {
94 reg = <0>;
95 local-mac-address = [00 00 00 00 00 00];
96 phy-handle = <&rgmii00>;
97 };
98 };
99
100 bgx0 {
101 /* typename+qlm+typenumber eg :
102 qsgmii+bgx0+sgmmi0
103 */
104 qsgmii00 {
105 reg = <0>;
106 qlm-mode = "0x000,qsgmii";
107 local-mac-address = [00 00 00 00 00 00];
108 phy-handle = <&qsgmii00>;
109 };
110 qsgmii01 {
111 reg = <1>;
112 qlm-mode = "0x001,qsgmii";
113 local-mac-address = [00 00 00 00 00 00];
114 phy-handle = <&qsgmii01>;
115 };
116 qsgmii02 {
117 reg = <2>;
118 qlm-mode = "0x002,qsgmii";
119 local-mac-address = [00 00 00 00 00 00];
120 phy-handle = <&qsgmii02>;
121 };
122 qsgmii03 {
123 reg = <3>;
124 qlm-mode = "0x003,qsgmii";
125 local-mac-address = [00 00 00 00 00 00];
126 phy-handle = <&qsgmii03>;
127 };
128
129 xfi00 {
130 reg = <0>;
131 qlm-mode = "0x000,xfi";
132 local-mac-address = [00 00 00 00 00 00];
133 phy-handle = <&xfi00>;
134 };
135 };
136
137 bgx1 {
138 xfi10 {
139 reg = <0>;
140 qlm-mode = "0x010,xfi";
141 local-mac-address = [00 00 00 00 00 00];
142 };
143
144 xfi11 {
145 reg = <1>;
146 qlm-mode = "0x011,xfi";
147 local-mac-address = [00 00 00 00 00 00];
148 };
149 };
150
151
152};
153
154&mmc_1_4 {
155 /* NOTE: the BDK is responsible for swapping the two slots.
156 * Unfortunately there does not appear to be any way to read the
157 * position of SW2-7 in software.
158 */
159 /* Power on GPIO 8, active high, shared */
160 power-gpios = <&gpio_6_0 8 0>;
161
162 mmc-slot@0 {
163 compatible = "cavium,thunder-8890-mmc-slot";
164 reg = <0>;
165 /* Only 3.3v is supported */
166 voltage-ranges = <3300 3300>;
167 max-frequency = <26000000>;
168 /* 1.8v is not supported */
169 no-1-8-v;
170 /* Bus width is only 4 bits maximum */
171 bus-width = <4>;
172 /* No write-protect switch is present */
173 disable-wp;
174 /* There is no card detection available; polling must be used. */
175 broken-cd;
176 /* SD UHS SDR25 is supported */
177 sd-uhs-sdr25;
178 /* SD UHS SDR50 is supported */
179 sd-uhs-ddr50;
180 /* SD UHS DDR50 is supported */
181 sd-uhs-sdr50;
182 /* High-speed mode is supported */
183 cap-sd-highspeed;
184 /* speed up device probing */
185 no-sdio;
186 no-mmc;
187 };
188 mmc-slot@1 {
189 compatible = "cavium,thunder-8890-mmc-slot";
190 reg = <1>;
191 voltage-ranges = <3300 3300>;
192 max-frequency = <26000000>;
193 /* 1.8v is not supported */
194 no-1-8-v;
195 /* Bus width is only 8 bits maximum */
196 bus-width = <8>;
197 /* No write-protect switch is present */
198 disable-wp;
199 /* There is no card detection available; polling must be used. */
200 broken-cd;
201 /* High-speed mode is supported */
202 cap-mmc-highspeed;
203 /* eMMC device is soldered onto the board */
204 non-removable;
205 /* speed up device probing */
206 no-sdio;
207 no-sd;
208 };
209};
210
211&i2c_9_0 {
212 /* another pca9535 at 0x20 is only visible via jtag */
213 gpio1: gpio-i2c@21 {
214 compatible = "nxp,pca9535";
215 gpio-controller;
216 reg = <0x21>;
217 gpio_base = <48>;
218 pins = <48 16>;
219 ngpios = <16>; // standard
220 n_gpios = <16>; // deprecated, driver required
221 #gpio-cells = <2>;
222 };
223
224 gpio2: gpio-i2c@22 {
225 compatible = "nxp,pca9535";
226 gpio-controller;
227 reg = <0x22>;
228 gpio_base = <64>;
229 pins = <64 16>;
230 ngpios = <16>; // standard
231 n_gpios = <16>; // deprecated, driver required
232 #gpio-cells = <2>;
233 };
234};
235
236&i2c_9_1 {
237 rom@54 {
238 compatible = "atmel,24c256";
239 reg = <0x54>;
240 pagesize = <64>;
241 };
242
243 rtc@68 {
244 compatible = "isil,isl12057";
245 reg = <0x68>;
246 };
247};
248
249&spi_7_0 {
250 flash@0 {
251 compatible = "micron,n25q128a13", "spi-flash";
252 reg = <0x0>;
253 spi-max-frequency = <16000000>;
254 #address-cells = <1>;
255 #size-cells = <1>;
256 };
257};
258
259&nfc {
260 nand@1 {
261 reg = <0x1>;
262 nand-ecc-mode = "hw";
263 };
264};
265
266&tdm {
267 // need corresponding mmc_etc.enable = <&gpio_6_0 39 1>;
268 pcm-enable-gpios = <&gpio_6_0 39 0>;
269};
270
271&spi_7_0 {
272 spi-mux-gpios = <&gpio1 4 1>;
273
274 flash@0 {
275 compatible = "jedec,spi-nor";
276 reg = <0x0>;
277 spi-max-frequency = <16000000>;
278 #address-cells = <1>;
279 #size-cells = <1>;
280 };
281
282 slic@4 {
283 compatible = "silabs,si32260", "linux,spidev";
284 reg = <4>;
285 spi-max-frequency = <2500000>;
286 reset-gpios = <&gpio1 0 1>;
287 irq-gpios = <&gpio_6_0 13>;
288 tx = <&tdm 0>;
289 rx = <&tdm 1>;
290 };
291
292 framer@5 {
293 compatible = "maxim,ds26521", "linux,spidev";
294 reg = <5>;
295 spi-max-frequency = <2500000>;
296 reset-gpios = <&gpio_6_0 11 1>;
297 irq-gpios = <&gpio_6_0 14>;
298 tx = <&tdm 2>;
299 rx = <&tdm 3>;
300 };
301};