Alex Marginean | a7fdac7 | 2021-01-27 13:00:00 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ OR X11 |
| 2 | /* |
| 3 | * NXP LS1028A-QDS device tree fragment for RCW 9999 |
| 4 | * |
Vladimir Oltean | 66fd01f | 2021-09-17 14:27:13 +0300 | [diff] [blame] | 5 | * Copyright 2019-2021 NXP |
Alex Marginean | a7fdac7 | 2021-01-27 13:00:00 +0200 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | /* |
| 9 | * This setup is using SCH-24801 cards with VSC8234 quad SGMII PHY. |
| 10 | * LS1028A QDS boards with lane B rework require two cards for the 4 switch |
| 11 | * ports, QDS boards without the lane B rework only require one card. |
| 12 | * |
| 13 | * Switch ports are routed as follows: |
| 14 | * Port 0 goes to 1st port of VSC8234 quad card in slot 1, |
| 15 | * Port 1: |
| 16 | * - if the QDS has had lane B rework, it is 1st port in slot 2, |
| 17 | * - otherwise it is 2nd port in slot 1. |
| 18 | * Port 2: |
| 19 | * - if DIP SW5[1] = 0 it is 3rd port in slot 1, |
| 20 | * - otherwise it is 1st port in slot 3. |
| 21 | * Port 3: |
| 22 | * - if DIP SW5[2-3] = 00b it is 4th port in slot 1, |
| 23 | * - if DIP SW5[2-3] = 01b it is 2nd port in slot 3, |
| 24 | * - if DIP SW5[2-3] = 11b it is 1st port in slot 4. |
| 25 | * |
| 26 | * The following DTS assumes QDS lane B rework and DIP SW5[1-3] = 000b. Two |
| 27 | * SCH-24801 cards are required in slots 1 and 2. |
| 28 | */ |
| 29 | &slot1 { |
| 30 | #include "fsl-sch-24801.dtsi" |
| 31 | }; |
| 32 | |
| 33 | &slot2 { |
| 34 | #include "fsl-sch-24801.dtsi" |
| 35 | }; |
| 36 | |
Michael Walle | c816dd0 | 2021-10-13 18:14:15 +0200 | [diff] [blame] | 37 | &enetc_port2 { |
Vladimir Oltean | 39dca76 | 2021-06-29 20:53:11 +0300 | [diff] [blame] | 38 | status = "okay"; |
| 39 | }; |
| 40 | |
Alex Marginean | a7fdac7 | 2021-01-27 13:00:00 +0200 | [diff] [blame] | 41 | &mscc_felix { |
| 42 | status = "okay"; |
| 43 | }; |
| 44 | |
| 45 | &mscc_felix_port0 { |
| 46 | status = "okay"; |
Vladimir Oltean | 681adaa | 2022-01-03 14:47:37 +0200 | [diff] [blame] | 47 | managed = "in-band-status"; |
Alex Marginean | a7fdac7 | 2021-01-27 13:00:00 +0200 | [diff] [blame] | 48 | phy-mode = "sgmii"; |
Michael Walle | fb19c6b | 2021-10-13 18:14:05 +0200 | [diff] [blame] | 49 | phy-handle = <&{/soc/i2c@2000000/fpga@66/mux-mdio@54/mdio@40/phy@1c}>; |
Alex Marginean | a7fdac7 | 2021-01-27 13:00:00 +0200 | [diff] [blame] | 50 | }; |
| 51 | |
| 52 | &mscc_felix_port1 { |
| 53 | status = "okay"; |
Vladimir Oltean | 681adaa | 2022-01-03 14:47:37 +0200 | [diff] [blame] | 54 | managed = "in-band-status"; |
Alex Marginean | a7fdac7 | 2021-01-27 13:00:00 +0200 | [diff] [blame] | 55 | phy-mode = "sgmii"; |
Michael Walle | fb19c6b | 2021-10-13 18:14:05 +0200 | [diff] [blame] | 56 | phy-handle = <&{/soc/i2c@2000000/fpga@66/mux-mdio@54/mdio@50/phy@1c}>; |
Alex Marginean | a7fdac7 | 2021-01-27 13:00:00 +0200 | [diff] [blame] | 57 | }; |
| 58 | |
| 59 | &mscc_felix_port2 { |
| 60 | status = "okay"; |
Vladimir Oltean | 681adaa | 2022-01-03 14:47:37 +0200 | [diff] [blame] | 61 | managed = "in-band-status"; |
Alex Marginean | a7fdac7 | 2021-01-27 13:00:00 +0200 | [diff] [blame] | 62 | phy-mode = "sgmii"; |
Michael Walle | fb19c6b | 2021-10-13 18:14:05 +0200 | [diff] [blame] | 63 | phy-handle = <&{/soc/i2c@2000000/fpga@66/mux-mdio@54/mdio@40/phy@1e}>; |
Alex Marginean | a7fdac7 | 2021-01-27 13:00:00 +0200 | [diff] [blame] | 64 | }; |
| 65 | |
| 66 | &mscc_felix_port3 { |
| 67 | status = "okay"; |
Vladimir Oltean | 681adaa | 2022-01-03 14:47:37 +0200 | [diff] [blame] | 68 | managed = "in-band-status"; |
Alex Marginean | a7fdac7 | 2021-01-27 13:00:00 +0200 | [diff] [blame] | 69 | phy-mode = "sgmii"; |
Michael Walle | fb19c6b | 2021-10-13 18:14:05 +0200 | [diff] [blame] | 70 | phy-handle = <&{/soc/i2c@2000000/fpga@66/mux-mdio@54/mdio@40/phy@1f}>; |
Alex Marginean | a7fdac7 | 2021-01-27 13:00:00 +0200 | [diff] [blame] | 71 | }; |
Vladimir Oltean | 39dca76 | 2021-06-29 20:53:11 +0300 | [diff] [blame] | 72 | |
| 73 | &mscc_felix_port4 { |
Michael Walle | c816dd0 | 2021-10-13 18:14:15 +0200 | [diff] [blame] | 74 | ethernet = <&enetc_port2>; |
Vladimir Oltean | 39dca76 | 2021-06-29 20:53:11 +0300 | [diff] [blame] | 75 | status = "okay"; |
| 76 | }; |