| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: (GPL-2.0 OR MIT) |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 2015, 2016 Zodiac Inflight Innovations |
|---|
| 3 | | - * |
|---|
| 4 | | - * Based on an original 'vf610-twr.dts' which is Copyright 2015, |
|---|
| 5 | | - * Freescale Semiconductor, Inc. |
|---|
| 6 | | - * |
|---|
| 7 | | - * This file is dual-licensed: you can use it either under the terms |
|---|
| 8 | | - * of the GPL or the X11 license, at your option. Note that this dual |
|---|
| 9 | | - * licensing only applies to this file, and not this project as a |
|---|
| 10 | | - * whole. |
|---|
| 11 | | - * |
|---|
| 12 | | - * a) This file is free software; you can redistribute it and/or |
|---|
| 13 | | - * modify it under the terms of the GNU General Public License |
|---|
| 14 | | - * version 2 as published by the Free Software Foundation. |
|---|
| 15 | | - * |
|---|
| 16 | | - * This file 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 | | - * Or, alternatively, |
|---|
| 22 | | - * |
|---|
| 23 | | - * b) Permission is hereby granted, free of charge, to any person |
|---|
| 24 | | - * obtaining a copy of this software and associated documentation |
|---|
| 25 | | - * files (the "Software"), to deal in the Software without |
|---|
| 26 | | - * restriction, including without limitation the rights to use, |
|---|
| 27 | | - * copy, modify, merge, publish, distribute, sublicense, and/or |
|---|
| 28 | | - * sell copies of the Software, and to permit persons to whom the |
|---|
| 29 | | - * Software is furnished to do so, subject to the following |
|---|
| 30 | | - * conditions: |
|---|
| 31 | | - * |
|---|
| 32 | | - * The above copyright notice and this permission notice shall be |
|---|
| 33 | | - * included in all copies or substantial portions of the Software. |
|---|
| 34 | | - * |
|---|
| 35 | | - * THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND, |
|---|
| 36 | | - * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
|---|
| 37 | | - * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
|---|
| 38 | | - * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
|---|
| 39 | | - * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
|---|
| 40 | | - * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|---|
| 41 | | - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
|---|
| 42 | | - * OTHER DEALINGS IN THE SOFTWARE. |
|---|
| 43 | 4 | */ |
|---|
| 44 | 5 | |
|---|
| 45 | 6 | /dts-v1/; |
|---|
| .. | .. |
|---|
| 200 | 161 | phy-handle = <&switch1phy4>; |
|---|
| 201 | 162 | }; |
|---|
| 202 | 163 | |
|---|
| 164 | + port@9 { |
|---|
| 165 | + reg = <9>; |
|---|
| 166 | + label = "sff2"; |
|---|
| 167 | + phy-mode = "1000base-x"; |
|---|
| 168 | + managed = "in-band-status"; |
|---|
| 169 | + sfp = <&sff2>; |
|---|
| 170 | + }; |
|---|
| 203 | 171 | |
|---|
| 204 | 172 | switch1port10: port@10 { |
|---|
| 205 | 173 | reg = <10>; |
|---|
| .. | .. |
|---|
| 245 | 213 | #size-cells = <0>; |
|---|
| 246 | 214 | }; |
|---|
| 247 | 215 | }; |
|---|
| 216 | + |
|---|
| 217 | + sff2: sff2 { |
|---|
| 218 | + /* lower */ |
|---|
| 219 | + compatible = "sff,sff"; |
|---|
| 220 | + i2c-bus = <&sff2_i2c>; |
|---|
| 221 | + los-gpios = <&gpio6 12 GPIO_ACTIVE_HIGH>; |
|---|
| 222 | + tx-disable-gpios = <&gpio6 14 GPIO_ACTIVE_HIGH>; |
|---|
| 223 | + }; |
|---|
| 224 | + |
|---|
| 225 | + sff3: sff3 { |
|---|
| 226 | + /* upper */ |
|---|
| 227 | + compatible = "sff,sff"; |
|---|
| 228 | + i2c-bus = <&sff3_i2c>; |
|---|
| 229 | + los-gpios = <&gpio6 13 GPIO_ACTIVE_HIGH>; |
|---|
| 230 | + tx-disable-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>; |
|---|
| 231 | + }; |
|---|
| 248 | 232 | }; |
|---|
| 249 | 233 | |
|---|
| 250 | 234 | &dspi0 { |
|---|
| .. | .. |
|---|
| 254 | 238 | status = "okay"; |
|---|
| 255 | 239 | spi-num-chipselects = <2>; |
|---|
| 256 | 240 | |
|---|
| 257 | | - m25p128@0 { |
|---|
| 241 | + flash@0 { |
|---|
| 258 | 242 | compatible = "m25p128", "jedec,spi-nor"; |
|---|
| 259 | 243 | #address-cells = <1>; |
|---|
| 260 | 244 | #size-cells = <1>; |
|---|
| .. | .. |
|---|
| 290 | 274 | * P1 - WE2_CMD |
|---|
| 291 | 275 | * P2 - WE2_CLK |
|---|
| 292 | 276 | */ |
|---|
| 293 | | - gpio5: pca9557@18 { |
|---|
| 277 | + gpio5: io-expander@18 { |
|---|
| 294 | 278 | compatible = "nxp,pca9557"; |
|---|
| 295 | 279 | reg = <0x18>; |
|---|
| 296 | 280 | gpio-controller; |
|---|
| .. | .. |
|---|
| 329 | 313 | interrupts = <23 IRQ_TYPE_EDGE_FALLING>; |
|---|
| 330 | 314 | gpio-controller; |
|---|
| 331 | 315 | interrupt-controller; |
|---|
| 332 | | - |
|---|
| 333 | | - enet_swr_en { |
|---|
| 334 | | - gpio-hog; |
|---|
| 335 | | - gpios = <0 GPIO_ACTIVE_HIGH>; |
|---|
| 336 | | - output-high; |
|---|
| 337 | | - line-name = "enet-swr-en"; |
|---|
| 338 | | - }; |
|---|
| 339 | 316 | }; |
|---|
| 340 | 317 | |
|---|
| 341 | 318 | /* |
|---|
| .. | .. |
|---|
| 345 | 322 | * IO0 - WE1_CLK |
|---|
| 346 | 323 | * IO1 - WE1_CMD |
|---|
| 347 | 324 | */ |
|---|
| 348 | | - gpio7: pca9554@22 { |
|---|
| 325 | + gpio7: io-expander@22 { |
|---|
| 349 | 326 | compatible = "nxp,pca9554"; |
|---|
| 350 | 327 | reg = <0x22>; |
|---|
| 351 | 328 | gpio-controller; |
|---|
| .. | .. |
|---|
| 355 | 332 | }; |
|---|
| 356 | 333 | |
|---|
| 357 | 334 | &i2c1 { |
|---|
| 358 | | - at24mac602@50 { |
|---|
| 335 | + eeprom@50 { |
|---|
| 359 | 336 | compatible = "atmel,24c02"; |
|---|
| 360 | 337 | reg = <0x50>; |
|---|
| 361 | 338 | read-only; |
|---|
| .. | .. |
|---|
| 378 | 355 | reg = <0>; |
|---|
| 379 | 356 | }; |
|---|
| 380 | 357 | |
|---|
| 381 | | - i2c@1 { |
|---|
| 358 | + sff2_i2c: i2c@1 { |
|---|
| 382 | 359 | #address-cells = <1>; |
|---|
| 383 | 360 | #size-cells = <0>; |
|---|
| 384 | 361 | reg = <1>; |
|---|
| 385 | | - |
|---|
| 386 | | - sfp2: at24c04@50 { |
|---|
| 387 | | - compatible = "atmel,24c02"; |
|---|
| 388 | | - reg = <0x50>; |
|---|
| 389 | | - }; |
|---|
| 390 | 362 | }; |
|---|
| 391 | 363 | |
|---|
| 392 | | - i2c@2 { |
|---|
| 364 | + sff3_i2c: i2c@2 { |
|---|
| 393 | 365 | #address-cells = <1>; |
|---|
| 394 | 366 | #size-cells = <0>; |
|---|
| 395 | 367 | reg = <2>; |
|---|
| 396 | | - |
|---|
| 397 | | - sfp3: at24c04@50 { |
|---|
| 398 | | - compatible = "atmel,24c02"; |
|---|
| 399 | | - reg = <0x50>; |
|---|
| 400 | | - }; |
|---|
| 401 | 368 | }; |
|---|
| 402 | 369 | |
|---|
| 403 | 370 | i2c@3 { |
|---|